[llvm-commits] CVS: llvm/include/llvm/Reoptimizer/BinInterface/sparc9.h
Joel Stanley
jstanley at cs.uiuc.edu
Wed May 28 08:54:01 PDT 2003
Changes in directory llvm/include/llvm/Reoptimizer/BinInterface:
sparc9.h updated: 1.12 -> 1.13
---
Log message:
---
Diffs of the changes:
Index: llvm/include/llvm/Reoptimizer/BinInterface/sparc9.h
diff -u llvm/include/llvm/Reoptimizer/BinInterface/sparc9.h:1.12 llvm/include/llvm/Reoptimizer/BinInterface/sparc9.h:1.13
--- llvm/include/llvm/Reoptimizer/BinInterface/sparc9.h:1.12 Tue Apr 15 16:32:53 2003
+++ llvm/include/llvm/Reoptimizer/BinInterface/sparc9.h Wed May 28 08:53:48 2003
@@ -443,9 +443,25 @@
MK_FLD(INSTR_X, 1) | \
MK_FLD(INSTR_SHCNT64, shcnt))
+#define MK_STORE_IMM(srcreg, basereg, offset) \
+ (MK_FLD(INSTR_OP, OP_3) | \
+ MK_FLD(INSTR_RD, srcreg) | \
+ MK_FLD(INSTR_OP3, OP3_STX) | \
+ MK_FLD(INSTR_RS1, basereg) | \
+ MK_FLD(INSTR_I, 1) | \
+ MK_FLD(INSTR_SIMM13, offset))
+
+#define MK_LOAD_IMM(destreg, basereg, offset) \
+ (MK_FLD(INSTR_OP, OP_3) | \
+ MK_FLD(INSTR_RD, destreg) | \
+ MK_FLD(INSTR_OP3, OP3_LDX) | \
+ MK_FLD(INSTR_RS1, basereg) | \
+ MK_FLD(INSTR_I, 1) | \
+ MK_FLD(INSTR_SIMM13, offset))
+
// Construct save instruction
-#define MK_SAVE(dreg, sreg, imm) \
+#define MK_SAVE_IMM(dreg, sreg, imm) \
(MK_FLD(INSTR_OP, OP_2) | \
MK_FLD(INSTR_RD, dreg) | \
MK_FLD(INSTR_OP3, OP3_SAVE) | \
@@ -453,10 +469,26 @@
MK_FLD(INSTR_I, 1) | \
MK_FLD(INSTR_SIMM13, imm))
-#define MK_RESTORE(dreg, sreg, imm) \
+#define MK_SAVE_REG(dreg, sreg1, sreg2) \
+ (MK_FLD(INSTR_OP, OP_2) | \
+ MK_FLD(INSTR_RD, dreg) | \
+ MK_FLD(INSTR_OP3, OP3_SAVE) | \
+ MK_FLD(INSTR_RS1, sreg1) | \
+ MK_FLD(INSTR_I, 0) | \
+ MK_FLD(INSTR_RS2, sreg2))
+
+#define MK_RESTORE_IMM(dreg, sreg, imm) \
(MK_FLD(INSTR_OP, OP_2) | \
MK_FLD(INSTR_RD, dreg) | \
MK_FLD(INSTR_OP3, OP3_RESTORE) | \
+ MK_FLD(INSTR_RS1, sreg) | \
+ MK_FLD(INSTR_I, 1) | \
+ MK_FLD(INSTR_SIMM13, imm))
+
+#define MK_JMPL_INDIRECT(dreg, sreg, imm) \
+ (MK_FLD(INSTR_OP, OP_2) | \
+ MK_FLD(INSTR_RD, dreg) | \
+ MK_FLD(INSTR_OP3, OP3_JMPL) | \
MK_FLD(INSTR_RS1, sreg) | \
MK_FLD(INSTR_I, 1) | \
MK_FLD(INSTR_SIMM13, imm))
More information about the llvm-commits
mailing list