summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-20 21:55:37 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-20 21:55:37 +0000
commit96d38760fca015d72f38778cd465d29f5fc69264 (patch)
treef950c22d31fdb6e0e8a5998ea145a18c9a9445d1 /llvm/lib
parent043795e8188099496787c7d63a3d10a032b22566 (diff)
downloadbcm5719-llvm-96d38760fca015d72f38778cd465d29f5fc69264.tar.gz
bcm5719-llvm-96d38760fca015d72f38778cd465d29f5fc69264.zip
R600/SI: Expand sub for v2i32 and v4i32 for SI
Also add a v2i32 test to the existing v4i32 test. Patch by: Aaron Watry Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Aaron Watry<awatry@gmail.com> llvm-svn: 184482
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/SIISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/SIISelLowering.cpp b/llvm/lib/Target/R600/SIISelLowering.cpp
index bf4918a4c7e..ea2b123bc37 100644
--- a/llvm/lib/Target/R600/SIISelLowering.cpp
+++ b/llvm/lib/Target/R600/SIISelLowering.cpp
@@ -68,6 +68,9 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) :
setOperationAction(ISD::ADD, MVT::v4i32, Expand);
setOperationAction(ISD::ADD, MVT::v2i32, Expand);
+ setOperationAction(ISD::SUB, MVT::v2i32, Expand);
+ setOperationAction(ISD::SUB, MVT::v4i32, Expand);
+
setOperationAction(ISD::SELECT_CC, MVT::f32, Custom);
setOperationAction(ISD::SELECT_CC, MVT::i32, Custom);
OpenPOWER on IntegriCloud