Skip to content

Commit c762e0a

Browse files
committed
add testcase for new validation
1 parent f03e69b commit c762e0a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
; RUN: not opt -passes='print<dxil-root-signature>' %s -S -o - 2>&1 | FileCheck %s
2+
3+
target triple = "dxil-unknown-shadermodel6.0-compute"
4+
5+
; Check that 10 = DataVolatile | Datastatic is invalid due to mutually exclusive
6+
7+
; CHECK: error: Invalid value for RootDescriptorFlag: 10
8+
; CHECK-NOT: Root Signature Definitions
9+
define void @main() #0 {
10+
entry:
11+
ret void
12+
}
13+
attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }
14+
15+
16+
!dx.rootsignatures = !{!2} ; list of function/root signature pairs
17+
!2 = !{ ptr @main, !3, i32 2 } ; function, root signature
18+
!3 = !{ !5 } ; list of root signature elements
19+
!5 = !{ !"RootCBV", i32 0, i32 1, i32 2, i32 10 }

0 commit comments

Comments
 (0)