summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-06-25 13:55:32 +0000
committerAaron Watry <awatry@gmail.com>2013-06-25 13:55:32 +0000
commit60e6dacd1c21eba75599a294fe37a6072c37604f (patch)
tree1bccc7cdd2c8906a3f69498c8202362e513eb056 /lib
parentb8ce77752b9654fa81f80d63a50a8d5c5b390c9a (diff)
downloadllvm-60e6dacd1c21eba75599a294fe37a6072c37604f.tar.gz
llvm-60e6dacd1c21eba75599a294fe37a6072c37604f.tar.bz2
llvm-60e6dacd1c21eba75599a294fe37a6072c37604f.tar.xz
R600/SI: Expand shl of v2i32/v4i32 for SI
Also add lit test for both cases on SI, and v2i32 for evergreen. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/R600/SIISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp
index 30a7de534d..515c7a4f82 100644
--- a/lib/Target/R600/SIISelLowering.cpp
+++ b/lib/Target/R600/SIISelLowering.cpp
@@ -77,6 +77,9 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) :
setOperationAction(ISD::OR, MVT::v2i32, Expand);
setOperationAction(ISD::OR, MVT::v4i32, Expand);
+ setOperationAction(ISD::SHL, MVT::v2i32, Expand);
+ setOperationAction(ISD::SHL, MVT::v4i32, Expand);
+
setOperationAction(ISD::SUB, MVT::v2i32, Expand);
setOperationAction(ISD::SUB, MVT::v4i32, Expand);