summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600
diff options
context:
space:
mode:
authorChristian Konig <christian.koenig@amd.com>2013-03-27 09:12:59 +0000
committerChristian Konig <christian.koenig@amd.com>2013-03-27 09:12:59 +0000
commit3c14580acb543180e5bc9459b1eaf6ef90262c91 (patch)
treedba1f6b6637f6b457709366638fd787daf385dd5 /llvm/test/CodeGen/R600
parent70a5032c1b2c3b29721a77bf6578ca5b9061a261 (diff)
downloadbcm5719-llvm-3c14580acb543180e5bc9459b1eaf6ef90262c91.tar.gz
bcm5719-llvm-3c14580acb543180e5bc9459b1eaf6ef90262c91.zip
R600/SI: add cummuting of rev instructions
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: 178127
Diffstat (limited to 'llvm/test/CodeGen/R600')
-rw-r--r--llvm/test/CodeGen/R600/lshl.ll2
-rw-r--r--llvm/test/CodeGen/R600/lshr.ll2
-rw-r--r--llvm/test/CodeGen/R600/mulhu.ll2
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/R600/lshl.ll b/llvm/test/CodeGen/R600/lshl.ll
index 328451c1e73..423adb9da90 100644
--- a/llvm/test/CodeGen/R600/lshl.ll
+++ b/llvm/test/CodeGen/R600/lshl.ll
@@ -1,6 +1,6 @@
;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
-;CHECK: V_LSHL_B32_e64 VGPR0, VGPR0, 1, 0, 0, 0, 0
+;CHECK: V_LSHLREV_B32_e32 VGPR0, 1, VGPR0
define void @test(i32 %p) {
%i = mul i32 %p, 2
diff --git a/llvm/test/CodeGen/R600/lshr.ll b/llvm/test/CodeGen/R600/lshr.ll
index 0d3f524b9bb..551eac1d76b 100644
--- a/llvm/test/CodeGen/R600/lshr.ll
+++ b/llvm/test/CodeGen/R600/lshr.ll
@@ -1,6 +1,6 @@
;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
-;CHECK: V_LSHR_B32_e64 VGPR0, VGPR0, 1, 0, 0, 0, 0
+;CHECK: V_LSHRREV_B32_e32 VGPR0, 1, VGPR0
define void @test(i32 %p) {
%i = udiv i32 %p, 2
diff --git a/llvm/test/CodeGen/R600/mulhu.ll b/llvm/test/CodeGen/R600/mulhu.ll
index 979074df2bb..28744e00c3c 100644
--- a/llvm/test/CodeGen/R600/mulhu.ll
+++ b/llvm/test/CodeGen/R600/mulhu.ll
@@ -2,7 +2,7 @@
;CHECK: V_MOV_B32_e32 VGPR1, -1431655765
;CHECK-NEXT: V_MUL_HI_U32 VGPR0, VGPR0, VGPR1, 0, 0, 0, 0, 0
-;CHECK-NEXT: V_LSHR_B32_e64 VGPR0, VGPR0, 1, 0, 0, 0, 0
+;CHECK-NEXT: V_LSHRREV_B32_e32 VGPR0, 1, VGPR0
define void @test(i32 %p) {
%i = udiv i32 %p, 3
OpenPOWER on IntegriCloud