summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-10-28 19:43:31 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-10-28 19:43:31 +0000
commit08906a3c62b7700bafda4de8a1538433abd69be9 (patch)
treea4a6091fb04ad117b430b94c127503c2555b301b /llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll
parente28a0fc72a345ede4ef9d137a15d9c102f427931 (diff)
downloadbcm5719-llvm-08906a3c62b7700bafda4de8a1538433abd69be9.tar.gz
bcm5719-llvm-08906a3c62b7700bafda4de8a1538433abd69be9.zip
AMDGPU: Fix using incorrect private resource with no allocation
It's possible to have a use of the private resource descriptor or scratch wave offset registers even though there are no allocated stack objects. This would result in continuing to use the maximum number reserved registers. This could go over the number of SGPRs available on VI, or violate the SGPR limit requested by the function attributes. llvm-svn: 285435
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll b/llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll
index cc4b6bcbfb5..ff9429843b2 100644
--- a/llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll
+++ b/llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=amdgcn -mcpu=tonga < %s | FileCheck --check-prefix=TONGA %s
+; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck --check-prefix=TONGA %s
; On Tonga and Iceland, limited SGPR availability means care must be taken to
; allocate scratch registers correctly. Check that this test compiles without
OpenPOWER on IntegriCloud