1spv.coopmatKHR_arithmetic.comp 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 196 5 6 Capability Shader 7 Capability Float16 8 Capability Int8 9 Capability VulkanMemoryModelKHR 10 Capability CooperativeMatrixKHR 11 Extension "SPV_KHR_cooperative_matrix" 12 Extension "SPV_KHR_vulkan_memory_model" 13 1: ExtInstImport "GLSL.std.450" 14 MemoryModel Logical VulkanKHR 15 EntryPoint GLCompute 4 "main" 16 ExecutionMode 4 LocalSize 64 1 1 17 Source GLSL 450 18 SourceExtension "GL_EXT_shader_explicit_arithmetic_types" 19 SourceExtension "GL_KHR_cooperative_matrix" 20 SourceExtension "GL_KHR_memory_scope_semantics" 21 Name 4 "main" 22 Name 13 "f" 23 Name 48 "f16" 24 Name 82 "u32" 25 Name 117 "u8" 26 Name 152 "i8" 27 Decorate 195 BuiltIn WorkgroupSize 28 2: TypeVoid 29 3: TypeFunction 2 30 6: TypeFloat 32 31 7: TypeInt 32 0 32 8: 7(int) Constant 3 33 9: 7(int) Constant 8 34 10: 7(int) Constant 0 35 11: TypeCooperativeMatrixKHR 6(float) 8 9 9 10 36 12: TypePointer Function 11 37 39: 6(float) Constant 1073741824 38 45: TypeFloat 16 39 46: TypeCooperativeMatrixKHR 45(float16_t) 8 9 9 10 40 47: TypePointer Function 46 41 74:45(float16_t) Constant 16384 42 80: TypeCooperativeMatrixKHR 7(int) 8 9 9 10 43 81: TypePointer Function 80 44 108: 7(int) Constant 2 45 114: TypeInt 8 0 46 115: TypeCooperativeMatrixKHR 114(int8_t) 8 9 9 10 47 116: TypePointer Function 115 48 143: 114(int8_t) Constant 2 49 149: TypeInt 8 1 50 150: TypeCooperativeMatrixKHR 149(int8_t) 8 9 9 10 51 151: TypePointer Function 150 52 178: 149(int8_t) Constant 2 53 192: TypeVector 7(int) 3 54 193: 7(int) Constant 64 55 194: 7(int) Constant 1 56 195: 192(ivec3) ConstantComposite 193 194 194 57 4(main): 2 Function None 3 58 5: Label 59 13(f): 12(ptr) Variable Function 60 48(f16): 47(ptr) Variable Function 61 82(u32): 81(ptr) Variable Function 62 117(u8): 116(ptr) Variable Function 63 152(i8): 151(ptr) Variable Function 64 14: 11 Load 13(f) 65 15: 11 Load 13(f) 66 16: 11 FAdd 14 15 67 17: 11 Load 13(f) 68 18: 11 Load 13(f) 69 19: 11 FSub 17 18 70 20: 11 Load 13(f) 71 21: 11 Load 13(f) 72 22: 11 FMul 20 21 73 23: 11 Load 13(f) 74 24: 11 Load 13(f) 75 25: 11 FDiv 23 24 76 26: 11 Load 13(f) 77 27: 11 Load 13(f) 78 28: 11 FAdd 27 26 79 Store 13(f) 28 80 29: 11 Load 13(f) 81 30: 11 Load 13(f) 82 31: 11 FSub 30 29 83 Store 13(f) 31 84 32: 11 Load 13(f) 85 33: 11 Load 13(f) 86 34: 11 FMul 33 32 87 Store 13(f) 34 88 35: 11 Load 13(f) 89 36: 11 Load 13(f) 90 37: 11 FDiv 36 35 91 Store 13(f) 37 92 38: 11 Load 13(f) 93 40: 11 MatrixTimesScalar 38 39 94 41: 11 Load 13(f) 95 42: 11 MatrixTimesScalar 41 39 96 43: 11 Load 13(f) 97 44: 11 MatrixTimesScalar 43 39 98 Store 13(f) 44 99 49: 46 Load 48(f16) 100 50: 46 Load 48(f16) 101 51: 46 FAdd 49 50 102 52: 46 Load 48(f16) 103 53: 46 Load 48(f16) 104 54: 46 FSub 52 53 105 55: 46 Load 48(f16) 106 56: 46 Load 48(f16) 107 57: 46 FMul 55 56 108 58: 46 Load 48(f16) 109 59: 46 Load 48(f16) 110 60: 46 FDiv 58 59 111 61: 46 Load 48(f16) 112 62: 46 Load 48(f16) 113 63: 46 FAdd 62 61 114 Store 48(f16) 63 115 64: 46 Load 48(f16) 116 65: 46 Load 48(f16) 117 66: 46 FSub 65 64 118 Store 48(f16) 66 119 67: 46 Load 48(f16) 120 68: 46 Load 48(f16) 121 69: 46 FMul 68 67 122 Store 48(f16) 69 123 70: 46 Load 48(f16) 124 71: 46 Load 48(f16) 125 72: 46 FDiv 71 70 126 Store 48(f16) 72 127 73: 46 Load 48(f16) 128 75: 46 MatrixTimesScalar 73 74 129 76: 46 Load 48(f16) 130 77: 46 MatrixTimesScalar 76 74 131 78: 46 Load 48(f16) 132 79: 46 MatrixTimesScalar 78 74 133 Store 48(f16) 79 134 83: 80 Load 82(u32) 135 84: 80 Load 82(u32) 136 85: 80 IAdd 83 84 137 86: 80 Load 82(u32) 138 87: 80 Load 82(u32) 139 88: 80 ISub 86 87 140 89: 80 Load 82(u32) 141 90: 80 Load 82(u32) 142 91: 80 IMul 89 90 143 92: 80 Load 82(u32) 144 93: 80 Load 82(u32) 145 94: 80 UDiv 92 93 146 95: 80 Load 82(u32) 147 96: 80 Load 82(u32) 148 97: 80 IAdd 96 95 149 Store 82(u32) 97 150 98: 80 Load 82(u32) 151 99: 80 Load 82(u32) 152 100: 80 ISub 99 98 153 Store 82(u32) 100 154 101: 80 Load 82(u32) 155 102: 80 Load 82(u32) 156 103: 80 IMul 102 101 157 Store 82(u32) 103 158 104: 80 Load 82(u32) 159 105: 80 Load 82(u32) 160 106: 80 UDiv 105 104 161 Store 82(u32) 106 162 107: 80 Load 82(u32) 163 109: 80 MatrixTimesScalar 107 108 164 110: 80 Load 82(u32) 165 111: 80 MatrixTimesScalar 110 108 166 112: 80 Load 82(u32) 167 113: 80 MatrixTimesScalar 112 108 168 Store 82(u32) 113 169 118: 115 Load 117(u8) 170 119: 115 Load 117(u8) 171 120: 115 IAdd 118 119 172 121: 115 Load 117(u8) 173 122: 115 Load 117(u8) 174 123: 115 ISub 121 122 175 124: 115 Load 117(u8) 176 125: 115 Load 117(u8) 177 126: 115 IMul 124 125 178 127: 115 Load 117(u8) 179 128: 115 Load 117(u8) 180 129: 115 UDiv 127 128 181 130: 115 Load 117(u8) 182 131: 115 Load 117(u8) 183 132: 115 IAdd 131 130 184 Store 117(u8) 132 185 133: 115 Load 117(u8) 186 134: 115 Load 117(u8) 187 135: 115 ISub 134 133 188 Store 117(u8) 135 189 136: 115 Load 117(u8) 190 137: 115 Load 117(u8) 191 138: 115 IMul 137 136 192 Store 117(u8) 138 193 139: 115 Load 117(u8) 194 140: 115 Load 117(u8) 195 141: 115 UDiv 140 139 196 Store 117(u8) 141 197 142: 115 Load 117(u8) 198 144: 115 MatrixTimesScalar 142 143 199 145: 115 Load 117(u8) 200 146: 115 MatrixTimesScalar 145 143 201 147: 115 Load 117(u8) 202 148: 115 MatrixTimesScalar 147 143 203 Store 117(u8) 148 204 153: 150 Load 152(i8) 205 154: 150 Load 152(i8) 206 155: 150 IAdd 153 154 207 156: 150 Load 152(i8) 208 157: 150 Load 152(i8) 209 158: 150 ISub 156 157 210 159: 150 Load 152(i8) 211 160: 150 Load 152(i8) 212 161: 150 IMul 159 160 213 162: 150 Load 152(i8) 214 163: 150 Load 152(i8) 215 164: 150 SDiv 162 163 216 165: 150 Load 152(i8) 217 166: 150 Load 152(i8) 218 167: 150 IAdd 166 165 219 Store 152(i8) 167 220 168: 150 Load 152(i8) 221 169: 150 Load 152(i8) 222 170: 150 ISub 169 168 223 Store 152(i8) 170 224 171: 150 Load 152(i8) 225 172: 150 Load 152(i8) 226 173: 150 IMul 172 171 227 Store 152(i8) 173 228 174: 150 Load 152(i8) 229 175: 150 Load 152(i8) 230 176: 150 SDiv 175 174 231 Store 152(i8) 176 232 177: 150 Load 152(i8) 233 179: 150 MatrixTimesScalar 177 178 234 180: 150 Load 152(i8) 235 181: 150 MatrixTimesScalar 180 178 236 182: 150 Load 152(i8) 237 183: 150 MatrixTimesScalar 182 178 238 Store 152(i8) 183 239 184: 11 Load 13(f) 240 185: 11 FNegate 184 241 186: 46 Load 48(f16) 242 187: 46 FNegate 186 243 188: 150 Load 152(i8) 244 189: 150 SNegate 188 245 190: 115 Load 117(u8) 246 191: 115 SNegate 190 247 Return 248 FunctionEnd 249