diff --git a/test/bug/tint/1046.wgsl b/test/bug/tint/1046.wgsl index c288728636..97088c9fe5 100644 --- a/test/bug/tint/1046.wgsl +++ b/test/bug/tint/1046.wgsl @@ -69,11 +69,11 @@ fn main(fragment : FragmentInput) -> FragmentOutput { var output : FragmentOutput; output.color = vec4(1.0, 0.0, 0.0, 1.0); - ignore(uniforms); - ignore(mySampler); - ignore(myTexture); + _ = uniforms; + _ = mySampler; + _ = myTexture; - ignore(pointLights); + _ = &pointLights; // output.color.x = output.color.x + pointLights.values[0].position.x; return output; diff --git a/test/bug/tint/1046.wgsl.expected.hlsl b/test/bug/tint/1046.wgsl.expected.hlsl index d37918bdc3..e3e72045ce 100644 --- a/test/bug/tint/1046.wgsl.expected.hlsl +++ b/test/bug/tint/1046.wgsl.expected.hlsl @@ -51,10 +51,6 @@ struct tint_symbol_2 { FragmentOutput main_inner(FragmentInput fragment) { FragmentOutput output = (FragmentOutput)0; output.color = float4(1.0f, 0.0f, 0.0f, 1.0f); - uniforms; - mySampler; - myTexture; - pointLights; return output; } diff --git a/test/bug/tint/1046.wgsl.expected.msl b/test/bug/tint/1046.wgsl.expected.msl index ac5baa16f1..630174a263 100644 --- a/test/bug/tint/1046.wgsl.expected.msl +++ b/test/bug/tint/1046.wgsl.expected.msl @@ -56,19 +56,15 @@ float4 getColor(constant Uniforms& uniforms, FragmentInput tint_symbol, texture2 return color; } -FragmentOutput tint_symbol_1_inner(constant Uniforms& uniforms, const device PointLights& pointLights, FragmentInput tint_symbol, sampler tint_symbol_8, texture2d tint_symbol_9) { +FragmentOutput tint_symbol_1_inner(FragmentInput tint_symbol, sampler tint_symbol_8, texture2d tint_symbol_9) { FragmentOutput output = {}; output.color = float4(1.0f, 0.0f, 0.0f, 1.0f); - (void) uniforms; - (void) tint_symbol_8; - (void) tint_symbol_9; - (void) pointLights; return output; } -fragment tint_symbol_4 tint_symbol_1(sampler tint_symbol_10 [[sampler(0)]], texture2d tint_symbol_11 [[texture(0)]], float4 position [[position]], tint_symbol_3 tint_symbol_2 [[stage_in]], constant Uniforms& uniforms [[buffer(0)]], const device PointLights& pointLights [[buffer(1)]]) { +fragment tint_symbol_4 tint_symbol_1(sampler tint_symbol_10 [[sampler(0)]], texture2d tint_symbol_11 [[texture(0)]], float4 position [[position]], tint_symbol_3 tint_symbol_2 [[stage_in]]) { FragmentInput const tint_symbol_5 = {.position=position, .view_position=tint_symbol_2.view_position, .normal=tint_symbol_2.normal, .uv=tint_symbol_2.uv, .color=tint_symbol_2.color}; - FragmentOutput const inner_result = tint_symbol_1_inner(uniforms, pointLights, tint_symbol_5, tint_symbol_10, tint_symbol_11); + FragmentOutput const inner_result = tint_symbol_1_inner(tint_symbol_5, tint_symbol_10, tint_symbol_11); tint_symbol_4 wrapper_result = {}; wrapper_result.color = inner_result.color; return wrapper_result; diff --git a/test/bug/tint/1046.wgsl.expected.spvasm b/test/bug/tint/1046.wgsl.expected.spvasm index be371f03f8..bcf15dc40e 100644 --- a/test/bug/tint/1046.wgsl.expected.spvasm +++ b/test/bug/tint/1046.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 110 +; Bound: 107 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 @@ -128,7 +128,7 @@ %float_0 = OpConstant %float 0 %92 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 %void = OpTypeVoid - %99 = OpTypeFunction %void + %95 = OpTypeFunction %void %getColor = OpFunction %v4float None %30 %fragment = OpFunctionParameter %FragmentInput %34 = OpLabel @@ -195,19 +195,19 @@ %output = OpVariable %_ptr_Function_FragmentOutput Function %89 %90 = OpAccessChain %_ptr_Function_v4float %output %uint_0 OpStore %90 %92 - %98 = OpLoad %FragmentOutput %output - OpReturnValue %98 + %94 = OpLoad %FragmentOutput %output + OpReturnValue %94 OpFunctionEnd - %main = OpFunction %void None %99 - %101 = OpLabel - %103 = OpLoad %v4float %position_1 - %104 = OpLoad %v4float %view_position_1 - %105 = OpLoad %v4float %normal_1 - %106 = OpLoad %v2float %uv_1 - %107 = OpLoad %v4float %color_1 - %108 = OpCompositeConstruct %FragmentInput %103 %104 %105 %106 %107 - %102 = OpFunctionCall %FragmentOutput %main_inner %108 - %109 = OpCompositeExtract %v4float %102 0 - OpStore %color_2 %109 + %main = OpFunction %void None %95 + %98 = OpLabel + %100 = OpLoad %v4float %position_1 + %101 = OpLoad %v4float %view_position_1 + %102 = OpLoad %v4float %normal_1 + %103 = OpLoad %v2float %uv_1 + %104 = OpLoad %v4float %color_1 + %105 = OpCompositeConstruct %FragmentInput %100 %101 %102 %103 %104 + %99 = OpFunctionCall %FragmentOutput %main_inner %105 + %106 = OpCompositeExtract %v4float %99 0 + OpStore %color_2 %106 OpReturn OpFunctionEnd diff --git a/test/bug/tint/1046.wgsl.expected.wgsl b/test/bug/tint/1046.wgsl.expected.wgsl index f041af84df..d29c519896 100644 --- a/test/bug/tint/1046.wgsl.expected.wgsl +++ b/test/bug/tint/1046.wgsl.expected.wgsl @@ -61,9 +61,9 @@ fn getColor(fragment : FragmentInput) -> vec4 { fn main(fragment : FragmentInput) -> FragmentOutput { var output : FragmentOutput; output.color = vec4(1.0, 0.0, 0.0, 1.0); - ignore(uniforms); - ignore(mySampler); - ignore(myTexture); - ignore(pointLights); + _ = uniforms; + _ = mySampler; + _ = myTexture; + _ = &(pointLights); return output; } diff --git a/test/bug/tint/959.wgsl b/test/bug/tint/959.wgsl index 8059799b4b..91092b7019 100644 --- a/test/bug/tint/959.wgsl +++ b/test/bug/tint/959.wgsl @@ -61,54 +61,54 @@ struct S { [[stage(fragment)]] fn main() { - ignore(b0); - ignore(b1); - ignore(b2); - ignore(b3); - ignore(b4); - ignore(b5); - ignore(b6); - ignore(b7); - ignore(b8); - ignore(b9); - ignore(b10); - ignore(b11); - ignore(b12); - ignore(b13); - ignore(b14); - ignore(b15); + _ = b0; + _ = b1; + _ = b2; + _ = b3; + _ = b4; + _ = b5; + _ = b6; + _ = b7; + _ = b8; + _ = b9; + _ = b10; + _ = b11; + _ = b12; + _ = b13; + _ = b14; + _ = b15; - ignore(t0); - ignore(t1); - ignore(t2); - ignore(t3); - ignore(t4); - ignore(t5); - ignore(t6); - ignore(t7); - ignore(t8); - ignore(t9); - ignore(t10); - ignore(t11); - ignore(t12); - ignore(t13); - ignore(t14); - ignore(t15); + _ = t0; + _ = t1; + _ = t2; + _ = t3; + _ = t4; + _ = t5; + _ = t6; + _ = t7; + _ = t8; + _ = t9; + _ = t10; + _ = t11; + _ = t12; + _ = t13; + _ = t14; + _ = t15; - ignore(s0); - ignore(s1); - ignore(s2); - ignore(s3); - ignore(s4); - ignore(s5); - ignore(s6); - ignore(s7); - ignore(s8); - ignore(s9); - ignore(s10); - ignore(s11); - ignore(s12); - ignore(s13); - ignore(s14); - ignore(s15); + _ = s0; + _ = s1; + _ = s2; + _ = s3; + _ = s4; + _ = s5; + _ = s6; + _ = s7; + _ = s8; + _ = s9; + _ = s10; + _ = s11; + _ = s12; + _ = s13; + _ = s14; + _ = s15; } diff --git a/test/bug/tint/959.wgsl.expected.hlsl b/test/bug/tint/959.wgsl.expected.hlsl index f6ff094711..7c09714e84 100644 --- a/test/bug/tint/959.wgsl.expected.hlsl +++ b/test/bug/tint/959.wgsl.expected.hlsl @@ -64,53 +64,5 @@ SamplerComparisonState s14 : register(s300, space14); SamplerComparisonState s15 : register(s300, space15); void main() { - b0; - b1; - b2; - b3; - b4; - b5; - b6; - b7; - b8; - b9; - b10; - b11; - b12; - b13; - b14; - b15; - t0; - t1; - t2; - t3; - t4; - t5; - t6; - t7; - t8; - t9; - t10; - t11; - t12; - t13; - t14; - t15; - s0; - s1; - s2; - s3; - s4; - s5; - s6; - s7; - s8; - s9; - s10; - s11; - s12; - s13; - s14; - s15; return; } diff --git a/test/bug/tint/959.wgsl.expected.msl b/test/bug/tint/959.wgsl.expected.msl index 45a2da5f55..30bcc721d1 100644 --- a/test/bug/tint/959.wgsl.expected.msl +++ b/test/bug/tint/959.wgsl.expected.msl @@ -5,55 +5,7 @@ struct S { /* 0x0000 */ float a; }; -fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], texture2d tint_symbol_2 [[texture(1)]], texture2d tint_symbol_3 [[texture(2)]], texture2d tint_symbol_4 [[texture(3)]], texture2d tint_symbol_5 [[texture(4)]], texture2d tint_symbol_6 [[texture(5)]], texture2d tint_symbol_7 [[texture(6)]], texture2d tint_symbol_8 [[texture(7)]], depth2d tint_symbol_9 [[texture(8)]], depth2d tint_symbol_10 [[texture(9)]], depth2d tint_symbol_11 [[texture(10)]], depth2d tint_symbol_12 [[texture(11)]], depth2d tint_symbol_13 [[texture(12)]], depth2d tint_symbol_14 [[texture(13)]], depth2d tint_symbol_15 [[texture(14)]], depth2d tint_symbol_16 [[texture(15)]], sampler tint_symbol_17 [[sampler(0)]], sampler tint_symbol_18 [[sampler(1)]], sampler tint_symbol_19 [[sampler(2)]], sampler tint_symbol_20 [[sampler(3)]], sampler tint_symbol_21 [[sampler(4)]], sampler tint_symbol_22 [[sampler(5)]], sampler tint_symbol_23 [[sampler(6)]], sampler tint_symbol_24 [[sampler(7)]], sampler tint_symbol_25 [[sampler(8)]], sampler tint_symbol_26 [[sampler(9)]], sampler tint_symbol_27 [[sampler(10)]], sampler tint_symbol_28 [[sampler(11)]], sampler tint_symbol_29 [[sampler(12)]], sampler tint_symbol_30 [[sampler(13)]], sampler tint_symbol_31 [[sampler(14)]], sampler tint_symbol_32 [[sampler(15)]], constant S& b8 [[buffer(0)]], constant S& b9 [[buffer(1)]], constant S& b10 [[buffer(2)]], constant S& b11 [[buffer(3)]], constant S& b12 [[buffer(4)]], constant S& b13 [[buffer(5)]], constant S& b14 [[buffer(6)]], constant S& b15 [[buffer(7)]], const device S& b0 [[buffer(8)]], const device S& b1 [[buffer(9)]], const device S& b2 [[buffer(10)]], const device S& b3 [[buffer(11)]], const device S& b4 [[buffer(12)]], const device S& b5 [[buffer(13)]], const device S& b6 [[buffer(14)]], const device S& b7 [[buffer(15)]]) { - (void) b0; - (void) b1; - (void) b2; - (void) b3; - (void) b4; - (void) b5; - (void) b6; - (void) b7; - (void) b8; - (void) b9; - (void) b10; - (void) b11; - (void) b12; - (void) b13; - (void) b14; - (void) b15; - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; - (void) tint_symbol_4; - (void) tint_symbol_5; - (void) tint_symbol_6; - (void) tint_symbol_7; - (void) tint_symbol_8; - (void) tint_symbol_9; - (void) tint_symbol_10; - (void) tint_symbol_11; - (void) tint_symbol_12; - (void) tint_symbol_13; - (void) tint_symbol_14; - (void) tint_symbol_15; - (void) tint_symbol_16; - (void) tint_symbol_17; - (void) tint_symbol_18; - (void) tint_symbol_19; - (void) tint_symbol_20; - (void) tint_symbol_21; - (void) tint_symbol_22; - (void) tint_symbol_23; - (void) tint_symbol_24; - (void) tint_symbol_25; - (void) tint_symbol_26; - (void) tint_symbol_27; - (void) tint_symbol_28; - (void) tint_symbol_29; - (void) tint_symbol_30; - (void) tint_symbol_31; - (void) tint_symbol_32; +fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], texture2d tint_symbol_2 [[texture(1)]], texture2d tint_symbol_3 [[texture(2)]], texture2d tint_symbol_4 [[texture(3)]], texture2d tint_symbol_5 [[texture(4)]], texture2d tint_symbol_6 [[texture(5)]], texture2d tint_symbol_7 [[texture(6)]], texture2d tint_symbol_8 [[texture(7)]], depth2d tint_symbol_9 [[texture(8)]], depth2d tint_symbol_10 [[texture(9)]], depth2d tint_symbol_11 [[texture(10)]], depth2d tint_symbol_12 [[texture(11)]], depth2d tint_symbol_13 [[texture(12)]], depth2d tint_symbol_14 [[texture(13)]], depth2d tint_symbol_15 [[texture(14)]], depth2d tint_symbol_16 [[texture(15)]], sampler tint_symbol_17 [[sampler(0)]], sampler tint_symbol_18 [[sampler(1)]], sampler tint_symbol_19 [[sampler(2)]], sampler tint_symbol_20 [[sampler(3)]], sampler tint_symbol_21 [[sampler(4)]], sampler tint_symbol_22 [[sampler(5)]], sampler tint_symbol_23 [[sampler(6)]], sampler tint_symbol_24 [[sampler(7)]], sampler tint_symbol_25 [[sampler(8)]], sampler tint_symbol_26 [[sampler(9)]], sampler tint_symbol_27 [[sampler(10)]], sampler tint_symbol_28 [[sampler(11)]], sampler tint_symbol_29 [[sampler(12)]], sampler tint_symbol_30 [[sampler(13)]], sampler tint_symbol_31 [[sampler(14)]], sampler tint_symbol_32 [[sampler(15)]]) { return; } diff --git a/test/bug/tint/959.wgsl.expected.spvasm b/test/bug/tint/959.wgsl.expected.spvasm index de2df146b5..d62963152b 100644 --- a/test/bug/tint/959.wgsl.expected.spvasm +++ b/test/bug/tint/959.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 112 +; Bound: 64 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/bug/tint/959.wgsl.expected.wgsl b/test/bug/tint/959.wgsl.expected.wgsl index 925d3da731..3936db7ae7 100644 --- a/test/bug/tint/959.wgsl.expected.wgsl +++ b/test/bug/tint/959.wgsl.expected.wgsl @@ -101,52 +101,52 @@ struct S { [[stage(fragment)]] fn main() { - ignore(b0); - ignore(b1); - ignore(b2); - ignore(b3); - ignore(b4); - ignore(b5); - ignore(b6); - ignore(b7); - ignore(b8); - ignore(b9); - ignore(b10); - ignore(b11); - ignore(b12); - ignore(b13); - ignore(b14); - ignore(b15); - ignore(t0); - ignore(t1); - ignore(t2); - ignore(t3); - ignore(t4); - ignore(t5); - ignore(t6); - ignore(t7); - ignore(t8); - ignore(t9); - ignore(t10); - ignore(t11); - ignore(t12); - ignore(t13); - ignore(t14); - ignore(t15); - ignore(s0); - ignore(s1); - ignore(s2); - ignore(s3); - ignore(s4); - ignore(s5); - ignore(s6); - ignore(s7); - ignore(s8); - ignore(s9); - ignore(s10); - ignore(s11); - ignore(s12); - ignore(s13); - ignore(s14); - ignore(s15); + _ = b0; + _ = b1; + _ = b2; + _ = b3; + _ = b4; + _ = b5; + _ = b6; + _ = b7; + _ = b8; + _ = b9; + _ = b10; + _ = b11; + _ = b12; + _ = b13; + _ = b14; + _ = b15; + _ = t0; + _ = t1; + _ = t2; + _ = t3; + _ = t4; + _ = t5; + _ = t6; + _ = t7; + _ = t8; + _ = t9; + _ = t10; + _ = t11; + _ = t12; + _ = t13; + _ = t14; + _ = t15; + _ = s0; + _ = s1; + _ = s2; + _ = s3; + _ = s4; + _ = s5; + _ = s6; + _ = s7; + _ = s8; + _ = s9; + _ = s10; + _ = s11; + _ = s12; + _ = s13; + _ = s14; + _ = s15; } diff --git a/test/intrinsics/repeated_use.wgsl b/test/intrinsics/repeated_use.wgsl index 24a8370b30..8a5e175072 100644 --- a/test/intrinsics/repeated_use.wgsl +++ b/test/intrinsics/repeated_use.wgsl @@ -2,19 +2,19 @@ // same intrinsic overload results in single helper being generated. [[stage(compute), workgroup_size(1)]] fn main() { - ignore(isNormal(vec4())); - ignore(isNormal(vec4(1.))); - ignore(isNormal(vec4(1., 2., 3., 4.))); + _ = isNormal(vec4()); + _ = isNormal(vec4(1.)); + _ = isNormal(vec4(1., 2., 3., 4.)); - ignore(isNormal(vec3())); - ignore(isNormal(vec3(1.))); - ignore(isNormal(vec3(1., 2., 3.))); + _ = isNormal(vec3()); + _ = isNormal(vec3(1.)); + _ = isNormal(vec3(1., 2., 3.)); - ignore(isNormal(vec2())); - ignore(isNormal(vec2(1.))); - ignore(isNormal(vec2(1., 2.))); + _ = isNormal(vec2()); + _ = isNormal(vec2(1.)); + _ = isNormal(vec2(1., 2.)); - ignore(isNormal(1.)); - ignore(isNormal(2.)); - ignore(isNormal(3.)); + _ = isNormal(1.); + _ = isNormal(2.); + _ = isNormal(3.); } diff --git a/test/intrinsics/repeated_use.wgsl.expected.hlsl b/test/intrinsics/repeated_use.wgsl.expected.hlsl index c89b9fb7b9..f0a247f690 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.hlsl +++ b/test/intrinsics/repeated_use.wgsl.expected.hlsl @@ -24,17 +24,17 @@ bool tint_isNormal_3(float param_0) { [numthreads(1, 1, 1)] void main() { - tint_isNormal(float4(0.0f, 0.0f, 0.0f, 0.0f)); - tint_isNormal(float4((1.0f).xxxx)); - tint_isNormal(float4(1.0f, 2.0f, 3.0f, 4.0f)); - tint_isNormal_1(float3(0.0f, 0.0f, 0.0f)); - tint_isNormal_1(float3((1.0f).xxx)); - tint_isNormal_1(float3(1.0f, 2.0f, 3.0f)); - tint_isNormal_2(float2(0.0f, 0.0f)); - tint_isNormal_2(float2((1.0f).xx)); - tint_isNormal_2(float2(1.0f, 2.0f)); - tint_isNormal_3(1.0f); - tint_isNormal_3(2.0f); - tint_isNormal_3(3.0f); + (void) tint_isNormal(float4(0.0f, 0.0f, 0.0f, 0.0f)); + (void) tint_isNormal(float4((1.0f).xxxx)); + (void) tint_isNormal(float4(1.0f, 2.0f, 3.0f, 4.0f)); + (void) tint_isNormal_1(float3(0.0f, 0.0f, 0.0f)); + (void) tint_isNormal_1(float3((1.0f).xxx)); + (void) tint_isNormal_1(float3(1.0f, 2.0f, 3.0f)); + (void) tint_isNormal_2(float2(0.0f, 0.0f)); + (void) tint_isNormal_2(float2((1.0f).xx)); + (void) tint_isNormal_2(float2(1.0f, 2.0f)); + (void) tint_isNormal_3(1.0f); + (void) tint_isNormal_3(2.0f); + (void) tint_isNormal_3(3.0f); return; } diff --git a/test/intrinsics/repeated_use.wgsl.expected.msl b/test/intrinsics/repeated_use.wgsl.expected.msl index 16b96984ed..3b233ce83f 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.msl +++ b/test/intrinsics/repeated_use.wgsl.expected.msl @@ -2,18 +2,18 @@ using namespace metal; kernel void tint_symbol() { - (void) isnormal(float4()); - (void) isnormal(float4(1.0f)); - (void) isnormal(float4(1.0f, 2.0f, 3.0f, 4.0f)); - (void) isnormal(float3()); - (void) isnormal(float3(1.0f)); - (void) isnormal(float3(1.0f, 2.0f, 3.0f)); - (void) isnormal(float2()); - (void) isnormal(float2(1.0f)); - (void) isnormal(float2(1.0f, 2.0f)); - (void) isnormal(1.0f); - (void) isnormal(2.0f); - (void) isnormal(3.0f); + isnormal(float4()); + isnormal(float4(1.0f)); + isnormal(float4(1.0f, 2.0f, 3.0f, 4.0f)); + isnormal(float3()); + isnormal(float3(1.0f)); + isnormal(float3(1.0f, 2.0f, 3.0f)); + isnormal(float2()); + isnormal(float2(1.0f)); + isnormal(float2(1.0f, 2.0f)); + isnormal(1.0f); + isnormal(2.0f); + isnormal(3.0f); return; } diff --git a/test/intrinsics/repeated_use.wgsl.expected.spvasm b/test/intrinsics/repeated_use.wgsl.expected.spvasm index 42acf47552..e3eed027be 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.spvasm +++ b/test/intrinsics/repeated_use.wgsl.expected.spvasm @@ -1,10 +1,10 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 121 +; Bound: 109 ; Schema: 0 OpCapability Shader - %12 = OpExtInstImport "GLSL.std.450" + %11 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint GLCompute %main "main" OpExecutionMode %main LocalSize 1 1 1 @@ -15,106 +15,106 @@ %v4bool = OpTypeVector %bool 4 %float = OpTypeFloat 32 %v4float = OpTypeVector %float 4 - %11 = OpConstantNull %v4float + %10 = OpConstantNull %v4float %uint = OpTypeInt 32 0 %uint_133693440 = OpConstant %uint 133693440 %uint_524288 = OpConstant %uint 524288 %uint_133169152 = OpConstant %uint 133169152 %v4uint = OpTypeVector %uint 4 %float_1 = OpConstant %float 1 - %27 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 + %25 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 %float_2 = OpConstant %float 2 %float_3 = OpConstant %float 3 %float_4 = OpConstant %float 4 - %39 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4 + %36 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4 %v3bool = OpTypeVector %bool 3 %v3float = OpTypeVector %float 3 - %50 = OpConstantNull %v3float + %46 = OpConstantNull %v3float %v3uint = OpTypeVector %uint 3 - %60 = OpConstantComposite %v3float %float_1 %float_1 %float_1 - %69 = OpConstantComposite %v3float %float_1 %float_2 %float_3 + %55 = OpConstantComposite %v3float %float_1 %float_1 %float_1 + %63 = OpConstantComposite %v3float %float_1 %float_2 %float_3 %v2bool = OpTypeVector %bool 2 %v2float = OpTypeVector %float 2 - %80 = OpConstantNull %v2float + %73 = OpConstantNull %v2float %v2uint = OpTypeVector %uint 2 - %90 = OpConstantComposite %v2float %float_1 %float_1 - %99 = OpConstantComposite %v2float %float_1 %float_2 + %82 = OpConstantComposite %v2float %float_1 %float_1 + %90 = OpConstantComposite %v2float %float_1 %float_2 %main = OpFunction %void None %1 %4 = OpLabel - %18 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440 - %19 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288 - %20 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152 - %21 = OpBitcast %v4uint %11 - %22 = OpBitwiseAnd %v4uint %21 %18 - %23 = OpExtInst %v4uint %12 UClamp %22 %19 %20 - %6 = OpIEqual %v4bool %22 %23 - %28 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440 - %29 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288 - %30 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152 - %31 = OpBitcast %v4uint %27 - %32 = OpBitwiseAnd %v4uint %31 %28 - %33 = OpExtInst %v4uint %12 UClamp %32 %29 %30 - %25 = OpIEqual %v4bool %32 %33 - %40 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440 - %41 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288 - %42 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152 - %43 = OpBitcast %v4uint %39 - %44 = OpBitwiseAnd %v4uint %43 %40 - %45 = OpExtInst %v4uint %12 UClamp %44 %41 %42 - %35 = OpIEqual %v4bool %44 %45 - %52 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440 - %53 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288 - %54 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152 - %55 = OpBitcast %v3uint %50 - %56 = OpBitwiseAnd %v3uint %55 %52 - %57 = OpExtInst %v3uint %12 UClamp %56 %53 %54 - %47 = OpIEqual %v3bool %56 %57 - %61 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440 - %62 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288 - %63 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152 - %64 = OpBitcast %v3uint %60 - %65 = OpBitwiseAnd %v3uint %64 %61 - %66 = OpExtInst %v3uint %12 UClamp %65 %62 %63 - %59 = OpIEqual %v3bool %65 %66 - %70 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440 - %71 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288 - %72 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152 - %73 = OpBitcast %v3uint %69 - %74 = OpBitwiseAnd %v3uint %73 %70 - %75 = OpExtInst %v3uint %12 UClamp %74 %71 %72 - %68 = OpIEqual %v3bool %74 %75 - %82 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440 - %83 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288 - %84 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152 - %85 = OpBitcast %v2uint %80 - %86 = OpBitwiseAnd %v2uint %85 %82 - %87 = OpExtInst %v2uint %12 UClamp %86 %83 %84 - %77 = OpIEqual %v2bool %86 %87 + %17 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440 + %18 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288 + %19 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152 + %20 = OpBitcast %v4uint %10 + %21 = OpBitwiseAnd %v4uint %20 %17 + %22 = OpExtInst %v4uint %11 UClamp %21 %18 %19 + %5 = OpIEqual %v4bool %21 %22 + %26 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440 + %27 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288 + %28 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152 + %29 = OpBitcast %v4uint %25 + %30 = OpBitwiseAnd %v4uint %29 %26 + %31 = OpExtInst %v4uint %11 UClamp %30 %27 %28 + %23 = OpIEqual %v4bool %30 %31 + %37 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440 + %38 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288 + %39 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152 + %40 = OpBitcast %v4uint %36 + %41 = OpBitwiseAnd %v4uint %40 %37 + %42 = OpExtInst %v4uint %11 UClamp %41 %38 %39 + %32 = OpIEqual %v4bool %41 %42 + %48 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440 + %49 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288 + %50 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152 + %51 = OpBitcast %v3uint %46 + %52 = OpBitwiseAnd %v3uint %51 %48 + %53 = OpExtInst %v3uint %11 UClamp %52 %49 %50 + %43 = OpIEqual %v3bool %52 %53 + %56 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440 + %57 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288 + %58 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152 + %59 = OpBitcast %v3uint %55 + %60 = OpBitwiseAnd %v3uint %59 %56 + %61 = OpExtInst %v3uint %11 UClamp %60 %57 %58 + %54 = OpIEqual %v3bool %60 %61 + %64 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440 + %65 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288 + %66 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152 + %67 = OpBitcast %v3uint %63 + %68 = OpBitwiseAnd %v3uint %67 %64 + %69 = OpExtInst %v3uint %11 UClamp %68 %65 %66 + %62 = OpIEqual %v3bool %68 %69 + %75 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440 + %76 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288 + %77 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152 + %78 = OpBitcast %v2uint %73 + %79 = OpBitwiseAnd %v2uint %78 %75 + %80 = OpExtInst %v2uint %11 UClamp %79 %76 %77 + %70 = OpIEqual %v2bool %79 %80 + %83 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440 + %84 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288 + %85 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152 + %86 = OpBitcast %v2uint %82 + %87 = OpBitwiseAnd %v2uint %86 %83 + %88 = OpExtInst %v2uint %11 UClamp %87 %84 %85 + %81 = OpIEqual %v2bool %87 %88 %91 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440 %92 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288 %93 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152 %94 = OpBitcast %v2uint %90 %95 = OpBitwiseAnd %v2uint %94 %91 - %96 = OpExtInst %v2uint %12 UClamp %95 %92 %93 + %96 = OpExtInst %v2uint %11 UClamp %95 %92 %93 %89 = OpIEqual %v2bool %95 %96 - %100 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440 - %101 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288 - %102 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152 - %103 = OpBitcast %v2uint %99 - %104 = OpBitwiseAnd %v2uint %103 %100 - %105 = OpExtInst %v2uint %12 UClamp %104 %101 %102 - %98 = OpIEqual %v2bool %104 %105 - %108 = OpBitcast %uint %float_1 - %109 = OpBitwiseAnd %uint %108 %uint_133693440 - %110 = OpExtInst %uint %12 UClamp %109 %uint_524288 %uint_133169152 - %107 = OpIEqual %bool %109 %110 - %113 = OpBitcast %uint %float_2 - %114 = OpBitwiseAnd %uint %113 %uint_133693440 - %115 = OpExtInst %uint %12 UClamp %114 %uint_524288 %uint_133169152 - %112 = OpIEqual %bool %114 %115 - %118 = OpBitcast %uint %float_3 - %119 = OpBitwiseAnd %uint %118 %uint_133693440 - %120 = OpExtInst %uint %12 UClamp %119 %uint_524288 %uint_133169152 - %117 = OpIEqual %bool %119 %120 + %98 = OpBitcast %uint %float_1 + %99 = OpBitwiseAnd %uint %98 %uint_133693440 + %100 = OpExtInst %uint %11 UClamp %99 %uint_524288 %uint_133169152 + %97 = OpIEqual %bool %99 %100 + %102 = OpBitcast %uint %float_2 + %103 = OpBitwiseAnd %uint %102 %uint_133693440 + %104 = OpExtInst %uint %11 UClamp %103 %uint_524288 %uint_133169152 + %101 = OpIEqual %bool %103 %104 + %106 = OpBitcast %uint %float_3 + %107 = OpBitwiseAnd %uint %106 %uint_133693440 + %108 = OpExtInst %uint %11 UClamp %107 %uint_524288 %uint_133169152 + %105 = OpIEqual %bool %107 %108 OpReturn OpFunctionEnd diff --git a/test/intrinsics/repeated_use.wgsl.expected.wgsl b/test/intrinsics/repeated_use.wgsl.expected.wgsl index e70883312b..7cfb031840 100644 --- a/test/intrinsics/repeated_use.wgsl.expected.wgsl +++ b/test/intrinsics/repeated_use.wgsl.expected.wgsl @@ -1,15 +1,15 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(isNormal(vec4())); - ignore(isNormal(vec4(1.0))); - ignore(isNormal(vec4(1.0, 2.0, 3.0, 4.0))); - ignore(isNormal(vec3())); - ignore(isNormal(vec3(1.0))); - ignore(isNormal(vec3(1.0, 2.0, 3.0))); - ignore(isNormal(vec2())); - ignore(isNormal(vec2(1.0))); - ignore(isNormal(vec2(1.0, 2.0))); - ignore(isNormal(1.0)); - ignore(isNormal(2.0)); - ignore(isNormal(3.0)); + _ = isNormal(vec4()); + _ = isNormal(vec4(1.0)); + _ = isNormal(vec4(1.0, 2.0, 3.0, 4.0)); + _ = isNormal(vec3()); + _ = isNormal(vec3(1.0)); + _ = isNormal(vec3(1.0, 2.0, 3.0)); + _ = isNormal(vec2()); + _ = isNormal(vec2(1.0)); + _ = isNormal(vec2(1.0, 2.0)); + _ = isNormal(1.0); + _ = isNormal(2.0); + _ = isNormal(3.0); } diff --git a/test/loops/continue_in_switch.wgsl.expected.hlsl b/test/loops/continue_in_switch.wgsl.expected.hlsl index 610efeead1..f26c16225c 100644 --- a/test/loops/continue_in_switch.wgsl.expected.hlsl +++ b/test/loops/continue_in_switch.wgsl.expected.hlsl @@ -1,5 +1,3 @@ -SKIP: FAILED - [numthreads(1, 1, 1)] void f() { { @@ -17,4 +15,3 @@ void f() { } return; } -C:\src\tint\test\Shader@0x0000022998AE1EF0(7,11-19): error X3708: continue cannot be used in a switch diff --git a/test/types/sampler.wgsl b/test/types/sampler.wgsl index 7a8c536be4..10856209e2 100644 --- a/test/types/sampler.wgsl +++ b/test/types/sampler.wgsl @@ -3,6 +3,6 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(s); - ignore(sc); + _ = s; + _ = sc; } diff --git a/test/types/sampler.wgsl.expected.hlsl b/test/types/sampler.wgsl.expected.hlsl index 34460561ab..e6a3bdc39d 100644 --- a/test/types/sampler.wgsl.expected.hlsl +++ b/test/types/sampler.wgsl.expected.hlsl @@ -3,7 +3,5 @@ SamplerComparisonState sc : register(s1, space0); [numthreads(1, 1, 1)] void main() { - s; - sc; return; } diff --git a/test/types/sampler.wgsl.expected.msl b/test/types/sampler.wgsl.expected.msl index 0343299b79..fcc05a4a32 100644 --- a/test/types/sampler.wgsl.expected.msl +++ b/test/types/sampler.wgsl.expected.msl @@ -2,8 +2,6 @@ using namespace metal; kernel void tint_symbol(sampler tint_symbol_1 [[sampler(0)]], sampler tint_symbol_2 [[sampler(1)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; return; } diff --git a/test/types/sampler.wgsl.expected.spvasm b/test/types/sampler.wgsl.expected.spvasm index 01e71332fa..7e75815e08 100644 --- a/test/types/sampler.wgsl.expected.spvasm +++ b/test/types/sampler.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 12 +; Bound: 10 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/sampler.wgsl.expected.wgsl b/test/types/sampler.wgsl.expected.wgsl index cb210aab20..315599bb51 100644 --- a/test/types/sampler.wgsl.expected.wgsl +++ b/test/types/sampler.wgsl.expected.wgsl @@ -4,6 +4,6 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(s); - ignore(sc); + _ = s; + _ = sc; } diff --git a/test/types/texture/depth/2d.wgsl b/test/types/texture/depth/2d.wgsl index d78e2fe7e5..853e277694 100644 --- a/test/types/texture/depth/2d.wgsl +++ b/test/types/texture/depth/2d.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/depth/2d.wgsl.expected.hlsl b/test/types/texture/depth/2d.wgsl.expected.hlsl index 9ca3a84409..a1d1935c89 100644 --- a/test/types/texture/depth/2d.wgsl.expected.hlsl +++ b/test/types/texture/depth/2d.wgsl.expected.hlsl @@ -2,6 +2,5 @@ Texture2D t_f : register(t0, space0); [numthreads(1, 1, 1)] void main() { - t_f; return; } diff --git a/test/types/texture/depth/2d.wgsl.expected.msl b/test/types/texture/depth/2d.wgsl.expected.msl index f2ed0a5b50..e45bdcf925 100644 --- a/test/types/texture/depth/2d.wgsl.expected.msl +++ b/test/types/texture/depth/2d.wgsl.expected.msl @@ -2,7 +2,6 @@ using namespace metal; kernel void tint_symbol(depth2d tint_symbol_1 [[texture(0)]]) { - (void) tint_symbol_1; return; } diff --git a/test/types/texture/depth/2d.wgsl.expected.spvasm b/test/types/texture/depth/2d.wgsl.expected.spvasm index 7465d70d7e..868f0b0794 100644 --- a/test/types/texture/depth/2d.wgsl.expected.spvasm +++ b/test/types/texture/depth/2d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 10 +; Bound: 9 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/depth/2d.wgsl.expected.wgsl b/test/types/texture/depth/2d.wgsl.expected.wgsl index d78e2fe7e5..853e277694 100644 --- a/test/types/texture/depth/2d.wgsl.expected.wgsl +++ b/test/types/texture/depth/2d.wgsl.expected.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/depth/2d_array.wgsl b/test/types/texture/depth/2d_array.wgsl index 8b4f0e8853..9338fe598b 100644 --- a/test/types/texture/depth/2d_array.wgsl +++ b/test/types/texture/depth/2d_array.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/depth/2d_array.wgsl.expected.hlsl b/test/types/texture/depth/2d_array.wgsl.expected.hlsl index fca16de608..5ddf7baf19 100644 --- a/test/types/texture/depth/2d_array.wgsl.expected.hlsl +++ b/test/types/texture/depth/2d_array.wgsl.expected.hlsl @@ -2,6 +2,5 @@ Texture2DArray t_f : register(t0, space0); [numthreads(1, 1, 1)] void main() { - t_f; return; } diff --git a/test/types/texture/depth/2d_array.wgsl.expected.msl b/test/types/texture/depth/2d_array.wgsl.expected.msl index 17a9b9712e..18588e24cd 100644 --- a/test/types/texture/depth/2d_array.wgsl.expected.msl +++ b/test/types/texture/depth/2d_array.wgsl.expected.msl @@ -2,7 +2,6 @@ using namespace metal; kernel void tint_symbol(depth2d_array tint_symbol_1 [[texture(0)]]) { - (void) tint_symbol_1; return; } diff --git a/test/types/texture/depth/2d_array.wgsl.expected.spvasm b/test/types/texture/depth/2d_array.wgsl.expected.spvasm index 8e872a551b..06f3808b42 100644 --- a/test/types/texture/depth/2d_array.wgsl.expected.spvasm +++ b/test/types/texture/depth/2d_array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 10 +; Bound: 9 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/depth/2d_array.wgsl.expected.wgsl b/test/types/texture/depth/2d_array.wgsl.expected.wgsl index 8b4f0e8853..9338fe598b 100644 --- a/test/types/texture/depth/2d_array.wgsl.expected.wgsl +++ b/test/types/texture/depth/2d_array.wgsl.expected.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/depth/cube.wgsl b/test/types/texture/depth/cube.wgsl index 0504eb99ba..bd16ce84f6 100644 --- a/test/types/texture/depth/cube.wgsl +++ b/test/types/texture/depth/cube.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/depth/cube.wgsl.expected.hlsl b/test/types/texture/depth/cube.wgsl.expected.hlsl index a6a8d06232..89d1dc7905 100644 --- a/test/types/texture/depth/cube.wgsl.expected.hlsl +++ b/test/types/texture/depth/cube.wgsl.expected.hlsl @@ -2,6 +2,5 @@ TextureCube t_f : register(t0, space0); [numthreads(1, 1, 1)] void main() { - t_f; return; } diff --git a/test/types/texture/depth/cube.wgsl.expected.msl b/test/types/texture/depth/cube.wgsl.expected.msl index ebc911a024..7ac8af6903 100644 --- a/test/types/texture/depth/cube.wgsl.expected.msl +++ b/test/types/texture/depth/cube.wgsl.expected.msl @@ -2,7 +2,6 @@ using namespace metal; kernel void tint_symbol(depthcube tint_symbol_1 [[texture(0)]]) { - (void) tint_symbol_1; return; } diff --git a/test/types/texture/depth/cube.wgsl.expected.spvasm b/test/types/texture/depth/cube.wgsl.expected.spvasm index 8af16135fa..196b27d845 100644 --- a/test/types/texture/depth/cube.wgsl.expected.spvasm +++ b/test/types/texture/depth/cube.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 10 +; Bound: 9 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/depth/cube.wgsl.expected.wgsl b/test/types/texture/depth/cube.wgsl.expected.wgsl index 0504eb99ba..bd16ce84f6 100644 --- a/test/types/texture/depth/cube.wgsl.expected.wgsl +++ b/test/types/texture/depth/cube.wgsl.expected.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/depth/cube_array.wgsl b/test/types/texture/depth/cube_array.wgsl index 6018651b15..d30008f33a 100644 --- a/test/types/texture/depth/cube_array.wgsl +++ b/test/types/texture/depth/cube_array.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/depth/cube_array.wgsl.expected.hlsl b/test/types/texture/depth/cube_array.wgsl.expected.hlsl index 075a734e77..57b1946c06 100644 --- a/test/types/texture/depth/cube_array.wgsl.expected.hlsl +++ b/test/types/texture/depth/cube_array.wgsl.expected.hlsl @@ -2,6 +2,5 @@ TextureCubeArray t_f : register(t0, space0); [numthreads(1, 1, 1)] void main() { - t_f; return; } diff --git a/test/types/texture/depth/cube_array.wgsl.expected.msl b/test/types/texture/depth/cube_array.wgsl.expected.msl index 12aa4c08f2..c8ac115313 100644 --- a/test/types/texture/depth/cube_array.wgsl.expected.msl +++ b/test/types/texture/depth/cube_array.wgsl.expected.msl @@ -2,7 +2,6 @@ using namespace metal; kernel void tint_symbol(depthcube_array tint_symbol_1 [[texture(0)]]) { - (void) tint_symbol_1; return; } diff --git a/test/types/texture/depth/cube_array.wgsl.expected.spvasm b/test/types/texture/depth/cube_array.wgsl.expected.spvasm index fd96dbf76b..89de47d043 100644 --- a/test/types/texture/depth/cube_array.wgsl.expected.spvasm +++ b/test/types/texture/depth/cube_array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 10 +; Bound: 9 ; Schema: 0 OpCapability Shader OpCapability SampledCubeArray diff --git a/test/types/texture/depth/cube_array.wgsl.expected.wgsl b/test/types/texture/depth/cube_array.wgsl.expected.wgsl index 6018651b15..d30008f33a 100644 --- a/test/types/texture/depth/cube_array.wgsl.expected.wgsl +++ b/test/types/texture/depth/cube_array.wgsl.expected.wgsl @@ -2,5 +2,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); + _ = t_f; } diff --git a/test/types/texture/multisampled/2d.wgsl b/test/types/texture/multisampled/2d.wgsl index 18d96ad06d..9de9f26a4c 100644 --- a/test/types/texture/multisampled/2d.wgsl +++ b/test/types/texture/multisampled/2d.wgsl @@ -4,7 +4,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/multisampled/2d.wgsl.expected.hlsl b/test/types/texture/multisampled/2d.wgsl.expected.hlsl index a1199059e8..9efb9c3ecc 100644 --- a/test/types/texture/multisampled/2d.wgsl.expected.hlsl +++ b/test/types/texture/multisampled/2d.wgsl.expected.hlsl @@ -4,8 +4,5 @@ Texture2DMS t_u : register(t2, space0); [numthreads(1, 1, 1)] void main() { - t_f; - t_i; - t_u; return; } diff --git a/test/types/texture/multisampled/2d.wgsl.expected.msl b/test/types/texture/multisampled/2d.wgsl.expected.msl index ea479ebe95..91951dd0aa 100644 --- a/test/types/texture/multisampled/2d.wgsl.expected.msl +++ b/test/types/texture/multisampled/2d.wgsl.expected.msl @@ -2,9 +2,6 @@ using namespace metal; kernel void tint_symbol(texture2d_ms tint_symbol_1 [[texture(0)]], texture2d_ms tint_symbol_2 [[texture(1)]], texture2d_ms tint_symbol_3 [[texture(2)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; return; } diff --git a/test/types/texture/multisampled/2d.wgsl.expected.spvasm b/test/types/texture/multisampled/2d.wgsl.expected.spvasm index 4dcb22d3a7..65d9c3e43c 100644 --- a/test/types/texture/multisampled/2d.wgsl.expected.spvasm +++ b/test/types/texture/multisampled/2d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 20 +; Bound: 17 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/multisampled/2d.wgsl.expected.wgsl b/test/types/texture/multisampled/2d.wgsl.expected.wgsl index 3b86a9745c..4c078caced 100644 --- a/test/types/texture/multisampled/2d.wgsl.expected.wgsl +++ b/test/types/texture/multisampled/2d.wgsl.expected.wgsl @@ -6,7 +6,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/1d.wgsl b/test/types/texture/sampled/1d.wgsl index f49051262a..bfc4cf0041 100644 --- a/test/types/texture/sampled/1d.wgsl +++ b/test/types/texture/sampled/1d.wgsl @@ -4,7 +4,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/1d.wgsl.expected.hlsl b/test/types/texture/sampled/1d.wgsl.expected.hlsl index 060d801dd3..5d312e2113 100644 --- a/test/types/texture/sampled/1d.wgsl.expected.hlsl +++ b/test/types/texture/sampled/1d.wgsl.expected.hlsl @@ -4,8 +4,5 @@ Texture1D t_u : register(t2, space0); [numthreads(1, 1, 1)] void main() { - t_f; - t_i; - t_u; return; } diff --git a/test/types/texture/sampled/1d.wgsl.expected.msl b/test/types/texture/sampled/1d.wgsl.expected.msl index 62d00a2161..3075677512 100644 --- a/test/types/texture/sampled/1d.wgsl.expected.msl +++ b/test/types/texture/sampled/1d.wgsl.expected.msl @@ -2,9 +2,6 @@ using namespace metal; kernel void tint_symbol(texture1d tint_symbol_1 [[texture(0)]], texture1d tint_symbol_2 [[texture(1)]], texture1d tint_symbol_3 [[texture(2)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; return; } diff --git a/test/types/texture/sampled/1d.wgsl.expected.spvasm b/test/types/texture/sampled/1d.wgsl.expected.spvasm index 61a74ac8d7..a740d5894c 100644 --- a/test/types/texture/sampled/1d.wgsl.expected.spvasm +++ b/test/types/texture/sampled/1d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 20 +; Bound: 17 ; Schema: 0 OpCapability Shader OpCapability Sampled1D diff --git a/test/types/texture/sampled/1d.wgsl.expected.wgsl b/test/types/texture/sampled/1d.wgsl.expected.wgsl index bea3c2de10..a14ff96b3b 100644 --- a/test/types/texture/sampled/1d.wgsl.expected.wgsl +++ b/test/types/texture/sampled/1d.wgsl.expected.wgsl @@ -6,7 +6,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/2d.wgsl b/test/types/texture/sampled/2d.wgsl index c4e2ea3fd7..eac84598ef 100644 --- a/test/types/texture/sampled/2d.wgsl +++ b/test/types/texture/sampled/2d.wgsl @@ -4,7 +4,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/2d.wgsl.expected.hlsl b/test/types/texture/sampled/2d.wgsl.expected.hlsl index 78c75e94a2..b1ec53fcfe 100644 --- a/test/types/texture/sampled/2d.wgsl.expected.hlsl +++ b/test/types/texture/sampled/2d.wgsl.expected.hlsl @@ -4,8 +4,5 @@ Texture2D t_u : register(t2, space0); [numthreads(1, 1, 1)] void main() { - t_f; - t_i; - t_u; return; } diff --git a/test/types/texture/sampled/2d.wgsl.expected.msl b/test/types/texture/sampled/2d.wgsl.expected.msl index 38af4944af..332712f789 100644 --- a/test/types/texture/sampled/2d.wgsl.expected.msl +++ b/test/types/texture/sampled/2d.wgsl.expected.msl @@ -2,9 +2,6 @@ using namespace metal; kernel void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], texture2d tint_symbol_2 [[texture(1)]], texture2d tint_symbol_3 [[texture(2)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; return; } diff --git a/test/types/texture/sampled/2d.wgsl.expected.spvasm b/test/types/texture/sampled/2d.wgsl.expected.spvasm index c890825ad9..71cf422314 100644 --- a/test/types/texture/sampled/2d.wgsl.expected.spvasm +++ b/test/types/texture/sampled/2d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 20 +; Bound: 17 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/sampled/2d.wgsl.expected.wgsl b/test/types/texture/sampled/2d.wgsl.expected.wgsl index 56fad27d68..7536291680 100644 --- a/test/types/texture/sampled/2d.wgsl.expected.wgsl +++ b/test/types/texture/sampled/2d.wgsl.expected.wgsl @@ -6,7 +6,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/2d_array.wgsl b/test/types/texture/sampled/2d_array.wgsl index b1681eddb7..ff687c1608 100644 --- a/test/types/texture/sampled/2d_array.wgsl +++ b/test/types/texture/sampled/2d_array.wgsl @@ -4,7 +4,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/2d_array.wgsl.expected.hlsl b/test/types/texture/sampled/2d_array.wgsl.expected.hlsl index ada0599b58..6dfc0fc723 100644 --- a/test/types/texture/sampled/2d_array.wgsl.expected.hlsl +++ b/test/types/texture/sampled/2d_array.wgsl.expected.hlsl @@ -4,8 +4,5 @@ Texture2DArray t_u : register(t2, space0); [numthreads(1, 1, 1)] void main() { - t_f; - t_i; - t_u; return; } diff --git a/test/types/texture/sampled/2d_array.wgsl.expected.msl b/test/types/texture/sampled/2d_array.wgsl.expected.msl index 320f5e60c6..5596bae021 100644 --- a/test/types/texture/sampled/2d_array.wgsl.expected.msl +++ b/test/types/texture/sampled/2d_array.wgsl.expected.msl @@ -2,9 +2,6 @@ using namespace metal; kernel void tint_symbol(texture2d_array tint_symbol_1 [[texture(0)]], texture2d_array tint_symbol_2 [[texture(1)]], texture2d_array tint_symbol_3 [[texture(2)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; return; } diff --git a/test/types/texture/sampled/2d_array.wgsl.expected.spvasm b/test/types/texture/sampled/2d_array.wgsl.expected.spvasm index fa4f943b17..46094f0325 100644 --- a/test/types/texture/sampled/2d_array.wgsl.expected.spvasm +++ b/test/types/texture/sampled/2d_array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 20 +; Bound: 17 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/sampled/2d_array.wgsl.expected.wgsl b/test/types/texture/sampled/2d_array.wgsl.expected.wgsl index a56bb832c4..487e67204d 100644 --- a/test/types/texture/sampled/2d_array.wgsl.expected.wgsl +++ b/test/types/texture/sampled/2d_array.wgsl.expected.wgsl @@ -6,7 +6,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/3d.wgsl b/test/types/texture/sampled/3d.wgsl index 818337838d..cd8f0ecdae 100644 --- a/test/types/texture/sampled/3d.wgsl +++ b/test/types/texture/sampled/3d.wgsl @@ -4,7 +4,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/3d.wgsl.expected.hlsl b/test/types/texture/sampled/3d.wgsl.expected.hlsl index bebd581476..1a3b441ba8 100644 --- a/test/types/texture/sampled/3d.wgsl.expected.hlsl +++ b/test/types/texture/sampled/3d.wgsl.expected.hlsl @@ -4,8 +4,5 @@ Texture3D t_u : register(t2, space0); [numthreads(1, 1, 1)] void main() { - t_f; - t_i; - t_u; return; } diff --git a/test/types/texture/sampled/3d.wgsl.expected.msl b/test/types/texture/sampled/3d.wgsl.expected.msl index f0becd8a0a..f42ccaf8e1 100644 --- a/test/types/texture/sampled/3d.wgsl.expected.msl +++ b/test/types/texture/sampled/3d.wgsl.expected.msl @@ -2,9 +2,6 @@ using namespace metal; kernel void tint_symbol(texture3d tint_symbol_1 [[texture(0)]], texture3d tint_symbol_2 [[texture(1)]], texture3d tint_symbol_3 [[texture(2)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; return; } diff --git a/test/types/texture/sampled/3d.wgsl.expected.spvasm b/test/types/texture/sampled/3d.wgsl.expected.spvasm index 1a4b9a44ae..9c092f5998 100644 --- a/test/types/texture/sampled/3d.wgsl.expected.spvasm +++ b/test/types/texture/sampled/3d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 20 +; Bound: 17 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/sampled/3d.wgsl.expected.wgsl b/test/types/texture/sampled/3d.wgsl.expected.wgsl index 4063713436..ddfc2dbc56 100644 --- a/test/types/texture/sampled/3d.wgsl.expected.wgsl +++ b/test/types/texture/sampled/3d.wgsl.expected.wgsl @@ -6,7 +6,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/cube.wgsl b/test/types/texture/sampled/cube.wgsl index 3277554203..3e1d8f089c 100644 --- a/test/types/texture/sampled/cube.wgsl +++ b/test/types/texture/sampled/cube.wgsl @@ -4,7 +4,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/cube.wgsl.expected.hlsl b/test/types/texture/sampled/cube.wgsl.expected.hlsl index 3f7055f733..9d0b4c5552 100644 --- a/test/types/texture/sampled/cube.wgsl.expected.hlsl +++ b/test/types/texture/sampled/cube.wgsl.expected.hlsl @@ -4,8 +4,5 @@ TextureCube t_u : register(t2, space0); [numthreads(1, 1, 1)] void main() { - t_f; - t_i; - t_u; return; } diff --git a/test/types/texture/sampled/cube.wgsl.expected.msl b/test/types/texture/sampled/cube.wgsl.expected.msl index ed604d0c5c..2a1de4156d 100644 --- a/test/types/texture/sampled/cube.wgsl.expected.msl +++ b/test/types/texture/sampled/cube.wgsl.expected.msl @@ -2,9 +2,6 @@ using namespace metal; kernel void tint_symbol(texturecube tint_symbol_1 [[texture(0)]], texturecube tint_symbol_2 [[texture(1)]], texturecube tint_symbol_3 [[texture(2)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; return; } diff --git a/test/types/texture/sampled/cube.wgsl.expected.spvasm b/test/types/texture/sampled/cube.wgsl.expected.spvasm index ab121490ac..9436ee1533 100644 --- a/test/types/texture/sampled/cube.wgsl.expected.spvasm +++ b/test/types/texture/sampled/cube.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 20 +; Bound: 17 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/types/texture/sampled/cube.wgsl.expected.wgsl b/test/types/texture/sampled/cube.wgsl.expected.wgsl index f70025e32a..151c68f40b 100644 --- a/test/types/texture/sampled/cube.wgsl.expected.wgsl +++ b/test/types/texture/sampled/cube.wgsl.expected.wgsl @@ -6,7 +6,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/cube_array.wgsl b/test/types/texture/sampled/cube_array.wgsl index 52c183db51..e3bb1b1bdc 100644 --- a/test/types/texture/sampled/cube_array.wgsl +++ b/test/types/texture/sampled/cube_array.wgsl @@ -4,7 +4,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/sampled/cube_array.wgsl.expected.hlsl b/test/types/texture/sampled/cube_array.wgsl.expected.hlsl index bf630b5e42..4a7de625a1 100644 --- a/test/types/texture/sampled/cube_array.wgsl.expected.hlsl +++ b/test/types/texture/sampled/cube_array.wgsl.expected.hlsl @@ -4,8 +4,5 @@ TextureCubeArray t_u : register(t2, space0); [numthreads(1, 1, 1)] void main() { - t_f; - t_i; - t_u; return; } diff --git a/test/types/texture/sampled/cube_array.wgsl.expected.msl b/test/types/texture/sampled/cube_array.wgsl.expected.msl index 38b89a7d5e..9daff39140 100644 --- a/test/types/texture/sampled/cube_array.wgsl.expected.msl +++ b/test/types/texture/sampled/cube_array.wgsl.expected.msl @@ -2,9 +2,6 @@ using namespace metal; kernel void tint_symbol(texturecube_array tint_symbol_1 [[texture(0)]], texturecube_array tint_symbol_2 [[texture(1)]], texturecube_array tint_symbol_3 [[texture(2)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; return; } diff --git a/test/types/texture/sampled/cube_array.wgsl.expected.spvasm b/test/types/texture/sampled/cube_array.wgsl.expected.spvasm index 1c066108e5..9d61d0c9e6 100644 --- a/test/types/texture/sampled/cube_array.wgsl.expected.spvasm +++ b/test/types/texture/sampled/cube_array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 20 +; Bound: 17 ; Schema: 0 OpCapability Shader OpCapability SampledCubeArray diff --git a/test/types/texture/sampled/cube_array.wgsl.expected.wgsl b/test/types/texture/sampled/cube_array.wgsl.expected.wgsl index 81bf76b102..bb5c804d68 100644 --- a/test/types/texture/sampled/cube_array.wgsl.expected.wgsl +++ b/test/types/texture/sampled/cube_array.wgsl.expected.wgsl @@ -6,7 +6,7 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_f); - ignore(t_i); - ignore(t_u); + _ = t_f; + _ = t_i; + _ = t_u; } diff --git a/test/types/texture/storage/1d.wgsl b/test/types/texture/storage/1d.wgsl index 8a0b600031..939b92120c 100644 --- a/test/types/texture/storage/1d.wgsl +++ b/test/types/texture/storage/1d.wgsl @@ -17,20 +17,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/types/texture/storage/1d.wgsl.expected.hlsl b/test/types/texture/storage/1d.wgsl.expected.hlsl index 8e4d6342ca..1628ef7961 100644 --- a/test/types/texture/storage/1d.wgsl.expected.hlsl +++ b/test/types/texture/storage/1d.wgsl.expected.hlsl @@ -17,21 +17,5 @@ RWTexture1D t_rgba32float : register(u15, space0); [numthreads(1, 1, 1)] void main() { - t_rgba8unorm; - t_rgba8snorm; - t_rgba8uint; - t_rgba8sint; - t_rgba16uint; - t_rgba16sint; - t_rgba16float; - t_r32uint; - t_r32sint; - t_r32float; - t_rg32uint; - t_rg32sint; - t_rg32float; - t_rgba32uint; - t_rgba32sint; - t_rgba32float; return; } diff --git a/test/types/texture/storage/1d.wgsl.expected.msl b/test/types/texture/storage/1d.wgsl.expected.msl index 48e5811e5c..e6639ae1b9 100644 --- a/test/types/texture/storage/1d.wgsl.expected.msl +++ b/test/types/texture/storage/1d.wgsl.expected.msl @@ -2,22 +2,6 @@ using namespace metal; kernel void tint_symbol(texture1d tint_symbol_1 [[texture(0)]], texture1d tint_symbol_2 [[texture(1)]], texture1d tint_symbol_3 [[texture(2)]], texture1d tint_symbol_4 [[texture(3)]], texture1d tint_symbol_5 [[texture(4)]], texture1d tint_symbol_6 [[texture(5)]], texture1d tint_symbol_7 [[texture(6)]], texture1d tint_symbol_8 [[texture(7)]], texture1d tint_symbol_9 [[texture(8)]], texture1d tint_symbol_10 [[texture(9)]], texture1d tint_symbol_11 [[texture(10)]], texture1d tint_symbol_12 [[texture(11)]], texture1d tint_symbol_13 [[texture(12)]], texture1d tint_symbol_14 [[texture(13)]], texture1d tint_symbol_15 [[texture(14)]], texture1d tint_symbol_16 [[texture(15)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; - (void) tint_symbol_4; - (void) tint_symbol_5; - (void) tint_symbol_6; - (void) tint_symbol_7; - (void) tint_symbol_8; - (void) tint_symbol_9; - (void) tint_symbol_10; - (void) tint_symbol_11; - (void) tint_symbol_12; - (void) tint_symbol_13; - (void) tint_symbol_14; - (void) tint_symbol_15; - (void) tint_symbol_16; return; } diff --git a/test/types/texture/storage/1d.wgsl.expected.spvasm b/test/types/texture/storage/1d.wgsl.expected.spvasm index 23864fc0a1..79dda9e642 100644 --- a/test/types/texture/storage/1d.wgsl.expected.spvasm +++ b/test/types/texture/storage/1d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 72 +; Bound: 56 ; Schema: 0 OpCapability Shader OpCapability Image1D diff --git a/test/types/texture/storage/1d.wgsl.expected.wgsl b/test/types/texture/storage/1d.wgsl.expected.wgsl index 9b1f502e40..72ebb80be2 100644 --- a/test/types/texture/storage/1d.wgsl.expected.wgsl +++ b/test/types/texture/storage/1d.wgsl.expected.wgsl @@ -32,20 +32,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/types/texture/storage/2d.wgsl b/test/types/texture/storage/2d.wgsl index b84493d678..0ea57e9c6c 100644 --- a/test/types/texture/storage/2d.wgsl +++ b/test/types/texture/storage/2d.wgsl @@ -17,20 +17,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/types/texture/storage/2d.wgsl.expected.hlsl b/test/types/texture/storage/2d.wgsl.expected.hlsl index 8e892b514b..8d1a7519b7 100644 --- a/test/types/texture/storage/2d.wgsl.expected.hlsl +++ b/test/types/texture/storage/2d.wgsl.expected.hlsl @@ -17,21 +17,5 @@ RWTexture2D t_rgba32float : register(u15, space0); [numthreads(1, 1, 1)] void main() { - t_rgba8unorm; - t_rgba8snorm; - t_rgba8uint; - t_rgba8sint; - t_rgba16uint; - t_rgba16sint; - t_rgba16float; - t_r32uint; - t_r32sint; - t_r32float; - t_rg32uint; - t_rg32sint; - t_rg32float; - t_rgba32uint; - t_rgba32sint; - t_rgba32float; return; } diff --git a/test/types/texture/storage/2d.wgsl.expected.msl b/test/types/texture/storage/2d.wgsl.expected.msl index c8041f36a4..47c1eaabde 100644 --- a/test/types/texture/storage/2d.wgsl.expected.msl +++ b/test/types/texture/storage/2d.wgsl.expected.msl @@ -2,22 +2,6 @@ using namespace metal; kernel void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], texture2d tint_symbol_2 [[texture(1)]], texture2d tint_symbol_3 [[texture(2)]], texture2d tint_symbol_4 [[texture(3)]], texture2d tint_symbol_5 [[texture(4)]], texture2d tint_symbol_6 [[texture(5)]], texture2d tint_symbol_7 [[texture(6)]], texture2d tint_symbol_8 [[texture(7)]], texture2d tint_symbol_9 [[texture(8)]], texture2d tint_symbol_10 [[texture(9)]], texture2d tint_symbol_11 [[texture(10)]], texture2d tint_symbol_12 [[texture(11)]], texture2d tint_symbol_13 [[texture(12)]], texture2d tint_symbol_14 [[texture(13)]], texture2d tint_symbol_15 [[texture(14)]], texture2d tint_symbol_16 [[texture(15)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; - (void) tint_symbol_4; - (void) tint_symbol_5; - (void) tint_symbol_6; - (void) tint_symbol_7; - (void) tint_symbol_8; - (void) tint_symbol_9; - (void) tint_symbol_10; - (void) tint_symbol_11; - (void) tint_symbol_12; - (void) tint_symbol_13; - (void) tint_symbol_14; - (void) tint_symbol_15; - (void) tint_symbol_16; return; } diff --git a/test/types/texture/storage/2d.wgsl.expected.spvasm b/test/types/texture/storage/2d.wgsl.expected.spvasm index db8de41ddd..580f1ac6b8 100644 --- a/test/types/texture/storage/2d.wgsl.expected.spvasm +++ b/test/types/texture/storage/2d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 72 +; Bound: 56 ; Schema: 0 OpCapability Shader OpCapability StorageImageExtendedFormats diff --git a/test/types/texture/storage/2d.wgsl.expected.wgsl b/test/types/texture/storage/2d.wgsl.expected.wgsl index eb2a58f324..960e7240ab 100644 --- a/test/types/texture/storage/2d.wgsl.expected.wgsl +++ b/test/types/texture/storage/2d.wgsl.expected.wgsl @@ -32,20 +32,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/types/texture/storage/2d_array.wgsl b/test/types/texture/storage/2d_array.wgsl index 798b9614d3..15a3f80d25 100644 --- a/test/types/texture/storage/2d_array.wgsl +++ b/test/types/texture/storage/2d_array.wgsl @@ -17,20 +17,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/types/texture/storage/2d_array.wgsl.expected.hlsl b/test/types/texture/storage/2d_array.wgsl.expected.hlsl index 8d3bd0eced..7b08fb84ce 100644 --- a/test/types/texture/storage/2d_array.wgsl.expected.hlsl +++ b/test/types/texture/storage/2d_array.wgsl.expected.hlsl @@ -17,21 +17,5 @@ RWTexture2DArray t_rgba32float : register(u15, space0); [numthreads(1, 1, 1)] void main() { - t_rgba8unorm; - t_rgba8snorm; - t_rgba8uint; - t_rgba8sint; - t_rgba16uint; - t_rgba16sint; - t_rgba16float; - t_r32uint; - t_r32sint; - t_r32float; - t_rg32uint; - t_rg32sint; - t_rg32float; - t_rgba32uint; - t_rgba32sint; - t_rgba32float; return; } diff --git a/test/types/texture/storage/2d_array.wgsl.expected.msl b/test/types/texture/storage/2d_array.wgsl.expected.msl index a3029caa39..b872b42d1a 100644 --- a/test/types/texture/storage/2d_array.wgsl.expected.msl +++ b/test/types/texture/storage/2d_array.wgsl.expected.msl @@ -2,22 +2,6 @@ using namespace metal; kernel void tint_symbol(texture2d_array tint_symbol_1 [[texture(0)]], texture2d_array tint_symbol_2 [[texture(1)]], texture2d_array tint_symbol_3 [[texture(2)]], texture2d_array tint_symbol_4 [[texture(3)]], texture2d_array tint_symbol_5 [[texture(4)]], texture2d_array tint_symbol_6 [[texture(5)]], texture2d_array tint_symbol_7 [[texture(6)]], texture2d_array tint_symbol_8 [[texture(7)]], texture2d_array tint_symbol_9 [[texture(8)]], texture2d_array tint_symbol_10 [[texture(9)]], texture2d_array tint_symbol_11 [[texture(10)]], texture2d_array tint_symbol_12 [[texture(11)]], texture2d_array tint_symbol_13 [[texture(12)]], texture2d_array tint_symbol_14 [[texture(13)]], texture2d_array tint_symbol_15 [[texture(14)]], texture2d_array tint_symbol_16 [[texture(15)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; - (void) tint_symbol_4; - (void) tint_symbol_5; - (void) tint_symbol_6; - (void) tint_symbol_7; - (void) tint_symbol_8; - (void) tint_symbol_9; - (void) tint_symbol_10; - (void) tint_symbol_11; - (void) tint_symbol_12; - (void) tint_symbol_13; - (void) tint_symbol_14; - (void) tint_symbol_15; - (void) tint_symbol_16; return; } diff --git a/test/types/texture/storage/2d_array.wgsl.expected.spvasm b/test/types/texture/storage/2d_array.wgsl.expected.spvasm index a9c7167ebd..f627c62529 100644 --- a/test/types/texture/storage/2d_array.wgsl.expected.spvasm +++ b/test/types/texture/storage/2d_array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 72 +; Bound: 56 ; Schema: 0 OpCapability Shader OpCapability StorageImageExtendedFormats diff --git a/test/types/texture/storage/2d_array.wgsl.expected.wgsl b/test/types/texture/storage/2d_array.wgsl.expected.wgsl index a002386e67..c541689a86 100644 --- a/test/types/texture/storage/2d_array.wgsl.expected.wgsl +++ b/test/types/texture/storage/2d_array.wgsl.expected.wgsl @@ -32,20 +32,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/types/texture/storage/3d.wgsl b/test/types/texture/storage/3d.wgsl index 206cf2ab5e..915be52fd7 100644 --- a/test/types/texture/storage/3d.wgsl +++ b/test/types/texture/storage/3d.wgsl @@ -17,20 +17,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/types/texture/storage/3d.wgsl.expected.hlsl b/test/types/texture/storage/3d.wgsl.expected.hlsl index 246663780b..c4a5add63e 100644 --- a/test/types/texture/storage/3d.wgsl.expected.hlsl +++ b/test/types/texture/storage/3d.wgsl.expected.hlsl @@ -17,21 +17,5 @@ RWTexture3D t_rgba32float : register(u15, space0); [numthreads(1, 1, 1)] void main() { - t_rgba8unorm; - t_rgba8snorm; - t_rgba8uint; - t_rgba8sint; - t_rgba16uint; - t_rgba16sint; - t_rgba16float; - t_r32uint; - t_r32sint; - t_r32float; - t_rg32uint; - t_rg32sint; - t_rg32float; - t_rgba32uint; - t_rgba32sint; - t_rgba32float; return; } diff --git a/test/types/texture/storage/3d.wgsl.expected.msl b/test/types/texture/storage/3d.wgsl.expected.msl index cfcba07064..2881ddc065 100644 --- a/test/types/texture/storage/3d.wgsl.expected.msl +++ b/test/types/texture/storage/3d.wgsl.expected.msl @@ -2,22 +2,6 @@ using namespace metal; kernel void tint_symbol(texture3d tint_symbol_1 [[texture(0)]], texture3d tint_symbol_2 [[texture(1)]], texture3d tint_symbol_3 [[texture(2)]], texture3d tint_symbol_4 [[texture(3)]], texture3d tint_symbol_5 [[texture(4)]], texture3d tint_symbol_6 [[texture(5)]], texture3d tint_symbol_7 [[texture(6)]], texture3d tint_symbol_8 [[texture(7)]], texture3d tint_symbol_9 [[texture(8)]], texture3d tint_symbol_10 [[texture(9)]], texture3d tint_symbol_11 [[texture(10)]], texture3d tint_symbol_12 [[texture(11)]], texture3d tint_symbol_13 [[texture(12)]], texture3d tint_symbol_14 [[texture(13)]], texture3d tint_symbol_15 [[texture(14)]], texture3d tint_symbol_16 [[texture(15)]]) { - (void) tint_symbol_1; - (void) tint_symbol_2; - (void) tint_symbol_3; - (void) tint_symbol_4; - (void) tint_symbol_5; - (void) tint_symbol_6; - (void) tint_symbol_7; - (void) tint_symbol_8; - (void) tint_symbol_9; - (void) tint_symbol_10; - (void) tint_symbol_11; - (void) tint_symbol_12; - (void) tint_symbol_13; - (void) tint_symbol_14; - (void) tint_symbol_15; - (void) tint_symbol_16; return; } diff --git a/test/types/texture/storage/3d.wgsl.expected.spvasm b/test/types/texture/storage/3d.wgsl.expected.spvasm index effb6fd0d7..05904a7abb 100644 --- a/test/types/texture/storage/3d.wgsl.expected.spvasm +++ b/test/types/texture/storage/3d.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 72 +; Bound: 56 ; Schema: 0 OpCapability Shader OpCapability StorageImageExtendedFormats diff --git a/test/types/texture/storage/3d.wgsl.expected.wgsl b/test/types/texture/storage/3d.wgsl.expected.wgsl index 42d79ae826..af8ae71429 100644 --- a/test/types/texture/storage/3d.wgsl.expected.wgsl +++ b/test/types/texture/storage/3d.wgsl.expected.wgsl @@ -32,20 +32,20 @@ [[stage(compute), workgroup_size(1)]] fn main() { - ignore(t_rgba8unorm); - ignore(t_rgba8snorm); - ignore(t_rgba8uint); - ignore(t_rgba8sint); - ignore(t_rgba16uint); - ignore(t_rgba16sint); - ignore(t_rgba16float); - ignore(t_r32uint); - ignore(t_r32sint); - ignore(t_r32float); - ignore(t_rg32uint); - ignore(t_rg32sint); - ignore(t_rg32float); - ignore(t_rgba32uint); - ignore(t_rgba32sint); - ignore(t_rgba32float); + _ = t_rgba8unorm; + _ = t_rgba8snorm; + _ = t_rgba8uint; + _ = t_rgba8sint; + _ = t_rgba16uint; + _ = t_rgba16sint; + _ = t_rgba16float; + _ = t_r32uint; + _ = t_r32sint; + _ = t_r32float; + _ = t_rg32uint; + _ = t_rg32sint; + _ = t_rg32float; + _ = t_rgba32uint; + _ = t_rgba32sint; + _ = t_rgba32float; } diff --git a/test/var/initialization/function/array.wgsl b/test/var/initialization/function/array.wgsl index 2fc36d991c..269c9ed28e 100644 --- a/test/var/initialization/function/array.wgsl +++ b/test/var/initialization/function/array.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : array; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/array.wgsl.expected.hlsl b/test/var/initialization/function/array.wgsl.expected.hlsl index 921ae9177a..7f979a02ed 100644 --- a/test/var/initialization/function/array.wgsl.expected.hlsl +++ b/test/var/initialization/function/array.wgsl.expected.hlsl @@ -1,6 +1,5 @@ [numthreads(1, 1, 1)] void main() { int v[3] = (int[3])0; - v; return; } diff --git a/test/var/initialization/function/array.wgsl.expected.msl b/test/var/initialization/function/array.wgsl.expected.msl index 8ca89e829d..f4411848c5 100644 --- a/test/var/initialization/function/array.wgsl.expected.msl +++ b/test/var/initialization/function/array.wgsl.expected.msl @@ -7,7 +7,6 @@ struct tint_array_wrapper { kernel void tint_symbol() { tint_array_wrapper v = {}; - (void) v; return; } diff --git a/test/var/initialization/function/array.wgsl.expected.spvasm b/test/var/initialization/function/array.wgsl.expected.spvasm index dcbe83e9f1..2112361c0e 100644 --- a/test/var/initialization/function/array.wgsl.expected.spvasm +++ b/test/var/initialization/function/array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 13 +; Bound: 12 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/function/array.wgsl.expected.wgsl b/test/var/initialization/function/array.wgsl.expected.wgsl index 3db0d56a33..0dd6ece37f 100644 --- a/test/var/initialization/function/array.wgsl.expected.wgsl +++ b/test/var/initialization/function/array.wgsl.expected.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : array; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/matrix.wgsl b/test/var/initialization/function/matrix.wgsl index eb65b1e541..7f3830dbee 100644 --- a/test/var/initialization/function/matrix.wgsl +++ b/test/var/initialization/function/matrix.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : mat2x3; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/matrix.wgsl.expected.hlsl b/test/var/initialization/function/matrix.wgsl.expected.hlsl index ec24c8bec8..8427c53a32 100644 --- a/test/var/initialization/function/matrix.wgsl.expected.hlsl +++ b/test/var/initialization/function/matrix.wgsl.expected.hlsl @@ -1,6 +1,5 @@ [numthreads(1, 1, 1)] void main() { float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - v; return; } diff --git a/test/var/initialization/function/matrix.wgsl.expected.msl b/test/var/initialization/function/matrix.wgsl.expected.msl index 951b502761..2c45b5f197 100644 --- a/test/var/initialization/function/matrix.wgsl.expected.msl +++ b/test/var/initialization/function/matrix.wgsl.expected.msl @@ -3,7 +3,6 @@ using namespace metal; kernel void tint_symbol() { float2x3 v = float2x3(0.0f); - (void) v; return; } diff --git a/test/var/initialization/function/matrix.wgsl.expected.spvasm b/test/var/initialization/function/matrix.wgsl.expected.spvasm index 0f87cffd12..220f45299f 100644 --- a/test/var/initialization/function/matrix.wgsl.expected.spvasm +++ b/test/var/initialization/function/matrix.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 12 +; Bound: 11 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/function/matrix.wgsl.expected.wgsl b/test/var/initialization/function/matrix.wgsl.expected.wgsl index 17e072bb61..f4fadc64b1 100644 --- a/test/var/initialization/function/matrix.wgsl.expected.wgsl +++ b/test/var/initialization/function/matrix.wgsl.expected.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : mat2x3; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/scalar.wgsl b/test/var/initialization/function/scalar.wgsl index 81ccc32bb4..d9458430db 100644 --- a/test/var/initialization/function/scalar.wgsl +++ b/test/var/initialization/function/scalar.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : i32; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/scalar.wgsl.expected.hlsl b/test/var/initialization/function/scalar.wgsl.expected.hlsl index d96e258e64..f1e0557249 100644 --- a/test/var/initialization/function/scalar.wgsl.expected.hlsl +++ b/test/var/initialization/function/scalar.wgsl.expected.hlsl @@ -1,6 +1,5 @@ [numthreads(1, 1, 1)] void main() { int v = 0; - v; return; } diff --git a/test/var/initialization/function/scalar.wgsl.expected.msl b/test/var/initialization/function/scalar.wgsl.expected.msl index d0221cad77..71dab55247 100644 --- a/test/var/initialization/function/scalar.wgsl.expected.msl +++ b/test/var/initialization/function/scalar.wgsl.expected.msl @@ -3,7 +3,6 @@ using namespace metal; kernel void tint_symbol() { int v = 0; - (void) v; return; } diff --git a/test/var/initialization/function/scalar.wgsl.expected.spvasm b/test/var/initialization/function/scalar.wgsl.expected.spvasm index 2c7cf867a7..a6b8dbebd5 100644 --- a/test/var/initialization/function/scalar.wgsl.expected.spvasm +++ b/test/var/initialization/function/scalar.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 10 +; Bound: 9 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/function/scalar.wgsl.expected.wgsl b/test/var/initialization/function/scalar.wgsl.expected.wgsl index 73c1726602..778a994f02 100644 --- a/test/var/initialization/function/scalar.wgsl.expected.wgsl +++ b/test/var/initialization/function/scalar.wgsl.expected.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : i32; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/struct.wgsl b/test/var/initialization/function/struct.wgsl index 35fd43d6ba..5f80b50d61 100644 --- a/test/var/initialization/function/struct.wgsl +++ b/test/var/initialization/function/struct.wgsl @@ -6,5 +6,5 @@ struct S { [[stage(compute), workgroup_size(1)]] fn main() { var v : S; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/struct.wgsl.expected.hlsl b/test/var/initialization/function/struct.wgsl.expected.hlsl index 30ca129f1b..a64b616c34 100644 --- a/test/var/initialization/function/struct.wgsl.expected.hlsl +++ b/test/var/initialization/function/struct.wgsl.expected.hlsl @@ -6,6 +6,5 @@ struct S { [numthreads(1, 1, 1)] void main() { S v = (S)0; - v; return; } diff --git a/test/var/initialization/function/struct.wgsl.expected.msl b/test/var/initialization/function/struct.wgsl.expected.msl index ffec229457..7e754bca03 100644 --- a/test/var/initialization/function/struct.wgsl.expected.msl +++ b/test/var/initialization/function/struct.wgsl.expected.msl @@ -8,7 +8,6 @@ struct S { kernel void tint_symbol() { S v = {}; - (void) v; return; } diff --git a/test/var/initialization/function/struct.wgsl.expected.spvasm b/test/var/initialization/function/struct.wgsl.expected.spvasm index f29f7fc234..8a92690640 100644 --- a/test/var/initialization/function/struct.wgsl.expected.spvasm +++ b/test/var/initialization/function/struct.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 12 +; Bound: 11 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/function/struct.wgsl.expected.wgsl b/test/var/initialization/function/struct.wgsl.expected.wgsl index 57ec0e64cc..57bf9a7aca 100644 --- a/test/var/initialization/function/struct.wgsl.expected.wgsl +++ b/test/var/initialization/function/struct.wgsl.expected.wgsl @@ -6,5 +6,5 @@ struct S { [[stage(compute), workgroup_size(1)]] fn main() { var v : S; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/vector.wgsl b/test/var/initialization/function/vector.wgsl index 24c52b456d..95516f69f1 100644 --- a/test/var/initialization/function/vector.wgsl +++ b/test/var/initialization/function/vector.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : vec3; - ignore(v); + _ = v; } diff --git a/test/var/initialization/function/vector.wgsl.expected.hlsl b/test/var/initialization/function/vector.wgsl.expected.hlsl index f595b78661..325ed1a5a3 100644 --- a/test/var/initialization/function/vector.wgsl.expected.hlsl +++ b/test/var/initialization/function/vector.wgsl.expected.hlsl @@ -1,6 +1,5 @@ [numthreads(1, 1, 1)] void main() { int3 v = int3(0, 0, 0); - v; return; } diff --git a/test/var/initialization/function/vector.wgsl.expected.msl b/test/var/initialization/function/vector.wgsl.expected.msl index c1b8f4d562..6896c5e2ce 100644 --- a/test/var/initialization/function/vector.wgsl.expected.msl +++ b/test/var/initialization/function/vector.wgsl.expected.msl @@ -3,7 +3,6 @@ using namespace metal; kernel void tint_symbol() { int3 v = 0; - (void) v; return; } diff --git a/test/var/initialization/function/vector.wgsl.expected.spvasm b/test/var/initialization/function/vector.wgsl.expected.spvasm index ce9e523f7a..0ba9ded7e3 100644 --- a/test/var/initialization/function/vector.wgsl.expected.spvasm +++ b/test/var/initialization/function/vector.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 11 +; Bound: 10 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/function/vector.wgsl.expected.wgsl b/test/var/initialization/function/vector.wgsl.expected.wgsl index 6fd0442797..796b9e3d85 100644 --- a/test/var/initialization/function/vector.wgsl.expected.wgsl +++ b/test/var/initialization/function/vector.wgsl.expected.wgsl @@ -1,5 +1,5 @@ [[stage(compute), workgroup_size(1)]] fn main() { var v : vec3; - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/array.wgsl b/test/var/initialization/private/array.wgsl index 9dae8f7d16..8f7374a5b6 100644 --- a/test/var/initialization/private/array.wgsl +++ b/test/var/initialization/private/array.wgsl @@ -2,5 +2,5 @@ var v : array; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/array.wgsl.expected.hlsl b/test/var/initialization/private/array.wgsl.expected.hlsl index 48b2b5b9ba..5cedea9503 100644 --- a/test/var/initialization/private/array.wgsl.expected.hlsl +++ b/test/var/initialization/private/array.wgsl.expected.hlsl @@ -2,6 +2,5 @@ static int v[3] = (int[3])0; [numthreads(1, 1, 1)] void main() { - v; return; } diff --git a/test/var/initialization/private/array.wgsl.expected.msl b/test/var/initialization/private/array.wgsl.expected.msl index ab06870491..f6ced8bbae 100644 --- a/test/var/initialization/private/array.wgsl.expected.msl +++ b/test/var/initialization/private/array.wgsl.expected.msl @@ -7,7 +7,6 @@ struct tint_array_wrapper { kernel void tint_symbol() { thread tint_array_wrapper tint_symbol_1 = {}; - (void) tint_symbol_1; return; } diff --git a/test/var/initialization/private/array.wgsl.expected.spvasm b/test/var/initialization/private/array.wgsl.expected.spvasm index 4a35a3a6ab..90c0ea5084 100644 --- a/test/var/initialization/private/array.wgsl.expected.spvasm +++ b/test/var/initialization/private/array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 13 +; Bound: 12 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/private/array.wgsl.expected.wgsl b/test/var/initialization/private/array.wgsl.expected.wgsl index 3b54ea90a4..6f7612745a 100644 --- a/test/var/initialization/private/array.wgsl.expected.wgsl +++ b/test/var/initialization/private/array.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : array; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/matrix.wgsl b/test/var/initialization/private/matrix.wgsl index b167840202..2530cc6fd8 100644 --- a/test/var/initialization/private/matrix.wgsl +++ b/test/var/initialization/private/matrix.wgsl @@ -2,5 +2,5 @@ var v : mat2x3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/matrix.wgsl.expected.hlsl b/test/var/initialization/private/matrix.wgsl.expected.hlsl index df9907e6aa..c6aac5c2b3 100644 --- a/test/var/initialization/private/matrix.wgsl.expected.hlsl +++ b/test/var/initialization/private/matrix.wgsl.expected.hlsl @@ -2,6 +2,5 @@ static float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); [numthreads(1, 1, 1)] void main() { - v; return; } diff --git a/test/var/initialization/private/matrix.wgsl.expected.msl b/test/var/initialization/private/matrix.wgsl.expected.msl index 76f97114df..b719283ba3 100644 --- a/test/var/initialization/private/matrix.wgsl.expected.msl +++ b/test/var/initialization/private/matrix.wgsl.expected.msl @@ -3,7 +3,6 @@ using namespace metal; kernel void tint_symbol() { thread float2x3 tint_symbol_1 = float2x3(0.0f); - (void) tint_symbol_1; return; } diff --git a/test/var/initialization/private/matrix.wgsl.expected.spvasm b/test/var/initialization/private/matrix.wgsl.expected.spvasm index e4c4739d90..4d6bc0ea2e 100644 --- a/test/var/initialization/private/matrix.wgsl.expected.spvasm +++ b/test/var/initialization/private/matrix.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 12 +; Bound: 11 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/private/matrix.wgsl.expected.wgsl b/test/var/initialization/private/matrix.wgsl.expected.wgsl index ce0680822e..73501a1df8 100644 --- a/test/var/initialization/private/matrix.wgsl.expected.wgsl +++ b/test/var/initialization/private/matrix.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : mat2x3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/scalar.wgsl b/test/var/initialization/private/scalar.wgsl index 117968603a..7c298cf396 100644 --- a/test/var/initialization/private/scalar.wgsl +++ b/test/var/initialization/private/scalar.wgsl @@ -2,5 +2,5 @@ var v : i32; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/scalar.wgsl.expected.hlsl b/test/var/initialization/private/scalar.wgsl.expected.hlsl index 0daf53c88a..a5deefa2f0 100644 --- a/test/var/initialization/private/scalar.wgsl.expected.hlsl +++ b/test/var/initialization/private/scalar.wgsl.expected.hlsl @@ -2,6 +2,5 @@ static int v = 0; [numthreads(1, 1, 1)] void main() { - v; return; } diff --git a/test/var/initialization/private/scalar.wgsl.expected.msl b/test/var/initialization/private/scalar.wgsl.expected.msl index c96b5991d2..895b363b84 100644 --- a/test/var/initialization/private/scalar.wgsl.expected.msl +++ b/test/var/initialization/private/scalar.wgsl.expected.msl @@ -3,7 +3,6 @@ using namespace metal; kernel void tint_symbol() { thread int tint_symbol_1 = 0; - (void) tint_symbol_1; return; } diff --git a/test/var/initialization/private/scalar.wgsl.expected.spvasm b/test/var/initialization/private/scalar.wgsl.expected.spvasm index 6cdfba2f2f..c437ca171f 100644 --- a/test/var/initialization/private/scalar.wgsl.expected.spvasm +++ b/test/var/initialization/private/scalar.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 10 +; Bound: 9 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/private/scalar.wgsl.expected.wgsl b/test/var/initialization/private/scalar.wgsl.expected.wgsl index e634b37da0..c412580938 100644 --- a/test/var/initialization/private/scalar.wgsl.expected.wgsl +++ b/test/var/initialization/private/scalar.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : i32; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/struct.wgsl b/test/var/initialization/private/struct.wgsl index 0c64c99e5e..d1b70f2a9f 100644 --- a/test/var/initialization/private/struct.wgsl +++ b/test/var/initialization/private/struct.wgsl @@ -7,5 +7,5 @@ var v : S; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/struct.wgsl.expected.hlsl b/test/var/initialization/private/struct.wgsl.expected.hlsl index 55161d8e21..2ec62875db 100644 --- a/test/var/initialization/private/struct.wgsl.expected.hlsl +++ b/test/var/initialization/private/struct.wgsl.expected.hlsl @@ -7,6 +7,5 @@ static S v = (S)0; [numthreads(1, 1, 1)] void main() { - v; return; } diff --git a/test/var/initialization/private/struct.wgsl.expected.msl b/test/var/initialization/private/struct.wgsl.expected.msl index 948d0b709a..053aa124a2 100644 --- a/test/var/initialization/private/struct.wgsl.expected.msl +++ b/test/var/initialization/private/struct.wgsl.expected.msl @@ -8,7 +8,6 @@ struct S { kernel void tint_symbol() { thread S tint_symbol_1 = {}; - (void) tint_symbol_1; return; } diff --git a/test/var/initialization/private/struct.wgsl.expected.spvasm b/test/var/initialization/private/struct.wgsl.expected.spvasm index fcab0f5dbb..20f1810cbf 100644 --- a/test/var/initialization/private/struct.wgsl.expected.spvasm +++ b/test/var/initialization/private/struct.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 12 +; Bound: 11 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/private/struct.wgsl.expected.wgsl b/test/var/initialization/private/struct.wgsl.expected.wgsl index f6777565de..3a0a381823 100644 --- a/test/var/initialization/private/struct.wgsl.expected.wgsl +++ b/test/var/initialization/private/struct.wgsl.expected.wgsl @@ -7,5 +7,5 @@ var v : S; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/vector.wgsl b/test/var/initialization/private/vector.wgsl index db1904e7e9..621a3ff52f 100644 --- a/test/var/initialization/private/vector.wgsl +++ b/test/var/initialization/private/vector.wgsl @@ -2,5 +2,5 @@ var v : vec3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/private/vector.wgsl.expected.hlsl b/test/var/initialization/private/vector.wgsl.expected.hlsl index 1f4a920388..bb1c19583a 100644 --- a/test/var/initialization/private/vector.wgsl.expected.hlsl +++ b/test/var/initialization/private/vector.wgsl.expected.hlsl @@ -2,6 +2,5 @@ static int3 v = int3(0, 0, 0); [numthreads(1, 1, 1)] void main() { - v; return; } diff --git a/test/var/initialization/private/vector.wgsl.expected.msl b/test/var/initialization/private/vector.wgsl.expected.msl index 6398a63d5e..c103cd782d 100644 --- a/test/var/initialization/private/vector.wgsl.expected.msl +++ b/test/var/initialization/private/vector.wgsl.expected.msl @@ -3,7 +3,6 @@ using namespace metal; kernel void tint_symbol() { thread int3 tint_symbol_1 = 0; - (void) tint_symbol_1; return; } diff --git a/test/var/initialization/private/vector.wgsl.expected.spvasm b/test/var/initialization/private/vector.wgsl.expected.spvasm index fdb0aa5761..7b66af9ec2 100644 --- a/test/var/initialization/private/vector.wgsl.expected.spvasm +++ b/test/var/initialization/private/vector.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 11 +; Bound: 10 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 diff --git a/test/var/initialization/private/vector.wgsl.expected.wgsl b/test/var/initialization/private/vector.wgsl.expected.wgsl index e5d11f7f80..7ed65cde31 100644 --- a/test/var/initialization/private/vector.wgsl.expected.wgsl +++ b/test/var/initialization/private/vector.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : vec3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/array.wgsl b/test/var/initialization/workgroup/array.wgsl index 9ba52fcfa3..1a91ef53f5 100644 --- a/test/var/initialization/workgroup/array.wgsl +++ b/test/var/initialization/workgroup/array.wgsl @@ -2,5 +2,5 @@ var v : array; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/array.wgsl.expected.hlsl b/test/var/initialization/workgroup/array.wgsl.expected.hlsl index 0b336d4e12..95222e99ed 100644 --- a/test/var/initialization/workgroup/array.wgsl.expected.hlsl +++ b/test/var/initialization/workgroup/array.wgsl.expected.hlsl @@ -12,7 +12,6 @@ void main_inner(uint local_invocation_index) { } } GroupMemoryBarrierWithGroupSync(); - v; } [numthreads(1, 1, 1)] diff --git a/test/var/initialization/workgroup/array.wgsl.expected.msl b/test/var/initialization/workgroup/array.wgsl.expected.msl index 4be25e1a1a..89175b00aa 100644 --- a/test/var/initialization/workgroup/array.wgsl.expected.msl +++ b/test/var/initialization/workgroup/array.wgsl.expected.msl @@ -11,7 +11,6 @@ void tint_symbol_inner(uint local_invocation_index, threadgroup tint_array_wrapp (*(tint_symbol_1)).arr[i] = int(); } threadgroup_barrier(mem_flags::mem_threadgroup); - (void) *(tint_symbol_1); } kernel void tint_symbol(uint local_invocation_index [[thread_index_in_threadgroup]]) { diff --git a/test/var/initialization/workgroup/array.wgsl.expected.spvasm b/test/var/initialization/workgroup/array.wgsl.expected.spvasm index 584939ee46..97682d3c23 100644 --- a/test/var/initialization/workgroup/array.wgsl.expected.spvasm +++ b/test/var/initialization/workgroup/array.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 43 +; Bound: 42 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 @@ -33,7 +33,7 @@ %uint_1 = OpConstant %uint 1 %uint_2 = OpConstant %uint 2 %uint_264 = OpConstant %uint 264 - %38 = OpTypeFunction %void + %37 = OpTypeFunction %void %main_inner = OpFunction %void None %9 %local_invocation_index = OpFunctionParameter %uint %13 = OpLabel @@ -65,9 +65,9 @@ OpControlBarrier %uint_2 %uint_2 %uint_264 OpReturn OpFunctionEnd - %main = OpFunction %void None %38 - %40 = OpLabel - %42 = OpLoad %uint %local_invocation_index_1 - %41 = OpFunctionCall %void %main_inner %42 + %main = OpFunction %void None %37 + %39 = OpLabel + %41 = OpLoad %uint %local_invocation_index_1 + %40 = OpFunctionCall %void %main_inner %41 OpReturn OpFunctionEnd diff --git a/test/var/initialization/workgroup/array.wgsl.expected.wgsl b/test/var/initialization/workgroup/array.wgsl.expected.wgsl index 5cfadc1071..e9ea7eb4fc 100644 --- a/test/var/initialization/workgroup/array.wgsl.expected.wgsl +++ b/test/var/initialization/workgroup/array.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : array; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/matrix.wgsl b/test/var/initialization/workgroup/matrix.wgsl index ddc128c140..2410685959 100644 --- a/test/var/initialization/workgroup/matrix.wgsl +++ b/test/var/initialization/workgroup/matrix.wgsl @@ -2,5 +2,5 @@ var v : mat2x3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/matrix.wgsl.expected.hlsl b/test/var/initialization/workgroup/matrix.wgsl.expected.hlsl index e2755de18b..db43579856 100644 --- a/test/var/initialization/workgroup/matrix.wgsl.expected.hlsl +++ b/test/var/initialization/workgroup/matrix.wgsl.expected.hlsl @@ -9,7 +9,6 @@ void main_inner(uint local_invocation_index) { v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); } GroupMemoryBarrierWithGroupSync(); - v; } [numthreads(1, 1, 1)] diff --git a/test/var/initialization/workgroup/matrix.wgsl.expected.msl b/test/var/initialization/workgroup/matrix.wgsl.expected.msl index 776f109888..de673020df 100644 --- a/test/var/initialization/workgroup/matrix.wgsl.expected.msl +++ b/test/var/initialization/workgroup/matrix.wgsl.expected.msl @@ -10,7 +10,6 @@ void tint_symbol_inner(uint local_invocation_index, threadgroup float2x3* const *(tint_symbol_1) = float2x3(); } threadgroup_barrier(mem_flags::mem_threadgroup); - (void) *(tint_symbol_1); } kernel void tint_symbol(threadgroup tint_symbol_4* tint_symbol_3 [[threadgroup(0)]], uint local_invocation_index [[thread_index_in_threadgroup]]) { diff --git a/test/var/initialization/workgroup/matrix.wgsl.expected.spvasm b/test/var/initialization/workgroup/matrix.wgsl.expected.spvasm index 6d2312d98f..f2bb297013 100644 --- a/test/var/initialization/workgroup/matrix.wgsl.expected.spvasm +++ b/test/var/initialization/workgroup/matrix.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 24 +; Bound: 23 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 @@ -26,7 +26,7 @@ %14 = OpConstantNull %mat2v3float %uint_2 = OpConstant %uint 2 %uint_264 = OpConstant %uint 264 - %19 = OpTypeFunction %void + %18 = OpTypeFunction %void %main_inner = OpFunction %void None %9 %local_invocation_index = OpFunctionParameter %uint %13 = OpLabel @@ -34,9 +34,9 @@ OpControlBarrier %uint_2 %uint_2 %uint_264 OpReturn OpFunctionEnd - %main = OpFunction %void None %19 - %21 = OpLabel - %23 = OpLoad %uint %local_invocation_index_1 - %22 = OpFunctionCall %void %main_inner %23 + %main = OpFunction %void None %18 + %20 = OpLabel + %22 = OpLoad %uint %local_invocation_index_1 + %21 = OpFunctionCall %void %main_inner %22 OpReturn OpFunctionEnd diff --git a/test/var/initialization/workgroup/matrix.wgsl.expected.wgsl b/test/var/initialization/workgroup/matrix.wgsl.expected.wgsl index 6477351913..df1a415293 100644 --- a/test/var/initialization/workgroup/matrix.wgsl.expected.wgsl +++ b/test/var/initialization/workgroup/matrix.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : mat2x3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/scalar.wgsl b/test/var/initialization/workgroup/scalar.wgsl index 58f11480ac..b9fcda7dd2 100644 --- a/test/var/initialization/workgroup/scalar.wgsl +++ b/test/var/initialization/workgroup/scalar.wgsl @@ -2,5 +2,5 @@ var v : i32; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/scalar.wgsl.expected.hlsl b/test/var/initialization/workgroup/scalar.wgsl.expected.hlsl index 41547eb97c..43e8f607dc 100644 --- a/test/var/initialization/workgroup/scalar.wgsl.expected.hlsl +++ b/test/var/initialization/workgroup/scalar.wgsl.expected.hlsl @@ -9,7 +9,6 @@ void main_inner(uint local_invocation_index) { v = 0; } GroupMemoryBarrierWithGroupSync(); - v; } [numthreads(1, 1, 1)] diff --git a/test/var/initialization/workgroup/scalar.wgsl.expected.msl b/test/var/initialization/workgroup/scalar.wgsl.expected.msl index 699380dc80..cbba65b25a 100644 --- a/test/var/initialization/workgroup/scalar.wgsl.expected.msl +++ b/test/var/initialization/workgroup/scalar.wgsl.expected.msl @@ -6,7 +6,6 @@ void tint_symbol_inner(uint local_invocation_index, threadgroup int* const tint_ *(tint_symbol_1) = int(); } threadgroup_barrier(mem_flags::mem_threadgroup); - (void) *(tint_symbol_1); } kernel void tint_symbol(uint local_invocation_index [[thread_index_in_threadgroup]]) { diff --git a/test/var/initialization/workgroup/scalar.wgsl.expected.spvasm b/test/var/initialization/workgroup/scalar.wgsl.expected.spvasm index 1cbc3ea8a3..34298e87b6 100644 --- a/test/var/initialization/workgroup/scalar.wgsl.expected.spvasm +++ b/test/var/initialization/workgroup/scalar.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 22 +; Bound: 21 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 @@ -24,7 +24,7 @@ %12 = OpConstantNull %int %uint_2 = OpConstant %uint 2 %uint_264 = OpConstant %uint 264 - %17 = OpTypeFunction %void + %16 = OpTypeFunction %void %main_inner = OpFunction %void None %7 %local_invocation_index = OpFunctionParameter %uint %11 = OpLabel @@ -32,9 +32,9 @@ OpControlBarrier %uint_2 %uint_2 %uint_264 OpReturn OpFunctionEnd - %main = OpFunction %void None %17 - %19 = OpLabel - %21 = OpLoad %uint %local_invocation_index_1 - %20 = OpFunctionCall %void %main_inner %21 + %main = OpFunction %void None %16 + %18 = OpLabel + %20 = OpLoad %uint %local_invocation_index_1 + %19 = OpFunctionCall %void %main_inner %20 OpReturn OpFunctionEnd diff --git a/test/var/initialization/workgroup/scalar.wgsl.expected.wgsl b/test/var/initialization/workgroup/scalar.wgsl.expected.wgsl index e92577b7cf..4a2272a84d 100644 --- a/test/var/initialization/workgroup/scalar.wgsl.expected.wgsl +++ b/test/var/initialization/workgroup/scalar.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : i32; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/struct.wgsl b/test/var/initialization/workgroup/struct.wgsl index 81a88b2fdc..4651335628 100644 --- a/test/var/initialization/workgroup/struct.wgsl +++ b/test/var/initialization/workgroup/struct.wgsl @@ -7,5 +7,5 @@ var v : S; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/struct.wgsl.expected.hlsl b/test/var/initialization/workgroup/struct.wgsl.expected.hlsl index 8b0b1f1893..277f3c942a 100644 --- a/test/var/initialization/workgroup/struct.wgsl.expected.hlsl +++ b/test/var/initialization/workgroup/struct.wgsl.expected.hlsl @@ -15,7 +15,6 @@ void main_inner(uint local_invocation_index) { v = tint_symbol_2; } GroupMemoryBarrierWithGroupSync(); - v; } [numthreads(1, 1, 1)] diff --git a/test/var/initialization/workgroup/struct.wgsl.expected.msl b/test/var/initialization/workgroup/struct.wgsl.expected.msl index a474b8fe47..619559ac63 100644 --- a/test/var/initialization/workgroup/struct.wgsl.expected.msl +++ b/test/var/initialization/workgroup/struct.wgsl.expected.msl @@ -12,7 +12,6 @@ void tint_symbol_inner(uint local_invocation_index, threadgroup S* const tint_sy *(tint_symbol_2) = tint_symbol_1; } threadgroup_barrier(mem_flags::mem_threadgroup); - (void) *(tint_symbol_2); } kernel void tint_symbol(uint local_invocation_index [[thread_index_in_threadgroup]]) { diff --git a/test/var/initialization/workgroup/struct.wgsl.expected.spvasm b/test/var/initialization/workgroup/struct.wgsl.expected.spvasm index 1ef4fc9979..3c74230941 100644 --- a/test/var/initialization/workgroup/struct.wgsl.expected.spvasm +++ b/test/var/initialization/workgroup/struct.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 24 +; Bound: 23 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 @@ -31,7 +31,7 @@ %14 = OpConstantNull %S %uint_2 = OpConstant %uint 2 %uint_264 = OpConstant %uint 264 - %19 = OpTypeFunction %void + %18 = OpTypeFunction %void %main_inner = OpFunction %void None %9 %local_invocation_index = OpFunctionParameter %uint %13 = OpLabel @@ -39,9 +39,9 @@ OpControlBarrier %uint_2 %uint_2 %uint_264 OpReturn OpFunctionEnd - %main = OpFunction %void None %19 - %21 = OpLabel - %23 = OpLoad %uint %local_invocation_index_1 - %22 = OpFunctionCall %void %main_inner %23 + %main = OpFunction %void None %18 + %20 = OpLabel + %22 = OpLoad %uint %local_invocation_index_1 + %21 = OpFunctionCall %void %main_inner %22 OpReturn OpFunctionEnd diff --git a/test/var/initialization/workgroup/struct.wgsl.expected.wgsl b/test/var/initialization/workgroup/struct.wgsl.expected.wgsl index 77244de177..7b2e10eb2e 100644 --- a/test/var/initialization/workgroup/struct.wgsl.expected.wgsl +++ b/test/var/initialization/workgroup/struct.wgsl.expected.wgsl @@ -7,5 +7,5 @@ var v : S; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/vector.wgsl b/test/var/initialization/workgroup/vector.wgsl index efad7b11b4..c1ff6bb059 100644 --- a/test/var/initialization/workgroup/vector.wgsl +++ b/test/var/initialization/workgroup/vector.wgsl @@ -2,5 +2,5 @@ var v : vec3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; } diff --git a/test/var/initialization/workgroup/vector.wgsl.expected.hlsl b/test/var/initialization/workgroup/vector.wgsl.expected.hlsl index 4219ded428..299df38ee9 100644 --- a/test/var/initialization/workgroup/vector.wgsl.expected.hlsl +++ b/test/var/initialization/workgroup/vector.wgsl.expected.hlsl @@ -9,7 +9,6 @@ void main_inner(uint local_invocation_index) { v = int3(0, 0, 0); } GroupMemoryBarrierWithGroupSync(); - v; } [numthreads(1, 1, 1)] diff --git a/test/var/initialization/workgroup/vector.wgsl.expected.msl b/test/var/initialization/workgroup/vector.wgsl.expected.msl index 26843ff0a0..d114b14cb6 100644 --- a/test/var/initialization/workgroup/vector.wgsl.expected.msl +++ b/test/var/initialization/workgroup/vector.wgsl.expected.msl @@ -6,7 +6,6 @@ void tint_symbol_inner(uint local_invocation_index, threadgroup int3* const tint *(tint_symbol_1) = int3(); } threadgroup_barrier(mem_flags::mem_threadgroup); - (void) *(tint_symbol_1); } kernel void tint_symbol(uint local_invocation_index [[thread_index_in_threadgroup]]) { diff --git a/test/var/initialization/workgroup/vector.wgsl.expected.spvasm b/test/var/initialization/workgroup/vector.wgsl.expected.spvasm index 9efd8ebfd5..4ac8187386 100644 --- a/test/var/initialization/workgroup/vector.wgsl.expected.spvasm +++ b/test/var/initialization/workgroup/vector.wgsl.expected.spvasm @@ -1,7 +1,7 @@ ; SPIR-V ; Version: 1.3 ; Generator: Google Tint Compiler; 0 -; Bound: 23 +; Bound: 22 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 @@ -25,7 +25,7 @@ %13 = OpConstantNull %v3int %uint_2 = OpConstant %uint 2 %uint_264 = OpConstant %uint 264 - %18 = OpTypeFunction %void + %17 = OpTypeFunction %void %main_inner = OpFunction %void None %8 %local_invocation_index = OpFunctionParameter %uint %12 = OpLabel @@ -33,9 +33,9 @@ OpControlBarrier %uint_2 %uint_2 %uint_264 OpReturn OpFunctionEnd - %main = OpFunction %void None %18 - %20 = OpLabel - %22 = OpLoad %uint %local_invocation_index_1 - %21 = OpFunctionCall %void %main_inner %22 + %main = OpFunction %void None %17 + %19 = OpLabel + %21 = OpLoad %uint %local_invocation_index_1 + %20 = OpFunctionCall %void %main_inner %21 OpReturn OpFunctionEnd diff --git a/test/var/initialization/workgroup/vector.wgsl.expected.wgsl b/test/var/initialization/workgroup/vector.wgsl.expected.wgsl index 78f4426818..a3aead5960 100644 --- a/test/var/initialization/workgroup/vector.wgsl.expected.wgsl +++ b/test/var/initialization/workgroup/vector.wgsl.expected.wgsl @@ -2,5 +2,5 @@ var v : vec3; [[stage(compute), workgroup_size(1)]] fn main() { - ignore(v); + _ = v; }