brintos

brintos / llvm-project-archived public Read only

0
0
Text · 609 B · 7ec9d80 Raw
17 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: UAV at register 0 and space 0 is bound to a texture or typed buffer.3 4@TB.str = private unnamed_addr constant [3 x i8] c"TB\00", align 15 6define void @CSMain() "hlsl.shader"="compute" {7entry:8  %TB =  tail call target("dx.Texture", float, 1, 0, 0, 4) @llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, ptr nonnull @TB.str)9  ret void10}11 12!dx.rootsignatures = !{!0}13 14!0 = !{ptr @CSMain, !1, i32 2}15!1 = !{!2}16!2 = !{!"RootUAV", i32 0, i32 0, i32 0, i32 4}17