Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / amdgpu-abi-version.s
blob455a52aec921092d83883dbb20fe2118295c71f6
1 # REQUIRES: amdgpu
2 # RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=3 -filetype=obj %s -o %t.o
3 # RUN: ld.lld -shared %t.o -o %t.so
4 # RUN: llvm-readobj --file-headers %t.so | FileCheck --check-prefix=COV3 %s
6 # COV3: OS/ABI: AMDGPU_HSA (0x40)
7 # COV3: ABIVersion: 1
9 # RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=4 -filetype=obj %s -o %t.o
10 # RUN: ld.lld -shared %t.o -o %t.so
11 # RUN: llvm-readobj --file-headers %t.so | FileCheck --check-prefix=COV4 %s
13 # COV4: OS/ABI: AMDGPU_HSA (0x40)
14 # COV4: ABIVersion: 2
16 # RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=5 -filetype=obj %s -o %t.o
17 # RUN: ld.lld -shared %t.o -o %t.so
18 # RUN: llvm-readobj --file-headers %t.so | FileCheck --check-prefix=COV5 %s
20 # COV5: OS/ABI: AMDGPU_HSA (0x40)
21 # COV5: ABIVersion: 3
23 .text
24 s_nop 0x0
25 s_endpgm