File: length_legacy.spt

package info (click to toggle)
spirv-llvm-translator-14 14.0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,700 kB
  • sloc: cpp: 47,811; lisp: 3,704; sh: 153; python: 43; makefile: 41
file content (56 lines) | stat: -rw-r--r-- 1,517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
; This test is used to check that we do not break backward translation of `CooperativeMatrixLengthKHR`,
; even in case when it was generated not specification conformant (as value, not type) in forward translation.

; RUN: llvm-spirv %s -to-binary -o %t.spv
; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll
; RUN: FileCheck %s --input-file %t.ll

; CHECK: call spir_func i32 @_Z34__spirv_CooperativeMatrixLengthKHRPU3AS143__spirv_CooperativeMatrixKHR__int_3_12_48_0(%spirv.CooperativeMatrixKHR._int_3_12_48_0

119734787 65536 393230 21 0 
2 Capability Addresses 
2 Capability Linkage 
2 Capability Kernel 
2 Capability Int64 
2 Capability GenericPointer 
2 Capability Int8 
2 Capability CooperativeMatrixKHR 
8 Extension "SPV_KHR_cooperative_matrix" 
5 ExtInstImport 1 "OpenCL.std" 
3 MemoryModel 2 2 
3 Source 0 0 
5 Name 7 "matr_mult" 
5 Name 8 "_arg_accA" 
4 Name 9 "_arg_K" 
4 Name 10 "entry" 
4 Name 12 "accA3" 
3 Name 19 "m2" 
3 Name 20 "len" 

7 Decorate 7 LinkageAttributes "matr_mult" Export 
4 Decorate 8 Alignment 1 
4 TypeInt 3 8 0 
4 TypeInt 5 64 0 
4 TypeInt 13 32 0 
4 Constant 13 14 3 
4 Constant 13 15 12 
4 Constant 13 16 48 
4 Constant 13 17 0 
2 TypeVoid 2 
4 TypePointer 4 5 3 
5 TypeFunction 6 2 4 5 
4 TypePointer 11 8 3 
7 TypeCooperativeMatrixKHR 18 13 14 15 16 17 

5 Function 2 7 0 6 
3 FunctionParameter 4 8 
3 FunctionParameter 5 9 

2 Label 10 
4 PtrCastToGeneric 11 12 8 
7 CooperativeMatrixLoadKHR 18 19 12 17 9 1 
4 CooperativeMatrixLengthKHR 13 20 19 
1 Return 

1 FunctionEnd