diff options
Diffstat (limited to 'test/CodeGen/Thumb/ispositive.ll')
-rw-r--r-- | test/CodeGen/Thumb/ispositive.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb/ispositive.ll b/test/CodeGen/Thumb/ispositive.ll new file mode 100644 index 0000000..eac3ef2 --- /dev/null +++ b/test/CodeGen/Thumb/ispositive.ll @@ -0,0 +1,11 @@ +; RUN: llc < %s -march=thumb | FileCheck %s + +define i32 @test1(i32 %X) { +entry: +; CHECK: test1: +; CHECK: lsrs r0, r0, #31 + icmp slt i32 %X, 0 ; <i1>:0 [#uses=1] + zext i1 %0 to i32 ; <i32>:1 [#uses=1] + ret i32 %1 +} + |