1; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF %s
2; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG %s
3
4; ELF: Format: ELF32-amdgpu
5; ELF: Name: .AMDGPU.config
6
7; CONFIG: .section .AMDGPU.config
8; CONFIG-NEXT: .long   166100
9; CONFIG-NEXT: .long   2
10; CONFIG-NEXT: .long   165900
11; CONFIG-NEXT: .long   0
12define amdgpu_kernel void @test(float addrspace(1)* %out, i32 %p) {
13   %i = add i32 %p, 2
14   %r = bitcast i32 %i to float
15   store float %r, float addrspace(1)* %out
16   ret void
17}
18