summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-06-23 09:19:16 +0000
committerDiana Picus <diana.picus@linaro.org>2016-06-23 09:19:16 +0000
commite440f99913f9e3cb02331f95808cfe57f0b7836e (patch)
tree373111f0115236b83c9faf8e7f4fcd511eb8779c /llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
parent724e53029660c705441a405a254073c6d6ee9bc6 (diff)
downloadbcm5719-llvm-e440f99913f9e3cb02331f95808cfe57f0b7836e.tar.gz
bcm5719-llvm-e440f99913f9e3cb02331f95808cfe57f0b7836e.zip
[AMDGPU] Remove exit-on-error in test (PR27761)
The exit-on-error flag was necessary in order to avoid an assertion when handling DYNAMIC_STACKALLOC nodes in SelectionDAGLegalize. We can avoid the assertion by creating some dummy nodes. This enables us to remove the exit-on-error flag on the first 2 run lines (SI), but on the third run line (R600) we would run into another assertion when trying to reserve indirect registers. This patch also replaces that assertion with an early exit from the function. Fixes PR27761. Differential Revision: http://reviews.llvm.org/D20852 llvm-svn: 273550
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll b/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
index 5d2305600fb..580dc00f935 100644
--- a/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
+++ b/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
@@ -1,6 +1,6 @@
-; RUN: not llc -march=amdgcn -mcpu=tahiti -mattr=+promote-alloca -verify-machineinstrs -exit-on-error < %s 2>&1 | FileCheck %s
-; RUN: not llc -march=amdgcn -mcpu=tahiti -mattr=-promote-alloca -verify-machineinstrs -exit-on-error < %s 2>&1 | FileCheck %s
-; RUN: not llc -march=r600 -mcpu=cypress -exit-on-error < %s 2>&1 | FileCheck %s
+; RUN: not llc -march=amdgcn -mcpu=tahiti -mattr=+promote-alloca -verify-machineinstrs < %s 2>&1 | FileCheck %s
+; RUN: not llc -march=amdgcn -mcpu=tahiti -mattr=-promote-alloca -verify-machineinstrs < %s 2>&1 | FileCheck %s
+; RUN: not llc -march=r600 -mcpu=cypress < %s 2>&1 | FileCheck %s
; CHECK: in function test_dynamic_stackalloc{{.*}}: unsupported dynamic alloca
OpenPOWER on IntegriCloud