aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb/ispositive.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Thumb/ispositive.ll')
-rw-r--r--test/CodeGen/Thumb/ispositive.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb/ispositive.ll b/test/CodeGen/Thumb/ispositive.ll
new file mode 100644
index 0000000..91f5970
--- /dev/null
+++ b/test/CodeGen/Thumb/ispositive.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=thumb | grep {lsr r0, r0, #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
+}
+