@@ -40,13 +40,13 @@ fn test_matrix_within_struct_accesses() {
4040 idx -- ;
4141
4242 // loads
43- _ = baz . m ;
44- _ = baz . m [0 ];
45- _ = baz . m [idx ];
46- _ = baz . m [0 ][1 ];
47- _ = baz . m [0 ][idx ];
48- _ = baz . m [idx ][1 ];
49- _ = baz . m [idx ][idx ];
43+ let l0 = baz . m ;
44+ let l1 = baz . m [0 ];
45+ let l2 = baz . m [idx ];
46+ let l3 = baz . m [0 ][1 ];
47+ let l4 = baz . m [0 ][idx ];
48+ let l5 = baz . m [idx ][1 ];
49+ let l6 = baz . m [idx ][idx ];
5050
5151 var t = Baz (mat3x2 <f32 >(vec2 <f32 >(1 .0 ), vec2 <f32 >(2 .0 ), vec2 <f32 >(3 .0 )));
5252
@@ -75,14 +75,14 @@ fn test_matrix_within_array_within_struct_accesses() {
7575 idx -- ;
7676
7777 // loads
78- _ = nested_mat_cx2 . am ;
79- _ = nested_mat_cx2 . am [0 ];
80- _ = nested_mat_cx2 . am [0 ][0 ];
81- _ = nested_mat_cx2 . am [0 ][idx ];
82- _ = nested_mat_cx2 . am [0 ][0 ][1 ];
83- _ = nested_mat_cx2 . am [0 ][0 ][idx ];
84- _ = nested_mat_cx2 . am [0 ][idx ][1 ];
85- _ = nested_mat_cx2 . am [0 ][idx ][idx ];
78+ let l0 = nested_mat_cx2 . am ;
79+ let l1 = nested_mat_cx2 . am [0 ];
80+ let l2 = nested_mat_cx2 . am [0 ][0 ];
81+ let l3 = nested_mat_cx2 . am [0 ][idx ];
82+ let l4 = nested_mat_cx2 . am [0 ][0 ][1 ];
83+ let l5 = nested_mat_cx2 . am [0 ][0 ][idx ];
84+ let l6 = nested_mat_cx2 . am [0 ][idx ][1 ];
85+ let l7 = nested_mat_cx2 . am [0 ][idx ][idx ];
8686
8787 var t = MatCx2InArray (array <mat4x2 <f32 >, 2 >());
8888
@@ -134,7 +134,7 @@ fn foo_vert(@builtin(vertex_index) vi: u32) -> @builtin(position) vec4<f32> {
134134 c2 [vi + 1u ] = 42 ;
135135 let value = c2 [vi ];
136136
137- _ = test_arr_as_arg (array <array <f32 , 10 >, 5 >());
137+ test_arr_as_arg (array <array <f32 , 10 >, 5 >());
138138
139139 return vec4 <f32 >(_matrix * vec4 <f32 >(vec4 <i32 >(value )), 2 .0 );
140140}
0 commit comments