From 789fd42320857a13ecca110b3e83a450063f5c73 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Sun, 12 Feb 2006 09:09:52 +0000 Subject: [PATCH] Add missing patterns for andi. and andis., fixing test/Regression/CodeGen/ PowerPC/and-imm.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26136 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstrInfo.td | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 6312559ce23..7c184ab4bcc 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/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))]>;