2013-04-23 19:34:12 +02:00
|
|
|
; 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
|
2013-05-06 19:50:51 +02:00
|
|
|
; CONFIG-CHECK-NEXT: .long 166100
|
|
|
|
; CONFIG-CHECK-NEXT: .long 258
|
|
|
|
; CONFIG-CHECK-NEXT: .long 165900
|
2013-05-02 23:52:46 +02:00
|
|
|
; CONFIG-CHECK-NEXT: .long 0
|
2013-04-23 19:34:12 +02:00
|
|
|
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
|
|
|
|
}
|