f9ca397caaab43fb62647d4b6111f006cc464a49
[oota-llvm.git] / test / Transforms / InstCombine / add2.ll
1 ; 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
5 define 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