mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 01:16:05 +00:00
19 lines
608 B
ArmAsm
19 lines
608 B
ArmAsm
# REQUIRES: amdgpu
|
|
# RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=4 -filetype=obj %s -o %t.o
|
|
# RUN: ld.lld -shared %t.o -o %t.so
|
|
# RUN: llvm-readobj --file-headers %t.so | FileCheck --check-prefix=COV4 %s
|
|
|
|
# COV4: OS/ABI: AMDGPU_HSA (0x40)
|
|
# COV4: ABIVersion: 2
|
|
|
|
# RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=5 -filetype=obj %s -o %t.o
|
|
# RUN: ld.lld -shared %t.o -o %t.so
|
|
# RUN: llvm-readobj --file-headers %t.so | FileCheck --check-prefix=COV5 %s
|
|
|
|
# COV5: OS/ABI: AMDGPU_HSA (0x40)
|
|
# COV5: ABIVersion: 3
|
|
|
|
.text
|
|
s_nop 0x0
|
|
s_endpgm
|