[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCInstrInfo.td

Nate Begeman natebegeman at mac.com
Tue Nov 23 16:16:48 PST 2004



Changes in directory llvm/lib/Target/PowerPC:

PowerPCInstrInfo.td updated: 1.46 -> 1.47
---
Log message:

Fix encoding of bctrl, and remove some unused instructions


---
Diffs of the changes:  (+2 -5)

Index: llvm/lib/Target/PowerPC/PowerPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.46 llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.47
--- llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.46	Tue Nov 23 16:06:24 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrInfo.td	Tue Nov 23 18:16:37 2004
@@ -1,3 +1,4 @@
+
 //===- PowerPCInstrInfo.td - The PowerPC Instruction Set -----*- tablegen -*-=//
 // 
 //                     The LLVM Compiler Infrastructure
@@ -85,7 +86,7 @@
           CR0,CR1,CR5,CR6,CR7] in {
   // Convenient aliases for call instructions
   def CALLpcrel : IForm<18, 0, 1, 0, 0, (ops target:$func), "bl $func">;
-  def CALLindirect : XLForm_2_ext<19, 528, 20, 31, 1, 0, 0, (ops), "bctrl">;
+  def CALLindirect : XLForm_2_ext<19, 528, 20, 0, 1, 0, 0, (ops), "bctrl">;
 }
 
 // D-Form instructions.  Most instructions that perform an operation on a
@@ -130,12 +131,8 @@
                    "stmw $rS, $disp($rA)">;
 def STB  : DForm_3<38, 0, 0, (ops GPRC:$rS, s16imm:$disp, GPRC:$rA),
                    "stb $rS, $disp($rA)">;
-def STBU : DForm_3<39, 0, 0, (ops GPRC:$rS, s16imm:$disp, GPRC:$rA),
-                   "stbu $rS, $disp($rA)">;
 def STH  : DForm_3<44, 0, 0, (ops GPRC:$rS, s16imm:$disp, GPRC:$rA),
                    "sth $rS, $disp($rA)">;
-def STHU : DForm_3<45, 0, 0, (ops GPRC:$rS, s16imm:$disp, GPRC:$rA),
-                   "sthu $rS, $disp($rA)">;
 def STW  : DForm_3<36, 0, 0, (ops GPRC:$rS, s16imm:$disp, GPRC:$rA),
                    "stw $rS, $disp($rA)">;
 def STWU : DForm_3<37, 0, 0, (ops GPRC:$rS, s16imm:$disp, GPRC:$rA),






More information about the llvm-commits mailing list