2 ; RUN: sed 's/CODE_OBJECT_VERSION/400/g' %s | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck -check-prefixes=OPT,COV4 %s
3 ; RUN: not llc --crash -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=null %s
4 ; RUN: sed 's/CODE_OBJECT_VERSION/500/g' %s | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck -check-prefixes=OPT,COV5 %s
6 ; AMDGPUAttributor deletes the function "by accident" so it's never
7 ; codegened with optimizations.
10 ; OPT-NEXT: .section ".note.GNU-stack"
11 ; OPT-NEXT: .amdgcn_target "amdgcn-amd-amdhsa--gfx900"
12 ; COV4-NEXT: .amdhsa_code_object_version 4
13 ; COV5-NEXT: .amdhsa_code_object_version 5
14 ; OPT-NEXT: .amdgpu_metadata
16 ; OPT-NEXT: amdhsa.kernels: []
17 ; OPT-NEXT: amdhsa.target: amdgcn-amd-amdhsa--gfx900
18 ; OPT-NEXT: amdhsa.version:
23 define internal i32 @func() {
27 !llvm.module.flags = !{!0}
28 !0 = !{i32 1, !"amdgpu_code_object_version", i32 CODE_OBJECT_VERSION}