brintos

brintos / llvm-project-archived public Read only

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