[llvm] [llvm-exegesis] Add AArch64 operand initializers, SetRegTo (PR #169912)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 07:22:52 PST 2025


================
@@ -80,6 +87,42 @@ loadFPCRImmediate(MCRegister Reg, unsigned RegBitWidth, const APInt &Value) {
   return {LoadImm, MoveToFPCR};
 }
 
+// Generates instructions to load an immediate value into a pair of W registers
+static std::vector<MCInst> loadWSeqPairImmediate(MCRegister Reg,
+                                                 unsigned RegBitWidth,
+                                                 const APInt &Value) {
+  MCRegister EvenReg = (Reg - AArch64::W0_W1) * 2 + AArch64::W0 + 0;
----------------
boomanaiden154 wrote:

Here and below, is there a way to avoid the MCRegister arithmetic?

Is this standard in the AArch64 backend?

https://github.com/llvm/llvm-project/pull/169912


More information about the llvm-commits mailing list