xref: /llvm-project/llvm/test/CodeGen/DirectX/Metadata/multiple-entries-cs-error.ll (revision 3734fa8c724ce2af2f69886ca97c05c6c3717c34)
1; RUN: not opt -S  -S -dxil-translate-metadata %s 2>&1 | FileCheck %s
2target triple = "dxil-pc-shadermodel6.8-compute"
3
4; CHECK: Non-library shader: One and only one entry expected
5
6define void @entry_as() #0 {
7entry:
8  ret void
9}
10
11define i32 @entry_ms(i32 %a) #1 {
12entry:
13  ret i32 %a
14}
15
16define float @entry_cs(float %f) #3 {
17entry:
18  ret float %f
19}
20
21attributes #0 = { noinline nounwind "hlsl.shader"="amplification" }
22attributes #1 = { noinline nounwind "hlsl.shader"="mesh" }
23attributes #3 = { noinline nounwind "hlsl.numthreads"="1,2,1" "hlsl.shader"="compute" }
24