diff options
author | Aaron Watry <awatry@gmail.com> | 2013-06-25 13:55:40 +0000 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2013-06-25 13:55:40 +0000 |
commit | c1fcf01d7fa41171fc715618d0a9359df7865aa6 (patch) | |
tree | 24ab2358e434c4bb8c58183e4b81a433588712c6 /lib/Target | |
parent | 61de9f83cb67a9738fa146e2b4542332aabee019 (diff) | |
download | external_llvm-c1fcf01d7fa41171fc715618d0a9359df7865aa6.zip external_llvm-c1fcf01d7fa41171fc715618d0a9359df7865aa6.tar.gz external_llvm-c1fcf01d7fa41171fc715618d0a9359df7865aa6.tar.bz2 |
R600/SI: Expand ashr 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@184842 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 4219825..5f44d3a 100644 --- a/lib/Target/R600/SIISelLowering.cpp +++ b/lib/Target/R600/SIISelLowering.cpp @@ -81,6 +81,8 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) : setOperationAction(ISD::SHL, MVT::v4i32, Expand); setOperationAction(ISD::SRL, MVT::v4i32, Expand); setOperationAction(ISD::SRL, MVT::v2i32, Expand); + setOperationAction(ISD::SRA, MVT::v4i32, Expand); + setOperationAction(ISD::SRA, MVT::v2i32, Expand); setOperationAction(ISD::SUB, MVT::v2i32, Expand); setOperationAction(ISD::SUB, MVT::v4i32, Expand); |