[PATCH] D100948: fix: wrong bit-width on PerformNeonTruncateMinMaxCombine::IsUnsignedSaturate
Eye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 21 06:16:12 PDT 2021
fantasyRqg created this revision.
Herald added a subscriber: hiraditya.
fantasyRqg requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100948
Files:
.gitignore
llvm/lib/Target/ARM/ARMISelLowering.cpp
Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -16085,9 +16085,9 @@
APInt SaturateC;
if (VT == MVT::v8i8)
- SaturateC = APInt(8, (1 << 8) - 1, true);
+ SaturateC = APInt(16, (1 << 8) - 1, true);
else // if (VT == MVT::v4i16)
- SaturateC = APInt(16, (1 << 16) - 1, true);
+ SaturateC = APInt(32, (1 << 16) - 1, true);
APInt MinC;
if (!ISD::isConstantSplatVector(Min->getOperand(1).getNode(), MinC) ||
Index: .gitignore
===================================================================
--- .gitignore
+++ .gitignore
@@ -26,6 +26,7 @@
# Nested build directory
/build*
+**/cmake-build*
#==============================================================================#
# Explicit files to ignore (only matches one).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100948.339203.patch
Type: text/x-patch
Size: 928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/66292374/attachment.bin>
More information about the llvm-commits
mailing list