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

Chris Lattner lattner at cs.uiuc.edu
Mon Jun 19 17:38:48 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCInstr64Bit.td updated: 1.3 -> 1.4
---
Log message:

Add some patterns for ppc64


---
Diffs of the changes:  (+14 -13)

 PPCInstr64Bit.td |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCInstr64Bit.td
diff -u llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.3 llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.4
--- llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.3	Fri Jun 16 16:29:41 2006
+++ llvm/lib/Target/PowerPC/PPCInstr64Bit.td	Mon Jun 19 19:38:36 2006
@@ -105,12 +105,13 @@
 
 
 let isLoad = 1, PPC970_Unit = 2 in {
-def LWA  : DSForm_1<58, 2, (ops G8RC:$rT, memrix:$src),
-                    "lwa $rT, $src", LdStLWA,
-                    []>, isPPC64, PPC970_DGroup_Cracked;
-def LD   : DSForm_2<58, 0, (ops G8RC:$rT, memrix:$src),
-                    "ld $rT, $src", LdStLD,
-                    []>, isPPC64;
+def LWA  : DSForm_1<58, 2, (ops G8RC:$rD, memrix:$src),
+                    "lwa $rD, $src", LdStLWA,
+                    [(set G8RC:$rD, (sextload ixaddr:$src, i32))]>, isPPC64,
+                    PPC970_DGroup_Cracked;
+def LD   : DSForm_2<58, 0, (ops G8RC:$rD, memrix:$src),
+                    "ld $rD, $src", LdStLD,
+                    [(set G8RC:$rD, (load ixaddr:$src))]>, isPPC64;
 
 def LWAX : XForm_1<31, 341, (ops G8RC:$rD, memrr:$src),
                    "lwax $rD, $src", LdStLHA,
@@ -121,14 +122,14 @@
                    [(set G8RC:$rD, (load xaddr:$src))]>, isPPC64;
 }
 let isStore = 1, noResults = 1, PPC970_Unit = 2 in {
-def STD  : DSForm_2<62, 0, (ops G8RC:$rT, memrix:$src),
-                    "std $rT, $src", LdStSTD,
-                    []>, isPPC64;
-
-def STDX  : XForm_8<31, 149, (ops GPRC:$rS, memrr:$dst),
+def STD  : DSForm_2<62, 0, (ops G8RC:$rS, memrix:$dst),
+                    "std $rS, $dst", LdStSTD,
+                    [(store G8RC:$rS, ixaddr:$dst)]>, isPPC64;
+def STDX  : XForm_8<31, 149, (ops G8RC:$rS, memrr:$dst),
                    "stdx $rS, $dst", LdStSTD,
-                   []>, isPPC64, PPC970_DGroup_Cracked;
-def STDUX : XForm_8<31, 181, (ops GPRC:$rS, memrr:$dst),
+                   [(store G8RC:$rS, iaddr:$dst)]>, isPPC64,
+                   PPC970_DGroup_Cracked;
+def STDUX : XForm_8<31, 181, (ops G8RC:$rS, memrr:$dst),
                    "stdux $rS, $dst", LdStSTD,
                    []>, isPPC64;
                    






More information about the llvm-commits mailing list