18 lines · plain
1; RUN: not opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2>&1 | FileCheck %s2; This test checks if a resource is implicitly overflowing. That means, it is appending a resource after an unbounded range. 3 4; CHECK: error: Range UAV(register=0, space=0) cannot be appended after an unbounded range5 6define void @CSMain() "hlsl.shader"="compute" {7entry:8 ret void9}10 11!dx.rootsignatures = !{!0}12 13!0 = !{ptr @CSMain, !1, i32 2}14!1 = !{!3}15!3 = !{!"DescriptorTable", i32 0, !4, !5}16!4 = !{!"UAV", i32 -1, i32 1, i32 0, i32 2, i32 0}17!5 = !{!"UAV", i32 1, i32 0, i32 0, i32 -1, i32 0}18