Add PPC 440 scheduler and some associated tests (new files)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hal Finkel
2011-10-17 04:03:55 +00:00
parent c6d08f10bf
commit b31d3d271f
3 changed files with 623 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
; RUN: llc < %s -march=ppc32 -o %t
; RUN: grep sync %t
; RUN: not grep msync %t
; RUN: llc < %s -march=ppc32 -mcpu=440 | grep msync
define i32 @has_a_fence(i32 %a, i32 %b) nounwind {
entry:
fence acquire
%cond = icmp eq i32 %a, %b
br i1 %cond, label %IfEqual, label %IfUnequal
IfEqual:
fence release
br label %end
IfUnequal:
fence release
ret i32 0
end:
ret i32 1
}