source: icGREP/icgrep-devel/llvm-3.6.1.src/test/CodeGen/R600/large-alloca.ll @ 4664

Last change on this file since 4664 was 4664, checked in by cameron, 4 years ago

Upgrade LLVM to 3.6.1

File size: 453 bytes
Line 
1; XFAIL: *
2; REQUIRES: asserts
3; RUN: llc -march=amdgcn -mcpu=SI < %s
4; RUN: llc -march=amdgcn -mcpu=tonga < %s
5
6define void @large_alloca(i32 addrspace(1)* %out, i32 %x, i32 %y) nounwind {
7  %large = alloca [8192 x i32], align 4
8  %gep = getelementptr [8192 x i32]* %large, i32 0, i32 8191
9  store i32 %x, i32* %gep
10  %gep1 = getelementptr [8192 x i32]* %large, i32 0, i32 %y
11  %0 = load i32* %gep1
12  store i32 %0, i32 addrspace(1)* %out
13  ret void
14}
15
Note: See TracBrowser for help on using the repository browser.