diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-20 21:55:37 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-20 21:55:37 +0000 |
commit | 4010e438100fedeacd36ecd2385adabc02b6f236 (patch) | |
tree | e30ca7199f1b6d2d3ae17b672cb5989d3aae74ab /lib | |
parent | fe91c515d788c4e07413704bcdaaa7de84e77be8 (diff) | |
download | llvm-4010e438100fedeacd36ecd2385adabc02b6f236.tar.gz llvm-4010e438100fedeacd36ecd2385adabc02b6f236.tar.bz2 llvm-4010e438100fedeacd36ecd2385adabc02b6f236.tar.xz |
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>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/R600/SIISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp index bf4918a4c7..ea2b123bc3 100644 --- a/lib/Target/R600/SIISelLowering.cpp +++ b/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); |