brintos

brintos / llvm-project-archived public Read only

0
0
Text · 508 B · 0392065 Raw
19 lines · plain
1; RUN: not opt -passes='print<dxil-root-signature>' %s -S -o - 2>&1 | FileCheck %s2 3target triple = "dxil-unknown-shadermodel6.0-compute"4 5; CHECK: error: Invalid Root Signature metadata - expected function, signature, and version.6; CHECK-NOT: Root Signature Definitions7 8 9define void @main() #0 {10entry:11  ret void12}13 14attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }15 16 17!dx.rootsignatures = !{!1} ; list of function/root signature pairs18!1= !{ !"RootFlags" } ; function, root signature19