We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388dfb0 commit 4187c47Copy full SHA for 4187c47
llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
@@ -395,9 +395,10 @@ RISCVInstructionSelector::renderVLOp(MachineOperand &Root) const {
395
MIB.addImm(RISCV::VLMaxSentinel);
396
}}};
397
398
- if (isUInt<5>(C->getZExtValue()))
399
- return {
400
- {[=](MachineInstrBuilder &MIB) { MIB.addImm(C->getZExtValue()); }}};
+ if (isUInt<5>(C->getZExtValue())) {
+ uint64_t ZExtC = C->getZExtValue();
+ return {{[=](MachineInstrBuilder &MIB) { MIB.addImm(ZExtC); }}};
401
+ }
402
}
403
return {{[=](MachineInstrBuilder &MIB) { MIB.addReg(Root.getReg()); }}};
404
0 commit comments