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