summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChristian Konig <christian.koenig@amd.com>2013-03-27 09:12:44 +0000
committerChristian Konig <christian.koenig@amd.com>2013-03-27 09:12:44 +0000
commit20a7e6b76424283ec5a6a05cd47a4e8952d62363 (patch)
treeb4a79ad15b6f79ecf7cd10f75f724735b9d08267 /llvm/lib
parent0f77861d9f25c8d5212a2cee7729a6c6e448864d (diff)
downloadbcm5719-llvm-20a7e6b76424283ec5a6a05cd47a4e8952d62363.tar.gz
bcm5719-llvm-20a7e6b76424283ec5a6a05cd47a4e8952d62363.zip
R600/SI: add srl/sha patterns for SI
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com> llvm-svn: 178125
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/SIInstructions.td8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td
index 95a31ae0aa7..b6385509b4b 100644
--- a/llvm/lib/Target/R600/SIInstructions.td
+++ b/llvm/lib/Target/R600/SIInstructions.td
@@ -850,9 +850,13 @@ defm V_MAX_U32 : VOP2_32 <0x00000014, "V_MAX_U32", []>;
} // End isCommutable = 1
-defm V_LSHR_B32 : VOP2_32 <0x00000015, "V_LSHR_B32", []>;
+defm V_LSHR_B32 : VOP2_32 <0x00000015, "V_LSHR_B32",
+ [(set VReg_32:$dst, (srl VSrc_32:$src0, (i32 VReg_32:$src1)))]
+>;
defm V_LSHRREV_B32 : VOP2_32 <0x00000016, "V_LSHRREV_B32", []>;
-defm V_ASHR_I32 : VOP2_32 <0x00000017, "V_ASHR_I32", []>;
+defm V_ASHR_I32 : VOP2_32 <0x00000017, "V_ASHR_I32",
+ [(set VReg_32:$dst, (sra VSrc_32:$src0, (i32 VReg_32:$src1)))]
+>;
defm V_ASHRREV_I32 : VOP2_32 <0x00000018, "V_ASHRREV_I32", []>;
defm V_LSHL_B32 : VOP2_32 <0x00000019, "V_LSHL_B32",
[(set VReg_32:$dst, (shl VSrc_32:$src0, (i32 VReg_32:$src1)))]
OpenPOWER on IntegriCloud