summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-04-30 21:28:18 +0000
committerSanjay Patel <spatel@rotateright.com>2018-04-30 21:28:18 +0000
commit1934cb1c4947b281b816a3e7102cae69b78a1649 (patch)
treea2e3c30f39ce6e4d999aa3653995c71b9374ee9a /llvm/test
parentc485f056b7766e4e52b91bc5f462bb2d1d8cca8a (diff)
downloadbcm5719-llvm-1934cb1c4947b281b816a3e7102cae69b78a1649.tar.gz
bcm5719-llvm-1934cb1c4947b281b816a3e7102cae69b78a1649.zip
[InstCombine] fix test to restore intent
This test had values that differed in only in capitalization, and that causes problems for the auto-generating check line script. So I changed that in rL331226, but I accidentally forgot to change a subsequent use of a param. llvm-svn: 331228
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/InstCombine/add.ll5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/add.ll b/llvm/test/Transforms/InstCombine/add.ll
index 24803e23549..d07c072d8fa 100644
--- a/llvm/test/Transforms/InstCombine/add.ll
+++ b/llvm/test/Transforms/InstCombine/add.ll
@@ -480,15 +480,14 @@ define i32 @test28(i32 %X) {
define i32 @test29(i32 %x, i32 %y) {
; CHECK-LABEL: @test29(
; CHECK-NEXT: [[TMP_2:%.*]] = sub i32 [[X:%.*]], [[Y:%.*]]
-; CHECK-NEXT: [[TMP_6:%.*]] = add i32 [[TMP_2]], [[X]]
-; CHECK-NEXT: [[TMP_7:%.*]] = and i32 [[TMP_6]], 63
+; CHECK-NEXT: [[TMP_7:%.*]] = and i32 [[X]], 63
; CHECK-NEXT: [[TMP_9:%.*]] = and i32 [[TMP_2]], -64
; CHECK-NEXT: [[TMP_10:%.*]] = or i32 [[TMP_7]], [[TMP_9]]
; CHECK-NEXT: ret i32 [[TMP_10]]
;
%tmp.2 = sub i32 %x, %y
%tmp.2.mask = and i32 %tmp.2, 63
- %tmp.6 = add i32 %tmp.2.mask, %x
+ %tmp.6 = add i32 %tmp.2.mask, %y
%tmp.7 = and i32 %tmp.6, 63
%tmp.9 = and i32 %tmp.2, -64
%tmp.10 = or i32 %tmp.7, %tmp.9
OpenPOWER on IntegriCloud