[llvm] Adding support in llvm-exegesis for Aarch64 for handling FPR64/128, PPR16 and ZPR128 reg class. (PR #127564)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 5 03:19:23 PST 2025
================
@@ -28,13 +28,66 @@ static unsigned getLoadImmediateOpcode(unsigned RegBitWidth) {
// Generates instruction to load an immediate value into a register.
static MCInst loadImmediate(MCRegister Reg, unsigned RegBitWidth,
const APInt &Value) {
- if (Value.getBitWidth() > RegBitWidth)
- llvm_unreachable("Value must fit in the Register");
+ // 0 <= Value.getZExtValue() < 2**16
+ assert(Value.getZExtValue() < (1 << 16) &&
+ "Value must be in the range of the immediate opcode");
----------------
davemgreen wrote:
Yeah removing this assert sounds OK to me.
https://github.com/llvm/llvm-project/pull/127564
More information about the llvm-commits
mailing list