17 lines · plain
1; RUN: opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2>&1 | FileCheck %s2; A descriptor range can be placed at UINT_MAX, matching DXC's behaviour 3; CHECK-NOT: error:4 5define void @CSMain() "hlsl.shader"="compute" {6entry:7 ret void8}9 10!dx.rootsignatures = !{!0}11 12!0 = !{ptr @CSMain, !1, i32 2}13!1 = !{!3}14!3 = !{!"DescriptorTable", i32 0, !4, !5}15!4 = !{!"UAV", i32 1, i32 1, i32 0, i32 4294967294, i32 0}16!5 = !{!"UAV", i32 1, i32 0, i32 0, i32 -1, i32 0}17