summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-01-11 21:21:00 +0000
committerNate Begeman <natebegeman@mac.com>2006-01-11 21:21:00 +0000
commit1b8121b2279119a079b0becfee7f0e227f76ed73 (patch)
treea026f0159a7415ce92c2152114804cc61b95cc13 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent602dfea79c7f3acec9204315b31726f7f037d4b9 (diff)
downloadbcm5719-llvm-1b8121b2279119a079b0becfee7f0e227f76ed73.tar.gz
bcm5719-llvm-1b8121b2279119a079b0becfee7f0e227f76ed73.zip
Add bswap, rotl, and rotr nodes
Add dag combiner code to recognize rotl, rotr Add ppc code to match rotl Targets should add rotl/rotr patterns if they have them llvm-svn: 25222
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 9674432deef..a5ba28d0b05 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -68,6 +68,9 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM)
setOperationAction(ISD::CTPOP, MVT::i32 , Expand);
setOperationAction(ISD::CTTZ , MVT::i32 , Expand);
+ // PowerPC does not have ROTR
+ setOperationAction(ISD::ROTR, MVT::i32 , Expand);
+
// PowerPC does not have Select
setOperationAction(ISD::SELECT, MVT::i32, Expand);
setOperationAction(ISD::SELECT, MVT::f32, Expand);
OpenPOWER on IntegriCloud