[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8InstrFormats.td SparcV8InstrInfo.td

Chris Lattner lattner at cs.uiuc.edu
Thu Dec 15 23:18:59 PST 2005



Changes in directory llvm/lib/Target/SparcV8:

SparcV8InstrFormats.td updated: 1.6 -> 1.7
SparcV8InstrInfo.td updated: 1.44 -> 1.45
---
Log message:

Add a couple more instrs


---
Diffs of the changes:  (+8 -4)

 SparcV8InstrFormats.td |    6 ++++--
 SparcV8InstrInfo.td    |    6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/SparcV8/SparcV8InstrFormats.td
diff -u llvm/lib/Target/SparcV8/SparcV8InstrFormats.td:1.6 llvm/lib/Target/SparcV8/SparcV8InstrFormats.td:1.7
--- llvm/lib/Target/SparcV8/SparcV8InstrFormats.td:1.6	Fri Dec 16 01:10:02 2005
+++ llvm/lib/Target/SparcV8/SparcV8InstrFormats.td	Fri Dec 16 01:18:48 2005
@@ -21,11 +21,13 @@
 
 // Specific F2 classes: SparcV8 manual, page 44
 //
-class F2_1<bits<3> op2Val, string name> : F2 {
+class F2_1<bits<3> op2Val, dag ops, string asmstr> : F2 {
   bits<5>  rd;
 
+  dag OperandList = ops;
+  let AsmString   = asmstr;
+
   let op2         = op2Val;
-  let Name        = name;
 
   let Inst{29-25} = rd;
 }


Index: llvm/lib/Target/SparcV8/SparcV8InstrInfo.td
diff -u llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.44 llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.45
--- llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.44	Fri Dec 16 01:13:26 2005
+++ llvm/lib/Target/SparcV8/SparcV8InstrInfo.td	Fri Dec 16 01:18:48 2005
@@ -149,12 +149,14 @@
                    "std $src, [$base+$offset]">;
 
 // Section B.9 - SETHI Instruction, p. 104
-def SETHIi: F2_1<0b100, "sethi">;
+def SETHIi: F2_1<0b100,
+                 (ops IntRegs:$dst, i32imm:$src),
+                 "sethi $src, $dst">;
 
 // Section B.10 - NOP Instruction, p. 105
 // (It's a special case of SETHI)
 let rd = 0, imm22 = 0 in
-  def NOP : F2_1<0b100, "nop">;
+  def NOP : F2_1<0b100, (ops), "nop">;
 
 // Section B.11 - Logical Instructions, p. 106
 def ANDrr   : F3_1<2, 0b000001,






More information about the llvm-commits mailing list