diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-08-11 21:59:23 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-08-11 21:59:23 +0000 |
commit | 191cf943e68a8b3a14e5f19cf0279b8216da8dd7 (patch) | |
tree | acdab0db73cc8db60bfabe4dd64e0319a92b837b /test/CodeGen/PowerPC | |
parent | 2b48bc6f9556d8dc3af50e6acde06f7a69a5280a (diff) |
1. Added the function isOpcWithIntImmediate to simplify testing of operand with
specified opcode and an integer constant right operand.
2. Modified ISD::SHL, ISD::SRL, ISD::SRA to use rlwinm when applied after a mask.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
-rw-r--r-- | test/CodeGen/PowerPC/rlwinm.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/rlwinm.ll b/test/CodeGen/PowerPC/rlwinm.ll index bb08402d252..b64db00f808 100644 --- a/test/CodeGen/PowerPC/rlwinm.ll +++ b/test/CodeGen/PowerPC/rlwinm.ll @@ -1,5 +1,8 @@ ; All of these ands and shifts should be folded into rlwimi's ; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep and && +; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep srawi && +; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep srwi && +; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep slwi && ; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | grep rlwinm | wc -l | grep 8 implementation ; Functions: |