mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
fb8e73f3af
Reviewed-by: Vincent Lejeune <vljn@ovi.com> Tested-By: Aaron Watry <awatry@gmail.com> llvm-svn: 181228
18 lines
611 B
LLVM
18 lines
611 B
LLVM
; 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 166100
|
|
; CONFIG-CHECK-NEXT: .long 258
|
|
; CONFIG-CHECK-NEXT: .long 165900
|
|
; CONFIG-CHECK-NEXT: .long 0
|
|
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
|
|
}
|