summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-20 21:55:30 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-20 21:55:30 +0000
commit043795e8188099496787c7d63a3d10a032b22566 (patch)
tree586e1e489823b063d1cd3e2bc8c53517a253ece5 /llvm/lib/Target
parent6ec9e8043c4149bf0c8da9d15e2c0add3afdbd2e (diff)
downloadbcm5719-llvm-043795e8188099496787c7d63a3d10a032b22566.tar.gz
bcm5719-llvm-043795e8188099496787c7d63a3d10a032b22566.zip
R600/SI: Expand add for v2i32 and v4i32
Also add SI tests to existing file and a v2i32 test for both R600 and SI. Patch by: Aaron Watry Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Aaron Watry <awatry@gmail.com> llvm-svn: 184481
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/R600/SIISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/SIISelLowering.cpp b/llvm/lib/Target/R600/SIISelLowering.cpp
index d74f4014ee4..bf4918a4c7e 100644
--- a/llvm/lib/Target/R600/SIISelLowering.cpp
+++ b/llvm/lib/Target/R600/SIISelLowering.cpp
@@ -65,6 +65,8 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) :
setOperationAction(ISD::ADD, MVT::i64, Legal);
setOperationAction(ISD::ADD, MVT::i32, Legal);
+ setOperationAction(ISD::ADD, MVT::v4i32, Expand);
+ setOperationAction(ISD::ADD, MVT::v2i32, Expand);
setOperationAction(ISD::SELECT_CC, MVT::f32, Custom);
setOperationAction(ISD::SELECT_CC, MVT::i32, Custom);
OpenPOWER on IntegriCloud