blob: 245ed516f70bc08d08cfe41b19202e16af355ce4 [file] [log] [blame]
Bob Wilsone811eeb2009-10-27 06:16:45 +00001; RUN: llc < %s -march=arm | FileCheck %s
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3define i32 @test1(i32 %X) {
Bob Wilsone811eeb2009-10-27 06:16:45 +00004; CHECK: mov r0, r0, lsr #31
Dan Gohmanf17a25c2007-07-18 16:29:46 +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