summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/missing-store.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-04-12 18:40:43 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-04-12 18:40:43 +0000
commitab1d3a9d505ab01658d0a1e7adf06fc7415fc64c (patch)
tree2501150a557b367ed3b6d47dd2ec60fdda54aaad /llvm/test/CodeGen/AMDGPU/missing-store.ll
parent3b08238f7878988a8e2737cdab42fcc334c8547f (diff)
downloadbcm5719-llvm-ab1d3a9d505ab01658d0a1e7adf06fc7415fc64c.tar.gz
bcm5719-llvm-ab1d3a9d505ab01658d0a1e7adf06fc7415fc64c.zip
AMDGPU/SI: Insert wait states required after v_readfirstlane on SI
Summary: We will be able to handle this case much better once the hazard recognizer is finished, but this conservative implementation fixes a hang with the piglit test: spec/arb_arrays_of_arrays/execution/sampler/fs-nested-struct-arrays-nonconst-nested-arra Reviewers: arsenm, nhaehnle Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D18988 llvm-svn: 266105
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/missing-store.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/missing-store.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/missing-store.ll b/llvm/test/CodeGen/AMDGPU/missing-store.ll
index c919b3b5819..658666304f6 100644
--- a/llvm/test/CodeGen/AMDGPU/missing-store.ll
+++ b/llvm/test/CodeGen/AMDGPU/missing-store.ll
@@ -10,6 +10,7 @@
; SI: buffer_store_dword
; SI: v_readfirstlane_b32 s[[PTR_LO:[0-9]+]], v{{[0-9]+}}
; SI: v_readfirstlane_b32 s[[PTR_HI:[0-9]+]], v{{[0-9]+}}
+; SI-NEXT: s_nop
; SI: s_load_dword s{{[0-9]+}}, s{{\[}}[[PTR_LO]]:[[PTR_HI]]{{\]}}
; SI: buffer_store_dword
; SI: s_endpgm
OpenPOWER on IntegriCloud