2016-06-23 17:19:16 +08:00
|
|
|
; 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
|
2015-08-27 02:37:13 +08:00
|
|
|
|
2016-02-02 21:52:43 +08:00
|
|
|
; CHECK: in function test_dynamic_stackalloc{{.*}}: unsupported dynamic alloca
|
2015-08-27 02:37:13 +08:00
|
|
|
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @test_dynamic_stackalloc(i32 addrspace(1)* %out, i32 %n) {
|
2015-08-27 02:37:13 +08:00
|
|
|
%alloca = alloca i32, i32 %n
|
|
|
|
store volatile i32 0, i32* %alloca
|
|
|
|
ret void
|
|
|
|
}
|