diff options
author | Aaron Watry <awatry@gmail.com> | 2013-06-25 13:55:37 +0000 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2013-06-25 13:55:37 +0000 |
commit | 61de9f83cb67a9738fa146e2b4542332aabee019 (patch) | |
tree | ce5940c4b523d7e5dc34d3c5377fe2a86116a6d9 /lib/Target | |
parent | 60e6dacd1c21eba75599a294fe37a6072c37604f (diff) | |
download | external_llvm-61de9f83cb67a9738fa146e2b4542332aabee019.zip external_llvm-61de9f83cb67a9738fa146e2b4542332aabee019.tar.gz external_llvm-61de9f83cb67a9738fa146e2b4542332aabee019.tar.bz2 |
R600/SI: Expand srl 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@184841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/R600/SIISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp index 515c7a4..4219825 100644 --- a/lib/Target/R600/SIISelLowering.cpp +++ b/lib/Target/R600/SIISelLowering.cpp @@ -79,6 +79,8 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) : setOperationAction(ISD::SHL, MVT::v2i32, Expand); setOperationAction(ISD::SHL, MVT::v4i32, Expand); + setOperationAction(ISD::SRL, MVT::v4i32, Expand); + setOperationAction(ISD::SRL, MVT::v2i32, Expand); setOperationAction(ISD::SUB, MVT::v2i32, Expand); setOperationAction(ISD::SUB, MVT::v4i32, Expand); |