From: David Bolvansky Date: Wed, 4 Sep 2019 12:22:28 +0000 (+0000) Subject: [NFC] Adjust tests for new fold X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aa362646e4f501b43330723ec0d58ed7b2271f5;p=llvm [NFC] Adjust tests for new fold git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370886 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/sub-or-and-xor.ll b/test/Transforms/InstCombine/sub-or-and-xor.ll index b1f163dad15..59d3c6f6b5c 100644 --- a/test/Transforms/InstCombine/sub-or-and-xor.ll +++ b/test/Transforms/InstCombine/sub-or-and-xor.ll @@ -90,15 +90,15 @@ define <2 x i32> @sub_to_xor_vec(<2 x i32> %x, <2 x i32> %y) { ; 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 }