1 ; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s
3 define i32 @test1(i32 %X) {
6 ; CHECK: lsrs r0, r0, #31
7 icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
8 zext i1 %0 to i32 ; <i32>:1 [#uses=1]
12 define i32 @test2(i32 %X) {
15 ; CHECK: lsls r1, r1, #31
17 %tmp1 = sub i32 %X, 2147483648