aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/DirectX/Metadata/target-profile-error.ll
blob: 671406cb5d3644a5e6bfeba5ee5d46a5b0d1bcb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: not opt -S -dxil-translate-metadata %s 2>&1 | FileCheck %s

target triple = "dxil-pc-shadermodel6.6-pixel"

; CHECK: Shader stage 'cs' for entry 'entry' different from specified target profile 'pixel'

define void @entry() #0 {
entry:
  ret void
}

attributes #0 = { noinline nounwind "exp-shader"="cs" "hlsl.numthreads"="1,2,1" "hlsl.shader"="compute" }