blob: 245ed516f70bc08d08cfe41b19202e16af355ce4 [file] [log] [blame]
Bob Wilsonb9350312009-10-27 06:16:45 +00001; RUN: llc < %s -march=arm | FileCheck %s
Chris Lattnercb42ba42007-04-11 05:32:13 +00002
Chris Lattner593959b2007-04-11 15:24:04 +00003define i32 @test1(i32 %X) {
Bob Wilsonb9350312009-10-27 06:16:45 +00004; CHECK: mov r0, r0, lsr #31
Chris Lattnercb42ba42007-04-11 05:32:13 +00005entry:
6 icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
7 zext i1 %0 to i32 ; <i32>:1 [#uses=1]
8 ret i32 %1
9}
10