diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-20 21:55:30 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-20 21:55:30 +0000 |
| commit | 043795e8188099496787c7d63a3d10a032b22566 (patch) | |
| tree | 586e1e489823b063d1cd3e2bc8c53517a253ece5 /llvm/lib/Target | |
| parent | 6ec9e8043c4149bf0c8da9d15e2c0add3afdbd2e (diff) | |
| download | bcm5719-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.cpp | 2 |
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); |

