diff options
author | Vincent Lejeune <vljn@ovi.com> | 2013-04-23 17:34:12 +0000 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2013-04-23 17:34:12 +0000 |
commit | 2a74639bc7713146b1182328892807c421c84265 (patch) | |
tree | 4c328c909b9228b632f293919dcec9c5e0db3101 /test/CodeGen/R600 | |
parent | 7a28d8afa77ac3afce265f2b61fb321e4e0d84d7 (diff) |
R600: Use .AMDGPU.config section to emit stacksize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600')
-rw-r--r-- | test/CodeGen/R600/elf.r600.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/R600/elf.r600.ll b/test/CodeGen/R600/elf.r600.ll new file mode 100644 index 0000000000..9dbc0afed4 --- /dev/null +++ b/test/CodeGen/R600/elf.r600.ll @@ -0,0 +1,15 @@ +; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF-CHECK %s +; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG-CHECK %s + +; ELF-CHECK: Format: ELF32 +; ELF-CHECK: Name: .AMDGPU.config + +; CONFIG-CHECK: .section .AMDGPU.config +; CONFIG-CHECK-NEXT: .long 2 +; CONFIG-CHECK-NEXT: .long 1 +define void @test(float addrspace(1)* %out, i32 %p) { + %i = add i32 %p, 2 + %r = bitcast i32 %i to float + store float %r, float addrspace(1)* %out + ret void +} |