summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll
blob: 73a146710a9ff8ce50d3ee8ce5a304e52b1b5861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: not llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s 2>&1 | FileCheck %s

; CHECK: error: unsupported non-compute shaders with HSA in pixel_shader
define void @pixel_shader() #0 {
  ret void
}

define void @vertex_shader() #1 {
  ret void
}

define void @geometry_shader() #2 {
  ret void
}

attributes #0 = { nounwind "ShaderType"="0" }
attributes #1 = { nounwind "ShaderType"="1" }
attributes #2 = { nounwind "ShaderType"="2" }
OpenPOWER on IntegriCloud