xref: /llvm-project/llvm/test/CodeGen/AMDGPU/unsupported-code-object-version.ll (revision 4490003a22658dcd12527029b2c8682b63d8a9d6)
1; RUN: sed 's/CODE_OBJECT_VERSION/0/g' %s | not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 2>&1 | FileCheck --check-prefix=HSA-ERROR %s
2; RUN: sed 's/CODE_OBJECT_VERSION/100/g' %s | not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 2>&1 | FileCheck --check-prefix=HSA-ERROR %s
3; RUN: sed 's/CODE_OBJECT_VERSION/9900/g' %s | not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 2>&1 | FileCheck --check-prefix=HSA-ERROR %s
4
5; HSA-ERROR: Unexpected code object version
6
7!llvm.module.flags = !{!0}
8!0 = !{i32 1, !"amdhsa_code_object_version", i32 CODE_OBJECT_VERSION}
9