diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-28 17:13:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-28 17:13:15 +0000 |
commit | 91da8623bef655542f4402fd8b48987a0594adfc (patch) | |
tree | 47871e16e125b62af0fedafbbb8ae7262b6a4510 | |
parent | d135fa4fd6f70944a7944d8de2a4e625a240351b (diff) | |
download | external_llvm-91da8623bef655542f4402fd8b48987a0594adfc.zip external_llvm-91da8623bef655542f4402fd8b48987a0594adfc.tar.gz external_llvm-91da8623bef655542f4402fd8b48987a0594adfc.tar.bz2 |
learn to codegen not as NOR instead of xoris/xori
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23490 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.td | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index d4d584e..3bba588 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -765,7 +765,11 @@ def RLDICR : MDForm_1<30, 1, // Arbitrary immediate support. Implement in terms of LIS/ORI. 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)>; + // or by an arbitrary immediate. def : Pat<(or GPRC:$in, imm:$imm), (ORIS (ORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>; |