Add missing newlines at EOF (for clang++).
[oota-llvm.git] / test / Transforms / InstCombine / add.ll
index b4795147c6e6837a58b5df10eace2031f1db613e..4719809d6d36944107595bbd71540fa9e63de629 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that add instructions are properly eliminated.
 
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
+; RUN: opt < %s -instcombine -S | \
 ; RUN:    grep -v OK | not grep add
 
 define i32 @test1(i32 %A) {
@@ -268,3 +268,10 @@ define i32 @test35(i32 %a) {
         ret i32 %tmp2
 }
 
+define i32 @test36(i32 %a) {
+       %x = and i32 %a, -2
+       %y = and i32 %a, -126
+       %z = add i32 %x, %y
+       %q = and i32 %z, 1  ; always zero
+       ret i32 %q
+}