view test/CodeGen/AMDGPU/dynamic_stackalloc.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents afa8332a0e37
children 1172e4bd9c6f
line wrap: on
line source

; 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: error: unsupported dynamic alloca in test_dynamic_stackalloc

define void @test_dynamic_stackalloc(i32 addrspace(1)* %out, i32 %n) {
  %alloca = alloca i32, i32 %n
  store volatile i32 0, i32* %alloca
  ret void
}