[llvm] ef0ab3c - [InstCombine] Fix typo in narrow funnel shift test
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 16 04:18:36 PDT 2020
Author: Simon Pilgrim
Date: 2020-10-16T12:18:16+01:00
New Revision: ef0ab3cdfe205c65879e8e3288f3c63d1a809f63
URL: https://github.com/llvm/llvm-project/commit/ef0ab3cdfe205c65879e8e3288f3c63d1a809f63
DIFF: https://github.com/llvm/llvm-project/commit/ef0ab3cdfe205c65879e8e3288f3c63d1a809f63.diff
LOG: [InstCombine] Fix typo in narrow funnel shift test
Added:
Modified:
llvm/test/Transforms/InstCombine/funnel.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/funnel.ll b/llvm/test/Transforms/InstCombine/funnel.ll
index 542ec5f84af7..2f01c404ca6b 100644
--- a/llvm/test/Transforms/InstCombine/funnel.ll
+++ b/llvm/test/Transforms/InstCombine/funnel.ll
@@ -209,7 +209,7 @@ define i16 @fshl_16bit(i16 %x, i16 %y, i32 %shift) {
; CHECK-NEXT: [[CONVX:%.*]] = zext i16 [[X:%.*]] to i32
; CHECK-NEXT: [[SHL:%.*]] = shl i32 [[CONVX]], [[AND]]
; CHECK-NEXT: [[SUB:%.*]] = sub nuw nsw i32 16, [[AND]]
-; CHECK-NEXT: [[CONVY:%.*]] = zext i16 [[X]] to i32
+; CHECK-NEXT: [[CONVY:%.*]] = zext i16 [[Y:%.*]] to i32
; CHECK-NEXT: [[SHR:%.*]] = lshr i32 [[CONVY]], [[SUB]]
; CHECK-NEXT: [[OR:%.*]] = or i32 [[SHR]], [[SHL]]
; CHECK-NEXT: [[CONV2:%.*]] = trunc i32 [[OR]] to i16
@@ -219,7 +219,7 @@ define i16 @fshl_16bit(i16 %x, i16 %y, i32 %shift) {
%convx = zext i16 %x to i32
%shl = shl i32 %convx, %and
%sub = sub i32 16, %and
- %convy = zext i16 %x to i32
+ %convy = zext i16 %y to i32
%shr = lshr i32 %convy, %sub
%or = or i32 %shr, %shl
%conv2 = trunc i32 %or to i16
More information about the llvm-commits
mailing list