[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.td
Chris Lattner
sabre at nondot.org
Tue Nov 7 18:13:26 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCInstrInfo.td updated: 1.253 -> 1.254
---
Log message:
correct the (currently unused) pattern for lwzu.
---
Diffs of the changes: (+8 -2)
PPCInstrInfo.td | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.253 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.254
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.253 Fri Nov 3 23:42:48 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Tue Nov 7 20:13:12 2006
@@ -197,6 +197,9 @@
bit RC = 1;
}
+class RegConstraint<string C> {
+ string Constraints = C;
+}
//===----------------------------------------------------------------------===//
@@ -418,10 +421,13 @@
def LWZ : DForm_1<32, (ops GPRC:$rD, memri:$src),
"lwz $rD, $src", LdStGeneral,
[(set GPRC:$rD, (load iaddr:$src))]>;
-def LWZU : DForm_1<35, (ops GPRC:$rD, s16imm:$disp, GPRC:$rA),
+
+def LWZU : DForm_1<33, (ops GPRC:$rD, GPRC:$rA_result, i32imm:$disp, GPRC:$rA),
"lwzu $rD, $disp($rA)", LdStGeneral,
- []>;
+ []>, RegConstraint<"$rA = $rA_result">;
}
+
+
let PPC970_Unit = 1 in { // FXU Operations.
def ADDI : DForm_2<14, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
"addi $rD, $rA, $imm", IntGeneral,
More information about the llvm-commits
mailing list