Skip to content

Commit 4cce945

Browse files
committed
add test to ensure the metadata is removed during dxil-prepare
1 parent 1fb6ff8 commit 4cce945

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
; RUN: opt -S -dxil-prepare < %s | FileCheck %s
2+
3+
; Ensures that dxil-prepare will remove the dx.rootsignatures metadata
4+
5+
target triple = "dxil-unknown-shadermodel6.0-compute"
6+
7+
define void @main() {
8+
entry:
9+
ret void
10+
}
11+
12+
; CHECK-NOT: !dx.rootsignature
13+
14+
!dx.rootsignatures = !{!2} ; list of function/root signature pairs
15+
!2 = !{ ptr @main, !3, i32 2 } ; function, root signature
16+
!3 = !{ !4 } ; list of root signature elements
17+
!4 = !{ !"RootFlags", i32 1 } ; 1 = allow_input_assembler_input_layout

0 commit comments

Comments
 (0)