aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/ispositive.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/ispositive.ll')
-rw-r--r--test/CodeGen/X86/ispositive.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ispositive.ll b/test/CodeGen/X86/ispositive.ll
new file mode 100644
index 0000000..8adf723
--- /dev/null
+++ b/test/CodeGen/X86/ispositive.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=x86 | grep {shrl.*31}
+
+define i32 @test1(i32 %X) {
+entry:
+ icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
+ zext i1 %0 to i32 ; <i32>:1 [#uses=1]
+ ret i32 %1
+}
+