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

Nate Begeman natebegeman at mac.com
Sun Feb 12 01:10:04 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCInstrInfo.td updated: 1.175 -> 1.176
---
Log message:

Add missing patterns for andi. and andis., fixing test/Regression/CodeGen/
PowerPC/and-imm.ll


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

 PPCInstrInfo.td |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.175 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.176
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.175	Thu Jan 26 19:46:15 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td	Sun Feb 12 03:09:52 2006
@@ -344,10 +344,12 @@
 }
 def ANDIo : DForm_4<28, (ops GPRC:$dst, GPRC:$src1, u16imm:$src2),
                     "andi. $dst, $src1, $src2", IntGeneral,
-                    []>, isDOT;
+                    [(set GPRC:$dst, (and GPRC:$src1, immZExt16:$src2))]>,
+                    isDOT;
 def ANDISo : DForm_4<29, (ops GPRC:$dst, GPRC:$src1, u16imm:$src2),
                     "andis. $dst, $src1, $src2", IntGeneral,
-                    []>, isDOT;
+                    [(set GPRC:$dst, (and GPRC:$src1, imm16Shifted:$src2))]>,
+                    isDOT;
 def ORI   : DForm_4<24, (ops GPRC:$dst, GPRC:$src1, u16imm:$src2),
                     "ori $dst, $src1, $src2", IntGeneral,
                     [(set GPRC:$dst, (or GPRC:$src1, immZExt16:$src2))]>;






More information about the llvm-commits mailing list