xref: /aosp_15_r20/external/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CHECK: in function pixel_s{{.*}}: unsupported non-compute shaders with HSA
4*9880d681SAndroid Build Coastguard Workerdefine amdgpu_ps void @pixel_shader() #0 {
5*9880d681SAndroid Build Coastguard Worker  ret void
6*9880d681SAndroid Build Coastguard Worker}
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker; CHECK: in function vertex_s{{.*}}: unsupported non-compute shaders with HSA
9*9880d681SAndroid Build Coastguard Workerdefine amdgpu_vs void @vertex_shader() #0 {
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; CHECK: in function geometry_s{{.*}}: unsupported non-compute shaders with HSA
14*9880d681SAndroid Build Coastguard Workerdefine amdgpu_gs void @geometry_shader() #0 {
15*9880d681SAndroid Build Coastguard Worker  ret void
16*9880d681SAndroid Build Coastguard Worker}
17