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 | f63791e778cc72c2676453e78903f4df24c3abd1 (patch) | |
tree | b947f4125d1a0e08eeb3592039d9af147c89bf3f /llvm/lib/Target/R600/SIISelLowering.cpp | |
parent | 5584553984702a827609749fad095e0f0cd7089d (diff) | |
download | bcm5719-llvm-f63791e778cc72c2676453e78903f4df24c3abd1.tar.gz bcm5719-llvm-f63791e778cc72c2676453e78903f4df24c3abd1.zip |
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>
llvm-svn: 184841
Diffstat (limited to 'llvm/lib/Target/R600/SIISelLowering.cpp')
-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 515c7a4f82f..4219825ecd3 100644 --- a/llvm/lib/Target/R600/SIISelLowering.cpp +++ b/llvm/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); |