summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-03-27 21:26:33 +0000
committerHal Finkel <hfinkel@anl.gov>2014-03-27 21:26:33 +0000
commit276d854549f851c7d09c2e6a61bc2ca4e6973f6b (patch)
treeaa9b9f90ae7738fdb58c48eea312554e5bc4bfd8 /lib/Target/PowerPC/PPCISelLowering.cpp
parentb5e6ddca565a437dcc25b28c756cde00b6901054 (diff)
downloadllvm-276d854549f851c7d09c2e6a61bc2ca4e6973f6b.tar.gz
llvm-276d854549f851c7d09c2e6a61bc2ca4e6973f6b.tar.bz2
llvm-276d854549f851c7d09c2e6a61bc2ca4e6973f6b.tar.xz
[PowerPC] Expand v2i64 shifts
These operations need to be expanded during legalization so that isel does not crash. In theory, we might be able to custom lower some of these. That, however, would need to be follow-up work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index 6f640183f9..16ff0eb7d7 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -581,6 +581,10 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
setOperationAction(ISD::ADD, MVT::v2i64, Expand);
setOperationAction(ISD::SUB, MVT::v2i64, Expand);
+ setOperationAction(ISD::SHL, MVT::v2i64, Expand);
+ setOperationAction(ISD::SRA, MVT::v2i64, Expand);
+ setOperationAction(ISD::SRL, MVT::v2i64, Expand);
+
setOperationAction(ISD::LOAD, MVT::v2i64, Promote);
AddPromotedToType (ISD::LOAD, MVT::v2i64, MVT::v2f64);
setOperationAction(ISD::STORE, MVT::v2i64, Promote);