blob: c158f15cfb8f898d36c87db351dd52ca53fece39 [file] [log] [blame]
Reid Spencer97e287e2007-04-15 20:48:50 +00001; RUN: llvm-as < %s | llc -march=x86 | grep {shrl.*31}
2; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
3; RUN: grep {srwi r3, r3, 31}
4; RUN: llvm-as < %s | llc -march=arm | grep {mov r0, r0, lsr #31}
5; RUN: llvm-as < %s | llc -march=thumb | grep {lsr r0, r0, #31}
Chris Lattnercb42ba42007-04-11 05:32:13 +00006
Chris Lattner593959b2007-04-11 15:24:04 +00007define i32 @test1(i32 %X) {
Chris Lattnercb42ba42007-04-11 05:32:13 +00008entry:
9 icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
10 zext i1 %0 to i32 ; <i32>:1 [#uses=1]
11 ret i32 %1
12}
13