diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-28 18:10:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-28 18:10:51 +0000 |
commit | cfc828a3d050b0e07fd01b643586a3d61e230b13 (patch) | |
tree | c6547bb2bf7f53f68cdfecdcbd80c7482abb3734 /lib/Target | |
parent | dea6695716c1ab96eb9222976753c68e0aa4d08d (diff) | |
download | external_llvm-cfc828a3d050b0e07fd01b643586a3d61e230b13.zip external_llvm-cfc828a3d050b0e07fd01b643586a3d61e230b13.tar.gz external_llvm-cfc828a3d050b0e07fd01b643586a3d61e230b13.tar.bz2 |
add support for missed eqv tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.td | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 3bba588..d774f84 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -766,10 +766,18 @@ def RLDICR : MDForm_1<30, 1, def : Pat<(i32 imm:$imm), (ORI (LIS (HI16 imm:$imm)), (LO16 imm:$imm))>; + // Implement the 'not' operation with the NOR instruction. def NOT : Pat<(not GPRC:$in), (NOR GPRC:$in, GPRC:$in)>; +// EQV patterns +def EQV1 : Pat<(xor (not GPRC:$in1), GPRC:$in2), + (EQV GPRC:$in1, GPRC:$in2)>; +// FIXME: This should be autogenerated from the above due to xor commutativity. +def EQV2 : Pat<(xor GPRC:$in1, (not GPRC:$in2)), + (EQV GPRC:$in1, GPRC:$in2)>; + // or by an arbitrary immediate. def : Pat<(or GPRC:$in, imm:$imm), (ORIS (ORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>; @@ -778,6 +786,7 @@ def : Pat<(xor GPRC:$in, imm:$imm), (XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>; + // Same as above, but using a temporary. FIXME: implement temporaries :) /* def : Pattern<(xor GPRC:$in, imm:$imm), |