24 lines · plain
1; RUN: not opt -S -dxil-translate-metadata %s 2>&1 | FileCheck %s2target triple = "dxil-pc-shadermodel6.8-compute"3 4; CHECK: Non-library shader: One and only one entry expected5 6define void @entry_as() #0 {7entry:8 ret void9}10 11define i32 @entry_ms(i32 %a) #1 {12entry:13 ret i32 %a14}15 16define float @entry_cs(float %f) #3 {17entry:18 ret float %f19}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