summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-06-25 13:55:26 +0000
committerAaron Watry <awatry@gmail.com>2013-06-25 13:55:26 +0000
commit02ed261f7f7601f8ed5685345f3542b5120bcbf0 (patch)
tree5b70c50c20c0c6e7a90746ac375add513b13f385 /lib
parente3599ca1915f56ce13139fed58f6daac1cc7ca70 (diff)
downloadllvm-02ed261f7f7601f8ed5685345f3542b5120bcbf0.tar.gz
llvm-02ed261f7f7601f8ed5685345f3542b5120bcbf0.tar.bz2
llvm-02ed261f7f7601f8ed5685345f3542b5120bcbf0.tar.xz
R600/SI: Expand mul 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@184838 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 bf2e7d37b5..cb80e5e81a 100644
--- a/lib/Target/R600/SIISelLowering.cpp
+++ b/lib/Target/R600/SIISelLowering.cpp
@@ -71,6 +71,9 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) :
setOperationAction(ISD::AND, MVT::v2i32, Expand);
setOperationAction(ISD::AND, MVT::v4i32, Expand);
+ setOperationAction(ISD::MUL, MVT::v2i32, Expand);
+ setOperationAction(ISD::MUL, MVT::v4i32, Expand);
+
setOperationAction(ISD::SUB, MVT::v2i32, Expand);
setOperationAction(ISD::SUB, MVT::v4i32, Expand);