InstCombine: Don't assume that m_ZExt matches an Instruction
[oota-llvm.git] / test / Transforms / InstCombine / not.ll
index ee3d7253047edd51637c8cbab411f41f89339db4..4a8825b15c4e15102d3f1ba6bfbc94e7eb493c81 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: opt %s -instcombine | llvm-dis | not grep xor
+; RUN: opt < %s -instcombine -S | not grep xor
 
 define i32 @test1(i32 %A) {
         %B = xor i32 %A, -1             ; <i32> [#uses=1]
@@ -43,7 +43,7 @@ define i32 @test5(i32 %A, i32 %B) {
 }
 
 ; PR2298
-define i8 @test6(i32 %a, i32 %b) zeroext nounwind  {
+define zeroext i8 @test6(i32 %a, i32 %b)  nounwind  {
 entry:
        %tmp1not = xor i32 %a, -1               ; <i32> [#uses=1]
        %tmp2not = xor i32 %b, -1               ; <i32> [#uses=1]