2018-11-15 10:32:43 +08:00
|
|
|
; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=gfx802 -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-UNK --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=iceland -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-UNK --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=GCN --check-prefix=OSABI-UNK-ELF --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-HSA --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=iceland -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-HSA --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=GCN --check-prefix=OSABI-HSA-ELF --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx802 -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-PAL --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=iceland -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-PAL --check-prefix=GFX802 %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=GCN --check-prefix=OSABI-PAL-ELF --check-prefix=GFX802 %s
|
2018-06-13 02:02:46 +08:00
|
|
|
; RUN: llc -march=r600 < %s | FileCheck --check-prefix=R600 %s
|
2017-10-14 23:40:33 +08:00
|
|
|
|
2017-10-14 23:59:07 +08:00
|
|
|
; OSABI-UNK-NOT: .hsa_code_object_version
|
|
|
|
; OSABI-UNK-NOT: .hsa_code_object_isa
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-UNK: .amd_amdgpu_isa "amdgcn-amd-unknown--gfx802"
|
2017-10-14 23:40:33 +08:00
|
|
|
; OSABI-UNK-NOT: .amd_amdgpu_hsa_metadata
|
|
|
|
; OSABI-UNK-NOT: .amd_amdgpu_pal_metadata
|
|
|
|
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-UNK-ELF-NOT: Unknown note type
|
|
|
|
; OSABI-UNK-ELF: NT_AMD_AMDGPU_ISA (ISA Version)
|
2017-10-15 02:21:42 +08:00
|
|
|
; OSABI-UNK-ELF: ISA Version:
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-UNK-ELF: amdgcn-amd-unknown--gfx802
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-UNK-ELF-NOT: Unknown note type
|
|
|
|
; OSABI-UNK-ELF-NOT: NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
|
|
|
|
; OSABI-UNK-ELF-NOT: Unknown note type
|
|
|
|
; OSABI-UNK-ELF-NOT: NT_AMD_AMDGPU_PAL_METADATA (PAL Metadata)
|
|
|
|
; OSABI-UNK-ELF-NOT: Unknown note type
|
|
|
|
|
2018-06-13 02:02:46 +08:00
|
|
|
; OSABI-HSA: .hsa_code_object_version
|
|
|
|
; OSABI-HSA: .hsa_code_object_isa
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-HSA: .amd_amdgpu_isa "amdgcn-amd-amdhsa--gfx802"
|
2017-10-15 01:36:53 +08:00
|
|
|
; OSABI-HSA: .amd_amdgpu_hsa_metadata
|
|
|
|
; OSABI-HSA-NOT: .amd_amdgpu_pal_metadata
|
|
|
|
|
2018-06-13 02:02:46 +08:00
|
|
|
; OSABI-HSA-ELF: Unknown note type (0x00000001)
|
|
|
|
; OSABI-HSA-ELF: Unknown note type (0x00000003)
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-HSA-ELF: NT_AMD_AMDGPU_ISA (ISA Version)
|
2017-10-15 02:21:42 +08:00
|
|
|
; OSABI-HSA-ELF: ISA Version:
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-HSA-ELF: amdgcn-amd-amdhsa--gfx802
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-HSA-ELF: NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
|
2017-10-15 02:21:42 +08:00
|
|
|
; OSABI-HSA-ELF: HSA Metadata:
|
|
|
|
; OSABI-HSA-ELF: ---
|
|
|
|
; OSABI-HSA-ELF: Version: [ 1, 0 ]
|
|
|
|
; OSABI-HSA-ELF: Kernels:
|
2017-10-15 03:03:51 +08:00
|
|
|
; OSABI-HSA-ELF: - Name: elf_notes
|
|
|
|
; OSABI-HSA-ELF: SymbolName: 'elf_notes@kd'
|
2017-10-15 02:21:42 +08:00
|
|
|
; OSABI-HSA-ELF: CodeProps:
|
2017-10-15 03:03:51 +08:00
|
|
|
; OSABI-HSA-ELF: KernargSegmentSize: 0
|
|
|
|
; OSABI-HSA-ELF: GroupSegmentFixedSize: 0
|
|
|
|
; OSABI-HSA-ELF: PrivateSegmentFixedSize: 0
|
|
|
|
; OSABI-HSA-ELF: KernargSegmentAlign: 4
|
|
|
|
; OSABI-HSA-ELF: WavefrontSize: 64
|
|
|
|
; OSABI-HSA-ELF: NumSGPRs: 96
|
2017-10-15 02:21:42 +08:00
|
|
|
; OSABI-HSA-ELF: ...
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-HSA-ELF-NOT: NT_AMD_AMDGPU_PAL_METADATA (PAL Metadata)
|
|
|
|
|
2017-10-15 01:36:53 +08:00
|
|
|
; OSABI-PAL-NOT: .hsa_code_object_version
|
2018-06-13 02:02:46 +08:00
|
|
|
; OSABI-PAL: .hsa_code_object_isa
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-PAL: .amd_amdgpu_isa "amdgcn-amd-amdpal--gfx802"
|
2017-10-15 01:36:53 +08:00
|
|
|
; OSABI-PAL-NOT: .amd_amdgpu_hsa_metadata
|
|
|
|
; OSABI-PAL: .amd_amdgpu_pal_metadata
|
|
|
|
|
2018-06-13 02:02:46 +08:00
|
|
|
; OSABI-PAL-ELF: Unknown note type (0x00000003)
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-PAL-ELF: NT_AMD_AMDGPU_ISA (ISA Version)
|
2017-10-15 02:21:42 +08:00
|
|
|
; OSABI-PAL-ELF: ISA Version:
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-PAL-ELF: amdgcn-amd-amdpal--gfx802
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-PAL-ELF-NOT: NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
|
|
|
|
; OSABI-PAL-ELF: NT_AMD_AMDGPU_PAL_METADATA (PAL Metadata)
|
2019-03-21 01:42:00 +08:00
|
|
|
; TODO: readobj can no longer dump PAL metadata pending resolution of D52821
|
|
|
|
; OSABI-PAL-ELF-XXX: PAL Metadata:
|
2017-10-15 07:42:11 +08:00
|
|
|
; TODO: Following check line fails on mips:
|
|
|
|
; OSABI-PAL-ELF-XXX: 0x2e12,0xac02c0,0x2e13,0x80,0x1000001b,0x1,0x10000022,0x60,0x1000003e,0x0
|
2017-10-15 01:36:53 +08:00
|
|
|
|
|
|
|
; R600-NOT: .hsa_code_object_version
|
|
|
|
; R600-NOT: .hsa_code_object_isa
|
|
|
|
; R600-NOT: .amd_amdgpu_isa
|
|
|
|
; R600-NOT: .amd_amdgpu_hsa_metadata
|
2018-06-13 02:02:46 +08:00
|
|
|
; R600-NOT: .amd_amdgpu_pal_metadata
|
2017-10-15 01:36:53 +08:00
|
|
|
|
|
|
|
define amdgpu_kernel void @elf_notes() {
|
|
|
|
ret void
|
|
|
|
}
|