2 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck -check-prefix=OPT %s
3 ; RUN: not llc --crash -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=null %s
5 ; AMDGPUAttributor deletes the function "by accident" so it's never
6 ; codegened with optimizations.
9 ; OPT-NEXT: .section ".note.GNU-stack"
10 ; OPT-NEXT: .amdgcn_target "amdgcn-amd-amdhsa--gfx900"
11 ; OPT-NEXT: .amdgpu_metadata
13 ; OPT-NEXT: amdhsa.kernels: []
14 ; OPT-NEXT: amdhsa.target: amdgcn-amd-amdhsa--gfx900
15 ; OPT-NEXT: amdhsa.version:
19 define internal i32 @func() {