summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-02-12 09:09:52 +0000
committerNate Begeman <natebegeman@mac.com>2006-02-12 09:09:52 +0000
commitbc3ec1d37bf699c8806fce3617e2a30cb06b49c9 (patch)
treec2f37645760f1408a939a4adaa7710aaa5d0a8e8 /llvm/lib
parentf5b4ef7f58c5edefb0db910b78c2538eb6d369c4 (diff)
downloadbcm5719-llvm-bc3ec1d37bf699c8806fce3617e2a30cb06b49c9.tar.gz
bcm5719-llvm-bc3ec1d37bf699c8806fce3617e2a30cb06b49c9.zip
Add missing patterns for andi. and andis., fixing test/Regression/CodeGen/
PowerPC/and-imm.ll llvm-svn: 26136
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 6312559ce23..7c184ab4bcc 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -344,10 +344,12 @@ def STWU : DForm_3<37, (ops GPRC:$rS, s16imm:$disp, GPRC:$rA),
}
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))]>;
OpenPOWER on IntegriCloud