diff options
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/cmp2.ll | 18 | ||||
-rw-r--r-- | test/CodeGen/X86/long-setcc.ll | 6 |
2 files changed, 21 insertions, 3 deletions
diff --git a/test/CodeGen/X86/cmp2.ll b/test/CodeGen/X86/cmp2.ll new file mode 100644 index 0000000..cc4027e --- /dev/null +++ b/test/CodeGen/X86/cmp2.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep ucomisd | grep CPI | count 2 + +define i32 @test(double %A) nounwind { + entry: + %tmp2 = fcmp ogt double %A, 1.500000e+02; <i1> [#uses=1] + %tmp5 = fcmp olt double %A, 7.500000e+01; <i1> [#uses=1] + %bothcond = or i1 %tmp2, %tmp5; <i1> [#uses=1] + br i1 %bothcond, label %bb8, label %bb12 + + bb8:; preds = %entry + %tmp9 = tail call i32 (...)* @foo( ) nounwind ; <i32> [#uses=1] + ret i32 %tmp9 + + bb12:; preds = %entry + ret i32 32 +} + +declare i32 @foo(...) diff --git a/test/CodeGen/X86/long-setcc.ll b/test/CodeGen/X86/long-setcc.ll index 55e7c86..8d9ebfb 100644 --- a/test/CodeGen/X86/long-setcc.ll +++ b/test/CodeGen/X86/long-setcc.ll @@ -2,17 +2,17 @@ ; RUN: llvm-as < %s | llc -march=x86 | grep shr | count 1 ; RUN: llvm-as < %s | llc -march=x86 | grep xor | count 1 -define i1 @t1(i64 %x) { +define i1 @t1(i64 %x) nounwind { %B = icmp slt i64 %x, 0 ret i1 %B } -define i1 @t2(i64 %x) { +define i1 @t2(i64 %x) nounwind { %tmp = icmp ult i64 %x, 4294967296 ret i1 %tmp } -define i1 @t3(i32 %x) { +define i1 @t3(i32 %x) nounwind { %tmp = icmp ugt i32 %x, -1 ret i1 %tmp } |