xref: /llvm-project/llvm/test/MC/AMDGPU/isa-version-pal.s (revision d594d9f7f4dc6eb748b3261917db689fdc348b96)
1// RUN: not llvm-mc -triple amdgcn-amd-unknown -mcpu=gfx802 %s 2>&1 | FileCheck --check-prefix=OSABI-UNK-ERR %s
2// RUN: not llvm-mc -triple amdgcn-amd-unknown -mcpu=iceland %s 2>&1 | FileCheck --check-prefix=OSABI-UNK-ERR %s
3// RUN: not llvm-mc -triple amdgcn-amd-amdhsa --amdhsa-code-object-version=4 -mcpu=gfx802 %s 2>&1 | FileCheck --check-prefix=OSABI-HSA-ERR %s
4// RUN: not llvm-mc -triple amdgcn-amd-amdhsa --amdhsa-code-object-version=4 -mcpu=iceland %s 2>&1 | FileCheck --check-prefix=OSABI-HSA-ERR %s
5// RUN: llvm-mc -triple amdgcn-amd-amdpal -mcpu=gfx802 %s | FileCheck --check-prefix=OSABI-PAL %s
6// RUN: llvm-mc -triple amdgcn-amd-amdpal -mcpu=iceland %s | FileCheck --check-prefix=OSABI-PAL %s
7// RUN: not llvm-mc -triple amdgcn-amd-unknown -mcpu=gfx802 %s 2>&1 | FileCheck --check-prefix=OSABI-UNK-ERR %s
8// RUN: not llvm-mc -triple amdgcn-amd-amdpal -mcpu=gfx803 %s 2>&1 | FileCheck --check-prefix=OSABI-PAL-ERR %s
9
10// OSABI-PAL: .amd_amdgpu_isa "amdgcn-amd-amdpal--gfx802"
11// OSABI-UNK-ERR: error: target id must match options
12// OSABI-HSA-ERR: error: .amdgcn_target directive's target id amdgcn-amd-amdpal--gfx802 does not match the specified target id amdgcn-amd-amdhsa--gfx802
13// OSABI-PAL-ERR: error: target id must match options
14.amd_amdgpu_isa "amdgcn-amd-amdpal--gfx802"
15.amdgcn_target "amdgcn-amd-amdpal--gfx802"
16