2019-05-01 13:27:20 +08:00
|
|
|
; RUN: llc -filetype=obj -march=amdgcn -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=NONE %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-amd- -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=NONE %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-amd-unknown -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=NONE %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn--amdhsa -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=HSA %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-amd-amdhsa -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=HSA %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-unknown-amdhsa -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=HSA %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn--amdpal -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=PAL %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-amd-amdpal -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=PAL %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-unknown-amdpal -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=PAL %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn--mesa3d -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=MESA3D %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-amd-mesa3d -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=MESA3D %s
|
|
|
|
; RUN: llc -filetype=obj -mtriple=amdgcn-unknown-mesa3d -mcpu=gfx801 < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=MESA3D %s
|
2018-02-17 06:33:59 +08:00
|
|
|
|
|
|
|
; NONE: OS/ABI: SystemV (0x0)
|
|
|
|
; HSA: OS/ABI: AMDGPU_HSA (0x40)
|
2019-02-15 07:56:04 +08:00
|
|
|
; HSA: ABIVersion: 1
|
2018-02-17 06:33:59 +08:00
|
|
|
; PAL: OS/ABI: AMDGPU_PAL (0x41)
|
2019-02-15 07:56:04 +08:00
|
|
|
; PAL: ABIVersion: 0
|
2018-02-17 06:33:59 +08:00
|
|
|
; MESA3D: OS/ABI: AMDGPU_MESA3D (0x42)
|
2019-02-15 07:56:04 +08:00
|
|
|
; MESA3D: ABIVersion: 0
|
2018-02-17 06:33:59 +08:00
|
|
|
|
|
|
|
define amdgpu_kernel void @elf_header() {
|
|
|
|
ret void
|
|
|
|
}
|