summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/long-setcc.ll
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-03-23 23:11:02 +0000
committerAndrew Trick <atrick@apple.com>2011-03-23 23:11:02 +0000
commitf6c39412dde6e81e586ee78829b3d7fa7422b5da (patch)
tree0049c3c91ff8da9ba16a263e5375824d29380fd5 /test/CodeGen/X86/long-setcc.ll
parent2c339156289d8398bea09c2bb4b735d00d39bdb3 (diff)
downloadllvm-f6c39412dde6e81e586ee78829b3d7fa7422b5da.tar.gz
llvm-f6c39412dde6e81e586ee78829b3d7fa7422b5da.tar.bz2
llvm-f6c39412dde6e81e586ee78829b3d7fa7422b5da.tar.xz
Revert r128175.
I'm backing this out for the second time. It was supposed to be fixed by r128164, but the mingw self-host must be defeating the fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/long-setcc.ll')
-rw-r--r--test/CodeGen/X86/long-setcc.ll39
1 files changed, 11 insertions, 28 deletions
diff --git a/test/CodeGen/X86/long-setcc.ll b/test/CodeGen/X86/long-setcc.ll
index 0ab8160688..e0165fb01b 100644
--- a/test/CodeGen/X86/long-setcc.ll
+++ b/test/CodeGen/X86/long-setcc.ll
@@ -1,35 +1,18 @@
-; RUN: llc < %s -march=x86 | FileCheck %s
+; RUN: llc < %s -march=x86 | grep cmp | count 1
+; RUN: llc < %s -march=x86 | grep shr | count 1
+; RUN: llc < %s -march=x86 | grep xor | count 1
-; General case
-define i1 @t1(i64 %x, i64 %y) nounwind {
-; CHECK: @t1
-; CHECK: subl
-; CHECK: sbbl
-; CHECK: setl %al
- %B = icmp slt i64 %x, %y
- ret i1 %B
+define i1 @t1(i64 %x) nounwind {
+ %B = icmp slt i64 %x, 0
+ ret i1 %B
}
-; Some special cases
define i1 @t2(i64 %x) nounwind {
-; CHECK: @t2
-; CHECK: shrl $31, %eax
- %B = icmp slt i64 %x, 0
- ret i1 %B
+ %tmp = icmp ult i64 %x, 4294967296
+ ret i1 %tmp
}
-define i1 @t3(i64 %x) nounwind {
-; CHECK: @t3
-; CHECX: cmpl $0
-; CHECX: sete %al
- %tmp = icmp ult i64 %x, 4294967296
- ret i1 %tmp
-}
-
-define i1 @t4(i64 %x) nounwind {
-; CHECK: @t4
-; CHECX: cmpl $0
-; CHECX: setne %al
- %tmp = icmp ugt i64 %x, 4294967295
- ret i1 %tmp
+define i1 @t3(i32 %x) nounwind {
+ %tmp = icmp ugt i32 %x, -1
+ ret i1 %tmp
}