blob: 5d2305600fbd3ea286625833e5258c7231585970 [file] [log] [blame]
Renato Golin4b9c0d42016-05-16 14:28:02 +00001; RUN: not llc -march=amdgcn -mcpu=tahiti -mattr=+promote-alloca -verify-machineinstrs -exit-on-error < %s 2>&1 | FileCheck %s
2; RUN: not llc -march=amdgcn -mcpu=tahiti -mattr=-promote-alloca -verify-machineinstrs -exit-on-error < %s 2>&1 | FileCheck %s
3; RUN: not llc -march=r600 -mcpu=cypress -exit-on-error < %s 2>&1 | FileCheck %s
Matt Arsenault19c54882015-08-26 18:37:13 +00004
Oliver Stannard7e7d9832016-02-02 13:52:43 +00005; CHECK: in function test_dynamic_stackalloc{{.*}}: unsupported dynamic alloca
Matt Arsenault19c54882015-08-26 18:37:13 +00006
7define void @test_dynamic_stackalloc(i32 addrspace(1)* %out, i32 %n) {
8 %alloca = alloca i32, i32 %n
9 store volatile i32 0, i32* %alloca
10 ret void
11}