1 ; RUN: opt -S -dxil-metadata-emit %s | FileCheck %s
2 ; RUN: opt -S -dxil-prepare %s | FileCheck %s --check-prefix=REMOVE_EXTRA_ATTRIBUTE
4 target triple = "dxil-pc-shadermodel6.6-compute"
6 ; CHECK: !dx.shaderModel = !{![[SM:[0-9]+]]}
7 ; CHECK: ![[SM]] = !{!"cs", i32 6, i32 6}
9 define void @entry() #0 {
14 ; Make sure extra attribute like hlsl.numthreads are removed.
15 ; And experimental attribute is removed when validator version is not 0.0.
16 ; REMOVE_EXTRA_ATTRIBUTE:attributes #0 = { noinline nounwind }
17 attributes #0 = { noinline nounwind "exp-shader"="cs" "hlsl.numthreads"="1,2,1" "hlsl.shader"="compute" }