blob: f9ca397caaab43fb62647d4b6111f006cc464a49 [file] [log] [blame]
Chris Lattner3a8b0c72007-03-05 00:01:38 +00001; RUN: llvm-as < %s | opt -instcombine -disable-output &&
2; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
3; RUN: grep -v OK | not grep add
4
5define i64 @test1(i64 %A, i32 %B) {
6 %tmp12 = zext i32 %B to i64
7 %tmp3 = shl i64 %tmp12, 32
8 %tmp5 = add i64 %tmp3, %A
9 %tmp6 = and i64 %tmp5, 123
10 ret i64 %tmp6
11}
12