brintos

brintos / llvm-project-archived public Read only

0
0
Text · 680 B · de85525 Raw
19 lines · plain
1; RUN: not opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2>&1 | FileCheck %s2; CHECK: error: CBV register 2 in space 666 does not have a binding in the Root Signature3 4%__cblayout_CB = type <{ float }>5 6@CB.str = private unnamed_addr constant [3 x i8] c"CB\00", align 17 8define void @CSMain() "hlsl.shader"="compute" {9entry:10  %CB = tail call target("dx.CBuffer", target("dx.Layout", %__cblayout_CB, 4, 0)) @llvm.dx.resource.handlefrombinding(i32 666, i32 2, i32 1, i32 0, ptr nonnull @CB.str)11  ret void12}13 14!dx.rootsignatures = !{!0}15 16!0 = !{ptr @CSMain, !1, i32 2}17!1 = !{!2}18!2 = !{!"RootConstants", i32 0, i32 2, i32 0, i32 4}19