dawn-cmake/test/tint/buffer/storage/static_index/read_f16.wgsl.expected.spvasm

348 lines
17 KiB
Plaintext
Raw Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 199
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %sb_block "sb_block"
OpMemberName %sb_block 0 "inner"
OpName %S "S"
OpMemberName %S 0 "scalar_f32"
OpMemberName %S 1 "scalar_i32"
OpMemberName %S 2 "scalar_u32"
OpMemberName %S 3 "scalar_f16"
OpMemberName %S 4 "vec2_f32"
OpMemberName %S 5 "vec2_i32"
OpMemberName %S 6 "vec2_u32"
OpMemberName %S 7 "vec2_f16"
OpMemberName %S 8 "vec3_f32"
OpMemberName %S 9 "vec3_i32"
OpMemberName %S 10 "vec3_u32"
OpMemberName %S 11 "vec3_f16"
OpMemberName %S 12 "vec4_f32"
OpMemberName %S 13 "vec4_i32"
OpMemberName %S 14 "vec4_u32"
OpMemberName %S 15 "vec4_f16"
OpMemberName %S 16 "mat2x2_f32"
OpMemberName %S 17 "mat2x3_f32"
OpMemberName %S 18 "mat2x4_f32"
OpMemberName %S 19 "mat3x2_f32"
OpMemberName %S 20 "mat3x3_f32"
OpMemberName %S 21 "mat3x4_f32"
OpMemberName %S 22 "mat4x2_f32"
OpMemberName %S 23 "mat4x3_f32"
OpMemberName %S 24 "mat4x4_f32"
OpMemberName %S 25 "mat2x2_f16"
OpMemberName %S 26 "mat2x3_f16"
OpMemberName %S 27 "mat2x4_f16"
OpMemberName %S 28 "mat3x2_f16"
OpMemberName %S 29 "mat3x3_f16"
OpMemberName %S 30 "mat3x4_f16"
OpMemberName %S 31 "mat4x2_f16"
OpMemberName %S 32 "mat4x3_f16"
OpMemberName %S 33 "mat4x4_f16"
OpMemberName %S 34 "arr2_vec3_f32"
OpMemberName %S 35 "arr2_mat4x2_f16"
OpMemberName %S 36 "struct_inner"
OpName %Inner "Inner"
OpMemberName %Inner 0 "scalar_i32"
OpMemberName %Inner 1 "scalar_f32"
OpMemberName %Inner 2 "scalar_f16"
OpMemberName %S 37 "array_struct_inner"
OpName %sb "sb"
OpName %main "main"
OpDecorate %sb_block Block
OpMemberDecorate %sb_block 0 Offset 0
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 4
OpMemberDecorate %S 2 Offset 8
OpMemberDecorate %S 3 Offset 12
OpMemberDecorate %S 4 Offset 16
OpMemberDecorate %S 5 Offset 24
OpMemberDecorate %S 6 Offset 32
OpMemberDecorate %S 7 Offset 40
OpMemberDecorate %S 8 Offset 48
OpMemberDecorate %S 9 Offset 64
OpMemberDecorate %S 10 Offset 80
OpMemberDecorate %S 11 Offset 96
OpMemberDecorate %S 12 Offset 112
OpMemberDecorate %S 13 Offset 128
OpMemberDecorate %S 14 Offset 144
OpMemberDecorate %S 15 Offset 160
OpMemberDecorate %S 16 Offset 168
OpMemberDecorate %S 16 ColMajor
OpMemberDecorate %S 16 MatrixStride 8
OpMemberDecorate %S 17 Offset 192
OpMemberDecorate %S 17 ColMajor
OpMemberDecorate %S 17 MatrixStride 16
OpMemberDecorate %S 18 Offset 224
OpMemberDecorate %S 18 ColMajor
OpMemberDecorate %S 18 MatrixStride 16
OpMemberDecorate %S 19 Offset 256
OpMemberDecorate %S 19 ColMajor
OpMemberDecorate %S 19 MatrixStride 8
OpMemberDecorate %S 20 Offset 288
OpMemberDecorate %S 20 ColMajor
OpMemberDecorate %S 20 MatrixStride 16
OpMemberDecorate %S 21 Offset 336
OpMemberDecorate %S 21 ColMajor
OpMemberDecorate %S 21 MatrixStride 16
OpMemberDecorate %S 22 Offset 384
OpMemberDecorate %S 22 ColMajor
OpMemberDecorate %S 22 MatrixStride 8
OpMemberDecorate %S 23 Offset 416
OpMemberDecorate %S 23 ColMajor
OpMemberDecorate %S 23 MatrixStride 16
OpMemberDecorate %S 24 Offset 480
OpMemberDecorate %S 24 ColMajor
OpMemberDecorate %S 24 MatrixStride 16
OpMemberDecorate %S 25 Offset 544
OpMemberDecorate %S 25 ColMajor
OpMemberDecorate %S 25 MatrixStride 4
OpMemberDecorate %S 26 Offset 552
OpMemberDecorate %S 26 ColMajor
OpMemberDecorate %S 26 MatrixStride 8
OpMemberDecorate %S 27 Offset 568
OpMemberDecorate %S 27 ColMajor
OpMemberDecorate %S 27 MatrixStride 8
OpMemberDecorate %S 28 Offset 584
OpMemberDecorate %S 28 ColMajor
OpMemberDecorate %S 28 MatrixStride 4
OpMemberDecorate %S 29 Offset 600
OpMemberDecorate %S 29 ColMajor
OpMemberDecorate %S 29 MatrixStride 8
OpMemberDecorate %S 30 Offset 624
OpMemberDecorate %S 30 ColMajor
OpMemberDecorate %S 30 MatrixStride 8
OpMemberDecorate %S 31 Offset 648
OpMemberDecorate %S 31 ColMajor
OpMemberDecorate %S 31 MatrixStride 4
OpMemberDecorate %S 32 Offset 664
OpMemberDecorate %S 32 ColMajor
OpMemberDecorate %S 32 MatrixStride 8
OpMemberDecorate %S 33 Offset 696
OpMemberDecorate %S 33 ColMajor
OpMemberDecorate %S 33 MatrixStride 8
OpMemberDecorate %S 34 Offset 736
OpDecorate %_arr_v3float_uint_2 ArrayStride 16
OpMemberDecorate %S 35 Offset 768
OpMemberDecorate %S 35 ColMajor
OpMemberDecorate %S 35 MatrixStride 4
OpDecorate %_arr_mat4v2half_uint_2 ArrayStride 16
OpMemberDecorate %S 36 Offset 800
OpMemberDecorate %Inner 0 Offset 0
OpMemberDecorate %Inner 1 Offset 4
OpMemberDecorate %Inner 2 Offset 8
OpMemberDecorate %S 37 Offset 812
OpDecorate %_arr_Inner_uint_4 ArrayStride 12
OpDecorate %sb NonWritable
OpDecorate %sb Binding 0
OpDecorate %sb DescriptorSet 0
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%half = OpTypeFloat 16
%v2float = OpTypeVector %float 2
%v2int = OpTypeVector %int 2
%v2uint = OpTypeVector %uint 2
%v2half = OpTypeVector %half 2
%v3float = OpTypeVector %float 3
%v3int = OpTypeVector %int 3
%v3uint = OpTypeVector %uint 3
%v3half = OpTypeVector %half 3
%v4float = OpTypeVector %float 4
%v4int = OpTypeVector %int 4
%v4uint = OpTypeVector %uint 4
%v4half = OpTypeVector %half 4
%mat2v2float = OpTypeMatrix %v2float 2
%mat2v3float = OpTypeMatrix %v3float 2
%mat2v4float = OpTypeMatrix %v4float 2
%mat3v2float = OpTypeMatrix %v2float 3
%mat3v3float = OpTypeMatrix %v3float 3
%mat3v4float = OpTypeMatrix %v4float 3
%mat4v2float = OpTypeMatrix %v2float 4
%mat4v3float = OpTypeMatrix %v3float 4
%mat4v4float = OpTypeMatrix %v4float 4
%mat2v2half = OpTypeMatrix %v2half 2
%mat2v3half = OpTypeMatrix %v3half 2
%mat2v4half = OpTypeMatrix %v4half 2
%mat3v2half = OpTypeMatrix %v2half 3
%mat3v3half = OpTypeMatrix %v3half 3
%mat3v4half = OpTypeMatrix %v4half 3
%mat4v2half = OpTypeMatrix %v2half 4
%mat4v3half = OpTypeMatrix %v3half 4
%mat4v4half = OpTypeMatrix %v4half 4
%uint_2 = OpConstant %uint 2
%_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2
%_arr_mat4v2half_uint_2 = OpTypeArray %mat4v2half %uint_2
%Inner = OpTypeStruct %int %float %half
%uint_4 = OpConstant %uint 4
%_arr_Inner_uint_4 = OpTypeArray %Inner %uint_4
%S = OpTypeStruct %float %int %uint %half %v2float %v2int %v2uint %v2half %v3float %v3int %v3uint %v3half %v4float %v4int %v4uint %v4half %mat2v2float %mat2v3float %mat2v4float %mat3v2float %mat3v3float %mat3v4float %mat4v2float %mat4v3float %mat4v4float %mat2v2half %mat2v3half %mat2v4half %mat3v2half %mat3v3half %mat3v4half %mat4v2half %mat4v3half %mat4v4half %_arr_v3float_uint_2 %_arr_mat4v2half_uint_2 %Inner %_arr_Inner_uint_4
%sb_block = OpTypeStruct %S
%_ptr_StorageBuffer_sb_block = OpTypePointer StorageBuffer %sb_block
%sb = OpVariable %_ptr_StorageBuffer_sb_block StorageBuffer
%void = OpTypeVoid
%45 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%uint_1 = OpConstant %uint 1
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_3 = OpConstant %uint 3
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
%uint_5 = OpConstant %uint 5
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
%uint_6 = OpConstant %uint 6
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
%uint_7 = OpConstant %uint 7
%_ptr_StorageBuffer_v2half = OpTypePointer StorageBuffer %v2half
%uint_8 = OpConstant %uint 8
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%uint_9 = OpConstant %uint 9
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
%uint_10 = OpConstant %uint 10
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
%uint_11 = OpConstant %uint 11
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%uint_12 = OpConstant %uint 12
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
%uint_13 = OpConstant %uint 13
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%uint_14 = OpConstant %uint 14
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
%uint_15 = OpConstant %uint 15
%_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half
%uint_16 = OpConstant %uint 16
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
%uint_17 = OpConstant %uint 17
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
%uint_18 = OpConstant %uint 18
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
%uint_19 = OpConstant %uint 19
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
%uint_20 = OpConstant %uint 20
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
%uint_21 = OpConstant %uint 21
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
%uint_22 = OpConstant %uint 22
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
%uint_23 = OpConstant %uint 23
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
%uint_24 = OpConstant %uint 24
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
%uint_25 = OpConstant %uint 25
%_ptr_StorageBuffer_mat2v2half = OpTypePointer StorageBuffer %mat2v2half
%uint_26 = OpConstant %uint 26
%_ptr_StorageBuffer_mat2v3half = OpTypePointer StorageBuffer %mat2v3half
%uint_27 = OpConstant %uint 27
%_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half
%uint_28 = OpConstant %uint 28
%_ptr_StorageBuffer_mat3v2half = OpTypePointer StorageBuffer %mat3v2half
%uint_29 = OpConstant %uint 29
%_ptr_StorageBuffer_mat3v3half = OpTypePointer StorageBuffer %mat3v3half
%uint_30 = OpConstant %uint 30
%_ptr_StorageBuffer_mat3v4half = OpTypePointer StorageBuffer %mat3v4half
%uint_31 = OpConstant %uint 31
%_ptr_StorageBuffer_mat4v2half = OpTypePointer StorageBuffer %mat4v2half
%uint_32 = OpConstant %uint 32
%_ptr_StorageBuffer_mat4v3half = OpTypePointer StorageBuffer %mat4v3half
%uint_33 = OpConstant %uint 33
%_ptr_StorageBuffer_mat4v4half = OpTypePointer StorageBuffer %mat4v4half
%uint_34 = OpConstant %uint 34
%_ptr_StorageBuffer__arr_v3float_uint_2 = OpTypePointer StorageBuffer %_arr_v3float_uint_2
%uint_35 = OpConstant %uint 35
%_ptr_StorageBuffer__arr_mat4v2half_uint_2 = OpTypePointer StorageBuffer %_arr_mat4v2half_uint_2
%uint_36 = OpConstant %uint 36
%_ptr_StorageBuffer_Inner = OpTypePointer StorageBuffer %Inner
%uint_37 = OpConstant %uint 37
%_ptr_StorageBuffer__arr_Inner_uint_4 = OpTypePointer StorageBuffer %_arr_Inner_uint_4
%main = OpFunction %void None %45
%48 = OpLabel
%51 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
%52 = OpLoad %float %51
%55 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
%56 = OpLoad %int %55
%58 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
%59 = OpLoad %uint %58
%62 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_3
%63 = OpLoad %half %62
%65 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_4
%66 = OpLoad %v2float %65
%69 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_5
%70 = OpLoad %v2int %69
%73 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_6
%74 = OpLoad %v2uint %73
%77 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %uint_7
%78 = OpLoad %v2half %77
%81 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_8
%82 = OpLoad %v3float %81
%85 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_9
%86 = OpLoad %v3int %85
%89 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_10
%90 = OpLoad %v3uint %89
%93 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_11
%94 = OpLoad %v3half %93
%97 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_12
%98 = OpLoad %v4float %97
%101 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_13
%102 = OpLoad %v4int %101
%105 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_14
%106 = OpLoad %v4uint %105
%109 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %uint_15
%110 = OpLoad %v4half %109
%113 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_16
%114 = OpLoad %mat2v2float %113
%117 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %uint_17
%118 = OpLoad %mat2v3float %117
%121 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_18
%122 = OpLoad %mat2v4float %121
%125 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_19
%126 = OpLoad %mat3v2float %125
%129 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %uint_20
%130 = OpLoad %mat3v3float %129
%133 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_21
%134 = OpLoad %mat3v4float %133
%137 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_22
%138 = OpLoad %mat4v2float %137
%141 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %uint_23
%142 = OpLoad %mat4v3float %141
%145 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_24
%146 = OpLoad %mat4v4float %145
%149 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %uint_25
%150 = OpLoad %mat2v2half %149
%153 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %sb %uint_0 %uint_26
%154 = OpLoad %mat2v3half %153
%157 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %uint_27
%158 = OpLoad %mat2v4half %157
%161 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %uint_28
%162 = OpLoad %mat3v2half %161
%165 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %sb %uint_0 %uint_29
%166 = OpLoad %mat3v3half %165
%169 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %uint_30
%170 = OpLoad %mat3v4half %169
%173 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %uint_31
%174 = OpLoad %mat4v2half %173
%177 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %sb %uint_0 %uint_32
%178 = OpLoad %mat4v3half %177
%181 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %uint_33
%182 = OpLoad %mat4v4half %181
%185 = OpAccessChain %_ptr_StorageBuffer__arr_v3float_uint_2 %sb %uint_0 %uint_34
%186 = OpLoad %_arr_v3float_uint_2 %185
%189 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %uint_35
%190 = OpLoad %_arr_mat4v2half_uint_2 %189
%193 = OpAccessChain %_ptr_StorageBuffer_Inner %sb %uint_0 %uint_36
%194 = OpLoad %Inner %193
%197 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %sb %uint_0 %uint_37
%198 = OpLoad %_arr_Inner_uint_4 %197
OpReturn
OpFunctionEnd