Skip to content

Commit a66e6a3

Browse files
author
joaosaffran
committed
add test
1 parent c5a1009 commit a66e6a3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC
2+
3+
target triple = "dxil-unknown-shadermodel6.0-compute"
4+
5+
define void @main() #0 {
6+
entry:
7+
ret void
8+
}
9+
attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }
10+
11+
12+
!dx.rootsignatures = !{!2} ; list of function/root signature pairs
13+
!2 = !{ ptr @main, !3, i32 1 } ; function, root signature
14+
!3 = !{ !5 } ; list of root signature elements
15+
!5 = !{ !"DescriptorTable", i32 0, !6, !7 }
16+
!6 = !{ !"Sampler", i32 0, i32 1, i32 0, i32 -1, i32 1 }
17+
!7 = !{ !"UAV", i32 5, i32 1, i32 10, i32 5, i32 3 }
18+
19+
20+
; DXC: - Name: RTS0
21+
; DXC-NEXT: Size: 84
22+
; DXC-NEXT: RootSignature:
23+
; DXC-NEXT: Version: 1
24+
; DXC-NEXT: NumRootParameters: 1
25+
; DXC-NEXT: RootParametersOffset: 24
26+
; DXC-NEXT: NumStaticSamplers: 0
27+
; DXC-NEXT: StaticSamplersOffset: 0
28+
; DXC-NEXT: Parameters:
29+
; DXC-NEXT: - ParameterType: 0
30+
; DXC-NEXT: ShaderVisibility: 0
31+
; DXC-NEXT: Table:
32+
; DXC-NEXT: NumRanges: 2
33+
; DXC-NEXT: RangesOffset: 44
34+
; DXC-NEXT: Ranges:
35+
; DXC-NEXT: - RangeType: 3
36+
; DXC-NEXT: NumDescriptors: 0
37+
; DXC-NEXT: BaseShaderRegister: 1
38+
; DXC-NEXT: RegisterSpace: 0
39+
; DXC-NEXT: OffsetInDescriptorsFromTableStart: 4294967295
40+
; DXC-NEXT: - RangeType: 1
41+
; DXC-NEXT: NumDescriptors: 5
42+
; DXC-NEXT: BaseShaderRegister: 1
43+
; DXC-NEXT: RegisterSpace: 10
44+
; DXC-NEXT: OffsetInDescriptorsFromTableStart: 5

0 commit comments

Comments
 (0)