summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2019-09-04 12:22:28 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2019-09-04 12:22:28 +0000
commit3747c48d644c7a567bae13a44698c49e03046bdc (patch)
tree93e011f3f59c9fa877665d517c0b130f959de8a5
parent163b05b45d1b0132e69e7f573218e7268abc5649 (diff)
downloadbcm5719-llvm-3747c48d644c7a567bae13a44698c49e03046bdc.tar.gz
bcm5719-llvm-3747c48d644c7a567bae13a44698c49e03046bdc.zip
[NFC] Adjust tests for new fold
llvm-svn: 370886
-rw-r--r--llvm/test/Transforms/InstCombine/sub-or-and-xor.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/sub-or-and-xor.ll b/llvm/test/Transforms/InstCombine/sub-or-and-xor.ll
index b1f163dad15..59d3c6f6b5c 100644
--- a/llvm/test/Transforms/InstCombine/sub-or-and-xor.ll
+++ b/llvm/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
}
OpenPOWER on IntegriCloud