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

Chris Lattner sabre at nondot.org
Fri Nov 10 20:51:51 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCInstr64Bit.td updated: 1.23 -> 1.24
PPCInstrInfo.td updated: 1.256 -> 1.257
---
Log message:

Mark operands as symbol lo instead of imm32 so that they print lo(x) around
globals.


---
Diffs of the changes:  (+11 -11)

 PPCInstr64Bit.td |   10 +++++-----
 PPCInstrInfo.td  |   12 ++++++------
 2 files changed, 11 insertions(+), 11 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCInstr64Bit.td
diff -u llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.23 llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.24
--- llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.23	Fri Nov 10 17:58:45 2006
+++ llvm/lib/Target/PowerPC/PPCInstr64Bit.td	Fri Nov 10 22:51:36 2006
@@ -249,7 +249,7 @@
                    PPC970_DGroup_Cracked;
 
 // Update forms.
-def LHAU8 : DForm_1<43, (ops G8RC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LHAU8 : DForm_1<43, (ops G8RC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                             ptr_rc:$rA),
                     "lhau $rD, $disp($rA)", LdStGeneral,
                     []>, RegConstraint<"$rA = $rA_result">;
@@ -281,15 +281,15 @@
                    
                    
 // Update forms.
-def LBZU8 : DForm_1<35, (ops G8RC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LBZU8 : DForm_1<35, (ops G8RC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                              ptr_rc:$rA),
                     "lbzu $rD, $disp($rA)", LdStGeneral,
                     []>, RegConstraint<"$rA = $rA_result">;
-def LHZU8 : DForm_1<41, (ops G8RC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LHZU8 : DForm_1<41, (ops G8RC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                              ptr_rc:$rA),
                     "lhzu $rD, $disp($rA)", LdStGeneral,
                     []>, RegConstraint<"$rA = $rA_result">;
-def LWZU8 : DForm_1<33, (ops G8RC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LWZU8 : DForm_1<33, (ops G8RC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                              ptr_rc:$rA),
                     "lwzu $rD, $disp($rA)", LdStGeneral,
                     []>, RegConstraint<"$rA = $rA_result">;
@@ -306,7 +306,7 @@
                    "ldx $rD, $src", LdStLD,
                    [(set G8RC:$rD, (load xaddr:$src))]>, isPPC64;
                    
-def LDU  : DSForm_1<58, 1, (ops G8RC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LDU  : DSForm_1<58, 1, (ops G8RC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                                 ptr_rc:$rA),
                     "ldu $rD, $disp($rA)", LdStLD,
                     []>, RegConstraint<"$rA = $rA_result">, isPPC64;


Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.256 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.257
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.256	Fri Nov 10 11:51:02 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td	Fri Nov 10 22:51:36 2006
@@ -432,31 +432,31 @@
 // FIXME: PTRRC for Pointer regs for ppc64.
 
 // 'Update' load forms.
-def LBZU : DForm_1<35, (ops GPRC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LBZU : DForm_1<35, (ops GPRC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                             ptr_rc:$rA),
                    "lbzu $rD, $disp($rA)", LdStGeneral,
                    []>, RegConstraint<"$rA = $rA_result">;
 
-def LHAU : DForm_1<43, (ops GPRC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LHAU : DForm_1<43, (ops GPRC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                             ptr_rc:$rA),
                    "lhau $rD, $disp($rA)", LdStGeneral,
                    []>, RegConstraint<"$rA = $rA_result">;
 
-def LHZU : DForm_1<41, (ops GPRC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LHZU : DForm_1<41, (ops GPRC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                             ptr_rc:$rA),
                    "lhzu $rD, $disp($rA)", LdStGeneral,
                    []>, RegConstraint<"$rA = $rA_result">;
 
-def LWZU : DForm_1<33, (ops GPRC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LWZU : DForm_1<33, (ops GPRC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                             ptr_rc:$rA),
                    "lwzu $rD, $disp($rA)", LdStGeneral,
                    []>, RegConstraint<"$rA = $rA_result">;
 
-def LFSU : DForm_1<49, (ops F4RC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LFSU : DForm_1<49, (ops F4RC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                             ptr_rc:$rA),
                   "lfs $rD, $disp($rA)", LdStLFDU,
                   []>, RegConstraint<"$rA = $rA_result">;
-def LFDU : DForm_1<51, (ops F8RC:$rD, ptr_rc:$rA_result, i32imm:$disp,
+def LFDU : DForm_1<51, (ops F8RC:$rD, ptr_rc:$rA_result, symbolLo:$disp,
                             ptr_rc:$rA),
                   "lfd $rD, $disp($rA)", LdStLFD,
                   []>, RegConstraint<"$rA = $rA_result">;






More information about the llvm-commits mailing list