summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2013-08-16 16:19:24 +0000
committerMichel Danzer <michel.daenzer@amd.com>2013-08-16 16:19:24 +0000
commit20680b1cc59009fef5f1deee8a42ff6ee053e091 (patch)
treef68bff48bde2ea6e96bd4e962511804f9ed5e73d /llvm/test
parent6b32f892f2687b5beb991f3d790f3aa65fddc39a (diff)
downloadbcm5719-llvm-20680b1cc59009fef5f1deee8a42ff6ee053e091.tar.gz
bcm5719-llvm-20680b1cc59009fef5f1deee8a42ff6ee053e091.zip
R600/SI: Fix broken encoding of DS_WRITE_B32
The logic in SIInsertWaits::getHwCounts() only really made sense for SMRD instructions, and trying to shoehorn it into handling DS_WRITE_B32 caused it to corrupt the encoding of that by clobbering the first operand with the second one. Undo that damage and only apply the SMRD logic to that. Fixes some derivates related piglit regressions with radeonsi. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 188558
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/R600/local-memory.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/R600/local-memory.ll b/llvm/test/CodeGen/R600/local-memory.ll
index 5458fb90573..9ebb7692a68 100644
--- a/llvm/test/CodeGen/R600/local-memory.ll
+++ b/llvm/test/CodeGen/R600/local-memory.ll
@@ -13,7 +13,7 @@
; SI-CHECK-NEXT: .long 32768
; EG-CHECK: LDS_WRITE
-; SI-CHECK: DS_WRITE_B32
+; SI-CHECK: DS_WRITE_B32 0
; GROUP_BARRIER must be the last instruction in a clause
; EG-CHECK: GROUP_BARRIER
@@ -21,7 +21,7 @@
; SI-CHECK: S_BARRIER
; EG-CHECK: LDS_READ_RET
-; SI-CHECK: DS_READ_B32
+; SI-CHECK: DS_READ_B32 {{VGPR[0-9]+}}, 0
define void @local_memory(i32 addrspace(1)* %out) {
entry:
OpenPOWER on IntegriCloud