2018-08-31 13:49:54 +08:00
|
|
|
; RUN: not llc -march=amdgcn -mtriple=amdgcn-- -mcpu=tahiti -mattr=+promote-alloca -verify-machineinstrs < %s 2>&1 | FileCheck %s
|
|
|
|
; RUN: not llc -march=amdgcn -mtriple=amdgcn-- -mcpu=tahiti -mattr=-promote-alloca -verify-machineinstrs < %s 2>&1 | FileCheck %s
|
|
|
|
; RUN: not llc -march=r600 -mtriple=r600-- -mcpu=cypress < %s 2>&1 | FileCheck %s
|
2017-11-16 20:22:19 +08:00
|
|
|
target datalayout = "A5"
|
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) {
|
2017-11-16 20:22:19 +08:00
|
|
|
%alloca = alloca i32, i32 %n, addrspace(5)
|
|
|
|
store volatile i32 0, i32 addrspace(5)* %alloca
|
2015-08-27 02:37:13 +08:00
|
|
|
ret void
|
|
|
|
}
|