2021-01-06 06:37:29 +08:00
|
|
|
; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=gfx802 --amdhsa-code-object-version=2 < %s | FileCheck --check-prefix=OSABI-UNK %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=iceland --amdhsa-code-object-version=2 < %s | FileCheck --check-prefix=OSABI-UNK %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=gfx802 -filetype=obj --amdhsa-code-object-version=2 < %s | llvm-readelf --notes - | FileCheck --check-prefix=OSABI-UNK-ELF %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 --amdhsa-code-object-version=2 < %s | FileCheck --check-prefix=OSABI-HSA %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=iceland --amdhsa-code-object-version=2 < %s | FileCheck --check-prefix=OSABI-HSA %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj --amdhsa-code-object-version=2 < %s | llvm-readelf --notes - | FileCheck --check-prefix=OSABI-HSA-ELF %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx802 --amdhsa-code-object-version=2 < %s | FileCheck --check-prefix=OSABI-PAL %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=iceland --amdhsa-code-object-version=2 < %s | FileCheck --check-prefix=OSABI-PAL %s
|
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx802 -filetype=obj --amdhsa-code-object-version=2 < %s | llvm-readelf --notes - | FileCheck --check-prefix=OSABI-PAL-ELF %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
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-UNK-ELF: NT_AMD_HSA_ISA_NAME (AMD HSA ISA Name)
|
|
|
|
; OSABI-UNK-ELF: AMD HSA ISA Name:
|
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
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-UNK-ELF-NOT: NT_AMD_HSA_METADATA (AMD HSA Metadata)
|
2017-10-15 00:43:46 +08:00
|
|
|
; OSABI-UNK-ELF-NOT: Unknown note type
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-UNK-ELF-NOT: NT_AMD_PAL_METADATA (AMD PAL Metadata)
|
2017-10-15 00:43:46 +08:00
|
|
|
; 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
|
|
|
|
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-HSA-ELF: NT_AMD_HSA_CODE_OBJECT_VERSION (AMD HSA Code Object Version)
|
|
|
|
; OSABI-HSA-ELF: NT_AMD_HSA_ISA_VERSION (AMD HSA ISA Version)
|
|
|
|
; OSABI-HSA-ELF: NT_AMD_HSA_ISA_NAME (AMD HSA ISA Name)
|
|
|
|
; OSABI-HSA-ELF: AMD HSA ISA Name:
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-HSA-ELF: amdgcn-amd-amdhsa--gfx802
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-HSA-ELF: NT_AMD_HSA_METADATA (AMD 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: ...
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-HSA-ELF-NOT: NT_AMD_PAL_METADATA (AMD PAL Metadata)
|
2017-10-15 00:43:46 +08:00
|
|
|
|
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
|
|
|
|
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-PAL-ELF: NT_AMD_HSA_ISA_VERSION (AMD HSA ISA Version)
|
|
|
|
; OSABI-PAL-ELF: NT_AMD_HSA_ISA_NAME (AMD HSA ISA Name)
|
|
|
|
; OSABI-PAL-ELF: AMD HSA ISA Name:
|
2018-02-17 05:26:25 +08:00
|
|
|
; OSABI-PAL-ELF: amdgcn-amd-amdpal--gfx802
|
2021-03-24 23:52:10 +08:00
|
|
|
; OSABI-PAL-ELF-NOT: NT_AMD_HSA_METADATA (AMD HSA Metadata)
|
2020-10-23 17:21:03 +08:00
|
|
|
; OSABI-PAL-ELF: NT_AMDGPU_METADATA (AMDGPU Metadata)
|
|
|
|
; OSABI-PAL-ELF: AMDGPU Metadata:
|
|
|
|
; OSABI-PAL-ELF: amdpal.pipelines:
|
|
|
|
; OSABI-PAL-ELF: - .hardware_stages:
|
|
|
|
; OSABI-PAL-ELF: .cs:
|
|
|
|
; OSABI-PAL-ELF: .entry_point: elf_notes
|
|
|
|
; OSABI-PAL-ELF: .scratch_memory_size: 0
|
|
|
|
; OSABI-PAL-ELF: .sgpr_count: 96
|
|
|
|
; OSABI-PAL-ELF: .vgpr_count: 1
|
|
|
|
; OSABI-PAL-ELF: .registers:
|
|
|
|
; OSABI-PAL-ELF: 11794: 11469504
|
|
|
|
; OSABI-PAL-ELF: 11795: 128
|
|
|
|
; OSABI-PAL: amdpal.pipelines:
|
|
|
|
; OSABI-PAL: - .hardware_stages:
|
|
|
|
; OSABI-PAL: .cs:
|
|
|
|
; OSABI-PAL: .entry_point: elf_notes
|
|
|
|
; OSABI-PAL: .scratch_memory_size: 0
|
|
|
|
; OSABI-PAL: .sgpr_count: 0x60
|
|
|
|
; OSABI-PAL: .vgpr_count: 0x1
|
|
|
|
; OSABI-PAL: .registers:
|
|
|
|
; OSABI-PAL: 0x2e12 (COMPUTE_PGM_RSRC1): 0xaf02c0
|
|
|
|
; OSABI-PAL: 0x2e13 (COMPUTE_PGM_RSRC2): 0x80
|
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
|
|
|
|
}
|