1 ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs -filetype=obj | llvm-readobj -s - | FileCheck --check-prefix=ELF-CHECK %s 2 ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs -o - | FileCheck --check-prefix=CONFIG-CHECK %s 3 4 ; ELF-CHECK: Format: ELF32 5 ; ELF-CHECK: Name: .AMDGPU.config 6 ; ELF-CHECK: Type: SHT_PROGBITS 7 8 ; CONFIG-CHECK: .section .AMDGPU.config 9 ; CONFIG-CHECK-NEXT: .long 45096 10 ; CONFIG-CHECK-NEXT: .long 0 11 define void @test(i32 %p) #0 { 12 %i = add i32 %p, 2 13 %r = bitcast i32 %i to float 14 call void @llvm.SI.export(i32 15, i32 0, i32 1, i32 12, i32 0, float %r, float %r, float %r, float %r) 15 ret void 16 } 17 18 declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float) 19 20 attributes #0 = { "ShaderType"="0" } ; Pixel Shader 21