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 c21ee8b commit 5cda550Copy full SHA for 5cda550
llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
@@ -28,8 +28,8 @@ static unsigned getLoadImmediateOpcode(unsigned RegBitWidth) {
28
// Generates instruction to load an immediate value into a register.
29
static MCInst loadImmediate(MCRegister Reg, unsigned RegBitWidth,
30
const APInt &Value) {
31
- assert(Value.getZExtValue() < (1 << 16) &&
32
- "Value must be in the range of the immediate opcode");
+ assert (Value.getBitWidth() <= RegBitWidth &&
+ "Value must fit in the Register");
33
return MCInstBuilder(getLoadImmediateOpcode(RegBitWidth))
34
.addReg(Reg)
35
.addImm(Value.getZExtValue());
0 commit comments