mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
b2d3b0af04
We use both -long-option and --long-option in tests. Switch to --long-option for consistency. In the "llvm-readelf" mode, -long-option is discouraged as it conflicts with grouped short options and it is not accepted by GNU readelf. While updating the tests, change llvm-readobj -s to llvm-readobj -S to reduce confusion ("s" is --section-headers in llvm-readobj but --symbols in llvm-readelf). llvm-svn: 359649
18 lines
576 B
LLVM
18 lines
576 B
LLVM
; 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
|
|
|
|
; 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(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
|
|
}
|