[llvm] Add RV64 constraint to SRLIW (PR #69416)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 21:25:04 PDT 2023
================
@@ -2680,7 +2681,7 @@ bool RISCVDAGToDAGISel::selectSHXADDOp(SDValue N, unsigned ShAmt,
if (N0.getOpcode() == ISD::AND && N0.hasOneUse() &&
isa<ConstantSDNode>(N0.getOperand(1))) {
uint64_t Mask = N0.getConstantOperandVal(1);
- if (isShiftedMask_64(Mask)) {
+ if (isShiftedMask_64(Mask) && Subtarget->is64Bit()) {
----------------
topperc wrote:
This shoudl be protected by Leading == 32.
https://github.com/llvm/llvm-project/pull/69416
More information about the llvm-commits
mailing list