2015-02-04 05:53:27 +08:00
|
|
|
; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF %s
|
|
|
|
; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG %s
|
2013-04-24 01:34:12 +08:00
|
|
|
|
2017-10-05 06:44:13 +08:00
|
|
|
; ELF: Format: ELF32-amdgpu
|
2015-02-04 05:53:27 +08:00
|
|
|
; ELF: Name: .AMDGPU.config
|
2013-04-24 01:34:12 +08:00
|
|
|
|
2015-02-04 05:53:27 +08:00
|
|
|
; CONFIG: .section .AMDGPU.config
|
|
|
|
; CONFIG-NEXT: .long 166100
|
|
|
|
; CONFIG-NEXT: .long 2
|
|
|
|
; CONFIG-NEXT: .long 165900
|
|
|
|
; CONFIG-NEXT: .long 0
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @test(float addrspace(1)* %out, i32 %p) {
|
2013-04-24 01:34:12 +08:00
|
|
|
%i = add i32 %p, 2
|
|
|
|
%r = bitcast i32 %i to float
|
|
|
|
store float %r, float addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
}
|