aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-20 00:38:36 +0000
committerChris Lattner <sabre@nondot.org>2006-06-20 00:38:36 +0000
commit047854f2b7a3f070f1bf4e5c24be2fc597bc544e (patch)
tree84549de8edf54753c6c6ab58e6ef0edd2e590e4b /lib/Target/PowerPC
parent186fb7d131d598c3596204886bd754a47bb268a2 (diff)
downloadexternal_llvm-047854f2b7a3f070f1bf4e5c24be2fc597bc544e.zip
external_llvm-047854f2b7a3f070f1bf4e5c24be2fc597bc544e.tar.gz
external_llvm-047854f2b7a3f070f1bf4e5c24be2fc597bc544e.tar.bz2
Add some patterns for ppc64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r--lib/Target/PowerPC/PPCInstr64Bit.td27
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td
index ff45287..f6cca74 100644
--- a/lib/Target/PowerPC/PPCInstr64Bit.td
+++ b/lib/Target/PowerPC/PPCInstr64Bit.td
@@ -105,12 +105,13 @@ def RLDICR : MDForm_1<30, 1,
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 @@ def LDX : XForm_1<31, 21, (ops G8RC:$rD, memrr:$src),
[(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;