[llvm] r370886 - [NFC] Adjust tests for new fold

David Bolvansky via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 05:22:28 PDT 2019


Author: xbolva00
Date: Wed Sep  4 05:22:28 2019
New Revision: 370886

URL: http://llvm.org/viewvc/llvm-project?rev=370886&view=rev
Log:
[NFC] Adjust tests for new fold

Modified:
    llvm/trunk/test/Transforms/InstCombine/sub-or-and-xor.ll

Modified: llvm/trunk/test/Transforms/InstCombine/sub-or-and-xor.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/sub-or-and-xor.ll?rev=370886&r1=370885&r2=370886&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/sub-or-and-xor.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/sub-or-and-xor.ll Wed Sep  4 05:22:28 2019
@@ -90,15 +90,15 @@ define <2 x i32> @sub_to_xor_vec(<2 x i3
 
 ; Negative tests
 
-define i32 @sub_to_xor_wrong_sub(i32 %x, i32 %y) {
-; CHECK-LABEL: @sub_to_xor_wrong_sub(
+define i32 @sub_to_xor_wrong_arg(i32 %x, i32 %y, i32 %z) {
+; CHECK-LABEL: @sub_to_xor_wrong_arg(
 ; CHECK-NEXT:    [[OR:%.*]] = or i32 [[X:%.*]], [[Y:%.*]]
-; CHECK-NEXT:    [[AND:%.*]] = and i32 [[X]], [[Y]]
+; CHECK-NEXT:    [[AND:%.*]] = and i32 [[X]], [[Z:%.*]]
 ; CHECK-NEXT:    [[SUB:%.*]] = sub i32 [[AND]], [[OR]]
 ; CHECK-NEXT:    ret i32 [[SUB]]
 ;
   %or = or i32 %x, %y
-  %and = and i32 %x, %y
+  %and = and i32 %x, %z
   %sub = sub i32 %and, %or
   ret i32 %sub
 }




More information about the llvm-commits mailing list