AMDGPU/SI: use S_OR for fneg (fabs f32)
[oota-llvm.git] / test / CodeGen / AMDGPU / large-alloca.ll
1 ; XFAIL: *
2 ; REQUIRES: asserts
3 ; RUN: llc -march=amdgcn -mcpu=SI < %s
4 ; RUN: llc -march=amdgcn -mcpu=tonga < %s
5
6 define 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], [8192 x i32]* %large, i32 0, i32 8191
9   store i32 %x, i32* %gep
10   %gep1 = getelementptr [8192 x i32], [8192 x i32]* %large, i32 0, i32 %y
11   %0 = load i32, i32* %gep1
12   store i32 %0, i32 addrspace(1)* %out
13   ret void
14 }
15