1 ; RUN: llc < %s -march=amdgcn -verify-machineinstrs -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
2 ; RUN: llc < %s -march=amdgcn -verify-machineinstrs -o - | FileCheck --check-prefix=CONFIG --check-prefix=TYPICAL %s
3 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
4 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs -o - | FileCheck --check-prefix=CONFIG --check-prefix=TONGA %s
5 ; RUN: llc < %s -march=amdgcn -mcpu=carrizo -mattr=-flat-for-global -verify-machineinstrs -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
6 ; RUN: llc < %s -march=amdgcn -mcpu=carrizo -mattr=-flat-for-global -verify-machineinstrs -o - | FileCheck --check-prefix=CONFIG --check-prefix=TYPICAL %s
8 ; Test that we don't try to produce a COFF file on windows
9 ; RUN: llc < %s -mtriple=amdgcn-pc-mingw -verify-machineinstrs -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
11 ; ELF: Format: ELF64-amdgpu
12 ; ELF: OS/ABI: SystemV (0x0)
13 ; ELF: Machine: EM_AMDGPU (0xE0)
14 ; ELF: Name: .AMDGPU.config
15 ; ELF: Type: SHT_PROGBITS
19 ; ELF: Binding: Global
21 ; CONFIG: .section .AMDGPU.config
22 ; CONFIG-NEXT: .long 45096
23 ; TYPICAL-NEXT: .long 0
24 ; TONGA-NEXT: .long 704
27 define amdgpu_ps void @test(i32 %p) #0 {
29 %r = bitcast i32 %i to float
30 call void @llvm.amdgcn.exp.f32(i32 0, i32 15, float %r, float %r, float %r, float %r, i1 true, i1 false)
34 declare void @llvm.amdgcn.exp.f32(i32, i32, float, float, float, float, i1, i1) #0
36 attributes #0 = { nounwind }