Skip to content

Commit d72adfe

Browse files
committed
adding missing test
1 parent 57fd710 commit d72adfe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
6+
; CHECK: error: Invalid value for Version: 4
7+
; CHECK-NOT: Root Signature Definitions
8+
define void @main() #0 {
9+
entry:
10+
ret void
11+
}
12+
attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }
13+
14+
15+
!dx.rootsignatures = !{!2, !3, !4, !5} ; list of function/root signature pairs
16+
!2 = !{ ptr @main, !6, i32 1 } ; function, root signature
17+
!3 = !{ ptr @main, !6, i32 4 } ; function, root signature
18+
!4 = !{ ptr @main, !6, i32 2 } ; function, root signature
19+
!5 = !{ ptr @main, !6, i32 3 } ; function, root signature
20+
!6 = !{ } ; list of root signature elements

0 commit comments

Comments
 (0)