[glsl][ir] Regenerate skips

Bug: 42251044
Change-Id: Ie72c64f8fa983b70d3b60506bef17f976d7a0a6e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/206654
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/access/ptr.wgsl.expected.ir.glsl b/test/tint/access/ptr.wgsl.expected.ir.glsl
index 072de26..1c00ea3 100644
--- a/test/tint/access/ptr.wgsl.expected.ir.glsl
+++ b/test/tint/access/ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/array/assign_to_subexpr.wgsl.expected.ir.glsl b/test/tint/array/assign_to_subexpr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/array/assign_to_subexpr.wgsl.expected.ir.glsl
+++ b/test/tint/array/assign_to_subexpr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/benchmark/cluster-lights.wgsl.expected.ir.glsl b/test/tint/benchmark/cluster-lights.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/benchmark/cluster-lights.wgsl.expected.ir.glsl
+++ b/test/tint/benchmark/cluster-lights.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/benchmark/metaball-isosurface.wgsl.expected.ir.glsl b/test/tint/benchmark/metaball-isosurface.wgsl.expected.ir.glsl
index 072de26..1c00ea3 100644
--- a/test/tint/benchmark/metaball-isosurface.wgsl.expected.ir.glsl
+++ b/test/tint/benchmark/metaball-isosurface.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/benchmark/particles.wgsl.expected.ir.glsl b/test/tint/benchmark/particles.wgsl.expected.ir.glsl
index 43548a7..751ed93 100644
--- a/test/tint/benchmark/particles.wgsl.expected.ir.glsl
+++ b/test/tint/benchmark/particles.wgsl.expected.ir.glsl
@@ -1,6 +1,78 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+#version 310 es
+
+
+struct RenderParams {
+  mat4 modelViewProjectionMatrix;
+  vec3 right;
+  vec3 up;
+};
+
+struct VertexOutput {
+  vec4 position;
+  vec4 color;
+  vec2 quad_pos;
+};
+
+struct VertexInput {
+  vec3 position;
+  vec4 color;
+  vec2 quad_pos;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_3_1_ubo {
+  RenderParams tint_symbol_2;
+} v;
+layout(location = 0) in vec3 vs_main_loc0_Input;
+layout(location = 1) in vec4 vs_main_loc1_Input;
+layout(location = 2) in vec2 vs_main_loc2_Input;
+layout(location = 0) out vec4 vs_main_loc0_Output;
+layout(location = 1) out vec2 vs_main_loc1_Output;
+VertexOutput vs_main_inner(VertexInput tint_symbol) {
+  vec3 quad_pos = (mat2x3(v.tint_symbol_2.right, v.tint_symbol_2.up) * tint_symbol.quad_pos);
+  vec3 position = (tint_symbol.position + (quad_pos * 0.00999999977648258209f));
+  VertexOutput tint_symbol_1 = VertexOutput(vec4(0.0f), vec4(0.0f), vec2(0.0f));
+  mat4 v_1 = v.tint_symbol_2.modelViewProjectionMatrix;
+  tint_symbol_1.position = (v_1 * vec4(position, 1.0f));
+  tint_symbol_1.color = tint_symbol.color;
+  tint_symbol_1.quad_pos = tint_symbol.quad_pos;
+  return tint_symbol_1;
+}
+void main() {
+  VertexOutput v_2 = vs_main_inner(VertexInput(vs_main_loc0_Input, vs_main_loc1_Input, vs_main_loc2_Input));
+  gl_Position = v_2.position;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vs_main_loc0_Output = v_2.color;
+  vs_main_loc1_Output = v_2.quad_pos;
+  gl_PointSize = 1.0f;
+}
+#version 310 es
+precision highp float;
+precision highp int;
+
+
+struct VertexOutput {
+  vec4 position;
+  vec4 color;
+  vec2 quad_pos;
+};
+
+layout(location = 0) in vec4 fs_main_loc0_Input;
+layout(location = 1) in vec2 fs_main_loc1_Input;
+layout(location = 0) out vec4 fs_main_loc0_Output;
+vec4 fs_main_inner(VertexOutput tint_symbol) {
+  vec4 color = tint_symbol.color;
+  float v = color.w;
+  color[3u] = (v * max((1.0f - length(tint_symbol.quad_pos)), 0.0f));
+  return color;
+}
+void main() {
+  fs_main_loc0_Output = fs_main_inner(VertexOutput(gl_FragCoord, fs_main_loc0_Input, fs_main_loc1_Input));
+}
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/benchmark/shadow-fragment.wgsl.expected.ir.glsl b/test/tint/benchmark/shadow-fragment.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/benchmark/shadow-fragment.wgsl.expected.ir.glsl
+++ b/test/tint/benchmark/shadow-fragment.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.ir.glsl b/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.ir.glsl
+++ b/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/chromium/1251009.wgsl.expected.ir.glsl b/test/tint/bug/chromium/1251009.wgsl.expected.ir.glsl
index fccae17..6b5ab1a 100644
--- a/test/tint/bug/chromium/1251009.wgsl.expected.ir.glsl
+++ b/test/tint/bug/chromium/1251009.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct VertexInputs0 {
   uint vertex_index;
   int loc0;
@@ -12,15 +13,29 @@
   vec4 loc3;
 };
 
-vec4 main(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) {
+layout(location = 0) in int tint_symbol_loc0_Input;
+layout(location = 1) in uint tint_symbol_loc1_Input;
+layout(location = 2) in uint tint_symbol_loc2_Input;
+layout(location = 3) in vec4 tint_symbol_loc3_Input;
+vec4 tint_symbol_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) {
   uint foo = (inputs0.vertex_index + instance_index);
   return vec4(0.0f);
 }
+void main() {
+  VertexInputs0 v = VertexInputs0(gl_VertexID, tint_symbol_loc0_Input);
+  uint v_1 = tint_symbol_loc1_Input;
+  uint v_2 = gl_InstanceID;
+  gl_Position = tint_symbol_inner(v, v_1, v_2, VertexInputs1(tint_symbol_loc2_Input, tint_symbol_loc3_Input));
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:13: 'main' : function cannot take any parameter(s) 
-ERROR: 0:13: 'float' :  entry point cannot return a value
-ERROR: 0:13: '' : compilation terminated 
-ERROR: 3 compilation errors.  No code generated.
+ERROR: 0:23: 'constructor' :  cannot convert parameter 1 from ' gl_VertexId highp int VertexId' to ' global highp uint'
+ERROR: 0:23: ' temp structure{ global highp uint vertex_index,  global highp int loc0}' : cannot construct with these arguments 
+ERROR: 0:23: '=' :  cannot convert from ' const float' to ' temp structure{ global highp uint vertex_index,  global highp int loc0}'
+ERROR: 0:23: '' : compilation terminated 
+ERROR: 4 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/bug/chromium/1273230.wgsl.expected.ir.glsl b/test/tint/bug/chromium/1273230.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/bug/chromium/1273230.wgsl.expected.ir.glsl
+++ b/test/tint/bug/chromium/1273230.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/chromium/1290107.wgsl.expected.ir.glsl b/test/tint/bug/chromium/1290107.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/bug/chromium/1290107.wgsl.expected.ir.glsl
+++ b/test/tint/bug/chromium/1290107.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/chromium/1360925.wgsl.expected.ir.glsl b/test/tint/bug/chromium/1360925.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/bug/chromium/1360925.wgsl.expected.ir.glsl
+++ b/test/tint/bug/chromium/1360925.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/chromium/1405676.wgsl.expected.ir.glsl b/test/tint/bug/chromium/1405676.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/bug/chromium/1405676.wgsl.expected.ir.glsl
+++ b/test/tint/bug/chromium/1405676.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/chromium/1433499.wgsl.expected.ir.glsl b/test/tint/bug/chromium/1433499.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/bug/chromium/1433499.wgsl.expected.ir.glsl
+++ b/test/tint/bug/chromium/1433499.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/chromium/1434271.wgsl.expected.ir.glsl b/test/tint/bug/chromium/1434271.wgsl.expected.ir.glsl
index d0115e4..7193d29 100644
--- a/test/tint/bug/chromium/1434271.wgsl.expected.ir.glsl
+++ b/test/tint/bug/chromium/1434271.wgsl.expected.ir.glsl
@@ -1,6 +1,137 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+void asinh_468a48() {
+  float16_t arg_0 = 0.0hf;
+  float16_t res = asinh(arg_0);
+}
+vec4 vertex_main_inner() {
+  asinh_468a48();
+  return vec4(0.0f);
+}
+void main() {
+  gl_Position = vertex_main_inner();
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
+
+void asinh_468a48() {
+  float16_t arg_0 = 0.0hf;
+  float16_t res = asinh(arg_0);
+}
+void main() {
+  asinh_468a48();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+void asinh_468a48() {
+  float16_t arg_0 = 0.0hf;
+  float16_t res = asinh(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  asinh_468a48();
+}
+#version 310 es
+
+
+struct RenderParams {
+  mat4 modelViewProjectionMatrix;
+  vec3 right;
+  vec3 up;
+};
+
+struct VertexOutput {
+  vec4 position;
+  vec4 color;
+  vec2 quad_pos;
+};
+
+struct VertexInput {
+  vec3 position;
+  vec4 color;
+  vec2 quad_pos;
+};
+
+layout(binding = 5, std140)
+uniform tint_symbol_3_1_ubo {
+  RenderParams tint_symbol_2;
+} v;
+layout(location = 0) in vec3 vs_main_loc0_Input;
+layout(location = 1) in vec4 vs_main_loc1_Input;
+layout(location = 2) in vec2 vs_main_loc2_Input;
+layout(location = 0) out vec4 vs_main_loc0_Output;
+layout(location = 1) out vec2 vs_main_loc1_Output;
+VertexOutput vs_main_inner(VertexInput tint_symbol) {
+  vec3 quad_pos = (mat2x3(v.tint_symbol_2.right, v.tint_symbol_2.up) * tint_symbol.quad_pos);
+  vec3 position = (tint_symbol.position - (quad_pos + 0.00999999977648258209f));
+  VertexOutput tint_symbol_1 = VertexOutput(vec4(0.0f), vec4(0.0f), vec2(0.0f));
+  mat4 v_1 = v.tint_symbol_2.modelViewProjectionMatrix;
+  tint_symbol_1.position = (v_1 * vec4(position, 1.0f));
+  tint_symbol_1.color = tint_symbol.color;
+  tint_symbol_1.quad_pos = tint_symbol.quad_pos;
+  return tint_symbol_1;
+}
+void main() {
+  VertexOutput v_2 = vs_main_inner(VertexInput(vs_main_loc0_Input, vs_main_loc1_Input, vs_main_loc2_Input));
+  gl_Position = v_2.position;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vs_main_loc0_Output = v_2.color;
+  vs_main_loc1_Output = v_2.quad_pos;
+  gl_PointSize = 1.0f;
+}
+#version 310 es
+
+
+struct SimulationParams {
+  float deltaTime;
+  vec4 seed;
+};
+
+struct Particle {
+  vec3 position;
+  float lifetime;
+  vec4 color;
+  vec2 velocity;
+};
+
+vec2 rand_seed = vec2(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_1_1_ubo {
+  SimulationParams tint_symbol;
+} v;
+layout(binding = 1, std430)
+buffer Particles_1_ssbo {
+  Particle particles[];
+} data;
+void tint_store_and_preserve_padding(inout Particle target, Particle value_param) {
+  target.position = value_param.position;
+  target.lifetime = value_param.lifetime;
+  target.color = value_param.color;
+  target.velocity = value_param.velocity;
+}
+void simulate_inner(uvec3 GlobalInvocationID) {
+  vec2 v_1 = v.tint_symbol.seed.xy;
+  vec2 v_2 = (v_1 * vec2(GlobalInvocationID.xy));
+  rand_seed = (v_2 * v.tint_symbol.seed.zw);
+  uint idx = GlobalInvocationID[0u];
+  Particle particle = data.particles[idx];
+  tint_store_and_preserve_padding(data.particles[idx], particle);
+}
+layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  simulate_inner(gl_GlobalInvocationID);
+}
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/dawn/947.wgsl.expected.ir.glsl b/test/tint/bug/dawn/947.wgsl.expected.ir.glsl
index b771681..c0dbc03 100644
--- a/test/tint/bug/dawn/947.wgsl.expected.ir.glsl
+++ b/test/tint/bug/dawn/947.wgsl.expected.ir.glsl
@@ -1,11 +1,78 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+
+struct Uniforms {
+  vec2 u_scale;
+  vec2 u_offset;
+};
+
+struct VertexOutputs {
+  vec2 texcoords;
+  vec4 position;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  Uniforms tint_symbol_1;
+} v;
+layout(location = 0) out vec2 vs_main_loc0_Output;
+VertexOutputs vs_main_inner(uint VertexIndex) {
+  vec2 texcoord[3] = vec2[3](vec2(-0.5f, 0.0f), vec2(1.5f, 0.0f), vec2(0.5f, 2.0f));
+  VertexOutputs tint_symbol = VertexOutputs(vec2(0.0f), vec4(0.0f));
+  tint_symbol.position = vec4(((texcoord[VertexIndex] * 2.0f) - vec2(1.0f)), 0.0f, 1.0f);
+  bool flipY = (v.tint_symbol_1.u_scale.y < 0.0f);
+  if (flipY) {
+    tint_symbol.texcoords = ((((texcoord[VertexIndex] * v.tint_symbol_1.u_scale) + v.tint_symbol_1.u_offset) * vec2(1.0f, -1.0f)) + vec2(0.0f, 1.0f));
+  } else {
+    tint_symbol.texcoords = ((((texcoord[VertexIndex] * vec2(1.0f, -1.0f)) + vec2(0.0f, 1.0f)) * v.tint_symbol_1.u_scale) + v.tint_symbol_1.u_offset);
+  }
+  return tint_symbol;
+}
+void main() {
+  VertexOutputs v_1 = vs_main_inner(gl_VertexID);
+  vs_main_loc0_Output = v_1.texcoords;
+  gl_Position = v_1.position;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:32: 'vs_main_inner' : no matching overloaded function found 
+ERROR: 0:32: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float texcoords,  global highp 4-component vector of float position}'
+ERROR: 0:32: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+precision highp float;
+precision highp int;
+
+bool continue_execution = true;
+layout(location = 0) in vec2 fs_main_loc0_Input;
+layout(location = 0) out vec4 fs_main_loc0_Output;
+vec4 fs_main_inner(vec2 texcoord) {
+  vec2 clampedTexcoord = clamp(texcoord, vec2(0.0f), vec2(1.0f));
+  if (!(all((clampedTexcoord == texcoord)))) {
+    continue_execution = false;
+  }
+  vec4 srcColor = vec4(0.0f);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return srcColor;
+}
+void main() {
+  fs_main_loc0_Output = fs_main_inner(fs_main_loc0_Input);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'all' : no matching overloaded function found 
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.ir.glsl b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.ir.glsl
+++ b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1076.wgsl.expected.ir.glsl b/test/tint/bug/tint/1076.wgsl.expected.ir.glsl
index 372ebfb..48a00f6 100644
--- a/test/tint/bug/tint/1076.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1076.wgsl.expected.ir.glsl
@@ -1,25 +1,36 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+precision highp float;
+precision highp int;
+
 
 struct FragIn {
   float a;
   uint mask;
 };
-precision highp float;
-precision highp int;
 
-
-FragIn main(FragIn tint_symbol_1, float b) {
+layout(location = 0) in float tint_symbol_loc0_Input;
+layout(location = 1) in float tint_symbol_loc1_Input;
+layout(location = 0) out float tint_symbol_loc0_Output;
+FragIn tint_symbol_inner(FragIn tint_symbol_1, float b) {
   if ((tint_symbol_1.mask == 0u)) {
     return tint_symbol_1;
   }
   return FragIn(b, 1u);
 }
+void main() {
+  FragIn v = FragIn(tint_symbol_loc0_Input, gl_SampleMaskIn);
+  FragIn v_1 = tint_symbol_inner(v, tint_symbol_loc1_Input);
+  tint_symbol_loc0_Output = v_1.a;
+  gl_SampleMask = v_1.mask;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:22: 'constructor' : array argument must be sized 
+ERROR: 0:22: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float a,  global highp uint mask}'
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/bug/tint/1083.wgsl.expected.ir.glsl b/test/tint/bug/tint/1083.wgsl.expected.ir.glsl
index f297654..9a80d39 100644
--- a/test/tint/bug/tint/1083.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1083.wgsl.expected.ir.glsl
@@ -1,11 +1,23 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 0;
+  int c = tint_div_i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/bug/tint/1113.wgsl.expected.ir.glsl b/test/tint/bug/tint/1113.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/bug/tint/1113.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1113.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1121.wgsl.expected.ir.glsl b/test/tint/bug/tint/1121.wgsl.expected.ir.glsl
index 072de26..1c00ea3 100644
--- a/test/tint/bug/tint/1121.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1121.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1183.wgsl.expected.ir.glsl b/test/tint/bug/tint/1183.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/bug/tint/1183.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1183.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1321.wgsl.expected.ir.glsl b/test/tint/bug/tint/1321.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/bug/tint/1321.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1321.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1520.spvasm.expected.ir.glsl b/test/tint/bug/tint/1520.spvasm.expected.ir.glsl
index f297654..4f6e252 100644
--- a/test/tint/bug/tint/1520.spvasm.expected.ir.glsl
+++ b/test/tint/bug/tint/1520.spvasm.expected.ir.glsl
@@ -1,11 +1,177 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct UniformBuffer_std140 {
+  float unknownInput_S1_c0;
+  vec4 ucolorRed_S1_c0;
+  vec4 ucolorGreen_S1_c0;
+  vec3 umatrix_S1_col0;
+  vec3 umatrix_S1_col1;
+  vec3 umatrix_S1_col2;
+};
+
+struct main_out {
+  vec4 sk_FragColor_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_std140_1_ubo {
+  UniformBuffer_std140 tint_symbol_1;
+} v;
+vec4 sk_FragColor = vec4(0.0f);
+bool sk_Clockwise = false;
+vec4 vcolor_S0 = vec4(0.0f);
+layout(location = 0) in vec4 tint_symbol_loc0_Input;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+ivec4 tint_div_v4i32(ivec4 lhs, ivec4 rhs) {
+  int v_1 = ((((rhs == ivec4(0)) | ((lhs == ivec4((-2147483647 - 1))) & (rhs == ivec4(-1)))).x) ? (ivec4(1).x) : (rhs.x));
+  int v_2 = ((((rhs == ivec4(0)) | ((lhs == ivec4((-2147483647 - 1))) & (rhs == ivec4(-1)))).y) ? (ivec4(1).y) : (rhs.y));
+  int v_3 = ((((rhs == ivec4(0)) | ((lhs == ivec4((-2147483647 - 1))) & (rhs == ivec4(-1)))).z) ? (ivec4(1).z) : (rhs.z));
+  return (lhs / ivec4(v_1, v_2, v_3, ((((rhs == ivec4(0)) | ((lhs == ivec4((-2147483647 - 1))) & (rhs == ivec4(-1)))).w) ? (ivec4(1).w) : (rhs.w))));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+bool test_int_S1_c0_b() {
+  int unknown = 0;
+  bool ok = false;
+  ivec4 val = ivec4(0);
+  bool x_40 = false;
+  bool x_41 = false;
+  bool x_54 = false;
+  bool x_55 = false;
+  bool x_65 = false;
+  bool x_66 = false;
+  int x_27 = tint_f32_to_i32(v.tint_symbol_1.unknownInput_S1_c0);
+  unknown = x_27;
+  ok = true;
+  x_41 = false;
+  if (true) {
+    x_40 = all((tint_div_v4i32(ivec4(0), ivec4(x_27)) == ivec4(0)));
+    x_41 = x_40;
+  }
+  ok = x_41;
+  ivec4 x_44 = ivec4(x_27);
+  val = x_44;
+  ivec4 x_47 = (x_44 + ivec4(1));
+  val = x_47;
+  ivec4 x_48 = (x_47 - ivec4(1));
+  val = x_48;
+  ivec4 x_49 = (x_48 + ivec4(1));
+  val = x_49;
+  ivec4 x_50 = (x_49 - ivec4(1));
+  val = x_50;
+  x_55 = false;
+  if (x_41) {
+    x_54 = all((x_50 == x_44));
+    x_55 = x_54;
+  }
+  ok = x_55;
+  ivec4 x_58 = (x_50 * ivec4(2));
+  val = x_58;
+  ivec4 x_59 = tint_div_v4i32(x_58, ivec4(2));
+  val = x_59;
+  ivec4 x_60 = (x_59 * ivec4(2));
+  val = x_60;
+  ivec4 x_61 = tint_div_v4i32(x_60, ivec4(2));
+  val = x_61;
+  x_66 = false;
+  if (x_55) {
+    x_65 = all((x_61 == x_44));
+    x_66 = x_65;
+  }
+  ok = x_66;
+  return x_66;
+}
+void main_1() {
+  vec4 outputColor_S0 = vec4(0.0f);
+  vec4 output_S1 = vec4(0.0f);
+  float x_8_unknown = 0.0f;
+  bool x_9_ok = false;
+  vec4 x_10_val = vec4(0.0f);
+  vec4 x_116 = vec4(0.0f);
+  bool x_86 = false;
+  bool x_87 = false;
+  bool x_99 = false;
+  bool x_100 = false;
+  bool x_110 = false;
+  bool x_111 = false;
+  bool x_114 = false;
+  bool x_115 = false;
+  outputColor_S0 = vcolor_S0;
+  float x_77 = v.tint_symbol_1.unknownInput_S1_c0;
+  x_8_unknown = x_77;
+  x_9_ok = true;
+  x_87 = false;
+  if (true) {
+    x_86 = all(((vec4(0.0f) / vec4(x_77)) == vec4(0.0f)));
+    x_87 = x_86;
+  }
+  x_9_ok = x_87;
+  vec4 x_89 = vec4(x_77);
+  x_10_val = x_89;
+  vec4 x_92 = (x_89 + vec4(1.0f));
+  x_10_val = x_92;
+  vec4 x_93 = (x_92 - vec4(1.0f));
+  x_10_val = x_93;
+  vec4 x_94 = (x_93 + vec4(1.0f));
+  x_10_val = x_94;
+  vec4 x_95 = (x_94 - vec4(1.0f));
+  x_10_val = x_95;
+  x_100 = false;
+  if (x_87) {
+    x_99 = all((x_95 == x_89));
+    x_100 = x_99;
+  }
+  x_9_ok = x_100;
+  vec4 x_103 = (x_95 * vec4(2.0f));
+  x_10_val = x_103;
+  vec4 x_104 = (x_103 / vec4(2.0f));
+  x_10_val = x_104;
+  vec4 x_105 = (x_104 * vec4(2.0f));
+  x_10_val = x_105;
+  vec4 x_106 = (x_105 / vec4(2.0f));
+  x_10_val = x_106;
+  x_111 = false;
+  if (x_100) {
+    x_110 = all((x_106 == x_89));
+    x_111 = x_110;
+  }
+  x_9_ok = x_111;
+  x_115 = false;
+  if (x_111) {
+    x_114 = test_int_S1_c0_b();
+    x_115 = x_114;
+  }
+  if (x_115) {
+    x_116 = v.tint_symbol_1.ucolorGreen_S1_c0;
+  } else {
+    x_116 = v.tint_symbol_1.ucolorRed_S1_c0;
+  }
+  vec4 x_125 = x_116;
+  output_S1 = x_116;
+  sk_FragColor = x_125;
+}
+main_out tint_symbol_inner(bool sk_Clockwise_param, vec4 vcolor_S0_param) {
+  sk_Clockwise = sk_Clockwise_param;
+  vcolor_S0 = vcolor_S0_param;
+  main_1();
+  return main_out(sk_FragColor);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner(gl_FrontFacing, tint_symbol_loc0_Input).sk_FragColor_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:29: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:29: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:29: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/bug/tint/1534.wgsl.expected.ir.glsl b/test/tint/bug/tint/1534.wgsl.expected.ir.glsl
index 5606397..9b255e2 100644
--- a/test/tint/bug/tint/1534.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1534.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct g {
   uvec3 a;
 };
@@ -10,17 +11,23 @@
   uint a;
 };
 
-uniform g i;
-h j;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  g tint_symbol_1;
+} v;
+layout(binding = 1, std430)
+buffer tint_symbol_4_1_ssbo {
+  h tint_symbol_3;
+} v_1;
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  uint l = dot(i.a, i.a);
-  j.a = i.a.x;
+  uint l = dot(v.tint_symbol_1.a, v.tint_symbol_1.a);
+  v_1.tint_symbol_3.a = v.tint_symbol_1.a.x;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:22: 'dot' : no matching overloaded function found 
+ERROR: 0:22: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:22: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/bug/tint/1540.wgsl.expected.ir.glsl b/test/tint/bug/tint/1540.wgsl.expected.ir.glsl
index 4495b0a..bb8889c 100644
--- a/test/tint/bug/tint/1540.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1540.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct S {
   bool e;
 };
@@ -12,8 +13,8 @@
   S v = S((true & b));
 }
 error: Error parsing GLSL shader:
-ERROR: 0:10: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:11: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/bug/tint/1541.wgsl.expected.ir.glsl b/test/tint/bug/tint/1541.wgsl.expected.ir.glsl
index f297654..d28c537 100644
--- a/test/tint/bug/tint/1541.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1541.wgsl.expected.ir.glsl
@@ -1,11 +1,18 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  bool a = true;
+  bool v = ((false) ? (true) : ((a & true)));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:6: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion)
+ERROR: 0:6: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/bug/tint/1573.wgsl.expected.ir.glsl b/test/tint/bug/tint/1573.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/bug/tint/1573.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1573.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1574.wgsl.expected.ir.glsl b/test/tint/bug/tint/1574.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/bug/tint/1574.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1574.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1653.wgsl.expected.ir.glsl b/test/tint/bug/tint/1653.wgsl.expected.ir.glsl
index acd14c0..57e97bf 100644
--- a/test/tint/bug/tint/1653.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1653.wgsl.expected.ir.glsl
@@ -2,13 +2,19 @@
 
 #version 310 es
 
-vec4 main(uint in_vertex_index) {
+vec4 vs_main_inner(uint in_vertex_index) {
   return vec4[3](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f))[in_vertex_index];
 }
+void main() {
+  gl_Position = vs_main_inner(gl_VertexID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:3: 'main' : function cannot take any parameter(s) 
-ERROR: 0:3: 'float' :  entry point cannot return a value
-ERROR: 0:3: '' : compilation terminated 
+ERROR: 0:7: 'vs_main_inner' : no matching overloaded function found 
+ERROR: 0:7: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:7: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/bug/tint/1703.wgsl.expected.ir.glsl b/test/tint/bug/tint/1703.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/bug/tint/1703.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1703.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1725.wgsl.expected.ir.glsl b/test/tint/bug/tint/1725.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/bug/tint/1725.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1725.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1739.wgsl.expected.ir.glsl b/test/tint/bug/tint/1739.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/bug/tint/1739.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1739.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1764.wgsl.expected.ir.glsl b/test/tint/bug/tint/1764.wgsl.expected.ir.glsl
index 56f48c5..1c00ea3 100644
--- a/test/tint/bug/tint/1764.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1764.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: workgroupBarrier
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1963_b.wgsl.expected.ir.glsl b/test/tint/bug/tint/1963_b.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/bug/tint/1963_b.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1963_b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/1976.wgsl.expected.ir.glsl b/test/tint/bug/tint/1976.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/bug/tint/1976.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/1976.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/2010.spvasm.expected.ir.glsl b/test/tint/bug/tint/2010.spvasm.expected.ir.glsl
index 072de26..5cf8186 100644
--- a/test/tint/bug/tint/2010.spvasm.expected.ir.glsl
+++ b/test/tint/bug/tint/2010.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/2059.wgsl.expected.ir.glsl b/test/tint/bug/tint/2059.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/bug/tint/2059.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/2059.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/2063.wgsl.expected.ir.glsl b/test/tint/bug/tint/2063.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/bug/tint/2063.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/2063.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/2147.wgsl.expected.ir.glsl b/test/tint/bug/tint/2147.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/bug/tint/2147.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/2147.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/2177.wgsl.expected.ir.glsl b/test/tint/bug/tint/2177.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/bug/tint/2177.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/2177.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/221.wgsl.expected.ir.glsl b/test/tint/bug/tint/221.wgsl.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/bug/tint/221.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/221.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/349291130.wgsl.expected.ir.glsl b/test/tint/bug/tint/349291130.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/bug/tint/349291130.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/349291130.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/349310442.wgsl.expected.ir.glsl b/test/tint/bug/tint/349310442.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/bug/tint/349310442.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/349310442.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/403.wgsl.expected.ir.glsl b/test/tint/bug/tint/403.wgsl.expected.ir.glsl
index 2ab1020..15415ec 100644
--- a/test/tint/bug/tint/403.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/403.wgsl.expected.ir.glsl
@@ -2,30 +2,45 @@
 
 #version 310 es
 
-struct vertexUniformBuffer1 {
-  mat2 transform1;
+
+struct vertexUniformBuffer1_std140 {
+  vec2 transform1_col0;
+  vec2 transform1_col1;
 };
 
-struct vertexUniformBuffer2 {
-  mat2 transform2;
+struct vertexUniformBuffer2_std140 {
+  vec2 transform2_col0;
+  vec2 transform2_col1;
 };
 
-uniform vertexUniformBuffer1 x_20;
-uniform vertexUniformBuffer2 x_26;
-vec4 main(uint tint_symbol_1) {
+layout(binding = 0, std140)
+uniform tint_symbol_3_std140_1_ubo {
+  vertexUniformBuffer1_std140 tint_symbol_2;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_5_std140_1_ubo {
+  vertexUniformBuffer2_std140 tint_symbol_4;
+} v_1;
+vec4 tint_symbol_inner(uint tint_symbol_1) {
   vec2 indexable[3] = vec2[3](vec2(0.0f), vec2(0.0f), vec2(0.0f));
-  mat2 x_23 = x_20.transform1;
-  mat2 x_28 = x_26.transform2;
+  mat2 x_23 = mat2(v.tint_symbol_2.transform1_col0, v.tint_symbol_2.transform1_col1);
+  mat2 x_28 = mat2(v_1.tint_symbol_4.transform2_col0, v_1.tint_symbol_4.transform2_col1);
   uint x_46 = tint_symbol_1;
   indexable = vec2[3](vec2(-1.0f, 1.0f), vec2(1.0f), vec2(-1.0f));
   vec2 x_51 = indexable[x_46];
   vec2 x_52 = (mat2((x_23[0u] + x_28[0u]), (x_23[1u] + x_28[1u])) * x_51);
   return vec4(x_52[0u], x_52[1u], 0.0f, 1.0f);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:13: 'main' : function cannot take any parameter(s) 
-ERROR: 0:13: 'float' :  entry point cannot return a value
-ERROR: 0:13: '' : compilation terminated 
+ERROR: 0:33: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:33: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:33: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/bug/tint/413.spvasm.expected.ir.glsl b/test/tint/bug/tint/413.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/bug/tint/413.spvasm.expected.ir.glsl
+++ b/test/tint/bug/tint/413.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/453.wgsl.expected.ir.glsl b/test/tint/bug/tint/453.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/bug/tint/453.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/453.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/492.wgsl.expected.ir.glsl b/test/tint/bug/tint/492.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/bug/tint/492.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/492.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/534.wgsl.expected.ir.glsl b/test/tint/bug/tint/534.wgsl.expected.ir.glsl
index f297654..fbd651e 100644
--- a/test/tint/bug/tint/534.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/534.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/757.wgsl.expected.ir.glsl b/test/tint/bug/tint/757.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/bug/tint/757.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/757.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/824.wgsl.expected.ir.glsl b/test/tint/bug/tint/824.wgsl.expected.ir.glsl
index 24d6061..52a17c7 100644
--- a/test/tint/bug/tint/824.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/824.wgsl.expected.ir.glsl
@@ -2,12 +2,14 @@
 
 #version 310 es
 
+
 struct Output {
   vec4 Position;
   vec4 color;
 };
 
-Output main(uint VertexIndex, uint InstanceIndex) {
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+Output tint_symbol_inner(uint VertexIndex, uint InstanceIndex) {
   vec2 zv[4] = vec2[4](vec2(0.20000000298023223877f), vec2(0.30000001192092895508f), vec2(-0.10000000149011611938f), vec2(1.10000002384185791016f));
   float z = zv[InstanceIndex][0u];
   Output tint_symbol_1 = Output(vec4(0.0f), vec4(0.0f));
@@ -16,10 +18,18 @@
   tint_symbol_1.color = colors[InstanceIndex];
   return tint_symbol_1;
 }
+void main() {
+  Output v = tint_symbol_inner(gl_VertexID, gl_InstanceID);
+  gl_Position = v.Position;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  tint_symbol_loc0_Output = v.color;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:8: 'main' : function cannot take any parameter(s) 
-ERROR: 0:8: 'structure' :  entry point cannot return a value
-ERROR: 0:8: '' : compilation terminated 
+ERROR: 0:20: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:20: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float Position,  global highp 4-component vector of float color}'
+ERROR: 0:20: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/bug/tint/827.wgsl.expected.ir.glsl b/test/tint/bug/tint/827.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/bug/tint/827.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/827.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/913.wgsl.expected.ir.glsl b/test/tint/bug/tint/913.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/bug/tint/913.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/913.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/914.wgsl.expected.ir.glsl b/test/tint/bug/tint/914.wgsl.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/bug/tint/914.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/914.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/926.wgsl.expected.ir.glsl b/test/tint/bug/tint/926.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/bug/tint/926.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/926.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/942.wgsl.expected.ir.glsl b/test/tint/bug/tint/942.wgsl.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/bug/tint/942.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/942.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/948.wgsl.expected.ir.glsl b/test/tint/bug/tint/948.wgsl.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/bug/tint/948.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/948.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/949.wgsl.expected.ir.glsl b/test/tint/bug/tint/949.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/bug/tint/949.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/949.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/977.spvasm.expected.ir.glsl b/test/tint/bug/tint/977.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/bug/tint/977.spvasm.expected.ir.glsl
+++ b/test/tint/bug/tint/977.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/978.wgsl.expected.ir.glsl b/test/tint/bug/tint/978.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/bug/tint/978.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/978.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/990.wgsl.expected.ir.glsl b/test/tint/bug/tint/990.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/bug/tint/990.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/990.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/bug/tint/993.wgsl.expected.ir.glsl b/test/tint/bug/tint/993.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/bug/tint/993.wgsl.expected.ir.glsl
+++ b/test/tint/bug/tint/993.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/deprecated.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/deprecated.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/arrayLength/deprecated.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/deprecated.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/simple.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/simple.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/arrayLength/simple.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/simple.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/via_let.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/via_let.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/builtins/arrayLength/via_let.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/via_let.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.ir.glsl b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/array/aliased_arrays.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/array/aliased_arrays.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/array/array.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/array/array.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/array/array.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/array/array.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/array/array.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/array/array.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/array/array.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/array/array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/array/arrays.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/array/arrays.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/array_of_struct.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/array_of_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/flat_multiple_atomics.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/flat_single_atomic.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/flat_single_atomic.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/nested.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/nested.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/struct_of_array.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/struct_of_array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/via_ptr_let.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.glsl b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/atomicStore/struct/via_ptr_let.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMax/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicMin/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicOr/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicStore/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicSub/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/atomicXor/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/literal/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAdd/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicAnd/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicCompareExchangeWeak/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicExchange/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicLoad/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMax/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicMin/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicOr/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicStore/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicSub/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/atomicXor/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicDecrement/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/storage_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/atomics/from_gen/var/spvAtomicIncrement/workgroup_u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/degrees.spvasm.expected.ir.glsl b/test/tint/builtins/degrees.spvasm.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/degrees.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/degrees.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.ir.glsl b/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.ir.glsl b/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.ir.glsl b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.ir.glsl b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.glsl b/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.glsl
index f796305..08584a6 100644
--- a/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/frexp/scalar/mixed.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct frexp_result_f32 {
   float fract;
   int exp;
@@ -17,9 +18,9 @@
   int tint_symbol_2 = res.exp;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'frexp' : no matching overloaded function found 
-ERROR: 0:12: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:13: 'frexp' : no matching overloaded function found 
+ERROR: 0:13: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.glsl b/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.glsl
index 6f277dd..2621d07 100644
--- a/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct frexp_result_f32 {
   float fract;
   int exp;
@@ -15,9 +16,9 @@
   int tint_symbol_3 = res.exp;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:11: 'frexp' : no matching overloaded function found 
-ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
-ERROR: 0:11: '' : compilation terminated 
+ERROR: 0:12: 'frexp' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.glsl b/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.glsl
index 096b65a..44aefc9 100644
--- a/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/frexp/vector/mixed.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct frexp_result_vec2_f32 {
   vec2 fract;
   ivec2 exp;
@@ -17,9 +18,9 @@
   ivec2 tint_symbol_2 = res.exp;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'frexp' : no matching overloaded function found 
-ERROR: 0:12: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:13: 'frexp' : no matching overloaded function found 
+ERROR: 0:13: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.glsl b/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.glsl
index eccbb19..75fa0e7 100644
--- a/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/frexp/vector/runtime.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct frexp_result_vec2_f32 {
   vec2 fract;
   ivec2 exp;
@@ -15,9 +16,9 @@
   ivec2 tint_symbol_3 = res.exp;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:11: 'frexp' : no matching overloaded function found 
-ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
-ERROR: 0:11: '' : compilation terminated 
+ERROR: 0:12: 'frexp' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.ir.glsl
index f297654..fdf6153 100644
--- a/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_353d6a() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_353d6a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_353d6a() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_353d6a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_353d6a() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_353d6a();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.ir.glsl
index f297654..e8336b2 100644
--- a/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_986c7b() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_986c7b();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_986c7b() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_986c7b();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_986c7b() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_986c7b();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.ir.glsl
index f297654..41df512 100644
--- a/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_bd2dba() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_bd2dba();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_bd2dba() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_bd2dba();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_bd2dba() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_bd2dba();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.ir.glsl
index f297654..48d471d 100644
--- a/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_f46790() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_f46790();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_f46790() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_f46790();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_f46790() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_f46790();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/any/083428.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/any/083428.wgsl.expected.ir.glsl
index f297654..2989640 100644
--- a/test/tint/builtins/gen/literal/any/083428.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/any/083428.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_083428() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_083428();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_083428() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_083428();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_083428() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_083428();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.ir.glsl
index f297654..5ca4ec3 100644
--- a/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_0e3e58() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_0e3e58();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_0e3e58() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_0e3e58();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_0e3e58() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_0e3e58();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.ir.glsl
index f297654..8d55d80 100644
--- a/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_2ab91a() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_2ab91a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_2ab91a() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_2ab91a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_2ab91a() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_2ab91a();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.ir.glsl
index f297654..7a61dc0 100644
--- a/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_e755c1() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_e755c1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_e755c1() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_e755c1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_e755c1() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_e755c1();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/8421b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/cbd6b5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl
index e0068f8..42fc0d0 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl
index e0068f8..42fc0d0 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl
index e0068f8..42fc0d0 100644
--- a/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/0464d1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/0639ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/0cc513.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/355db5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/3c3824.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/4d9898.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/641316.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/704803.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/76f499.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/78129b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/796753.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/820991.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/960c6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/9d802c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/ae401e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/b68331.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/bed00b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/c0e704.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/cd3624.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/cebc6a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/cfbf48.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/e6d39d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/e6d948.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/e7c301.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/f5f923.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/f60448.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadBroadcast/f9d579.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/331804.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/348173.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/486196.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/856536.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/02834c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/053f3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/07f1fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/150d6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/19f8ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/1e1086.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/69af6a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/8203ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/879738.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/9bea80.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/a4e103.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/b1a5fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/bc2013.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/bddb9f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/d60cec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapX/edfa1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/06a67c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/0c4938.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/0d05a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/14bb9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/1f1a06.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/264908.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/5b2e67.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/6f6bc9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/9277e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/94ab6d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/a27e1c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/a50fcb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/b9d9e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/bb697b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/be4e72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/quadSwapY/d1ab4d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.ir.glsl
index f297654..3d723af 100644
--- a/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_3c25ce() {
+  bvec3 res = bvec3(true);
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_3c25ce();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_3c25ce() {
+  bvec3 res = bvec3(true);
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_3c25ce();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_3c25ce() {
+  bvec3 res = bvec3(true);
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_3c25ce();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.ir.glsl
index f297654..ac39072 100644
--- a/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_80a9a9() {
+  bvec3 res = bvec3(true);
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_80a9a9();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_80a9a9() {
+  bvec3 res = bvec3(true);
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_80a9a9();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_80a9a9() {
+  bvec3 res = bvec3(true);
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_80a9a9();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.ir.glsl
index f297654..6eb44af 100644
--- a/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c31f9e() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_c31f9e();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c31f9e() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_c31f9e();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_c31f9e() {
+  bool res = true;
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_c31f9e();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.ir.glsl
index f297654..01168c8 100644
--- a/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c41bd1() {
+  bvec4 res = bvec4(true);
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_c41bd1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c41bd1() {
+  bvec4 res = bvec4(true);
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_c41bd1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_c41bd1() {
+  bvec4 res = bvec4(true);
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_c41bd1();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.ir.glsl
index f297654..2b5e3a2 100644
--- a/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_cb9301() {
+  bvec2 res = bvec2(true);
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_cb9301();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_cb9301() {
+  bvec2 res = bvec2(true);
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_cb9301();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_cb9301() {
+  bvec2 res = bvec2(true);
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_cb9301();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.ir.glsl
index f297654..891ee92 100644
--- a/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_e3e028() {
+  bvec4 res = bvec4(true);
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_e3e028();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_e3e028() {
+  bvec4 res = bvec4(true);
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_e3e028();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_e3e028() {
+  bvec4 res = bvec4(true);
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_e3e028();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.ir.glsl
index f297654..ae84f44 100644
--- a/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_fb7e53() {
+  bvec2 res = bvec2(true);
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_fb7e53();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_fb7e53() {
+  bvec2 res = bvec2(true);
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_fb7e53();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_fb7e53() {
+  bvec2 res = bvec2(true);
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_fb7e53();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/0dd12a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/1280c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/1eb429.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/225207.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/22d041.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/28db2c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/2ab40a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/3854ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/6587ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/7d1215.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/8f4c15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/b61df7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/ba53f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/cae1ed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/dcf73f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAdd/fbc357.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.glsl
index 586f7f0..59d4137 100644
--- a/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAll/c962bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAll
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAll
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/1877b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/376802.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/4adc72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/4df632.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/97655b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/c6fc92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.glsl
index 7b0ac8e..03b76a1 100644
--- a/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupAny/cddda0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAny
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAny
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.glsl
index f82dbfc..9a2f158 100644
--- a/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBallot/1a8251.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBallot
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBallot
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/02f329.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/08beca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/279027.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/49de94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/727609.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/838c78.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/867093.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.glsl
index 9318e86..2abea21 100644
--- a/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupElect/3943d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupElect
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupElect
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/0b0375.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/15ccbf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/1a1a5f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/1fc846.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/23f502.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/33e339.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/4ea90e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/5611a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/6c913e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/7c934c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/7e81ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/932164.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/a3afe3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/a3d5f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/b58cbf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMax/b8fb0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/030ad6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/0bc13a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/1de104.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/2493ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/2d8828.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/337a21.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/7def0a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/82ef23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/836960.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/8bb8c1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/8ffadc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/a96a2e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/bbd9b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/c6da7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/cd3b9d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMin/d85be6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/0de9d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/2941a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/3fe886.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/4f8ee6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/53aee2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/5a8c86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/66c813.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/6aaaf3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/93eccd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/d584a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/dc672a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/dd1333.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/f2ac5b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/f78398.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/fa781b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupMul/fab258.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/03343f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/0bc264.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/3f60e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/4d4eb0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/663a21.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/aa74f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/ae58b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupOr/f915e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/030422.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/1f664c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/21f083.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/2ee993.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/323416.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/4752bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/4f5711.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/54f328.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/647034.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/821df9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/824702.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/84f261.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/85587b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/8890a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/d4a772.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/e13c81.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/e854d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/f194f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/642789.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/468721.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/473de8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/694b17.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/7750d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/7f6672.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/83b1f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/9c6e73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/subgroupXor/9d77e4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/00229f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/00229f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/00229f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/00229f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/00348c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/00348c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/00348c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/00348c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/01e21e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/01e21e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/01e21e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/01e21e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/01edb1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/01edb1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/01edb1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/01edb1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/022903.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/022903.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/022903.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/022903.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0276ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0276ec.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0276ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0276ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/029589.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/029589.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/029589.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/029589.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0329b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0329b0.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0329b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0329b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/033195.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/033195.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/033195.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/033195.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/033ea7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/033ea7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/033ea7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/033ea7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/038847.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/038847.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/038847.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/038847.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/03f81e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/03f81e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/03f81e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/03f81e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/07f1ba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/07f1ba.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/07f1ba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/07f1ba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/088918.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/088918.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/088918.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/088918.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0890c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0890c6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0890c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0890c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/08e371.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/09140b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/09140b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/09140b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/09140b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0973c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0973c9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0973c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0973c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0baa0d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0baa0d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0baa0d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0baa0d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0c0b0c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0c0b0c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0c0b0c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0c0b0c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0d4a7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0d4a7c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0d4a7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0d4a7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0de70c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0de70c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0de70c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0de70c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/0ff9a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/0ff9a4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/0ff9a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/0ff9a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/135176.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/135176.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/135176.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/135176.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/13f8db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/13f8db.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/13f8db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/13f8db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/1417dd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/1417dd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/1417dd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/1417dd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/15aa17.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/15aa17.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/15aa17.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/15aa17.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/15b577.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/15b577.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/15b577.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/15b577.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/18160d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/18160d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/18160d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/18160d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/18f19f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/18f19f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/18f19f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/18f19f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/1a2be7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/1a2be7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/1a2be7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/1a2be7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/1b720f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/1b720f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/1b720f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/1b720f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/1bc428.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/1bc428.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/1bc428.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/1bc428.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/1bd78c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/1bd78c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/1bd78c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/1bd78c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/1e4024.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/1e4024.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/1e4024.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/1e4024.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/20eaad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/20eaad.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/20eaad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/20eaad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/20ecef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/20ecef.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/20ecef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/20ecef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/212362.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/212362.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/212362.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/212362.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/224113.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/224113.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/224113.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/224113.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/22b5b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/22b5b6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/22b5b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/22b5b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/24db07.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/24db07.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/24db07.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/24db07.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/25d284.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/25d284.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/25d284.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/25d284.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/2674d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/2674d8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/2674d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/2674d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/268ddb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/268ddb.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/268ddb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/268ddb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/26d6bf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/26d6bf.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/26d6bf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/26d6bf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/282978.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/282978.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/282978.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/282978.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/283b58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/283b58.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/283b58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/283b58.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/284c27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/2a58b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/2a58b7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/2a58b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/2a58b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/2bafdf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/2bafdf.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/2bafdf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/2bafdf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/2dc5c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/2dc5c5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/2dc5c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/2dc5c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/2e443d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/2e443d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/2e443d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/2e443d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/2fd2a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/2fd2a4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/2fd2a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/2fd2a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/2ff32a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/2ff32a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/2ff32a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/2ff32a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/305dd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/305dd5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/305dd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/305dd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/31799c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/31799c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/31799c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/31799c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/31d00d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/31d00d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/31d00d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/31d00d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/325338.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/325338.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/325338.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/325338.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/346fee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/346fee.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/346fee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/346fee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/35a7e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/35a7e5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/35a7e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/35a7e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/35ee69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/35ee69.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/35ee69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/35ee69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/36eeb7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/36eeb7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/36eeb7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/36eeb7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/378a65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/378a65.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/378a65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/378a65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/382b16.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/382b16.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/382b16.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/382b16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3834f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3834f8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3834f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3834f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/38c9ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/38c9ca.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/38c9ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/38c9ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3963d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3963d0.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3963d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3963d0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/397dab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/397dab.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/397dab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/397dab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3a5bb1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3a5bb1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3a5bb1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3a5bb1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3a7b69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3a7b69.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3a7b69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3a7b69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3af3e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3af3e7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3af3e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3af3e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3b38f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3b38f6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3b38f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3b38f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3baab5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3baab5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3baab5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3baab5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3bf12a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3bf12a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3bf12a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3bf12a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3c66f0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3c66f0.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3c66f0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3c66f0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3f3474.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3f3474.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3f3474.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3f3474.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3fc3dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3fc3dc.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3fc3dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3fc3dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/3ff0a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/3ff0a5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/3ff0a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/3ff0a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/40c671.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/40c671.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/40c671.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/40c671.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/40da20.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/40da20.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/40da20.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/40da20.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/40ecf4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/40ecf4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/40ecf4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/40ecf4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/41545f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/41545f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/41545f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/41545f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/423519.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/423519.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/423519.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/423519.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/427f92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/427f92.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/427f92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/427f92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/439651.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/439651.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/439651.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/439651.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/445376.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/445376.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/445376.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/445376.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/44b358.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/44b358.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/44b358.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/44b358.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/452fc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/452fc1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/452fc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/452fc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/46f0fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/46f0fc.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/46f0fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/46f0fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4716a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4716a4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4716a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4716a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/475c10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/475c10.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/475c10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/475c10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/49a067.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/49a067.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/49a067.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/49a067.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4acec7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4acec7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4acec7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4acec7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4b26ef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4b26ef.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4b26ef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4b26ef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4be71b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4be71b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4be71b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4be71b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4d1f71.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4d27b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4d27b3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4d27b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4d27b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4df14c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4df14c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4df14c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4df14c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/4e540a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/4e540a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/4e540a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/4e540a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/528c0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/528c0e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/528c0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/528c0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/52cf60.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/534ef8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/534ef8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/534ef8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/534ef8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/542c62.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/542c62.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/542c62.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/542c62.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/55fdeb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/55fdeb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/55fdeb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/55fdeb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/5703b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/5703b3.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/5703b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/5703b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/578e75.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/578e75.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/578e75.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/578e75.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/579eee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/579eee.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/579eee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/579eee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/58a82d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/58a82d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/58a82d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/58a82d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/591981.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/591981.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/591981.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/591981.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/599ab5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/599ab5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/599ab5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/599ab5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/5df042.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/5df042.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/5df042.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/5df042.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/607979.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/607979.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/607979.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/607979.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/609d34.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/609d34.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/609d34.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/609d34.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/617dc8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/617dc8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/617dc8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/617dc8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/62cb5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/62cb5a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/62cb5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/62cb5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/62e7ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/62e7ae.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/62e7ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/62e7ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/64dc74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/64dc74.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/64dc74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/64dc74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/674058.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/674058.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/674058.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/674058.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/6dae40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/6dbef4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/6e6c7a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/6e6c7a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/6e6c7a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/6e6c7a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/6e72c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/6e72c5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/6e72c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/6e72c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/6f1b5d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/6f1b5d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/6f1b5d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/6f1b5d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/709357.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/709357.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/709357.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/709357.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/70dd33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/70dd33.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/70dd33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/70dd33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/715917.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/715917.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/715917.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/715917.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7228de.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7228de.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7228de.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7228de.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7327fa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7327fa.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7327fa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7327fa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/740e7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/740e7c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/740e7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/740e7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/756031.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/756031.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/756031.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/756031.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/756304.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/756304.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/756304.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/756304.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/790e57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/790e57.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/790e57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/790e57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/795fbb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/795fbb.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/795fbb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/795fbb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/797c30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/797c30.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/797c30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/797c30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/79d168.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/79d168.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/79d168.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/79d168.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7a3890.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7a3890.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7a3890.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7a3890.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7a9e30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7a9e30.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7a9e30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7a9e30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7c753b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7c753b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7c753b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7c753b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7c7c64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7c7c64.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7c7c64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7c7c64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7d8439.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7ea4b5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7ea4b5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7ea4b5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7ea4b5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/7edb05.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/7edb05.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/7edb05.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/7edb05.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8243a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8243a1.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8243a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8243a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/835f90.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/835f90.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/835f90.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/835f90.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/841ebe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/841ebe.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/841ebe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/841ebe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/84f363.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/84f363.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/84f363.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/84f363.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/867ead.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/867ead.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/867ead.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/867ead.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/879b73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/879b73.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/879b73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/879b73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/87b42d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/87b42d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/87b42d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/87b42d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/881dd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/881dd4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/881dd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/881dd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8a2b17.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8a2b17.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8a2b17.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8a2b17.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8a35f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8a35f9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8a35f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8a35f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8af728.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8af728.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8af728.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8af728.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8b9906.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8b9906.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8b9906.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8b9906.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8bd369.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8bd369.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8bd369.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8bd369.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8e15f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8e5de6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8e5de6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8e5de6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8e5de6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8efd47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8efd47.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8efd47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8efd47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/902179.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/902179.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/902179.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/902179.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/904b0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/904b0f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/904b0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/904b0f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/90dd74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/90dd74.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/90dd74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/90dd74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/91e3b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/91e3b4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/91e3b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/91e3b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/920006.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/920006.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/920006.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/920006.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/92552e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/92552e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/92552e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/92552e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9573f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9573f3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9573f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9573f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/965645.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/965645.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/965645.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/965645.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/98b2d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/98b2d3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/98b2d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/98b2d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/991ea9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/991ea9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/991ea9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/991ea9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9944d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9944d5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9944d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9944d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9b223b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9b223b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9b223b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9b223b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9baf27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9baf27.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9baf27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9baf27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9c7a00.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9c7a00.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9c7a00.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9c7a00.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9cd4ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9cd4ca.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9cd4ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9cd4ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9cd8ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9cd8ad.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9cd8ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9cd8ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9d0bac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9d0bac.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9d0bac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9d0bac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9d68b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9d68b8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9d68b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9d68b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9dc27a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9e0794.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9e0794.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9e0794.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9e0794.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9fcc3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9fcc3b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9fcc3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9fcc3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a105a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a105a5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a105a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a105a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a14386.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a14386.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a14386.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a14386.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a1598a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a1598a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a1598a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a1598a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a20ba2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a20ba2.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a20ba2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a20ba2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a25d9b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a25d9b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a25d9b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a25d9b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a2ba5e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a2ba5e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a2ba5e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a2ba5e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a3ea91.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a3ea91.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a3ea91.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a3ea91.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a48049.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a48049.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a48049.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a48049.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a4cd56.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a4cd56.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a4cd56.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a4cd56.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a65776.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a65776.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a65776.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a65776.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/a7ae4c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/a7ae4c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/a7ae4c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/a7ae4c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/aa4353.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/aa4353.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/aa4353.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/aa4353.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/aac604.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/aac604.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/aac604.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/aac604.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ad7d3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ad7d3b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ad7d3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ad7d3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ae4595.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ae4595.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ae4595.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ae4595.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ae75a7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ae75a7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ae75a7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ae75a7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/af46ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/af46ab.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/af46ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/af46ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b16352.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b16352.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b16352.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b16352.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b284b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b284b8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b284b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b284b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3ab5e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b3ab5e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b3ab5e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b3ab5e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b46d97.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b46d97.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b46d97.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b46d97.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b51345.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b51345.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b51345.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b51345.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b56112.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b56112.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b56112.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b56112.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b5ba03.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b5ba03.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b5ba03.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b5ba03.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b5d68e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b5d68e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b5d68e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b5d68e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b6bbf4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b6bbf4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b6bbf4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b6bbf4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b8287f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b8287f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b8287f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b8287f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/b9e7ef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/b9e7ef.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/b9e7ef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/b9e7ef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/bb95d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/bb95d9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/bb95d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/bb95d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/bbe285.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/bbe285.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/bbe285.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/bbe285.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/bc96f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/bc96f6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/bc96f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/bc96f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/bd94c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/bd94c8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/bd94c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/bd94c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/bec716.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/bec716.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/bec716.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/bec716.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/bf9170.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/bf9170.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/bf9170.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/bf9170.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c1189e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c1189e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c1189e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c1189e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c1dbf6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c1dbf6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c1dbf6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c1dbf6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c27466.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c27466.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c27466.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c27466.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c2cdd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c2cdd3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c2cdd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c2cdd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c44fc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c44fc1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c44fc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c44fc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c5a36e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c5a36e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c5a36e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c5a36e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c6b44c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c6b44c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c6b44c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c6b44c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c6b985.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c6b985.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c6b985.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c6b985.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c7ea63.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c7ea63.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c7ea63.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c7ea63.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c82420.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c82420.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c82420.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c82420.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/c871f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/c871f3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/c871f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/c871f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ca10cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ca10cc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ca10cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ca10cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cad3b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/cad3b7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cad3b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cad3b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cc947b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/cc947b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cc947b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cc947b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cd3033.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cedabd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cf2b50.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/cf2b50.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cf2b50.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cf2b50.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d0778e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d08a94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d08a94.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d08a94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d08a94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d3accd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d3accd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d3accd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d3accd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d44dd1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d44dd1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d44dd1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d44dd1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d63c28.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d63c28.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d63c28.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d63c28.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d6f3cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d6f3cf.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d6f3cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d6f3cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d8ba68.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d8ba68.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d8ba68.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d8ba68.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d8f887.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d8f887.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d8f887.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d8f887.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/da30d2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/da30d2.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/da30d2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/da30d2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/daf0fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/daf0fe.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/daf0fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/daf0fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/db7131.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/db7131.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/db7131.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/db7131.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/dc83ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/dc83ce.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/dc83ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/dc83ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/de03c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/de03c6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/de03c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/de03c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/deb3c0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/deb3c0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/deb3c0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/deb3c0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/dee461.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/dee461.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/dee461.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/dee461.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/dfdc32.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/dfdc32.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/dfdc32.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/dfdc32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e122fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e122fe.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e122fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e122fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e18a8b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e18a8b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e18a8b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e18a8b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e4bfd2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e4bfd2.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e4bfd2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e4bfd2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e4e310.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e4e310.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e4e310.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e4e310.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e4f021.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e4f021.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e4f021.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e4f021.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e50eb8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e50eb8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e50eb8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e50eb8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e5a203.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e5a203.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e5a203.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e5a203.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e738f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e738f4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e738f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e738f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e824b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e824b6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e824b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e824b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/e99308.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/e99308.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/e99308.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/e99308.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ea066c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ea066c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ea066c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ea066c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ea25bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ea25bc.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ea25bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ea25bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/eafe19.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/eafe19.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/eafe19.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/eafe19.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/eb03b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/eb03b1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/eb03b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/eb03b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/eb10d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/eb10d6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/eb10d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/eb10d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/eb1249.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/eb1249.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/eb1249.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/eb1249.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/eb9f4d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/eb9f4d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/eb9f4d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/eb9f4d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ed1030.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ed1030.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ed1030.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ed1030.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/ef2e58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/ef2e58.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/ef2e58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/ef2e58.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f17acd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f17acd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f17acd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f17acd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f264a3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f264a3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f264a3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f264a3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f3a2ac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f3a2ac.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f3a2ac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f3a2ac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f406ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f406ff.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f406ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f406ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f4321c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f4321c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f4321c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f4321c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f48886.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f48886.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f48886.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f48886.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f4e469.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f4e469.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f4e469.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f4e469.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f55a94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f55a94.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f55a94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f55a94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f626b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f626b3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f626b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f626b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f7bac5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f7bac5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f7bac5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f7bac5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f8522e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f8522e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f8522e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f8522e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f93ece.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f93ece.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f93ece.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f93ece.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/f94e55.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/f94e55.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/f94e55.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/f94e55.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/fdbae8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/fdbae8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/fdbae8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/fdbae8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureDimensions/fdf6e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/fdf6e9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/fdf6e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/fdf6e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/0166ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/0166ec.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/0166ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/0166ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/04fa78.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/04fa78.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/04fa78.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/04fa78.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/11b2db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/11b2db.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/11b2db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/11b2db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/17baac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/17baac.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/17baac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/17baac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/1bf0ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/1bf0ab.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/1bf0ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/1bf0ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/238ec4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/238ec4.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/238ec4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/238ec4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/24b0bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/24b0bd.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/24b0bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/24b0bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/269250.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/269250.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/269250.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/269250.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/2a4f40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/2a4f40.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/2a4f40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/2a4f40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/445793.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/445793.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/445793.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/445793.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/4e8ac5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/4e8ac5.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/4e8ac5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/4e8ac5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/59372a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/59372a.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/59372a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/59372a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/6b7b74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/6b7b74.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/6b7b74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/6b7b74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/788010.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/788010.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/788010.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/788010.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/7dd226.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/7dd226.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/7dd226.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/7dd226.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/829357.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/829357.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/829357.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/829357.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/831549.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/831549.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/831549.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/831549.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/8578bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/8578bc.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/8578bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/8578bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/89680f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/89680f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/89680f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/89680f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/8fae00.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/8fae00.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/8fae00.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/8fae00.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/92ea47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/92ea47.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/92ea47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/92ea47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/986700.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/986700.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/986700.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/986700.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/9ab41e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/9ab41e.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/9ab41e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/9ab41e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/a0372b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/a0372b.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/a0372b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/a0372b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/a68027.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/a68027.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/a68027.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/a68027.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/aaf6bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/aaf6bd.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/aaf6bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/aaf6bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/bd33b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/bd33b6.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/bd33b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/bd33b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/be276f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/be276f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/be276f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/be276f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/ccadde.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/ccadde.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/ccadde.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/ccadde.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/ce5578.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/ce5578.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/ce5578.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/ce5578.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/cf9112.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/cf9112.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/cf9112.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/cf9112.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/d4b5c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/d4b5c6.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/d4b5c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/d4b5c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/d6507c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/d6507c.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/d6507c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/d6507c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/d8e958.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/d8e958.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/d8e958.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/d8e958.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/d98d59.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/d98d59.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/d98d59.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/d98d59.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/dc6661.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/dc6661.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/dc6661.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/dc6661.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/e2acac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/e2acac.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/e2acac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/e2acac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/e3165f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/e3165f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/e3165f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/e3165f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/ea8eb4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/ea8eb4.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/ea8eb4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/ea8eb4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/144a9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/144a9a.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/144a9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/144a9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/2e409c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/2e409c.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/2e409c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/2e409c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/012e11.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/019da0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/019da0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/019da0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/019da0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/01cd01.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/01cd01.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/01cd01.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/01cd01.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/026217.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/026217.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/026217.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/026217.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/02c48d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/02ef1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/02ef1f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/02ef1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/02ef1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/03e03e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/045ec9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/045ec9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/045ec9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/045ec9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/04b911.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/04b911.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/04b911.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/04b911.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/050c33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/054350.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/0674b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/0674b1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/0674b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/0674b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/06ac37.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/06ac37.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/06ac37.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/06ac37.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/072e26.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/072e26.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/072e26.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/072e26.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/078bc4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/078bc4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/078bc4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/078bc4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/0b515a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/0cb698.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/0cb698.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/0cb698.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/0cb698.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/10db82.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/10db82.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/10db82.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/10db82.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/126466.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/127e12.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/127e12.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/127e12.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/127e12.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1373dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1373dc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1373dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1373dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/13d539.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/13d539.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/13d539.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/13d539.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/13e90c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/13e90c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/13e90c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/13e90c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/143d84.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1471b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1471b8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1471b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1471b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/14cc4c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1561a7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1561a7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1561a7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1561a7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/15e675.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/15e675.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/15e675.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/15e675.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1619bf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1619bf.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1619bf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1619bf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/168dc8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/168dc8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/168dc8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/168dc8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/170593.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/17095b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/18ac11.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/19d6be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/19d6be.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/19d6be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/19d6be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/19e5ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/19e5ca.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/19e5ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/19e5ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1a062f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1a062f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1a062f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1a062f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1a8452.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1a8452.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1a8452.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1a8452.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1aa950.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1aa950.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1aa950.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1aa950.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1b051f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1b051f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1b051f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1b051f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1b4332.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1b4332.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1b4332.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1b4332.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1bc5ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1c562a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1c562a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1c562a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1c562a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1d43ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1e6baa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1eb93f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/1fde63.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/1fde63.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1fde63.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1fde63.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/206a08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/206a08.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/206a08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/206a08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/20fa2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/216c37.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/216c37.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/216c37.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/216c37.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/21d1c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/21d1c4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/21d1c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/21d1c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/223246.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/223246.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/223246.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/223246.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/22e963.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/22e963.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/22e963.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/22e963.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/23007a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2363be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2363be.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2363be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2363be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/23ff89.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/23ff89.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/23ff89.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/23ff89.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/25b67f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/26b8f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/26d7f1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/272e7a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/272e7a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/272e7a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/272e7a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/276643.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/276643.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/276643.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/276643.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/276a2c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/276a2c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/276a2c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/276a2c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2887d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2887d7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2887d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2887d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2a82d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2a82d9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2a82d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2a82d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2ae485.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2ae485.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2ae485.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2ae485.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2c72ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2c72ae.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2c72ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2c72ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2cee30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2d479c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2d479c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2d479c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2d479c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2d6cf7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2dbfc2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2e09aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2e09aa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2e09aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2e09aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2e3552.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2e3552.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2e3552.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2e3552.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/2eaf31.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/313c73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/313c73.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/313c73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/313c73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/31db4b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/31db4b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/31db4b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/31db4b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/321210.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/321210.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/321210.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/321210.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/32a7b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/33d3aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/33d3aa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/33d3aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/33d3aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/348827.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/348827.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/348827.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/348827.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/34d97c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/35a5e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/35a5e2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/35a5e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/35a5e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/35d464.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/35d464.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/35d464.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/35d464.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/374351.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/374351.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/374351.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/374351.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/388688.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/388688.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/388688.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/388688.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/38f8ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/38f8ab.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/38f8ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/38f8ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/39016c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/395447.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/39ef40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/39ef40.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/39ef40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/39ef40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3a2350.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3aea13.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3aea13.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3aea13.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3aea13.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3bbc2b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3bbc2b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3bbc2b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3bbc2b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3c0d9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3c0d9e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3c0d9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3c0d9e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3c9587.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3c9587.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3c9587.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3c9587.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3c96e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3c96e8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3c96e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3c96e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3cfb9c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3d001b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3d001b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3d001b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3d001b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3d3fd1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3d3fd1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3d3fd1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3d3fd1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3d9c90.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3d9c90.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3d9c90.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3d9c90.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3da3ed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3da3ed.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3da3ed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3da3ed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3e16a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3e16a8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3e16a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3e16a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/3e5f6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/3e5f6a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/3e5f6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/3e5f6a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/40ee8b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4212a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/424afd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/42a631.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/43484a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/43484a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/43484a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/43484a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/439e2a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/439e2a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/439e2a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/439e2a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/43cd86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/44c826.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4542ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/454347.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/454347.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/454347.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/454347.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4638a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4638a0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4638a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4638a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/469912.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/46a93f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/46a93f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/46a93f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/46a93f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/46dbf5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/46dbf5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/46dbf5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/46dbf5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/473d3e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/47e818.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/47e818.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/47e818.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/47e818.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/482627.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4951bb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4951bb.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4951bb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4951bb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/49f76f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/49f76f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/49f76f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/49f76f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4a5c55.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4acb64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4acb64.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4acb64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4acb64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4c15b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4c1a1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4c423f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4c423f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4c423f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4c423f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4c67be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4c67be.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4c67be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4c67be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4ccf9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4cdca5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4cdca5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4cdca5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4cdca5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4db25c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4db25c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4db25c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4db25c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4e2c5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4f5496.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4f5496.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4f5496.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4f5496.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4f90bb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/505aa2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/505aa2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/505aa2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/505aa2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/50915c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/50915c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/50915c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/50915c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5154e1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/519ab5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/519ab5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/519ab5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/519ab5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/53378a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/53941c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/53e142.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/53e142.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/53e142.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/53e142.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/54a59b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/54a59b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/54a59b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/54a59b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/54fb38.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/55e745.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/55e745.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/55e745.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/55e745.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/560573.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/560573.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/560573.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/560573.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/56a000.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/582015.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/582015.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/582015.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/582015.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/589eaa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/589eaa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/589eaa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/589eaa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5abbf2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5b0f5b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5b4947.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5bb7fb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5c69f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5cd3fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5cd3fc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5cd3fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5cd3fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5cee3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5cee3b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5cee3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5cee3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5d0a2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5d0a2f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5d0a2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5d0a2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5d4042.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5d4042.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5d4042.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5d4042.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5dd4c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5dd4c7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5dd4c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5dd4c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5e17a7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5e1843.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5e8d3f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5e8d3f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5e8d3f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5e8d3f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5ed6ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5ed6ad.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5ed6ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5ed6ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5f4473.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5f4473.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5f4473.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5f4473.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/5feb4d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/5feb4d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/5feb4d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/5feb4d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/61e2e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/620caa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/622278.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/62d125.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/62d125.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/62d125.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/62d125.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/62d1de.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/62d1de.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/62d1de.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/62d1de.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/639962.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/639962.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/639962.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/639962.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/63be18.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/64c372.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/656d76.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/656d76.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/656d76.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/656d76.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/65a4d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/65a4d0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/65a4d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/65a4d0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/666010.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6678b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6678b6.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6678b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6678b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/66be47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/66be47.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/66be47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/66be47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/67d826.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/67d826.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/67d826.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/67d826.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/67edca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/67edca.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/67edca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/67edca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/68d273.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6925bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6925bc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6925bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6925bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/69fee5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/69fee5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/69fee5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/69fee5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6a6871.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6b77d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6b77d4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6b77d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6b77d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6b8ba6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6ba9ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6bf3e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6bf4b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6bf4b7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6bf4b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6bf4b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6d1fb4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6d1fb4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6d1fb4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6d1fb4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6d376a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6d376a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6d376a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6d376a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6d7bb5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6e903f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6f0370.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6f0370.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6f0370.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6f0370.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6f0ea8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6f1750.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6f1750.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6f1750.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6f1750.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/6f8927.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/714471.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/714471.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/714471.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/714471.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/72bb3c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/72bb3c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/72bb3c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/72bb3c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/72c9c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/72c9c3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/72c9c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/72c9c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/742f1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/749704.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/749704.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/749704.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/749704.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/74a387.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/773c46.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/789045.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/789045.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/789045.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/789045.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7ab4df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7ab4df.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7ab4df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7ab4df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7b63e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7b63e0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7b63e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7b63e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7bee94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7bee94.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7bee94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7bee94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7dab57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7dd3d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7dd3d5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7dd3d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7dd3d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7e5cbc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/7fd822.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/7fd822.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/7fd822.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/7fd822.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/80dae1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/83162f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/83cea4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/83cea4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/83cea4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/83cea4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/83d6e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/83d6e3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/83d6e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/83d6e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/848d85.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/84a438.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/84c728.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/84c728.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/84c728.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/84c728.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/84dee1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/84dee1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/84dee1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/84dee1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8527b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8527b1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8527b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8527b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/862833.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/862833.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/862833.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/862833.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/878e24.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/87f0a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/881349.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/897cf3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/897cf3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/897cf3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/897cf3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8a9988.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8b62fb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8bf8c2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8bf8c2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8bf8c2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8bf8c2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8c6176.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8ccbe3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8ccbe3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8ccbe3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8ccbe3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8d64c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8db0ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8db0ce.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8db0ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8db0ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8e5032.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8e68c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8fc29b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/8ff033.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8ff033.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8ff033.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8ff033.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/91ede5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9242e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/92dd61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/92dd61.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/92dd61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/92dd61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/92eb1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/92eb1f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/92eb1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/92eb1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/936952.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/936952.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/936952.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/936952.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/93f23e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/93f23e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/93f23e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/93f23e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/947107.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/947107.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/947107.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/947107.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/96efd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/96efd5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/96efd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/96efd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/970308.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/970308.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/970308.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/970308.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9885b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9885b0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9885b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9885b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/99d8fa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/99d8fa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/99d8fa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/99d8fa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9a7c90.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9a7c90.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9a7c90.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9a7c90.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9a8c1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9a8c1e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9a8c1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9a8c1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9aa733.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9aa733.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9aa733.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9aa733.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9b5343.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9b5343.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9b5343.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9b5343.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9c2376.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9c2376.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9c2376.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9c2376.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9c2a14.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9cf7df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9d70e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9d70e9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9d70e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9d70e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9de6f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9de6f5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9de6f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9de6f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9ed19e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9ed19e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9ed19e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9ed19e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9fa9fd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9fbfd9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9fbfd9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9fbfd9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9fbfd9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/9fd7be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a03af1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a03af1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a03af1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a03af1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a24be1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a24be1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a24be1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a24be1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a2b3f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a3733f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a3f122.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a548a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a54e11.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a5c4e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a5e0a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a5e0a5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a5e0a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a5e0a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a64b1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a6a85a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a6a85a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a6a85a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a6a85a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a6b61d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a6b61d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a6b61d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a6b61d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a7444c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a7444c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a7444c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a7444c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a7a3c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a7a3c3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a7a3c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a7a3c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a7bcb4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a7c171.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a8549b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a8549b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a8549b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a8549b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a92b18.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aa2579.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aa6130.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/aa8a0d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/aa8a0d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aa8a0d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aa8a0d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/aae7f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/aae7f6.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aae7f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aae7f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aae9c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/acf22f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ad551e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ad551e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ad551e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ad551e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/aeae73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/aeae73.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aeae73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aeae73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/aebc09.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/aebc09.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/aebc09.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/aebc09.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/af0507.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b1bf79.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b1bf79.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b1bf79.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b1bf79.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b1ca35.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b24d27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b24d27.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b24d27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b24d27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b25644.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b25644.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b25644.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b25644.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b27c33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b27c33.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b27c33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b27c33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b29f71.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b29f71.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b29f71.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b29f71.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b4d6c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b58c6d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b58c6d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b58c6d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b58c6d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b60a86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b60db7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b6ba5d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b6ba5d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b6ba5d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b6ba5d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b6c458.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b6c458.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b6c458.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b6c458.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b73f6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b73f6b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b73f6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b73f6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b75c8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b75c8f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b75c8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b75c8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b75d4a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b75d4a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b75d4a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b75d4a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b7f74f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b7f74f.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b7f74f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b7f74f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b80e7e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b80e7e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b80e7e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b80e7e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/b94d15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/b94d15.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/b94d15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/b94d15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ba023a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ba023a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ba023a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ba023a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ba74b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/babdf3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bba04a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bbb762.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bc3201.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bc3201.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bc3201.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bc3201.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bc882d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bc882d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bc882d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bc882d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bcbb3c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bcbb3c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bcbb3c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bcbb3c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bd990a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bdc67a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/bfd154.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/bfd154.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/bfd154.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/bfd154.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c02b74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c02b74.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c02b74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c02b74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c07013.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c07013.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c07013.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c07013.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c16e00.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c16e00.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c16e00.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c16e00.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c21b33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c21b33.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c21b33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c21b33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c2d09a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c2d09a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c2d09a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c2d09a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c40dcb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c40dcb.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c40dcb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c40dcb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c456bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c456bc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c456bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c456bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c5791b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c5791b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c5791b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c5791b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c5c86d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c66b20.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c66b20.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c66b20.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c66b20.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c7cbed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c7cbed.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c7cbed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c7cbed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c7e313.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c80691.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c80691.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c80691.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c80691.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c8ed19.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c98bf4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c9b083.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c9cc40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c9cc40.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c9cc40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c9cc40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/c9f310.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/c9f310.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/c9f310.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/c9f310.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cac876.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cad5f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cad5f2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cad5f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cad5f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cb57c2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cb57c2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cb57c2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cb57c2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cdbcf6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cdccd2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cdd343.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cdd343.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cdd343.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cdd343.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cddf6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cec477.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cec477.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cec477.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cec477.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/cece6c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/cece6c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/cece6c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/cece6c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d02afc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d02afc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d02afc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d02afc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d0e351.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d357bb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d357bb.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d357bb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d357bb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d37a08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d3d8fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d41c72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d4df19.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d4df19.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d4df19.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d4df19.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d5c48d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d5c48d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d5c48d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d5c48d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d72de9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d7996a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d79c5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d80ff3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d81c57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d85d61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d85d61.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d85d61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d85d61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d8617f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d8be5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/d91f37.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dab04f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/dbd554.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/dbd554.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dbd554.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dbd554.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dd5859.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dd8776.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ddeed3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ddeed3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ddeed3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ddeed3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/de5a0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/dee8e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/dee8e7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dee8e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dee8e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/defd9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/dfdf3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/dfdf3b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/dfdf3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/dfdf3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e1c3cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e2292f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e2292f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e2292f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e2292f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e2b3a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e2d7da.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e33285.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e35f72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e35f72.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e35f72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e35f72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e3b08b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e3b08b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e3b08b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e3b08b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e4051a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e4051a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e4051a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e4051a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e59fdf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e65916.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e893d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e893d7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e893d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e893d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e92dd0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e92dd0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e92dd0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e92dd0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e9eb65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ea2abd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ea2abd.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ea2abd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ea2abd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/eb573b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/eb573b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/eb573b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/eb573b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ebfb92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ebfb92.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ebfb92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ebfb92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ecc823.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ecc823.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ecc823.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ecc823.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ed55a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ee33c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ee33c5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ee33c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ee33c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/eecf7d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ef2ec3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ef5405.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/efa787.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/efa787.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/efa787.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/efa787.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f0514a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f06b69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f06b69.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f06b69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f06b69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f0abad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f0abad.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f0abad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f0abad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f1c549.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f1c549.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f1c549.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f1c549.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f2a7ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f2a7ff.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f2a7ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f2a7ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f2bdd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f2bdd4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f2bdd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f2bdd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f2c311.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f348d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f348d9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f348d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f348d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f35ac7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f35ac7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f35ac7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f35ac7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f379e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f379e2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f379e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f379e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f56e6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f56e6f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f56e6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f56e6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f5aee2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f5aee2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f5aee2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f5aee2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f5fbc6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f74bd8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f7f3bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f7f936.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f7f936.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f7f936.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f7f936.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f81792.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f81792.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f81792.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f81792.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f82eb2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f85291.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f85291.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f85291.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f85291.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f92c2d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f92c2d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f92c2d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f92c2d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/f9eaaf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f9eaaf.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f9eaaf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f9eaaf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fc47ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fc6d36.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fc6d36.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fc6d36.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fc6d36.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fcd23d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fcd23d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fcd23d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fcd23d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fd6442.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fd6442.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fd6442.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fd6442.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fd9606.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fdebd0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fdebd0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fdebd0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fdebd0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fe0565.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fe0565.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fe0565.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fe0565.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fe222a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fe222a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fe222a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fe222a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/fe2c1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/feab99.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/feab99.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/feab99.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/feab99.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureLoad/ff1119.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ff1119.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ff1119.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ff1119.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/014a3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/014a3b.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/014a3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/014a3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/071ebc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/071ebc.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/071ebc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/071ebc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/0856ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/0856ae.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/0856ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/0856ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/0ec222.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/0ec222.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/0ec222.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/0ec222.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/17ccad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/17ccad.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/17ccad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/17ccad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl
index f4ea61b..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/24d572.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/24d572.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/24d572.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/24d572.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/26c9f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/26c9f9.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/26c9f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/26c9f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/2a48dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/2a48dc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/2a48dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/2a48dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/2d95ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/327d70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/327d70.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/327d70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/327d70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/32ca10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/32ca10.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/32ca10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/32ca10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/3465ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/3465ec.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/3465ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/3465ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/34cefa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/34cefa.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/34cefa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/34cefa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/3580ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/3580ab.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/3580ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/3580ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/379cc5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/379cc5.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/379cc5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/379cc5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/37bc8a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/37bc8a.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/37bc8a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/37bc8a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/380a60.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/380a60.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/380a60.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/380a60.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/3ad143.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/3ad143.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/3ad143.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/3ad143.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/3eff89.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/3eff89.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/3eff89.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/3eff89.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl
index f4ea61b..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/48ef47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/48ef47.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/48ef47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/48ef47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/4adaad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/4adaad.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/4adaad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/4adaad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/4c4333.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/4c4333.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/4c4333.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/4c4333.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/520086.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/520086.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/520086.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/520086.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/52dfc5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/52dfc5.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/52dfc5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/52dfc5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/54a654.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/54a654.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/54a654.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/54a654.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/555f67.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/555f67.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/555f67.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/555f67.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/59cc27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/59cc27.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/59cc27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/59cc27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/59eb57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/59eb57.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/59eb57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/59eb57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/5f20d1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/5f20d1.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/5f20d1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/5f20d1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/61bd23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/61bd23.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/61bd23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/61bd23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/622aa2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/622aa2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/622aa2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/622aa2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/6b4321.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/6b4321.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/6b4321.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/6b4321.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/6da0eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/6da0eb.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/6da0eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/6da0eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/77be7b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/77be7b.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/77be7b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/77be7b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/7895f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/7895f4.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/7895f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/7895f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/7f28cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/7f28cf.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/7f28cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/7f28cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/8356f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/8356f7.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/8356f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/8356f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/878dea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/878dea.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/878dea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/878dea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/87faad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/87faad.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/87faad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/87faad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/8ac32a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/8ac32a.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/8ac32a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/8ac32a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/8bd987.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/8bd987.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/8bd987.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/8bd987.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/8dbf23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/8dbf23.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/8dbf23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/8dbf23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/90b8cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/9695c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/9695c6.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/9695c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/9695c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/98a9cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/98a9cf.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/98a9cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/98a9cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/9c60e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/9c60e3.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/9c60e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/9c60e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/a54655.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/a54655.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/a54655.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/a54655.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/aac630.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/aac630.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/aac630.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/aac630.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/bf2f76.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/c1eca9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/c1eca9.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/c1eca9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/c1eca9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/d3e21f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/d3e21f.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/d3e21f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/d3e21f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/d3f655.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/d3f655.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/d3f655.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/d3f655.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/d75a0b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/d75a0b.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/d75a0b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/d75a0b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/de8087.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/de8087.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/de8087.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/de8087.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/e47aac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/e47aac.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/e47aac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/e47aac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/f1783f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/f1783f.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/f1783f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/f1783f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/181090.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/181090.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/181090.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/181090.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/2267d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/2267d8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/2267d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/2267d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/24b2c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/24b2c6.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/24b2c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/24b2c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/2bea6c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/2bea6c.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/2bea6c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/2bea6c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/2df1ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/2df1ab.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/2df1ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/2df1ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/46dbd8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/46dbd8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/46dbd8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/46dbd8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/60d9b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/60d9b8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/60d9b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/60d9b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/903920.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/903920.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/903920.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/903920.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/9a1a65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/9a1a65.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/9a1a65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/9a1a65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/adc783.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/adc783.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/adc783.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/adc783.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/ae911c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/ae911c.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/ae911c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/ae911c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/c386c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/c386c8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/c386c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/c386c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/c399f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/c399f9.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/c399f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/c399f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/c8c25c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/c8c25c.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/c8c25c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/c8c25c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/d63126.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/d63126.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/d63126.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/d63126.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/d8f73b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/d8f73b.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/d8f73b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/d8f73b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/ef7944.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/ef7944.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/ef7944.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/ef7944.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/efd6df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/efd6df.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/efd6df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/efd6df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/f742c0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/f742c0.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/f742c0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/f742c0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumLevels/fe2171.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLevels/fe2171.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/literal/textureNumLevels/fe2171.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLevels/fe2171.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumSamples/50f399.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumSamples/50f399.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/literal/textureNumSamples/50f399.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumSamples/50f399.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumSamples/c1a777.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumSamples/c1a777.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/literal/textureNumSamples/c1a777.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumSamples/c1a777.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumSamples/dbb799.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumSamples/dbb799.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/literal/textureNumSamples/dbb799.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumSamples/dbb799.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureNumSamples/ecd321.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumSamples/ecd321.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/literal/textureNumSamples/ecd321.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumSamples/ecd321.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/193203.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/1a4e1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/1a4e1b.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/1a4e1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/1a4e1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/4703d0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/7fd8cb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/7fd8cb.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/7fd8cb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/7fd8cb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/bc7477.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/bc7477.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/bc7477.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/bc7477.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/d6b281.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/d6b281.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/d6b281.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/d6b281.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/1c707e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/1c707e.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/1c707e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/1c707e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/87915c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/c6953d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/c6953d.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/c6953d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/c6953d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/1912e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/1912e5.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/1912e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/1912e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/7b5025.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/90ae56.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/90ae56.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/90ae56.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/90ae56.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/a09131.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/a09131.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/a09131.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/a09131.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/265cc7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/265cc7.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/265cc7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/265cc7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/73e892.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/73e892.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/73e892.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/73e892.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/941a53.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/941a53.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/941a53.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/941a53.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/a12142.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/a12142.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/a12142.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/a12142.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/00ca64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/00ca64.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/00ca64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/00ca64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0148bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0148bd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/0148bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0148bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/031506.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/031506.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/031506.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/031506.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/036d0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/036d0e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/036d0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/036d0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/03e7a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/03e7a0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/03e7a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/03e7a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/042b06.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/042b06.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/042b06.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/042b06.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/052a4e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/052a4e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/052a4e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/052a4e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/053664.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/053664.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/053664.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/053664.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/06e49c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/06e49c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/06e49c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/06e49c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/07548b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/07548b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/07548b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/07548b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/09e4d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/09e4d5.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/09e4d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/09e4d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0a1a79.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0a1a79.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/0a1a79.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0a1a79.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0ad124.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0ad124.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/0ad124.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0ad124.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0ade9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0ade9a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/0ade9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0ade9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0cc825.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0cc825.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/0cc825.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0cc825.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/0ff97a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/0ff97a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/0ff97a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/0ff97a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/101325.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/101325.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/101325.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/101325.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/145061.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/145061.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/145061.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/145061.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/158cf0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/158cf0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/158cf0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/158cf0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/178e69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/178e69.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/178e69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/178e69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1839f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1839f2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1839f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1839f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/195d1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/195d1b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/195d1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/195d1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/197637.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/197637.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/197637.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/197637.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1a264d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1a264d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1a264d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1a264d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1a6c0b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1a6c0b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/1a6c0b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1a6c0b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1a7d35.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1a7d35.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1a7d35.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1a7d35.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1af236.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1af236.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/1af236.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1af236.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1dc954.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1dc954.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1dc954.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1dc954.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1e20f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1e20f2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1e20f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1e20f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1e79f0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1e79f0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1e79f0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1e79f0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1e9fbd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1e9fbd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1e9fbd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1e9fbd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1efc36.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1efc36.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1efc36.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1efc36.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1f1ef8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1f1ef8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1f1ef8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1f1ef8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/1fef04.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/1fef04.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/1fef04.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/1fef04.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2046db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2046db.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/2046db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2046db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/207fdd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/207fdd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/207fdd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/207fdd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2173fd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2173fd.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/2173fd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2173fd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/22f045.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/22f045.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/22f045.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/22f045.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2383fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2383fc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/2383fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2383fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/24e6b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/24e6b7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/24e6b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/24e6b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/258ab0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/258ab0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/258ab0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/258ab0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/26a26d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/26a26d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/26a26d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/26a26d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/27063a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/27063a.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/27063a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/27063a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/272f5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/272f5a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/272f5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/272f5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/285218.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/285218.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/285218.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/285218.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/28a7ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/28a7ec.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/28a7ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/28a7ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/28e109.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/28e109.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/28e109.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/28e109.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2a60c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2a60c9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/2a60c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2a60c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2addd6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2addd6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/2addd6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2addd6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2c76db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2c76db.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/2c76db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2c76db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2d2835.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2d2835.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/2d2835.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2d2835.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2e512f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2e512f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/2e512f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2e512f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2e6102.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2e6102.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/2e6102.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2e6102.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/2f29ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2f29ea.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/2f29ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2f29ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/30b0b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/30b0b0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/30b0b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/30b0b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/312f27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/312f27.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/312f27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/312f27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/32d3d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/32d3d6.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/32d3d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/32d3d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/330b7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/330b7c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/330b7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/330b7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3310d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3310d3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/3310d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3310d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/33cec0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/33cec0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/33cec0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/33cec0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/345332.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/345332.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/345332.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/345332.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/37eeef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/37eeef.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/37eeef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/37eeef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/37ffd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/37ffd4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/37ffd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/37ffd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3c1937.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3c1937.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/3c1937.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3c1937.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3d1ebe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3d1ebe.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/3d1ebe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3d1ebe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3d6f01.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3d6f01.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/3d6f01.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3d6f01.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3d96a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3d96a4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/3d96a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3d96a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3e0dc4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3e0dc4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/3e0dc4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3e0dc4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3f61ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3f61ca.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/3f61ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3f61ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/3fb31f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/3fb31f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/3fb31f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/3fb31f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/40c455.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/40c455.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/40c455.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/40c455.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4288fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4288fc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/4288fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4288fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/43d1df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/43d1df.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/43d1df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/43d1df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/441222.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/441222.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/441222.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/441222.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4483e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4483e7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/4483e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4483e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/44b372.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/44b372.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/44b372.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/44b372.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/44daa7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/44daa7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/44daa7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/44daa7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/473ead.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/473ead.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/473ead.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/473ead.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/47bd70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/47bd70.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/47bd70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/47bd70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/486500.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/486500.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/486500.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/486500.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/48cb56.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/48cb56.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/48cb56.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/48cb56.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/48eae1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/48eae1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/48eae1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/48eae1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4bf1fd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4bf1fd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/4bf1fd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4bf1fd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4c454f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4c454f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/4c454f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4c454f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4c76b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4c76b7.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/4c76b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4c76b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4cce74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4cce74.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/4cce74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4cce74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4d359d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4d359d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/4d359d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4d359d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4ddf52.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4ddf52.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/4ddf52.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4ddf52.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4e2b3a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4e2b3a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/4e2b3a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4e2b3a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5030f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5030f5.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/5030f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5030f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/506a71.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/506a71.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/506a71.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/506a71.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/51ec82.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/51ec82.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/51ec82.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/51ec82.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5246b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5246b4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/5246b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5246b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/52f503.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/52f503.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/52f503.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/52f503.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/53a68b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/53a68b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/53a68b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/53a68b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5425ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5425ab.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/5425ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5425ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/544f06.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/544f06.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/544f06.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/544f06.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/55f9dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/55f9dc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/55f9dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/55f9dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/574a31.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/574a31.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/574a31.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/574a31.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/579b93.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/579b93.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/579b93.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/579b93.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5841f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5841f8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/5841f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5841f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/58fc35.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/58fc35.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/58fc35.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/58fc35.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/59a0ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/59a0ab.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/59a0ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/59a0ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5a8b41.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5a8b41.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/5a8b41.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5a8b41.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5b17eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5b17eb.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/5b17eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5b17eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5b4522.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5b4522.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/5b4522.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5b4522.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5bc4f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5bc4f3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/5bc4f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5bc4f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5ddc61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5ddc61.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/5ddc61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5ddc61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5ec6b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5ec6b2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/5ec6b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5ec6b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5ee194.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5ee194.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/5ee194.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5ee194.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/5f9a49.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/5f9a49.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/5f9a49.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/5f9a49.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/602b5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/602b5a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/602b5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/602b5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/614b58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/614b58.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/614b58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/614b58.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/635584.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/635584.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/635584.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/635584.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/63f34a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/63f34a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/63f34a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/63f34a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/646dbc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/646dbc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/646dbc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/646dbc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/658a74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/658a74.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/658a74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/658a74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/65b6aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/65b6aa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/65b6aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/65b6aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/65ba8b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/65ba8b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/65ba8b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/65ba8b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/699a1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/699a1b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/699a1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/699a1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6be9e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6be9e0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6be9e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6be9e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6c4a70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6c4a70.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6c4a70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6c4a70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6d1809.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6d1809.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/6d1809.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6d1809.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6d259f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6d259f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/6d259f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6d259f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6e6cc0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6e6cc0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6e6cc0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6e6cc0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6f0c92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6f0c92.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/6f0c92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6f0c92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6f3542.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6f3542.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/6f3542.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6f3542.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6f8642.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6f8642.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6f8642.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6f8642.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6fb99b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6fb99b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/6fb99b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6fb99b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/6fd2b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/6fd2b1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/6fd2b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/6fd2b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/704e1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/704e1f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/704e1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/704e1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/706236.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/706236.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/706236.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/706236.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/706560.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/706560.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/706560.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/706560.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/726472.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/726472.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/726472.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/726472.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/726d6d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/726d6d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/726d6d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/726d6d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/72fa64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/72fa64.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/72fa64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/72fa64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/73a735.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/73a735.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/73a735.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/73a735.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/73bbbc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/73bbbc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/73bbbc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/73bbbc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/74886f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/74886f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/74886f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/74886f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/751256.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/751256.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/751256.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/751256.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/75bbd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/75bbd5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/75bbd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/75bbd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7792fa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7792fa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/7792fa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7792fa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/779d14.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/779d14.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/779d14.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/779d14.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7b8f86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7b8f86.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/7b8f86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7b8f86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7bb211.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7bb211.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/7bb211.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7bb211.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7cf6e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7cf6e7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/7cf6e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7cf6e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7d10e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7d10e0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/7d10e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7d10e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7dd042.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7dd042.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/7dd042.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7dd042.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7e787a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7e787a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/7e787a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7e787a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/803a10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/803a10.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/803a10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/803a10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/80bf1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/80bf1d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/80bf1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/80bf1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/818df6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/818df6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/818df6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/818df6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/81ae31.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/81ae31.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/81ae31.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/81ae31.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/820272.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/820272.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/820272.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/820272.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/84d435.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/84d435.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/84d435.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/84d435.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/84f4f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/84f4f4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/84f4f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/84f4f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8676c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8676c9.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8676c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8676c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/86f713.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/86f713.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/86f713.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/86f713.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/877c92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/877c92.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/877c92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/877c92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8815b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8815b1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/8815b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8815b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/885921.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/885921.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/885921.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/885921.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/88ce7e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/88ce7e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/88ce7e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/88ce7e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8a16b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8a16b0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8a16b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8a16b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8a46ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8a46ff.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/8a46ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8a46ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8a85b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8a85b9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/8a85b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8a85b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8a8681.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8a8681.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/8a8681.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8a8681.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8ae0bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8ae0bc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/8ae0bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8ae0bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8b9310.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8b9310.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8b9310.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8b9310.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8bb287.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8bb287.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8bb287.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8bb287.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8c76e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8c76e9.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8c76e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8c76e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8cd611.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8cd611.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8cd611.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8cd611.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8cd841.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8cd841.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8cd841.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8cd841.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8dc54f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8dc54f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8dc54f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8dc54f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8ebdc9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8ebdc9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/8ebdc9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8ebdc9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8ed9f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8ed9f8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8ed9f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8ed9f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/8ff674.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/8ff674.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/8ff674.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/8ff674.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/90960e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/90960e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/90960e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/90960e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/90a553.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/90a553.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/90a553.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/90a553.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/958353.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/958353.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/958353.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/958353.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/959d94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/959d94.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/959d94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/959d94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/95e452.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/95e452.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/95e452.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/95e452.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/976636.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/976636.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/976636.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/976636.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9938b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9938b7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9938b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9938b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9aedd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9aedd3.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/9aedd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9aedd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9ba5c1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9ba5c1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/9ba5c1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9ba5c1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9cea9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9cea9e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/9cea9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9cea9e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9d7c62.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9d7c62.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/9d7c62.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9d7c62.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9d8668.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9d8668.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9d8668.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9d8668.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9e5bc2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9e5bc2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9e5bc2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9e5bc2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9f5318.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9f5318.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9f5318.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9f5318.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/9f7cea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/9f7cea.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/9f7cea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/9f7cea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a0022f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a0022f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a0022f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a0022f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a0f96e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a0f96e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a0f96e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a0f96e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a1352c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a1352c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a1352c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a1352c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a14041.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a14041.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a14041.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a14041.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a165b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a165b8.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/a165b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a165b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a19a12.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a19a12.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a19a12.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a19a12.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a24491.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a24491.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a24491.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a24491.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a4c338.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a4c338.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a4c338.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a4c338.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a5b88e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a5b88e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a5b88e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a5b88e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a5c925.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a5c925.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a5c925.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a5c925.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a5e80d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a5e80d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a5e80d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a5e80d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a66ca4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a66ca4.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/a66ca4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a66ca4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a6a986.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a6a986.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a6a986.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a6a986.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a6e78f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a6e78f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a6e78f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a6e78f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a702b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a702b6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a702b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a702b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a7fc47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a7fc47.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a7fc47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a7fc47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a9298c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a9298c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/a9298c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a9298c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/a9426c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/a9426c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/a9426c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/a9426c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ab03b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ab03b6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ab03b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ab03b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ab788e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ab788e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ab788e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ab788e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/abdd21.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/abdd21.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/abdd21.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/abdd21.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ac0a55.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ac0a55.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ac0a55.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ac0a55.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ae6a2a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ae6a2a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ae6a2a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ae6a2a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/aeb38a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/aeb38a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/aeb38a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/aeb38a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/aedea3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/aedea3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/aedea3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/aedea3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b16110.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b16110.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/b16110.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b16110.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b286b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b286b4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/b286b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b286b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b36bc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b36bc1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/b36bc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b36bc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b42fd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b42fd3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/b42fd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b42fd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b4389e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b4389e.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/b4389e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b4389e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b70ded.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b70ded.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/b70ded.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b70ded.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b71c13.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b71c13.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/b71c13.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b71c13.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b7232c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b7232c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/b7232c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b7232c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b76ff3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b76ff3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/b76ff3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b76ff3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b77161.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b77161.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/b77161.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b77161.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b89ffb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b89ffb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/b89ffb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b89ffb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b91b86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b91b86.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/b91b86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b91b86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b9c81a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b9c81a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/b9c81a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b9c81a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/b9d863.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/b9d863.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/b9d863.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/b9d863.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/bc1423.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/bc1423.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/bc1423.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/bc1423.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/bcc97a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/bcc97a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/bcc97a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/bcc97a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/bd6602.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/bd6602.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/bd6602.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/bd6602.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c06463.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c06463.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/c06463.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c06463.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c1c664.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c1c664.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/c1c664.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c1c664.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c1f29e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c1f29e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/c1f29e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c1f29e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c1f760.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c1f760.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/c1f760.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c1f760.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c2ca46.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c2ca46.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/c2ca46.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c2ca46.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c32905.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c32905.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/c32905.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c32905.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c33478.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c33478.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/c33478.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c33478.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c35268.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c35268.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/c35268.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c35268.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c63f05.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c63f05.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/c63f05.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c63f05.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c79451.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c79451.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/c79451.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c79451.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/c9d780.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/c9d780.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/c9d780.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/c9d780.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/cb3b0b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/cb3b0b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/cb3b0b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/cb3b0b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ccac20.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ccac20.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ccac20.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ccac20.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/cd6755.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/cd6755.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/cd6755.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/cd6755.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ceb832.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ceb832.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/ceb832.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ceb832.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d0d62c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d0d62c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/d0d62c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d0d62c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d0fadc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d0fadc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/d0fadc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d0fadc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d19db4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d19db4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/d19db4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d19db4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d1ab82.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d1ab82.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/d1ab82.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d1ab82.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d26166.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d26166.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/d26166.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d26166.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d2b565.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d2b565.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/d2b565.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d2b565.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d3a22b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d3a22b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/d3a22b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d3a22b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d4aa95.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d4aa95.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/d4aa95.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d4aa95.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d55e65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d55e65.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/d55e65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d55e65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d82b0a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d82b0a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/d82b0a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d82b0a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/d86d33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/d86d33.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/d86d33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/d86d33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/da530c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/da530c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/da530c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/da530c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/db5128.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/db5128.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/db5128.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/db5128.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/db92a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/db92a2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/db92a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/db92a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/dce0e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/dce0e2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/dce0e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/dce0e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/dd8b29.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/dd8b29.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/dd8b29.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/dd8b29.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/de38e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/de38e5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/de38e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/de38e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/de4b94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/de4b94.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/de4b94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/de4b94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/df0c51.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/df0c51.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/df0c51.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/df0c51.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/df2ca4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/df2ca4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/df2ca4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/df2ca4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/dfa9a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/dfa9a1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/dfa9a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/dfa9a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/dffb13.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/dffb13.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/dffb13.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/dffb13.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e077e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e077e7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/e077e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e077e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e0b666.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e0b666.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/e0b666.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e0b666.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e1784d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e1784d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/e1784d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e1784d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e38281.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e38281.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/literal/textureStore/e38281.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e38281.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e46fd8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e46fd8.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/literal/textureStore/e46fd8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e46fd8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e72bdc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e72bdc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/e72bdc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e72bdc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e7c6d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e7c6d8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/e7c6d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e7c6d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e87f6e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e87f6e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/e87f6e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e87f6e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/e8cbf7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/e8cbf7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/e8cbf7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/e8cbf7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ea30d2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ea30d2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ea30d2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ea30d2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ed6198.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ed6198.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ed6198.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ed6198.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f05928.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f05928.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/f05928.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f05928.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f1e6d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f1e6d3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/f1e6d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f1e6d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f64d69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f64d69.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/f64d69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f64d69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f6f392.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f6f392.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/f6f392.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f6f392.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f7b0ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f7b0ab.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/f7b0ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f7b0ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f8aaf9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f8aaf9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/f8aaf9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f8aaf9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f975a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f975a0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/f975a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f975a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/fc916e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/fc916e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/fc916e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/fc916e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/fcbe66.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/fcbe66.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/fcbe66.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/fcbe66.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/fd350c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/fd350c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/literal/textureStore/fd350c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/fd350c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/literal/textureStore/ff23b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/ff23b3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/literal/textureStore/ff23b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/ff23b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.ir.glsl
index b605124..4b12f5d 100644
--- a/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.ir.glsl
@@ -4,79 +4,50 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec4 prevent_dce;
-};
-
-uvec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
 uvec4 abs_1ce782() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 res = abs(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = abs_1ce782();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_1ce782();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_1ce782();
-  return tint_symbol;
+  v.tint_symbol = abs_1ce782();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 4-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: 'abs' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec4 prevent_dce;
-};
-
-uvec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
 uvec4 abs_1ce782() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_1ce782();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = abs_1ce782();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_1ce782();
-  return tint_symbol;
+  v.tint_symbol = abs_1ce782();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 4-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: 'abs' : no matching overloaded function found 
+ERROR: 0:9: '=' :  cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -84,29 +55,30 @@
   uvec4 prevent_dce;
 };
 
-uvec4 prevent_dce;
+layout(location = 0) flat out uvec4 vertex_main_loc0_Output;
 uvec4 abs_1ce782() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_1ce782();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_1ce782();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = abs_1ce782();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 4-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: 'abs' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp 4-component vector of uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.ir.glsl
index 24cf208..b547e39 100644
--- a/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.ir.glsl
@@ -4,79 +4,50 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint abs_467cd1() {
   uint arg_0 = 1u;
   uint res = abs(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = abs_467cd1();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_467cd1();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_467cd1();
-  return tint_symbol;
+  v.tint_symbol = abs_467cd1();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: 'abs' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint abs_467cd1() {
   uint arg_0 = 1u;
   uint res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_467cd1();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = abs_467cd1();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_467cd1();
-  return tint_symbol;
+  v.tint_symbol = abs_467cd1();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: 'abs' : no matching overloaded function found 
+ERROR: 0:9: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -84,29 +55,30 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint abs_467cd1() {
   uint arg_0 = 1u;
   uint res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_467cd1();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_467cd1();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = abs_467cd1();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: 'abs' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.ir.glsl
index 1e696c0..210019f 100644
--- a/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.ir.glsl
@@ -4,79 +4,50 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec3 prevent_dce;
-};
-
-uvec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
 uvec3 abs_7326de() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 res = abs(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = abs_7326de();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_7326de();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_7326de();
-  return tint_symbol;
+  v.tint_symbol = abs_7326de();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 3-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: 'abs' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec3 prevent_dce;
-};
-
-uvec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
 uvec3 abs_7326de() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_7326de();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = abs_7326de();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_7326de();
-  return tint_symbol;
+  v.tint_symbol = abs_7326de();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 3-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: 'abs' : no matching overloaded function found 
+ERROR: 0:9: '=' :  cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -84,29 +55,30 @@
   uvec3 prevent_dce;
 };
 
-uvec3 prevent_dce;
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
 uvec3 abs_7326de() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_7326de();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_7326de();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = abs_7326de();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 3-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: 'abs' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp 3-component vector of uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.ir.glsl
index 9f8d753..11fade6 100644
--- a/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.ir.glsl
@@ -4,79 +4,50 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec2 prevent_dce;
-};
-
-uvec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
 uvec2 abs_7f28e6() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 res = abs(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = abs_7f28e6();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_7f28e6();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_7f28e6();
-  return tint_symbol;
+  v.tint_symbol = abs_7f28e6();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 2-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: 'abs' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec2 prevent_dce;
-};
-
-uvec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
 uvec2 abs_7f28e6() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_7f28e6();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = abs_7f28e6();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = abs_7f28e6();
-  return tint_symbol;
+  v.tint_symbol = abs_7f28e6();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 2-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: 'abs' : no matching overloaded function found 
+ERROR: 0:9: '=' :  cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -84,29 +55,30 @@
   uvec2 prevent_dce;
 };
 
-uvec2 prevent_dce;
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
 uvec2 abs_7f28e6() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 res = abs(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = abs_7f28e6();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = abs_7f28e6();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = abs_7f28e6();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'abs' : no matching overloaded function found 
-ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp 2-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: 'abs' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp 2-component vector of uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.ir.glsl
index f297654..9b70abe 100644
--- a/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.ir.glsl
@@ -1,11 +1,87 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_353d6a() {
+  bool arg_0 = true;
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_353d6a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'all' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_353d6a() {
+  bool arg_0 = true;
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_353d6a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'all' : no matching overloaded function found 
+ERROR: 0:9: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_353d6a() {
+  bool arg_0 = true;
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_353d6a();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.ir.glsl
index f297654..dde08ce 100644
--- a/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.ir.glsl
@@ -1,11 +1,84 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_986c7b() {
+  bvec4 arg_0 = bvec4(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_986c7b();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_986c7b() {
+  bvec4 arg_0 = bvec4(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_986c7b();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'all' : no matching overloaded function found 
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_986c7b() {
+  bvec4 arg_0 = bvec4(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_986c7b();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'all' : no matching overloaded function found 
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.ir.glsl
index f297654..421b009 100644
--- a/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.ir.glsl
@@ -1,11 +1,84 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_bd2dba() {
+  bvec3 arg_0 = bvec3(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_bd2dba();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_bd2dba() {
+  bvec3 arg_0 = bvec3(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_bd2dba();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'all' : no matching overloaded function found 
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_bd2dba() {
+  bvec3 arg_0 = bvec3(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_bd2dba();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'all' : no matching overloaded function found 
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/all/f46790.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/all/f46790.wgsl.expected.ir.glsl
index f297654..67312dc 100644
--- a/test/tint/builtins/gen/var/all/f46790.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/all/f46790.wgsl.expected.ir.glsl
@@ -1,11 +1,84 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_f46790() {
+  bvec2 arg_0 = bvec2(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = all_f46790();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int all_f46790() {
+  bvec2 arg_0 = bvec2(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = all_f46790();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'all' : no matching overloaded function found 
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int all_f46790() {
+  bvec2 arg_0 = bvec2(true);
+  bool res = all(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = all_f46790();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'all' : no matching overloaded function found 
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/any/083428.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/any/083428.wgsl.expected.ir.glsl
index f297654..a4b3f04 100644
--- a/test/tint/builtins/gen/var/any/083428.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/any/083428.wgsl.expected.ir.glsl
@@ -1,11 +1,84 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_083428() {
+  bvec4 arg_0 = bvec4(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_083428();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_083428() {
+  bvec4 arg_0 = bvec4(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_083428();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'all' : no matching overloaded function found 
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_083428() {
+  bvec4 arg_0 = bvec4(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_083428();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'all' : no matching overloaded function found 
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.ir.glsl
index f297654..ddb33a5 100644
--- a/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.ir.glsl
@@ -1,11 +1,84 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_0e3e58() {
+  bvec2 arg_0 = bvec2(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_0e3e58();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_0e3e58() {
+  bvec2 arg_0 = bvec2(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_0e3e58();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'all' : no matching overloaded function found 
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_0e3e58() {
+  bvec2 arg_0 = bvec2(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_0e3e58();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'all' : no matching overloaded function found 
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.ir.glsl
index f297654..31b7425 100644
--- a/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.ir.glsl
@@ -1,11 +1,87 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_2ab91a() {
+  bool arg_0 = true;
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_2ab91a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'any' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_2ab91a() {
+  bool arg_0 = true;
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_2ab91a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:9: 'any' : no matching overloaded function found 
+ERROR: 0:9: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:9: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_2ab91a() {
+  bool arg_0 = true;
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_2ab91a();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'any' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.ir.glsl
index f297654..63b5ef4 100644
--- a/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.ir.glsl
@@ -1,11 +1,84 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_e755c1() {
+  bvec3 arg_0 = bvec3(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = any_e755c1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int any_e755c1() {
+  bvec3 arg_0 = bvec3(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = any_e755c1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'all' : no matching overloaded function found 
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int any_e755c1() {
+  bvec3 arg_0 = bvec3(true);
+  bool res = any(arg_0);
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = any_e755c1();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'all' : no matching overloaded function found 
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/8421b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/cbd6b5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.ir.glsl
index 072de26..495510c 100644
--- a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.ir.glsl
index 072de26..0ecc6ec 100644
--- a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.ir.glsl
index 072de26..5fe4435 100644
--- a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicExchange
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.ir.glsl
index 072de26..d81b0a9 100644
--- a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.ir.glsl
index 072de26..b6d6816 100644
--- a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.ir.glsl
index 072de26..cce989d 100644
--- a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.ir.glsl
index 072de26..80f3100 100644
--- a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.ir.glsl
index 072de26..7292d5c 100644
--- a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.ir.glsl
index 072de26..6a984ad 100644
--- a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicSub
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.ir.glsl
index 072de26..452ca52 100644
--- a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/0fe0c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/0fe0c9.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/0fe0c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/0fe0c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/16cba4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/16cba4.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/16cba4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/16cba4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/1c3b31.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/1c3b31.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/1c3b31.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/1c3b31.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/1df11f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/214f23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/23c8bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/2421c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/2421c8.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/2421c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/2421c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/287bdf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/287bdf.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/287bdf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/287bdf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/2a6e58.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/2b05b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/2b05b3.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/2b05b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/2b05b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/2b2738.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/2b2738.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/2b2738.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/2b2738.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/31c080.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/31c080.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/31c080.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/31c080.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/332f78.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/332f78.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/332f78.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/332f78.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/3e7b47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/3f7437.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/3f7437.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/3f7437.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/3f7437.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/3fdacd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/3fdacd.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/3fdacd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/3fdacd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/429d64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/436211.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/5081ed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/56266e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/56266e.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/56266e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/56266e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/66e93d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/674557.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/6ac6f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/6de2bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/6de2bd.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/6de2bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/6de2bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/71c92a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/745b27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/745b27.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/745b27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/745b27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/7e67cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/7e67cc.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/7e67cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/7e67cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/7ffa9c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/7ffa9c.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/7ffa9c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/7ffa9c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/81c5f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/8318a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/8318a8.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/8318a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/8318a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/899e50.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/899e50.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/899e50.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/899e50.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/8d184c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/8d184c.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/8d184c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/8d184c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/9bcf71.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/9bcf71.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/9bcf71.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/9bcf71.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/9ca42c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/9eee21.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/9eee21.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/9eee21.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/9eee21.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/a4b290.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/a4b290.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/a4b290.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/a4b290.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/a58b50.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/a8c93f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/a8c93f.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/a8c93f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/a8c93f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/a8ea1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/a8ea1b.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/a8ea1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/a8ea1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/ac09d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/ac09d0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/ac09d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/ac09d0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/ad4b05.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/ad4b05.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/ad4b05.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/ad4b05.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/b28cbd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/b28cbd.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/b28cbd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/b28cbd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/b77573.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/b77573.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/b77573.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/b77573.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/bc3994.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/c69aaf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/c69aaf.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/c69aaf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/c69aaf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/ca5c3f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/ca5c3f.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/ca5c3f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/ca5c3f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/cc7aa7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/cc7aa7.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/cc7aa7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/cc7aa7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/d29765.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/d29765.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/d29765.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/d29765.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/dce842.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/dce842.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/dce842.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/dce842.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/e61c57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/e61c57.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/e61c57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/e61c57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/bitcast/e6c18f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/bitcast/e6c18f.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/bitcast/e6c18f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/bitcast/e6c18f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.ir.glsl
index f297654..329d25e 100644
--- a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.ir.glsl
@@ -1,11 +1,123 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 countLeadingZeros_70783f() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = (((v_1 <= uvec2(65535u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_3 = uvec2(v_2, (((v_1 <= uvec2(65535u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_4 = ((((v_1 << v_3) <= uvec2(16777215u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_5 = uvec2(v_4, ((((v_1 << v_3) <= uvec2(16777215u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_6 = (((((v_1 << v_3) << v_5) <= uvec2(268435455u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_7 = uvec2(v_6, (((((v_1 << v_3) << v_5) <= uvec2(268435455u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_8 = ((((((v_1 << v_3) << v_5) << v_7) <= uvec2(1073741823u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_9 = uvec2(v_8, ((((((v_1 << v_3) << v_5) << v_7) <= uvec2(1073741823u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_10 = (((((((v_1 << v_3) << v_5) << v_7) << v_9) <= uvec2(2147483647u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_11 = uvec2(v_10, (((((((v_1 << v_3) << v_5) << v_7) << v_9) <= uvec2(2147483647u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uint v_12 = (((((((v_1 << v_3) << v_5) << v_7) << v_9) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_13 = uvec2(v_12, (((((((v_1 << v_3) << v_5) << v_7) << v_9) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uvec2 res = ((v_3 | (v_5 | (v_7 | (v_9 | (v_11 | v_13))))) + v_13);
+  return res;
+}
+void main() {
+  v.tint_symbol = countLeadingZeros_70783f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 2-component vector of uint' and a right operand of type ' const 2-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 countLeadingZeros_70783f() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = (((v_1 <= uvec2(65535u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_3 = uvec2(v_2, (((v_1 <= uvec2(65535u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_4 = ((((v_1 << v_3) <= uvec2(16777215u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_5 = uvec2(v_4, ((((v_1 << v_3) <= uvec2(16777215u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_6 = (((((v_1 << v_3) << v_5) <= uvec2(268435455u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_7 = uvec2(v_6, (((((v_1 << v_3) << v_5) <= uvec2(268435455u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_8 = ((((((v_1 << v_3) << v_5) << v_7) <= uvec2(1073741823u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_9 = uvec2(v_8, ((((((v_1 << v_3) << v_5) << v_7) <= uvec2(1073741823u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_10 = (((((((v_1 << v_3) << v_5) << v_7) << v_9) <= uvec2(2147483647u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_11 = uvec2(v_10, (((((((v_1 << v_3) << v_5) << v_7) << v_9) <= uvec2(2147483647u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uint v_12 = (((((((v_1 << v_3) << v_5) << v_7) << v_9) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_13 = uvec2(v_12, (((((((v_1 << v_3) << v_5) << v_7) << v_9) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uvec2 res = ((v_3 | (v_5 | (v_7 | (v_9 | (v_11 | v_13))))) + v_13);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = countLeadingZeros_70783f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 2-component vector of uint' and a right operand of type ' const 2-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 countLeadingZeros_70783f() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v = arg_0;
+  uint v_1 = (((v <= uvec2(65535u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_2 = uvec2(v_1, (((v <= uvec2(65535u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_3 = ((((v << v_2) <= uvec2(16777215u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_4 = uvec2(v_3, ((((v << v_2) <= uvec2(16777215u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_5 = (((((v << v_2) << v_4) <= uvec2(268435455u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_6 = uvec2(v_5, (((((v << v_2) << v_4) <= uvec2(268435455u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_7 = ((((((v << v_2) << v_4) << v_6) <= uvec2(1073741823u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_8 = uvec2(v_7, ((((((v << v_2) << v_4) << v_6) <= uvec2(1073741823u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_9 = (((((((v << v_2) << v_4) << v_6) << v_8) <= uvec2(2147483647u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_10 = uvec2(v_9, (((((((v << v_2) << v_4) << v_6) << v_8) <= uvec2(2147483647u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uint v_11 = (((((((v << v_2) << v_4) << v_6) << v_8) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_12 = uvec2(v_11, (((((((v << v_2) << v_4) << v_6) << v_8) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uvec2 res = ((v_2 | (v_4 | (v_6 | (v_8 | (v_10 | v_12))))) + v_12);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = countLeadingZeros_70783f();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_13 = vertex_main_inner();
+  gl_Position = v_13.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_13.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 2-component vector of uint' and a right operand of type ' const 2-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.ir.glsl
index f297654..50a1420 100644
--- a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.ir.glsl
@@ -1,11 +1,141 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 countLeadingZeros_ab6345() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = (((v_1 <= uvec3(65535u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_3 = (((v_1 <= uvec3(65535u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, (((v_1 <= uvec3(65535u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_5 = ((((v_1 << v_4) <= uvec3(16777215u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_6 = ((((v_1 << v_4) <= uvec3(16777215u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, ((((v_1 << v_4) <= uvec3(16777215u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_8 = (((((v_1 << v_4) << v_7) <= uvec3(268435455u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_9 = (((((v_1 << v_4) << v_7) <= uvec3(268435455u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, (((((v_1 << v_4) << v_7) <= uvec3(268435455u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_11 = ((((((v_1 << v_4) << v_7) << v_10) <= uvec3(1073741823u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_12 = ((((((v_1 << v_4) << v_7) << v_10) <= uvec3(1073741823u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, ((((((v_1 << v_4) << v_7) << v_10) <= uvec3(1073741823u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_14 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) <= uvec3(2147483647u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_15 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) <= uvec3(2147483647u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_16 = uvec3(v_14, v_15, (((((((v_1 << v_4) << v_7) << v_10) << v_13) <= uvec3(2147483647u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uint v_17 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_18 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_19 = uvec3(v_17, v_18, (((((((v_1 << v_4) << v_7) << v_10) << v_13) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uvec3 res = ((v_4 | (v_7 | (v_10 | (v_13 | (v_16 | v_19))))) + v_19);
+  return res;
+}
+void main() {
+  v.tint_symbol = countLeadingZeros_ab6345();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 3-component vector of uint' and a right operand of type ' const 3-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 countLeadingZeros_ab6345() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = (((v_1 <= uvec3(65535u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_3 = (((v_1 <= uvec3(65535u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, (((v_1 <= uvec3(65535u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_5 = ((((v_1 << v_4) <= uvec3(16777215u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_6 = ((((v_1 << v_4) <= uvec3(16777215u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, ((((v_1 << v_4) <= uvec3(16777215u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_8 = (((((v_1 << v_4) << v_7) <= uvec3(268435455u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_9 = (((((v_1 << v_4) << v_7) <= uvec3(268435455u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, (((((v_1 << v_4) << v_7) <= uvec3(268435455u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_11 = ((((((v_1 << v_4) << v_7) << v_10) <= uvec3(1073741823u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_12 = ((((((v_1 << v_4) << v_7) << v_10) <= uvec3(1073741823u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, ((((((v_1 << v_4) << v_7) << v_10) <= uvec3(1073741823u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_14 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) <= uvec3(2147483647u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_15 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) <= uvec3(2147483647u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_16 = uvec3(v_14, v_15, (((((((v_1 << v_4) << v_7) << v_10) << v_13) <= uvec3(2147483647u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uint v_17 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_18 = (((((((v_1 << v_4) << v_7) << v_10) << v_13) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_19 = uvec3(v_17, v_18, (((((((v_1 << v_4) << v_7) << v_10) << v_13) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uvec3 res = ((v_4 | (v_7 | (v_10 | (v_13 | (v_16 | v_19))))) + v_19);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = countLeadingZeros_ab6345();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 3-component vector of uint' and a right operand of type ' const 3-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec3 prevent_dce;
+};
+
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
+uvec3 countLeadingZeros_ab6345() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v = arg_0;
+  uint v_1 = (((v <= uvec3(65535u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_2 = (((v <= uvec3(65535u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_3 = uvec3(v_1, v_2, (((v <= uvec3(65535u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_4 = ((((v << v_3) <= uvec3(16777215u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_5 = ((((v << v_3) <= uvec3(16777215u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_6 = uvec3(v_4, v_5, ((((v << v_3) <= uvec3(16777215u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_7 = (((((v << v_3) << v_6) <= uvec3(268435455u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_8 = (((((v << v_3) << v_6) <= uvec3(268435455u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_9 = uvec3(v_7, v_8, (((((v << v_3) << v_6) <= uvec3(268435455u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_10 = ((((((v << v_3) << v_6) << v_9) <= uvec3(1073741823u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_11 = ((((((v << v_3) << v_6) << v_9) <= uvec3(1073741823u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_12 = uvec3(v_10, v_11, ((((((v << v_3) << v_6) << v_9) <= uvec3(1073741823u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_13 = (((((((v << v_3) << v_6) << v_9) << v_12) <= uvec3(2147483647u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_14 = (((((((v << v_3) << v_6) << v_9) << v_12) <= uvec3(2147483647u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_15 = uvec3(v_13, v_14, (((((((v << v_3) << v_6) << v_9) << v_12) <= uvec3(2147483647u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uint v_16 = (((((((v << v_3) << v_6) << v_9) << v_12) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_17 = (((((((v << v_3) << v_6) << v_9) << v_12) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_18 = uvec3(v_16, v_17, (((((((v << v_3) << v_6) << v_9) << v_12) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uvec3 res = ((v_3 | (v_6 | (v_9 | (v_12 | (v_15 | v_18))))) + v_18);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = countLeadingZeros_ab6345();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_19 = vertex_main_inner();
+  gl_Position = v_19.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_19.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 3-component vector of uint' and a right operand of type ' const 3-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.ir.glsl
index f297654..d4695cd 100644
--- a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.ir.glsl
@@ -1,11 +1,159 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 countLeadingZeros_f70103() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = (((v_1 <= uvec4(65535u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_3 = (((v_1 <= uvec4(65535u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_4 = (((v_1 <= uvec4(65535u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, (((v_1 <= uvec4(65535u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_6 = ((((v_1 << v_5) <= uvec4(16777215u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_7 = ((((v_1 << v_5) <= uvec4(16777215u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_8 = ((((v_1 << v_5) <= uvec4(16777215u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, ((((v_1 << v_5) <= uvec4(16777215u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_10 = (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_11 = (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_12 = (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_14 = ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_15 = ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_16 = ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_18 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_19 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_20 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_21 = uvec4(v_18, v_19, v_20, (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uint v_22 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_23 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_24 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_25 = uvec4(v_22, v_23, v_24, (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uvec4 res = ((v_5 | (v_9 | (v_13 | (v_17 | (v_21 | v_25))))) + v_25);
+  return res;
+}
+void main() {
+  v.tint_symbol = countLeadingZeros_f70103();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 4-component vector of uint' and a right operand of type ' const 4-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 countLeadingZeros_f70103() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = (((v_1 <= uvec4(65535u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_3 = (((v_1 <= uvec4(65535u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_4 = (((v_1 <= uvec4(65535u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, (((v_1 <= uvec4(65535u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_6 = ((((v_1 << v_5) <= uvec4(16777215u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_7 = ((((v_1 << v_5) <= uvec4(16777215u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_8 = ((((v_1 << v_5) <= uvec4(16777215u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, ((((v_1 << v_5) <= uvec4(16777215u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_10 = (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_11 = (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_12 = (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, (((((v_1 << v_5) << v_9) <= uvec4(268435455u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_14 = ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_15 = ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_16 = ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, ((((((v_1 << v_5) << v_9) << v_13) <= uvec4(1073741823u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_18 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_19 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_20 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_21 = uvec4(v_18, v_19, v_20, (((((((v_1 << v_5) << v_9) << v_13) << v_17) <= uvec4(2147483647u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uint v_22 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_23 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_24 = (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_25 = uvec4(v_22, v_23, v_24, (((((((v_1 << v_5) << v_9) << v_13) << v_17) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uvec4 res = ((v_5 | (v_9 | (v_13 | (v_17 | (v_21 | v_25))))) + v_25);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = countLeadingZeros_f70103();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 4-component vector of uint' and a right operand of type ' const 4-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec4 prevent_dce;
+};
+
+layout(location = 0) flat out uvec4 vertex_main_loc0_Output;
+uvec4 countLeadingZeros_f70103() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v = arg_0;
+  uint v_1 = (((v <= uvec4(65535u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_2 = (((v <= uvec4(65535u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_3 = (((v <= uvec4(65535u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_4 = uvec4(v_1, v_2, v_3, (((v <= uvec4(65535u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_5 = ((((v << v_4) <= uvec4(16777215u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_6 = ((((v << v_4) <= uvec4(16777215u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_7 = ((((v << v_4) <= uvec4(16777215u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_8 = uvec4(v_5, v_6, v_7, ((((v << v_4) <= uvec4(16777215u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_9 = (((((v << v_4) << v_8) <= uvec4(268435455u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_10 = (((((v << v_4) << v_8) <= uvec4(268435455u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_11 = (((((v << v_4) << v_8) <= uvec4(268435455u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_12 = uvec4(v_9, v_10, v_11, (((((v << v_4) << v_8) <= uvec4(268435455u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_13 = ((((((v << v_4) << v_8) << v_12) <= uvec4(1073741823u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_14 = ((((((v << v_4) << v_8) << v_12) <= uvec4(1073741823u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_15 = ((((((v << v_4) << v_8) << v_12) <= uvec4(1073741823u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_16 = uvec4(v_13, v_14, v_15, ((((((v << v_4) << v_8) << v_12) <= uvec4(1073741823u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_17 = (((((((v << v_4) << v_8) << v_12) << v_16) <= uvec4(2147483647u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_18 = (((((((v << v_4) << v_8) << v_12) << v_16) <= uvec4(2147483647u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_19 = (((((((v << v_4) << v_8) << v_12) << v_16) <= uvec4(2147483647u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_20 = uvec4(v_17, v_18, v_19, (((((((v << v_4) << v_8) << v_12) << v_16) <= uvec4(2147483647u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uint v_21 = (((((((v << v_4) << v_8) << v_12) << v_16) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_22 = (((((((v << v_4) << v_8) << v_12) << v_16) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_23 = (((((((v << v_4) << v_8) << v_12) << v_16) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_24 = uvec4(v_21, v_22, v_23, (((((((v << v_4) << v_8) << v_12) << v_16) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uvec4 res = ((v_4 | (v_8 | (v_12 | (v_16 | (v_20 | v_24))))) + v_24);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = countLeadingZeros_f70103();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_25 = vertex_main_inner();
+  gl_Position = v_25.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_25.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: '<=' :  wrong operand types: no operation '<=' exists that takes a left-hand operand of type ' temp highp 4-component vector of uint' and a right operand of type ' const 4-component vector of uint' (or there is no acceptable conversion)
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.ir.glsl
index dc45796..664c103 100644
--- a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.ir.glsl
@@ -4,77 +4,48 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec4 prevent_dce;
-};
-
-uvec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
 uvec4 countOneBits_0d0e46() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 res = bitCount(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = countOneBits_0d0e46();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_0d0e46();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_0d0e46();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_0d0e46();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 4-component vector of int' to ' temp highp 4-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: '=' :  cannot convert from ' global lowp 4-component vector of int' to ' temp highp 4-component vector of uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec4 prevent_dce;
-};
-
-uvec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
 uvec4 countOneBits_0d0e46() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_0d0e46();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = countOneBits_0d0e46();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_0d0e46();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_0d0e46();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 4-component vector of int' to ' temp highp 4-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: '=' :  cannot convert from ' global lowp 4-component vector of int' to ' temp highp 4-component vector of uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -82,28 +53,29 @@
   uvec4 prevent_dce;
 };
 
-uvec4 prevent_dce;
+layout(location = 0) flat out uvec4 vertex_main_loc0_Output;
 uvec4 countOneBits_0d0e46() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_0d0e46();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_0d0e46();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = countOneBits_0d0e46();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 4-component vector of int' to ' temp highp 4-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: '=' :  cannot convert from ' global lowp 4-component vector of int' to ' temp highp 4-component vector of uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.ir.glsl
index 80e9609..20cac36 100644
--- a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.ir.glsl
@@ -4,77 +4,48 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec3 prevent_dce;
-};
-
-uvec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
 uvec3 countOneBits_690cfc() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 res = bitCount(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = countOneBits_690cfc();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_690cfc();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_690cfc();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_690cfc();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 3-component vector of int' to ' temp highp 3-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: '=' :  cannot convert from ' global lowp 3-component vector of int' to ' temp highp 3-component vector of uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec3 prevent_dce;
-};
-
-uvec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
 uvec3 countOneBits_690cfc() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_690cfc();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = countOneBits_690cfc();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_690cfc();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_690cfc();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 3-component vector of int' to ' temp highp 3-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: '=' :  cannot convert from ' global lowp 3-component vector of int' to ' temp highp 3-component vector of uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -82,28 +53,29 @@
   uvec3 prevent_dce;
 };
 
-uvec3 prevent_dce;
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
 uvec3 countOneBits_690cfc() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_690cfc();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_690cfc();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = countOneBits_690cfc();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 3-component vector of int' to ' temp highp 3-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: '=' :  cannot convert from ' global lowp 3-component vector of int' to ' temp highp 3-component vector of uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.ir.glsl
index 2ac2fdc..451df96 100644
--- a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.ir.glsl
@@ -4,77 +4,48 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec2 prevent_dce;
-};
-
-uvec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
 uvec2 countOneBits_94fd81() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 res = bitCount(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = countOneBits_94fd81();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_94fd81();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_94fd81();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_94fd81();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 2-component vector of int' to ' temp highp 2-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: '=' :  cannot convert from ' global lowp 2-component vector of int' to ' temp highp 2-component vector of uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uvec2 prevent_dce;
-};
-
-uvec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
 uvec2 countOneBits_94fd81() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_94fd81();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = countOneBits_94fd81();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_94fd81();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_94fd81();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 2-component vector of int' to ' temp highp 2-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: '=' :  cannot convert from ' global lowp 2-component vector of int' to ' temp highp 2-component vector of uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -82,28 +53,29 @@
   uvec2 prevent_dce;
 };
 
-uvec2 prevent_dce;
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
 uvec2 countOneBits_94fd81() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_94fd81();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_94fd81();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = countOneBits_94fd81();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp 2-component vector of int' to ' temp highp 2-component vector of uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: '=' :  cannot convert from ' global lowp 2-component vector of int' to ' temp highp 2-component vector of uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.ir.glsl
index eef034b..02a4455 100644
--- a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.ir.glsl
@@ -4,77 +4,48 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint countOneBits_ae44f9() {
   uint arg_0 = 1u;
   uint res = bitCount(arg_0);
   return res;
 }
 void main() {
-  prevent_dce = countOneBits_ae44f9();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_ae44f9();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_ae44f9();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_ae44f9();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp int' to ' temp highp uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:11: '=' :  cannot convert from ' global lowp int' to ' temp highp uint'
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint countOneBits_ae44f9() {
   uint arg_0 = 1u;
   uint res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_ae44f9();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = countOneBits_ae44f9();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = countOneBits_ae44f9();
-  return tint_symbol;
+  v.tint_symbol = countOneBits_ae44f9();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp int' to ' temp highp uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:9: '=' :  cannot convert from ' global lowp int' to ' temp highp uint'
+ERROR: 0:9: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -82,28 +53,29 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint countOneBits_ae44f9() {
   uint arg_0 = 1u;
   uint res = bitCount(arg_0);
   return res;
 }
-void main() {
-  prevent_dce = countOneBits_ae44f9();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = countOneBits_ae44f9();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = countOneBits_ae44f9();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: '=' :  cannot convert from ' global lowp int' to ' temp highp uint'
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:12: '=' :  cannot convert from ' global lowp int' to ' temp highp uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.ir.glsl
index f297654..c569b79 100644
--- a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.ir.glsl
@@ -1,11 +1,120 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 countTrailingZeros_1ad138() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec2(65535u)) == uvec2(0u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_3 = uvec2(v_2, ((((v_1 & uvec2(65535u)) == uvec2(0u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_4 = (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_5 = uvec2(v_4, (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_6 = ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_7 = uvec2(v_6, ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_8 = (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_9 = uvec2(v_8, (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_10 = ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_11 = uvec2(v_10, ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uint v_12 = (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 res = ((v_3 | (v_5 | (v_7 | (v_9 | v_11)))) + uvec2(v_12, (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y))));
+  return res;
+}
+void main() {
+  v.tint_symbol = countTrailingZeros_1ad138();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 countTrailingZeros_1ad138() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec2(65535u)) == uvec2(0u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_3 = uvec2(v_2, ((((v_1 & uvec2(65535u)) == uvec2(0u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_4 = (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_5 = uvec2(v_4, (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_6 = ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_7 = uvec2(v_6, ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_8 = (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_9 = uvec2(v_8, (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_10 = ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_11 = uvec2(v_10, ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uint v_12 = (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 res = ((v_3 | (v_5 | (v_7 | (v_9 | v_11)))) + uvec2(v_12, (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y))));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = countTrailingZeros_1ad138();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 countTrailingZeros_1ad138() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v = arg_0;
+  uint v_1 = ((((v & uvec2(65535u)) == uvec2(0u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_2 = uvec2(v_1, ((((v & uvec2(65535u)) == uvec2(0u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_3 = (((((v >> v_2) & uvec2(255u)) == uvec2(0u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_4 = uvec2(v_3, (((((v >> v_2) & uvec2(255u)) == uvec2(0u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_5 = ((((((v >> v_2) >> v_4) & uvec2(15u)) == uvec2(0u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_6 = uvec2(v_5, ((((((v >> v_2) >> v_4) & uvec2(15u)) == uvec2(0u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_7 = (((((((v >> v_2) >> v_4) >> v_6) & uvec2(3u)) == uvec2(0u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_8 = uvec2(v_7, (((((((v >> v_2) >> v_4) >> v_6) & uvec2(3u)) == uvec2(0u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_9 = ((((((((v >> v_2) >> v_4) >> v_6) >> v_8) & uvec2(1u)) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_10 = uvec2(v_9, ((((((((v >> v_2) >> v_4) >> v_6) >> v_8) & uvec2(1u)) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)));
+  uint v_11 = (((((((v >> v_2) >> v_4) >> v_6) >> v_8) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 res = ((v_2 | (v_4 | (v_6 | (v_8 | v_10)))) + uvec2(v_11, (((((((v >> v_2) >> v_4) >> v_6) >> v_8) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y))));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = countTrailingZeros_1ad138();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_12 = vertex_main_inner();
+  gl_Position = v_12.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_12.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.ir.glsl
index f297654..5a32c02 100644
--- a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.ir.glsl
@@ -1,11 +1,138 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 countTrailingZeros_8ed26f() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_3 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, ((((v_1 & uvec3(65535u)) == uvec3(0u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_5 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_6 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_8 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_9 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_11 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_12 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_14 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_15 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_16 = uvec3(v_14, v_15, ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uint v_17 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_18 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 res = ((v_4 | (v_7 | (v_10 | (v_13 | v_16)))) + uvec3(v_17, v_18, (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z))));
+  return res;
+}
+void main() {
+  v.tint_symbol = countTrailingZeros_8ed26f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 countTrailingZeros_8ed26f() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_3 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, ((((v_1 & uvec3(65535u)) == uvec3(0u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_5 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_6 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_8 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_9 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_11 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_12 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_14 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_15 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_16 = uvec3(v_14, v_15, ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uint v_17 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_18 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 res = ((v_4 | (v_7 | (v_10 | (v_13 | v_16)))) + uvec3(v_17, v_18, (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z))));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = countTrailingZeros_8ed26f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec3 prevent_dce;
+};
+
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
+uvec3 countTrailingZeros_8ed26f() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v = arg_0;
+  uint v_1 = ((((v & uvec3(65535u)) == uvec3(0u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_2 = ((((v & uvec3(65535u)) == uvec3(0u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_3 = uvec3(v_1, v_2, ((((v & uvec3(65535u)) == uvec3(0u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_4 = (((((v >> v_3) & uvec3(255u)) == uvec3(0u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_5 = (((((v >> v_3) & uvec3(255u)) == uvec3(0u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_6 = uvec3(v_4, v_5, (((((v >> v_3) & uvec3(255u)) == uvec3(0u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_7 = ((((((v >> v_3) >> v_6) & uvec3(15u)) == uvec3(0u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_8 = ((((((v >> v_3) >> v_6) & uvec3(15u)) == uvec3(0u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_9 = uvec3(v_7, v_8, ((((((v >> v_3) >> v_6) & uvec3(15u)) == uvec3(0u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_10 = (((((((v >> v_3) >> v_6) >> v_9) & uvec3(3u)) == uvec3(0u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_11 = (((((((v >> v_3) >> v_6) >> v_9) & uvec3(3u)) == uvec3(0u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_12 = uvec3(v_10, v_11, (((((((v >> v_3) >> v_6) >> v_9) & uvec3(3u)) == uvec3(0u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_13 = ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(1u)) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_14 = ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(1u)) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_15 = uvec3(v_13, v_14, ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(1u)) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)));
+  uint v_16 = (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_17 = (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 res = ((v_3 | (v_6 | (v_9 | (v_12 | v_15)))) + uvec3(v_16, v_17, (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z))));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = countTrailingZeros_8ed26f();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_18 = vertex_main_inner();
+  gl_Position = v_18.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_18.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.ir.glsl
index f297654..6055641 100644
--- a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.ir.glsl
@@ -1,11 +1,156 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 countTrailingZeros_d2b4a0() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_3 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_4 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, ((((v_1 & uvec4(65535u)) == uvec4(0u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_6 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_7 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_8 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_10 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_11 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_12 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_14 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_15 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_16 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_18 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_19 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_20 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_21 = uvec4(v_18, v_19, v_20, ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uint v_22 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_23 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_24 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 res = ((v_5 | (v_9 | (v_13 | (v_17 | v_21)))) + uvec4(v_22, v_23, v_24, (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w))));
+  return res;
+}
+void main() {
+  v.tint_symbol = countTrailingZeros_d2b4a0();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 countTrailingZeros_d2b4a0() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_3 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_4 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, ((((v_1 & uvec4(65535u)) == uvec4(0u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_6 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_7 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_8 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_10 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_11 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_12 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_14 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_15 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_16 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_18 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_19 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_20 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_21 = uvec4(v_18, v_19, v_20, ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uint v_22 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_23 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_24 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 res = ((v_5 | (v_9 | (v_13 | (v_17 | v_21)))) + uvec4(v_22, v_23, v_24, (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w))));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = countTrailingZeros_d2b4a0();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec4 prevent_dce;
+};
+
+layout(location = 0) flat out uvec4 vertex_main_loc0_Output;
+uvec4 countTrailingZeros_d2b4a0() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v = arg_0;
+  uint v_1 = ((((v & uvec4(65535u)) == uvec4(0u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_2 = ((((v & uvec4(65535u)) == uvec4(0u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_3 = ((((v & uvec4(65535u)) == uvec4(0u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_4 = uvec4(v_1, v_2, v_3, ((((v & uvec4(65535u)) == uvec4(0u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_5 = (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_6 = (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_7 = (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_8 = uvec4(v_5, v_6, v_7, (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_9 = ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_10 = ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_11 = ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_12 = uvec4(v_9, v_10, v_11, ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_13 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_14 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_15 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_16 = uvec4(v_13, v_14, v_15, (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_17 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_18 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_19 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_20 = uvec4(v_17, v_18, v_19, ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)));
+  uint v_21 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_22 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_23 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 res = ((v_4 | (v_8 | (v_12 | (v_16 | v_20)))) + uvec4(v_21, v_22, v_23, (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w))));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = countTrailingZeros_d2b4a0();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_24 = vertex_main_inner();
+  gl_Position = v_24.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_24.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/3055d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/5e9805.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/dfe8f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/degrees/f59715.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.ir.glsl
index 20d9d3d..227bbb9 100644
--- a/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot_7548a0() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 arg_1 = uvec3(1u);
@@ -18,67 +15,41 @@
   return res;
 }
 void main() {
-  prevent_dce = dot_7548a0();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_7548a0();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_7548a0();
-  return tint_symbol;
+  v.tint_symbol = dot_7548a0();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:12: 'dot' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot_7548a0() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 arg_1 = uvec3(1u);
   uint res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_7548a0();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = dot_7548a0();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_7548a0();
-  return tint_symbol;
+  v.tint_symbol = dot_7548a0();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:10: 'dot' : no matching overloaded function found 
+ERROR: 0:10: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -86,30 +57,31 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint dot_7548a0() {
   uvec3 arg_0 = uvec3(1u);
   uvec3 arg_1 = uvec3(1u);
   uint res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_7548a0();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_7548a0();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = dot_7548a0();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:13: 'dot' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.ir.glsl
index b43f970..850821b 100644
--- a/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot_97c7ee() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 arg_1 = uvec2(1u);
@@ -18,67 +15,41 @@
   return res;
 }
 void main() {
-  prevent_dce = dot_97c7ee();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_97c7ee();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_97c7ee();
-  return tint_symbol;
+  v.tint_symbol = dot_97c7ee();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:12: 'dot' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot_97c7ee() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 arg_1 = uvec2(1u);
   uint res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_97c7ee();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = dot_97c7ee();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_97c7ee();
-  return tint_symbol;
+  v.tint_symbol = dot_97c7ee();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:10: 'dot' : no matching overloaded function found 
+ERROR: 0:10: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -86,30 +57,31 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint dot_97c7ee() {
   uvec2 arg_0 = uvec2(1u);
   uvec2 arg_1 = uvec2(1u);
   uint res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_97c7ee();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_97c7ee();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = dot_97c7ee();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:13: 'dot' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.ir.glsl
index b7a3660..0444850 100644
--- a/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot_e994c7() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 arg_1 = uvec4(1u);
@@ -18,67 +15,41 @@
   return res;
 }
 void main() {
-  prevent_dce = dot_e994c7();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_e994c7();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_e994c7();
-  return tint_symbol;
+  v.tint_symbol = dot_e994c7();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:12: 'dot' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot_e994c7() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 arg_1 = uvec4(1u);
   uint res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_e994c7();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = dot_e994c7();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_e994c7();
-  return tint_symbol;
+  v.tint_symbol = dot_e994c7();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:10: 'dot' : no matching overloaded function found 
+ERROR: 0:10: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -86,30 +57,31 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint dot_e994c7() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 arg_1 = uvec4(1u);
   uint res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_e994c7();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_e994c7();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = dot_e994c7();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:13: 'dot' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.ir.glsl
index c1e93b5..6b5c468 100644
--- a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  int prevent_dce;
-};
-
-int prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
 int dot_ef6b1d() {
   ivec4 arg_0 = ivec4(1);
   ivec4 arg_1 = ivec4(1);
@@ -18,67 +15,41 @@
   return res;
 }
 void main() {
-  prevent_dce = dot_ef6b1d();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_ef6b1d();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_ef6b1d();
-  return tint_symbol;
+  v.tint_symbol = dot_ef6b1d();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:12: 'dot' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  int prevent_dce;
-};
-
-int prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
 int dot_ef6b1d() {
   ivec4 arg_0 = ivec4(1);
   ivec4 arg_1 = ivec4(1);
   int res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_ef6b1d();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = dot_ef6b1d();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_ef6b1d();
-  return tint_symbol;
+  v.tint_symbol = dot_ef6b1d();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:10: 'dot' : no matching overloaded function found 
+ERROR: 0:10: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -86,30 +57,31 @@
   int prevent_dce;
 };
 
-int prevent_dce;
+layout(location = 0) flat out int vertex_main_loc0_Output;
 int dot_ef6b1d() {
   ivec4 arg_0 = ivec4(1);
   ivec4 arg_1 = ivec4(1);
   int res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_ef6b1d();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_ef6b1d();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = dot_ef6b1d();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:13: 'dot' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.ir.glsl
index efe2720..974f6a8 100644
--- a/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  int prevent_dce;
-};
-
-int prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
 int dot_f1312c() {
   ivec3 arg_0 = ivec3(1);
   ivec3 arg_1 = ivec3(1);
@@ -18,67 +15,41 @@
   return res;
 }
 void main() {
-  prevent_dce = dot_f1312c();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_f1312c();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_f1312c();
-  return tint_symbol;
+  v.tint_symbol = dot_f1312c();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:12: 'dot' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  int prevent_dce;
-};
-
-int prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
 int dot_f1312c() {
   ivec3 arg_0 = ivec3(1);
   ivec3 arg_1 = ivec3(1);
   int res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_f1312c();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = dot_f1312c();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_f1312c();
-  return tint_symbol;
+  v.tint_symbol = dot_f1312c();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:10: 'dot' : no matching overloaded function found 
+ERROR: 0:10: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -86,30 +57,31 @@
   int prevent_dce;
 };
 
-int prevent_dce;
+layout(location = 0) flat out int vertex_main_loc0_Output;
 int dot_f1312c() {
   ivec3 arg_0 = ivec3(1);
   ivec3 arg_1 = ivec3(1);
   int res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_f1312c();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_f1312c();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = dot_f1312c();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:13: 'dot' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.ir.glsl
index eb5b85c..a7d890f 100644
--- a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  int prevent_dce;
-};
-
-int prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
 int dot_fc5f7c() {
   ivec2 arg_0 = ivec2(1);
   ivec2 arg_1 = ivec2(1);
@@ -18,67 +15,41 @@
   return res;
 }
 void main() {
-  prevent_dce = dot_fc5f7c();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_fc5f7c();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_fc5f7c();
-  return tint_symbol;
+  v.tint_symbol = dot_fc5f7c();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:12: 'dot' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  int prevent_dce;
-};
-
-int prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
 int dot_fc5f7c() {
   ivec2 arg_0 = ivec2(1);
   ivec2 arg_1 = ivec2(1);
   int res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_fc5f7c();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = dot_fc5f7c();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot_fc5f7c();
-  return tint_symbol;
+  v.tint_symbol = dot_fc5f7c();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:10: 'dot' : no matching overloaded function found 
+ERROR: 0:10: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -86,30 +57,31 @@
   int prevent_dce;
 };
 
-int prevent_dce;
+layout(location = 0) flat out int vertex_main_loc0_Output;
 int dot_fc5f7c() {
   ivec2 arg_0 = ivec2(1);
   ivec2 arg_1 = ivec2(1);
   int res = dot(arg_0, arg_1);
   return res;
 }
-void main() {
-  prevent_dce = dot_fc5f7c();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot_fc5f7c();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = dot_fc5f7c();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'dot' : no matching overloaded function found 
-ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp int'
-ERROR: 0:15: '' : compilation terminated 
+ERROR: 0:13: 'dot' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp highp int'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot4I8Packed/881e62.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.ir.glsl
index 6456e1e..8ac72bd 100644
--- a/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/dot4U8Packed/fbed7b.wgsl.expected.ir.glsl
@@ -4,95 +4,66 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot4U8Packed_fbed7b() {
   uint arg_0 = 1u;
   uint arg_1 = 1u;
-  uint v = arg_0;
-  uint v_1 = arg_1;
-  uvec4 v_2 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_3 = (uvec4(v) >> v_2);
-  uvec4 v_4 = (v_3 & uvec4(255u));
-  uvec4 v_5 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_6 = (uvec4(v_1) >> v_5);
-  uint res = dot(v_4, (v_6 & uvec4(255u)));
+  uint v_1 = arg_0;
+  uint v_2 = arg_1;
+  uvec4 v_3 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_4 = (uvec4(v_1) >> v_3);
+  uvec4 v_5 = (v_4 & uvec4(255u));
+  uvec4 v_6 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_7 = (uvec4(v_2) >> v_6);
+  uint res = dot(v_5, (v_7 & uvec4(255u)));
   return res;
 }
 void main() {
-  prevent_dce = dot4U8Packed_fbed7b();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot4U8Packed_fbed7b();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot4U8Packed_fbed7b();
-  return tint_symbol;
+  v.tint_symbol = dot4U8Packed_fbed7b();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:22: 'dot' : no matching overloaded function found 
-ERROR: 0:22: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:22: '' : compilation terminated 
+ERROR: 0:19: 'dot' : no matching overloaded function found 
+ERROR: 0:19: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint dot4U8Packed_fbed7b() {
   uint arg_0 = 1u;
   uint arg_1 = 1u;
-  uint v = arg_0;
-  uint v_1 = arg_1;
-  uvec4 v_2 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_3 = (uvec4(v) >> v_2);
-  uvec4 v_4 = (v_3 & uvec4(255u));
-  uvec4 v_5 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_6 = (uvec4(v_1) >> v_5);
-  uint res = dot(v_4, (v_6 & uvec4(255u)));
+  uint v_1 = arg_0;
+  uint v_2 = arg_1;
+  uvec4 v_3 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_4 = (uvec4(v_1) >> v_3);
+  uvec4 v_5 = (v_4 & uvec4(255u));
+  uvec4 v_6 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_7 = (uvec4(v_2) >> v_6);
+  uint res = dot(v_5, (v_7 & uvec4(255u)));
   return res;
 }
-void main() {
-  prevent_dce = dot4U8Packed_fbed7b();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = dot4U8Packed_fbed7b();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = dot4U8Packed_fbed7b();
-  return tint_symbol;
+  v.tint_symbol = dot4U8Packed_fbed7b();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:22: 'dot' : no matching overloaded function found 
-ERROR: 0:22: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:22: '' : compilation terminated 
+ERROR: 0:17: 'dot' : no matching overloaded function found 
+ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:17: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -100,7 +71,7 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint dot4U8Packed_fbed7b() {
   uint arg_0 = 1u;
   uint arg_1 = 1u;
@@ -114,23 +85,24 @@
   uint res = dot(v_4, (v_6 & uvec4(255u)));
   return res;
 }
-void main() {
-  prevent_dce = dot4U8Packed_fbed7b();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = dot4U8Packed_fbed7b();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = dot4U8Packed_fbed7b();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v_7 = vertex_main_inner();
+  gl_Position = v_7.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_7.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:22: 'dot' : no matching overloaded function found 
-ERROR: 0:22: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:22: '' : compilation terminated 
+ERROR: 0:20: 'dot' : no matching overloaded function found 
+ERROR: 0:20: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:20: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.ir.glsl
index abcec5f..0d096f0 100644
--- a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: extractBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.ir.glsl
index f297654..1db8703 100644
--- a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.ir.glsl
@@ -1,11 +1,156 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 firstLeadingBit_000ff3() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(16u).x));
+  uint v_3 = ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(16u).y));
+  uint v_4 = ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(16u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(16u).w)));
+  uint v_6 = (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(8u).x));
+  uint v_7 = (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(8u).y));
+  uint v_8 = (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(8u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(8u).w)));
+  uint v_10 = ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(4u).x));
+  uint v_11 = ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(4u).y));
+  uint v_12 = ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(4u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(4u).w)));
+  uint v_14 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(2u).x));
+  uint v_15 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(2u).y));
+  uint v_16 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(2u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(2u).w)));
+  uint v_18 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(1u).x));
+  uint v_19 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(1u).y));
+  uint v_20 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(1u).z));
+  uvec4 v_21 = (v_5 | (v_9 | (v_13 | (v_17 | uvec4(v_18, v_19, v_20, ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(1u).w)))))));
+  uint v_22 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).x) ? (uvec4(4294967295u).x) : (v_21.x));
+  uint v_23 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).y) ? (uvec4(4294967295u).y) : (v_21.y));
+  uint v_24 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).z) ? (uvec4(4294967295u).z) : (v_21.z));
+  uvec4 res = uvec4(v_22, v_23, v_24, (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).w) ? (uvec4(4294967295u).w) : (v_21.w)));
+  return res;
+}
+void main() {
+  v.tint_symbol = firstLeadingBit_000ff3();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 firstLeadingBit_000ff3() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(16u).x));
+  uint v_3 = ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(16u).y));
+  uint v_4 = ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(16u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, ((((v_1 & uvec4(4294901760u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(16u).w)));
+  uint v_6 = (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(8u).x));
+  uint v_7 = (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(8u).y));
+  uint v_8 = (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(8u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, (((((v_1 >> v_5) & uvec4(65280u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(8u).w)));
+  uint v_10 = ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(4u).x));
+  uint v_11 = ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(4u).y));
+  uint v_12 = ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(4u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, ((((((v_1 >> v_5) >> v_9) & uvec4(240u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(4u).w)));
+  uint v_14 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(2u).x));
+  uint v_15 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(2u).y));
+  uint v_16 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(2u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(12u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(2u).w)));
+  uint v_18 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(1u).x));
+  uint v_19 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(1u).y));
+  uint v_20 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(1u).z));
+  uvec4 v_21 = (v_5 | (v_9 | (v_13 | (v_17 | uvec4(v_18, v_19, v_20, ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(2u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(1u).w)))))));
+  uint v_22 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).x) ? (uvec4(4294967295u).x) : (v_21.x));
+  uint v_23 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).y) ? (uvec4(4294967295u).y) : (v_21.y));
+  uint v_24 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).z) ? (uvec4(4294967295u).z) : (v_21.z));
+  uvec4 res = uvec4(v_22, v_23, v_24, (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).w) ? (uvec4(4294967295u).w) : (v_21.w)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = firstLeadingBit_000ff3();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec4 prevent_dce;
+};
+
+layout(location = 0) flat out uvec4 vertex_main_loc0_Output;
+uvec4 firstLeadingBit_000ff3() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v = arg_0;
+  uint v_1 = ((((v & uvec4(4294901760u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(16u).x));
+  uint v_2 = ((((v & uvec4(4294901760u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(16u).y));
+  uint v_3 = ((((v & uvec4(4294901760u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(16u).z));
+  uvec4 v_4 = uvec4(v_1, v_2, v_3, ((((v & uvec4(4294901760u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(16u).w)));
+  uint v_5 = (((((v >> v_4) & uvec4(65280u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(8u).x));
+  uint v_6 = (((((v >> v_4) & uvec4(65280u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(8u).y));
+  uint v_7 = (((((v >> v_4) & uvec4(65280u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(8u).z));
+  uvec4 v_8 = uvec4(v_5, v_6, v_7, (((((v >> v_4) & uvec4(65280u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(8u).w)));
+  uint v_9 = ((((((v >> v_4) >> v_8) & uvec4(240u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(4u).x));
+  uint v_10 = ((((((v >> v_4) >> v_8) & uvec4(240u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(4u).y));
+  uint v_11 = ((((((v >> v_4) >> v_8) & uvec4(240u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(4u).z));
+  uvec4 v_12 = uvec4(v_9, v_10, v_11, ((((((v >> v_4) >> v_8) & uvec4(240u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(4u).w)));
+  uint v_13 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(12u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(2u).x));
+  uint v_14 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(12u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(2u).y));
+  uint v_15 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(12u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(2u).z));
+  uvec4 v_16 = uvec4(v_13, v_14, v_15, (((((((v >> v_4) >> v_8) >> v_12) & uvec4(12u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(2u).w)));
+  uint v_17 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(2u)) == uvec4(0u)).x) ? (uvec4(0u).x) : (uvec4(1u).x));
+  uint v_18 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(2u)) == uvec4(0u)).y) ? (uvec4(0u).y) : (uvec4(1u).y));
+  uint v_19 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(2u)) == uvec4(0u)).z) ? (uvec4(0u).z) : (uvec4(1u).z));
+  uvec4 v_20 = (v_4 | (v_8 | (v_12 | (v_16 | uvec4(v_17, v_18, v_19, ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(2u)) == uvec4(0u)).w) ? (uvec4(0u).w) : (uvec4(1u).w)))))));
+  uint v_21 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).x) ? (uvec4(4294967295u).x) : (v_20.x));
+  uint v_22 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).y) ? (uvec4(4294967295u).y) : (v_20.y));
+  uint v_23 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).z) ? (uvec4(4294967295u).z) : (v_20.z));
+  uvec4 res = uvec4(v_21, v_22, v_23, (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).w) ? (uvec4(4294967295u).w) : (v_20.w)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = firstLeadingBit_000ff3();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_24 = vertex_main_inner();
+  gl_Position = v_24.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_24.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.ir.glsl
index f297654..3472d6c 100644
--- a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.ir.glsl
@@ -1,11 +1,138 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 firstLeadingBit_3fd7d0() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec3(4294901760u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(16u).x));
+  uint v_3 = ((((v_1 & uvec3(4294901760u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(16u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, ((((v_1 & uvec3(4294901760u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(16u).z)));
+  uint v_5 = (((((v_1 >> v_4) & uvec3(65280u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(8u).x));
+  uint v_6 = (((((v_1 >> v_4) & uvec3(65280u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(8u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, (((((v_1 >> v_4) & uvec3(65280u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(8u).z)));
+  uint v_8 = ((((((v_1 >> v_4) >> v_7) & uvec3(240u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(4u).x));
+  uint v_9 = ((((((v_1 >> v_4) >> v_7) & uvec3(240u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(4u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, ((((((v_1 >> v_4) >> v_7) & uvec3(240u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(4u).z)));
+  uint v_11 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(12u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(2u).x));
+  uint v_12 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(12u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(2u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(12u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(2u).z)));
+  uint v_14 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(2u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(1u).x));
+  uint v_15 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(2u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(1u).y));
+  uvec3 v_16 = (v_4 | (v_7 | (v_10 | (v_13 | uvec3(v_14, v_15, ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(2u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(1u).z)))))));
+  uint v_17 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).x) ? (uvec3(4294967295u).x) : (v_16.x));
+  uint v_18 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).y) ? (uvec3(4294967295u).y) : (v_16.y));
+  uvec3 res = uvec3(v_17, v_18, (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).z) ? (uvec3(4294967295u).z) : (v_16.z)));
+  return res;
+}
+void main() {
+  v.tint_symbol = firstLeadingBit_3fd7d0();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 firstLeadingBit_3fd7d0() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec3(4294901760u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(16u).x));
+  uint v_3 = ((((v_1 & uvec3(4294901760u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(16u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, ((((v_1 & uvec3(4294901760u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(16u).z)));
+  uint v_5 = (((((v_1 >> v_4) & uvec3(65280u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(8u).x));
+  uint v_6 = (((((v_1 >> v_4) & uvec3(65280u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(8u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, (((((v_1 >> v_4) & uvec3(65280u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(8u).z)));
+  uint v_8 = ((((((v_1 >> v_4) >> v_7) & uvec3(240u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(4u).x));
+  uint v_9 = ((((((v_1 >> v_4) >> v_7) & uvec3(240u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(4u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, ((((((v_1 >> v_4) >> v_7) & uvec3(240u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(4u).z)));
+  uint v_11 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(12u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(2u).x));
+  uint v_12 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(12u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(2u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(12u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(2u).z)));
+  uint v_14 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(2u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(1u).x));
+  uint v_15 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(2u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(1u).y));
+  uvec3 v_16 = (v_4 | (v_7 | (v_10 | (v_13 | uvec3(v_14, v_15, ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(2u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(1u).z)))))));
+  uint v_17 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).x) ? (uvec3(4294967295u).x) : (v_16.x));
+  uint v_18 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).y) ? (uvec3(4294967295u).y) : (v_16.y));
+  uvec3 res = uvec3(v_17, v_18, (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).z) ? (uvec3(4294967295u).z) : (v_16.z)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = firstLeadingBit_3fd7d0();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec3 prevent_dce;
+};
+
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
+uvec3 firstLeadingBit_3fd7d0() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v = arg_0;
+  uint v_1 = ((((v & uvec3(4294901760u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(16u).x));
+  uint v_2 = ((((v & uvec3(4294901760u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(16u).y));
+  uvec3 v_3 = uvec3(v_1, v_2, ((((v & uvec3(4294901760u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(16u).z)));
+  uint v_4 = (((((v >> v_3) & uvec3(65280u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(8u).x));
+  uint v_5 = (((((v >> v_3) & uvec3(65280u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(8u).y));
+  uvec3 v_6 = uvec3(v_4, v_5, (((((v >> v_3) & uvec3(65280u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(8u).z)));
+  uint v_7 = ((((((v >> v_3) >> v_6) & uvec3(240u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(4u).x));
+  uint v_8 = ((((((v >> v_3) >> v_6) & uvec3(240u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(4u).y));
+  uvec3 v_9 = uvec3(v_7, v_8, ((((((v >> v_3) >> v_6) & uvec3(240u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(4u).z)));
+  uint v_10 = (((((((v >> v_3) >> v_6) >> v_9) & uvec3(12u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(2u).x));
+  uint v_11 = (((((((v >> v_3) >> v_6) >> v_9) & uvec3(12u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(2u).y));
+  uvec3 v_12 = uvec3(v_10, v_11, (((((((v >> v_3) >> v_6) >> v_9) & uvec3(12u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(2u).z)));
+  uint v_13 = ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(2u)) == uvec3(0u)).x) ? (uvec3(0u).x) : (uvec3(1u).x));
+  uint v_14 = ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(2u)) == uvec3(0u)).y) ? (uvec3(0u).y) : (uvec3(1u).y));
+  uvec3 v_15 = (v_3 | (v_6 | (v_9 | (v_12 | uvec3(v_13, v_14, ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(2u)) == uvec3(0u)).z) ? (uvec3(0u).z) : (uvec3(1u).z)))))));
+  uint v_16 = (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).x) ? (uvec3(4294967295u).x) : (v_15.x));
+  uint v_17 = (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).y) ? (uvec3(4294967295u).y) : (v_15.y));
+  uvec3 res = uvec3(v_16, v_17, (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).z) ? (uvec3(4294967295u).z) : (v_15.z)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = firstLeadingBit_3fd7d0();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_18 = vertex_main_inner();
+  gl_Position = v_18.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_18.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.ir.glsl
index f297654..fb93272 100644
--- a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.ir.glsl
@@ -1,11 +1,120 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 firstLeadingBit_6fe804() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec2(4294901760u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(16u).x));
+  uvec2 v_3 = uvec2(v_2, ((((v_1 & uvec2(4294901760u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(16u).y)));
+  uint v_4 = (((((v_1 >> v_3) & uvec2(65280u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(8u).x));
+  uvec2 v_5 = uvec2(v_4, (((((v_1 >> v_3) & uvec2(65280u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(8u).y)));
+  uint v_6 = ((((((v_1 >> v_3) >> v_5) & uvec2(240u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(4u).x));
+  uvec2 v_7 = uvec2(v_6, ((((((v_1 >> v_3) >> v_5) & uvec2(240u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(4u).y)));
+  uint v_8 = (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(12u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(2u).x));
+  uvec2 v_9 = uvec2(v_8, (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(12u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(2u).y)));
+  uint v_10 = ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(2u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(1u).x));
+  uvec2 v_11 = (v_3 | (v_5 | (v_7 | (v_9 | uvec2(v_10, ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(2u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(1u).y)))))));
+  uint v_12 = (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).x) ? (uvec2(4294967295u).x) : (v_11.x));
+  uvec2 res = uvec2(v_12, (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).y) ? (uvec2(4294967295u).y) : (v_11.y)));
+  return res;
+}
+void main() {
+  v.tint_symbol = firstLeadingBit_6fe804();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 firstLeadingBit_6fe804() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec2(4294901760u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(16u).x));
+  uvec2 v_3 = uvec2(v_2, ((((v_1 & uvec2(4294901760u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(16u).y)));
+  uint v_4 = (((((v_1 >> v_3) & uvec2(65280u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(8u).x));
+  uvec2 v_5 = uvec2(v_4, (((((v_1 >> v_3) & uvec2(65280u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(8u).y)));
+  uint v_6 = ((((((v_1 >> v_3) >> v_5) & uvec2(240u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(4u).x));
+  uvec2 v_7 = uvec2(v_6, ((((((v_1 >> v_3) >> v_5) & uvec2(240u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(4u).y)));
+  uint v_8 = (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(12u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(2u).x));
+  uvec2 v_9 = uvec2(v_8, (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(12u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(2u).y)));
+  uint v_10 = ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(2u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(1u).x));
+  uvec2 v_11 = (v_3 | (v_5 | (v_7 | (v_9 | uvec2(v_10, ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(2u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(1u).y)))))));
+  uint v_12 = (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).x) ? (uvec2(4294967295u).x) : (v_11.x));
+  uvec2 res = uvec2(v_12, (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).y) ? (uvec2(4294967295u).y) : (v_11.y)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = firstLeadingBit_6fe804();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 firstLeadingBit_6fe804() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v = arg_0;
+  uint v_1 = ((((v & uvec2(4294901760u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(16u).x));
+  uvec2 v_2 = uvec2(v_1, ((((v & uvec2(4294901760u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(16u).y)));
+  uint v_3 = (((((v >> v_2) & uvec2(65280u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(8u).x));
+  uvec2 v_4 = uvec2(v_3, (((((v >> v_2) & uvec2(65280u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(8u).y)));
+  uint v_5 = ((((((v >> v_2) >> v_4) & uvec2(240u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(4u).x));
+  uvec2 v_6 = uvec2(v_5, ((((((v >> v_2) >> v_4) & uvec2(240u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(4u).y)));
+  uint v_7 = (((((((v >> v_2) >> v_4) >> v_6) & uvec2(12u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(2u).x));
+  uvec2 v_8 = uvec2(v_7, (((((((v >> v_2) >> v_4) >> v_6) & uvec2(12u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(2u).y)));
+  uint v_9 = ((((((((v >> v_2) >> v_4) >> v_6) >> v_8) & uvec2(2u)) == uvec2(0u)).x) ? (uvec2(0u).x) : (uvec2(1u).x));
+  uvec2 v_10 = (v_2 | (v_4 | (v_6 | (v_8 | uvec2(v_9, ((((((((v >> v_2) >> v_4) >> v_6) >> v_8) & uvec2(2u)) == uvec2(0u)).y) ? (uvec2(0u).y) : (uvec2(1u).y)))))));
+  uint v_11 = (((((((v >> v_2) >> v_4) >> v_6) >> v_8) == uvec2(0u)).x) ? (uvec2(4294967295u).x) : (v_10.x));
+  uvec2 res = uvec2(v_11, (((((((v >> v_2) >> v_4) >> v_6) >> v_8) == uvec2(0u)).y) ? (uvec2(4294967295u).y) : (v_10.y)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = firstLeadingBit_6fe804();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_12 = vertex_main_inner();
+  gl_Position = v_12.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_12.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.ir.glsl
index f297654..05349be 100644
--- a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.ir.glsl
@@ -1,11 +1,156 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 firstTrailingBit_110f2c() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_3 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_4 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, ((((v_1 & uvec4(65535u)) == uvec4(0u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_6 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_7 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_8 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_10 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_11 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_12 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_14 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_15 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_16 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_18 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_19 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_20 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_21 = (v_5 | (v_9 | (v_13 | (v_17 | uvec4(v_18, v_19, v_20, ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)))))));
+  uint v_22 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).x) ? (uvec4(4294967295u).x) : (v_21.x));
+  uint v_23 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).y) ? (uvec4(4294967295u).y) : (v_21.y));
+  uint v_24 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).z) ? (uvec4(4294967295u).z) : (v_21.z));
+  uvec4 res = uvec4(v_22, v_23, v_24, (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).w) ? (uvec4(4294967295u).w) : (v_21.w)));
+  return res;
+}
+void main() {
+  v.tint_symbol = firstTrailingBit_110f2c();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 firstTrailingBit_110f2c() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_3 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_4 = ((((v_1 & uvec4(65535u)) == uvec4(0u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_5 = uvec4(v_2, v_3, v_4, ((((v_1 & uvec4(65535u)) == uvec4(0u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_6 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_7 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_8 = (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_9 = uvec4(v_6, v_7, v_8, (((((v_1 >> v_5) & uvec4(255u)) == uvec4(0u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_10 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_11 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_12 = ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_13 = uvec4(v_10, v_11, v_12, ((((((v_1 >> v_5) >> v_9) & uvec4(15u)) == uvec4(0u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_14 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_15 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_16 = (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_17 = uvec4(v_14, v_15, v_16, (((((((v_1 >> v_5) >> v_9) >> v_13) & uvec4(3u)) == uvec4(0u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_18 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_19 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_20 = ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_21 = (v_5 | (v_9 | (v_13 | (v_17 | uvec4(v_18, v_19, v_20, ((((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) & uvec4(1u)) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)))))));
+  uint v_22 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).x) ? (uvec4(4294967295u).x) : (v_21.x));
+  uint v_23 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).y) ? (uvec4(4294967295u).y) : (v_21.y));
+  uint v_24 = (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).z) ? (uvec4(4294967295u).z) : (v_21.z));
+  uvec4 res = uvec4(v_22, v_23, v_24, (((((((v_1 >> v_5) >> v_9) >> v_13) >> v_17) == uvec4(0u)).w) ? (uvec4(4294967295u).w) : (v_21.w)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = firstTrailingBit_110f2c();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec4 prevent_dce;
+};
+
+layout(location = 0) flat out uvec4 vertex_main_loc0_Output;
+uvec4 firstTrailingBit_110f2c() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 v = arg_0;
+  uint v_1 = ((((v & uvec4(65535u)) == uvec4(0u)).x) ? (uvec4(16u).x) : (uvec4(0u).x));
+  uint v_2 = ((((v & uvec4(65535u)) == uvec4(0u)).y) ? (uvec4(16u).y) : (uvec4(0u).y));
+  uint v_3 = ((((v & uvec4(65535u)) == uvec4(0u)).z) ? (uvec4(16u).z) : (uvec4(0u).z));
+  uvec4 v_4 = uvec4(v_1, v_2, v_3, ((((v & uvec4(65535u)) == uvec4(0u)).w) ? (uvec4(16u).w) : (uvec4(0u).w)));
+  uint v_5 = (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).x) ? (uvec4(8u).x) : (uvec4(0u).x));
+  uint v_6 = (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).y) ? (uvec4(8u).y) : (uvec4(0u).y));
+  uint v_7 = (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).z) ? (uvec4(8u).z) : (uvec4(0u).z));
+  uvec4 v_8 = uvec4(v_5, v_6, v_7, (((((v >> v_4) & uvec4(255u)) == uvec4(0u)).w) ? (uvec4(8u).w) : (uvec4(0u).w)));
+  uint v_9 = ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).x) ? (uvec4(4u).x) : (uvec4(0u).x));
+  uint v_10 = ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).y) ? (uvec4(4u).y) : (uvec4(0u).y));
+  uint v_11 = ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).z) ? (uvec4(4u).z) : (uvec4(0u).z));
+  uvec4 v_12 = uvec4(v_9, v_10, v_11, ((((((v >> v_4) >> v_8) & uvec4(15u)) == uvec4(0u)).w) ? (uvec4(4u).w) : (uvec4(0u).w)));
+  uint v_13 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).x) ? (uvec4(2u).x) : (uvec4(0u).x));
+  uint v_14 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).y) ? (uvec4(2u).y) : (uvec4(0u).y));
+  uint v_15 = (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).z) ? (uvec4(2u).z) : (uvec4(0u).z));
+  uvec4 v_16 = uvec4(v_13, v_14, v_15, (((((((v >> v_4) >> v_8) >> v_12) & uvec4(3u)) == uvec4(0u)).w) ? (uvec4(2u).w) : (uvec4(0u).w)));
+  uint v_17 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).x) ? (uvec4(1u).x) : (uvec4(0u).x));
+  uint v_18 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).y) ? (uvec4(1u).y) : (uvec4(0u).y));
+  uint v_19 = ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).z) ? (uvec4(1u).z) : (uvec4(0u).z));
+  uvec4 v_20 = (v_4 | (v_8 | (v_12 | (v_16 | uvec4(v_17, v_18, v_19, ((((((((v >> v_4) >> v_8) >> v_12) >> v_16) & uvec4(1u)) == uvec4(0u)).w) ? (uvec4(1u).w) : (uvec4(0u).w)))))));
+  uint v_21 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).x) ? (uvec4(4294967295u).x) : (v_20.x));
+  uint v_22 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).y) ? (uvec4(4294967295u).y) : (v_20.y));
+  uint v_23 = (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).z) ? (uvec4(4294967295u).z) : (v_20.z));
+  uvec4 res = uvec4(v_21, v_22, v_23, (((((((v >> v_4) >> v_8) >> v_12) >> v_16) == uvec4(0u)).w) ? (uvec4(4294967295u).w) : (v_20.w)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = firstTrailingBit_110f2c();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_24 = vertex_main_inner();
+  gl_Position = v_24.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_24.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.ir.glsl
index f297654..5b02690 100644
--- a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.ir.glsl
@@ -1,11 +1,120 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 firstTrailingBit_45eb10() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec2(65535u)) == uvec2(0u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_3 = uvec2(v_2, ((((v_1 & uvec2(65535u)) == uvec2(0u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_4 = (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_5 = uvec2(v_4, (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_6 = ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_7 = uvec2(v_6, ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_8 = (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_9 = uvec2(v_8, (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_10 = ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_11 = (v_3 | (v_5 | (v_7 | (v_9 | uvec2(v_10, ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)))))));
+  uint v_12 = (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).x) ? (uvec2(4294967295u).x) : (v_11.x));
+  uvec2 res = uvec2(v_12, (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).y) ? (uvec2(4294967295u).y) : (v_11.y)));
+  return res;
+}
+void main() {
+  v.tint_symbol = firstTrailingBit_45eb10();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 firstTrailingBit_45eb10() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec2(65535u)) == uvec2(0u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_3 = uvec2(v_2, ((((v_1 & uvec2(65535u)) == uvec2(0u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_4 = (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_5 = uvec2(v_4, (((((v_1 >> v_3) & uvec2(255u)) == uvec2(0u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_6 = ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_7 = uvec2(v_6, ((((((v_1 >> v_3) >> v_5) & uvec2(15u)) == uvec2(0u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_8 = (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_9 = uvec2(v_8, (((((((v_1 >> v_3) >> v_5) >> v_7) & uvec2(3u)) == uvec2(0u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_10 = ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_11 = (v_3 | (v_5 | (v_7 | (v_9 | uvec2(v_10, ((((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) & uvec2(1u)) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)))))));
+  uint v_12 = (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).x) ? (uvec2(4294967295u).x) : (v_11.x));
+  uvec2 res = uvec2(v_12, (((((((v_1 >> v_3) >> v_5) >> v_7) >> v_9) == uvec2(0u)).y) ? (uvec2(4294967295u).y) : (v_11.y)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = firstTrailingBit_45eb10();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 firstTrailingBit_45eb10() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 v = arg_0;
+  uint v_1 = ((((v & uvec2(65535u)) == uvec2(0u)).x) ? (uvec2(16u).x) : (uvec2(0u).x));
+  uvec2 v_2 = uvec2(v_1, ((((v & uvec2(65535u)) == uvec2(0u)).y) ? (uvec2(16u).y) : (uvec2(0u).y)));
+  uint v_3 = (((((v >> v_2) & uvec2(255u)) == uvec2(0u)).x) ? (uvec2(8u).x) : (uvec2(0u).x));
+  uvec2 v_4 = uvec2(v_3, (((((v >> v_2) & uvec2(255u)) == uvec2(0u)).y) ? (uvec2(8u).y) : (uvec2(0u).y)));
+  uint v_5 = ((((((v >> v_2) >> v_4) & uvec2(15u)) == uvec2(0u)).x) ? (uvec2(4u).x) : (uvec2(0u).x));
+  uvec2 v_6 = uvec2(v_5, ((((((v >> v_2) >> v_4) & uvec2(15u)) == uvec2(0u)).y) ? (uvec2(4u).y) : (uvec2(0u).y)));
+  uint v_7 = (((((((v >> v_2) >> v_4) >> v_6) & uvec2(3u)) == uvec2(0u)).x) ? (uvec2(2u).x) : (uvec2(0u).x));
+  uvec2 v_8 = uvec2(v_7, (((((((v >> v_2) >> v_4) >> v_6) & uvec2(3u)) == uvec2(0u)).y) ? (uvec2(2u).y) : (uvec2(0u).y)));
+  uint v_9 = ((((((((v >> v_2) >> v_4) >> v_6) >> v_8) & uvec2(1u)) == uvec2(0u)).x) ? (uvec2(1u).x) : (uvec2(0u).x));
+  uvec2 v_10 = (v_2 | (v_4 | (v_6 | (v_8 | uvec2(v_9, ((((((((v >> v_2) >> v_4) >> v_6) >> v_8) & uvec2(1u)) == uvec2(0u)).y) ? (uvec2(1u).y) : (uvec2(0u).y)))))));
+  uint v_11 = (((((((v >> v_2) >> v_4) >> v_6) >> v_8) == uvec2(0u)).x) ? (uvec2(4294967295u).x) : (v_10.x));
+  uvec2 res = uvec2(v_11, (((((((v >> v_2) >> v_4) >> v_6) >> v_8) == uvec2(0u)).y) ? (uvec2(4294967295u).y) : (v_10.y)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = firstTrailingBit_45eb10();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_12 = vertex_main_inner();
+  gl_Position = v_12.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_12.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.ir.glsl
index f297654..12d888f 100644
--- a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.ir.glsl
@@ -1,11 +1,138 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 firstTrailingBit_cb51ce() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_3 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, ((((v_1 & uvec3(65535u)) == uvec3(0u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_5 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_6 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_8 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_9 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_11 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_12 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_14 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_15 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_16 = (v_4 | (v_7 | (v_10 | (v_13 | uvec3(v_14, v_15, ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)))))));
+  uint v_17 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).x) ? (uvec3(4294967295u).x) : (v_16.x));
+  uint v_18 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).y) ? (uvec3(4294967295u).y) : (v_16.y));
+  uvec3 res = uvec3(v_17, v_18, (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).z) ? (uvec3(4294967295u).z) : (v_16.z)));
+  return res;
+}
+void main() {
+  v.tint_symbol = firstTrailingBit_cb51ce();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 firstTrailingBit_cb51ce() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v_1 = arg_0;
+  uint v_2 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_3 = ((((v_1 & uvec3(65535u)) == uvec3(0u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_4 = uvec3(v_2, v_3, ((((v_1 & uvec3(65535u)) == uvec3(0u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_5 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_6 = (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_7 = uvec3(v_5, v_6, (((((v_1 >> v_4) & uvec3(255u)) == uvec3(0u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_8 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_9 = ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_10 = uvec3(v_8, v_9, ((((((v_1 >> v_4) >> v_7) & uvec3(15u)) == uvec3(0u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_11 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_12 = (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_13 = uvec3(v_11, v_12, (((((((v_1 >> v_4) >> v_7) >> v_10) & uvec3(3u)) == uvec3(0u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_14 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_15 = ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_16 = (v_4 | (v_7 | (v_10 | (v_13 | uvec3(v_14, v_15, ((((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) & uvec3(1u)) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)))))));
+  uint v_17 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).x) ? (uvec3(4294967295u).x) : (v_16.x));
+  uint v_18 = (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).y) ? (uvec3(4294967295u).y) : (v_16.y));
+  uvec3 res = uvec3(v_17, v_18, (((((((v_1 >> v_4) >> v_7) >> v_10) >> v_13) == uvec3(0u)).z) ? (uvec3(4294967295u).z) : (v_16.z)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = firstTrailingBit_cb51ce();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:10: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:10: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec3 prevent_dce;
+};
+
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
+uvec3 firstTrailingBit_cb51ce() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 v = arg_0;
+  uint v_1 = ((((v & uvec3(65535u)) == uvec3(0u)).x) ? (uvec3(16u).x) : (uvec3(0u).x));
+  uint v_2 = ((((v & uvec3(65535u)) == uvec3(0u)).y) ? (uvec3(16u).y) : (uvec3(0u).y));
+  uvec3 v_3 = uvec3(v_1, v_2, ((((v & uvec3(65535u)) == uvec3(0u)).z) ? (uvec3(16u).z) : (uvec3(0u).z)));
+  uint v_4 = (((((v >> v_3) & uvec3(255u)) == uvec3(0u)).x) ? (uvec3(8u).x) : (uvec3(0u).x));
+  uint v_5 = (((((v >> v_3) & uvec3(255u)) == uvec3(0u)).y) ? (uvec3(8u).y) : (uvec3(0u).y));
+  uvec3 v_6 = uvec3(v_4, v_5, (((((v >> v_3) & uvec3(255u)) == uvec3(0u)).z) ? (uvec3(8u).z) : (uvec3(0u).z)));
+  uint v_7 = ((((((v >> v_3) >> v_6) & uvec3(15u)) == uvec3(0u)).x) ? (uvec3(4u).x) : (uvec3(0u).x));
+  uint v_8 = ((((((v >> v_3) >> v_6) & uvec3(15u)) == uvec3(0u)).y) ? (uvec3(4u).y) : (uvec3(0u).y));
+  uvec3 v_9 = uvec3(v_7, v_8, ((((((v >> v_3) >> v_6) & uvec3(15u)) == uvec3(0u)).z) ? (uvec3(4u).z) : (uvec3(0u).z)));
+  uint v_10 = (((((((v >> v_3) >> v_6) >> v_9) & uvec3(3u)) == uvec3(0u)).x) ? (uvec3(2u).x) : (uvec3(0u).x));
+  uint v_11 = (((((((v >> v_3) >> v_6) >> v_9) & uvec3(3u)) == uvec3(0u)).y) ? (uvec3(2u).y) : (uvec3(0u).y));
+  uvec3 v_12 = uvec3(v_10, v_11, (((((((v >> v_3) >> v_6) >> v_9) & uvec3(3u)) == uvec3(0u)).z) ? (uvec3(2u).z) : (uvec3(0u).z)));
+  uint v_13 = ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(1u)) == uvec3(0u)).x) ? (uvec3(1u).x) : (uvec3(0u).x));
+  uint v_14 = ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(1u)) == uvec3(0u)).y) ? (uvec3(1u).y) : (uvec3(0u).y));
+  uvec3 v_15 = (v_3 | (v_6 | (v_9 | (v_12 | uvec3(v_13, v_14, ((((((((v >> v_3) >> v_6) >> v_9) >> v_12) & uvec3(1u)) == uvec3(0u)).z) ? (uvec3(1u).z) : (uvec3(0u).z)))))));
+  uint v_16 = (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).x) ? (uvec3(4294967295u).x) : (v_15.x));
+  uint v_17 = (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).y) ? (uvec3(4294967295u).y) : (v_15.y));
+  uvec3 res = uvec3(v_16, v_17, (((((((v >> v_3) >> v_6) >> v_9) >> v_12) == uvec3(0u)).z) ? (uvec3(4294967295u).z) : (v_15.z)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = firstTrailingBit_cb51ce();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_18 = vertex_main_inner();
+  gl_Position = v_18.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_18.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:13: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:13: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.ir.glsl
index 914e6ae..dfe42f9 100644
--- a/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  vec2 prevent_dce;
-};
-
-vec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
 vec2 fma_26a7a9() {
   vec2 arg_0 = vec2(1.0f);
   vec2 arg_1 = vec2(1.0f);
@@ -19,38 +16,23 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_26a7a9();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_26a7a9();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec2(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_26a7a9();
-  return tint_symbol;
+  v.tint_symbol = fma_26a7a9();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:13: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  vec2 prevent_dce;
-};
-
-vec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
 vec2 fma_26a7a9() {
   vec2 arg_0 = vec2(1.0f);
   vec2 arg_1 = vec2(1.0f);
@@ -58,31 +40,20 @@
   vec2 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_26a7a9();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_26a7a9();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec2(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_26a7a9();
-  return tint_symbol;
+  v.tint_symbol = fma_26a7a9();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:11: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -90,7 +61,7 @@
   vec2 prevent_dce;
 };
 
-vec2 prevent_dce;
+layout(location = 0) flat out vec2 vertex_main_loc0_Output;
 vec2 fma_26a7a9() {
   vec2 arg_0 = vec2(1.0f);
   vec2 arg_1 = vec2(1.0f);
@@ -98,24 +69,25 @@
   vec2 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_26a7a9();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_26a7a9();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec2(0.0f));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_26a7a9();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.ir.glsl
index 9aafac4..b80ef2a 100644
--- a/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  vec4 prevent_dce;
-};
-
-vec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
 vec4 fma_6a3283() {
   vec4 arg_0 = vec4(1.0f);
   vec4 arg_1 = vec4(1.0f);
@@ -19,38 +16,23 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_6a3283();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_6a3283();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_6a3283();
-  return tint_symbol;
+  v.tint_symbol = fma_6a3283();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:13: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  vec4 prevent_dce;
-};
-
-vec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
 vec4 fma_6a3283() {
   vec4 arg_0 = vec4(1.0f);
   vec4 arg_1 = vec4(1.0f);
@@ -58,31 +40,20 @@
   vec4 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_6a3283();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_6a3283();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_6a3283();
-  return tint_symbol;
+  v.tint_symbol = fma_6a3283();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:11: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -90,7 +61,7 @@
   vec4 prevent_dce;
 };
 
-vec4 prevent_dce;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
 vec4 fma_6a3283() {
   vec4 arg_0 = vec4(1.0f);
   vec4 arg_1 = vec4(1.0f);
@@ -98,24 +69,25 @@
   vec4 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_6a3283();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_6a3283();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_6a3283();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.glsl
index feb3314..dc39c4e 100644
--- a/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/ab7818.wgsl.expected.ir.glsl
@@ -5,13 +5,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  f16vec4 prevent_dce;
-};
-
-f16vec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
 f16vec4 fma_ab7818() {
   f16vec4 arg_0 = f16vec4(1.0hf);
   f16vec4 arg_1 = f16vec4(1.0hf);
@@ -20,39 +17,24 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_ab7818();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_ab7818();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec4(0.0hf));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_ab7818();
-  return tint_symbol;
+  v.tint_symbol = fma_ab7818();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  f16vec4 prevent_dce;
-};
-
-f16vec4 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
 f16vec4 fma_ab7818() {
   f16vec4 arg_0 = f16vec4(1.0hf);
   f16vec4 arg_1 = f16vec4(1.0hf);
@@ -60,32 +42,21 @@
   f16vec4 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_ab7818();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_ab7818();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec4(0.0hf));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_ab7818();
-  return tint_symbol;
+  v.tint_symbol = fma_ab7818();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:12: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -93,7 +64,7 @@
   f16vec4 prevent_dce;
 };
 
-f16vec4 prevent_dce;
+layout(location = 0) flat out f16vec4 vertex_main_loc0_Output;
 f16vec4 fma_ab7818() {
   f16vec4 arg_0 = f16vec4(1.0hf);
   f16vec4 arg_1 = f16vec4(1.0hf);
@@ -101,24 +72,25 @@
   f16vec4 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_ab7818();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_ab7818();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec4(0.0hf));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_ab7818();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:15: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.glsl
index 1978cb8..2156d76 100644
--- a/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/bf21b6.wgsl.expected.ir.glsl
@@ -5,13 +5,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  f16vec2 prevent_dce;
-};
-
-f16vec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
 f16vec2 fma_bf21b6() {
   f16vec2 arg_0 = f16vec2(1.0hf);
   f16vec2 arg_1 = f16vec2(1.0hf);
@@ -20,39 +17,24 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_bf21b6();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_bf21b6();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec2(0.0hf));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_bf21b6();
-  return tint_symbol;
+  v.tint_symbol = fma_bf21b6();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  f16vec2 prevent_dce;
-};
-
-f16vec2 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
 f16vec2 fma_bf21b6() {
   f16vec2 arg_0 = f16vec2(1.0hf);
   f16vec2 arg_1 = f16vec2(1.0hf);
@@ -60,32 +42,21 @@
   f16vec2 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_bf21b6();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_bf21b6();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec2(0.0hf));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_bf21b6();
-  return tint_symbol;
+  v.tint_symbol = fma_bf21b6();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:12: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -93,7 +64,7 @@
   f16vec2 prevent_dce;
 };
 
-f16vec2 prevent_dce;
+layout(location = 0) flat out f16vec2 vertex_main_loc0_Output;
 f16vec2 fma_bf21b6() {
   f16vec2 arg_0 = f16vec2(1.0hf);
   f16vec2 arg_1 = f16vec2(1.0hf);
@@ -101,24 +72,25 @@
   f16vec2 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_bf21b6();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_bf21b6();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec2(0.0hf));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_bf21b6();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:15: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.ir.glsl
index b1a4224..bcc8f14 100644
--- a/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  float prevent_dce;
-};
-
-float prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float tint_symbol;
+} v;
 float fma_c10ba3() {
   float arg_0 = 1.0f;
   float arg_1 = 1.0f;
@@ -19,38 +16,23 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_c10ba3();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_c10ba3();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0f);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_c10ba3();
-  return tint_symbol;
+  v.tint_symbol = fma_c10ba3();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:13: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  float prevent_dce;
-};
-
-float prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float tint_symbol;
+} v;
 float fma_c10ba3() {
   float arg_0 = 1.0f;
   float arg_1 = 1.0f;
@@ -58,31 +40,20 @@
   float res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_c10ba3();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_c10ba3();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0f);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_c10ba3();
-  return tint_symbol;
+  v.tint_symbol = fma_c10ba3();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:11: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -90,7 +61,7 @@
   float prevent_dce;
 };
 
-float prevent_dce;
+layout(location = 0) flat out float vertex_main_loc0_Output;
 float fma_c10ba3() {
   float arg_0 = 1.0f;
   float arg_1 = 1.0f;
@@ -98,24 +69,25 @@
   float res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_c10ba3();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_c10ba3();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0f);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_c10ba3();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.glsl
index 35595ba..c588b30 100644
--- a/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/c8abb3.wgsl.expected.ir.glsl
@@ -5,13 +5,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  float16_t prevent_dce;
-};
-
-float16_t prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float16_t tint_symbol;
+} v;
 float16_t fma_c8abb3() {
   float16_t arg_0 = 1.0hf;
   float16_t arg_1 = 1.0hf;
@@ -20,39 +17,24 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_c8abb3();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_c8abb3();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0hf);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_c8abb3();
-  return tint_symbol;
+  v.tint_symbol = fma_c8abb3();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  float16_t prevent_dce;
-};
-
-float16_t prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float16_t tint_symbol;
+} v;
 float16_t fma_c8abb3() {
   float16_t arg_0 = 1.0hf;
   float16_t arg_1 = 1.0hf;
@@ -60,32 +42,21 @@
   float16_t res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_c8abb3();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_c8abb3();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0hf);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_c8abb3();
-  return tint_symbol;
+  v.tint_symbol = fma_c8abb3();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:12: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -93,7 +64,7 @@
   float16_t prevent_dce;
 };
 
-float16_t prevent_dce;
+layout(location = 0) flat out float16_t vertex_main_loc0_Output;
 float16_t fma_c8abb3() {
   float16_t arg_0 = 1.0hf;
   float16_t arg_1 = 1.0hf;
@@ -101,24 +72,25 @@
   float16_t res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_c8abb3();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_c8abb3();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0hf);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_c8abb3();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:15: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.ir.glsl
index 0b702e2..c56f9c4 100644
--- a/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.ir.glsl
@@ -4,13 +4,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  vec3 prevent_dce;
-};
-
-vec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
 vec3 fma_e17c5c() {
   vec3 arg_0 = vec3(1.0f);
   vec3 arg_1 = vec3(1.0f);
@@ -19,38 +16,23 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_e17c5c();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_e17c5c();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec3(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_e17c5c();
-  return tint_symbol;
+  v.tint_symbol = fma_e17c5c();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:13: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  vec3 prevent_dce;
-};
-
-vec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
 vec3 fma_e17c5c() {
   vec3 arg_0 = vec3(1.0f);
   vec3 arg_1 = vec3(1.0f);
@@ -58,31 +40,20 @@
   vec3 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_e17c5c();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_e17c5c();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec3(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_e17c5c();
-  return tint_symbol;
+  v.tint_symbol = fma_e17c5c();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:11: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -90,7 +61,7 @@
   vec3 prevent_dce;
 };
 
-vec3 prevent_dce;
+layout(location = 0) flat out vec3 vertex_main_loc0_Output;
 vec3 fma_e17c5c() {
   vec3 arg_0 = vec3(1.0f);
   vec3 arg_1 = vec3(1.0f);
@@ -98,24 +69,25 @@
   vec3 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_e17c5c();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_e17c5c();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec3(0.0f));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_e17c5c();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.glsl
index de0befa..4cfa48c 100644
--- a/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/fma/e7abdc.wgsl.expected.ir.glsl
@@ -5,13 +5,10 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  f16vec3 prevent_dce;
-};
-
-f16vec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
 f16vec3 fma_e7abdc() {
   f16vec3 arg_0 = f16vec3(1.0hf);
   f16vec3 arg_1 = f16vec3(1.0hf);
@@ -20,39 +17,24 @@
   return res;
 }
 void main() {
-  prevent_dce = fma_e7abdc();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_e7abdc();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec3(0.0hf));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_e7abdc();
-  return tint_symbol;
+  v.tint_symbol = fma_e7abdc();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:14: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  f16vec3 prevent_dce;
-};
-
-f16vec3 prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
 f16vec3 fma_e7abdc() {
   f16vec3 arg_0 = f16vec3(1.0hf);
   f16vec3 arg_1 = f16vec3(1.0hf);
@@ -60,32 +42,21 @@
   f16vec3 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_e7abdc();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = fma_e7abdc();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec3(0.0hf));
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = fma_e7abdc();
-  return tint_symbol;
+  v.tint_symbol = fma_e7abdc();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:12: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -93,7 +64,7 @@
   f16vec3 prevent_dce;
 };
 
-f16vec3 prevent_dce;
+layout(location = 0) flat out f16vec3 vertex_main_loc0_Output;
 f16vec3 fma_e7abdc() {
   f16vec3 arg_0 = f16vec3(1.0hf);
   f16vec3 arg_1 = f16vec3(1.0hf);
@@ -101,24 +72,25 @@
   f16vec3 res = fma(arg_0, arg_1, arg_2);
   return res;
 }
-void main() {
-  prevent_dce = fma_e7abdc();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = fma_e7abdc();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec3(0.0hf));
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = fma_e7abdc();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'fma' : required extension not requested: Possible extensions include:
+ERROR: 0:15: 'fma' : required extension not requested: Possible extensions include:
 GL_EXT_gpu_shader5
 GL_OES_gpu_shader5
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.glsl
index 8e2b8dc..3ce41cb 100644
--- a/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/3dd21e.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct frexp_result_vec4_f16 {
-  f16vec4 fract;
-  ivec4 exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_vec4_f16 {
+  f16vec4 fract;
+  ivec4 exp;
 };
 
 void frexp_3dd21e() {
@@ -22,20 +18,10 @@
 void main() {
   frexp_3dd21e();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_3dd21e();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_3dd21e();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global mediump 4-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'frexp' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global highp 4-component vector of int exp}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_vec4_f16 {
   f16vec4 fract;
   ivec4 exp;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void frexp_3dd21e() {
   f16vec4 arg_0 = f16vec4(1.0hf);
   frexp_result_vec4_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_3dd21e();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   frexp_3dd21e();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_3dd21e();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global highp 4-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'frexp' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global highp 4-component vector of int exp}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_vec4_f16 {
   f16vec4 fract;
   ivec4 exp;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   f16vec4 arg_0 = f16vec4(1.0hf);
   frexp_result_vec4_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_3dd21e();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_3dd21e();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_3dd21e();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global highp 4-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'frexp' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global highp 4-component vector of int exp}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.glsl
index bf1af6b..553d399 100644
--- a/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/4b2200.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct frexp_result_f32 {
-  float fract;
-  int exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_f32 {
+  float fract;
+  int exp;
 };
 
 void frexp_4b2200() {
@@ -21,71 +17,45 @@
 void main() {
   frexp_4b2200();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_4b2200();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_4b2200();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct frexp_result_f32 {
-  float fract;
-  int exp;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void frexp_4b2200() {
-  float arg_0 = 1.0f;
-  frexp_result_f32 res = frexp(arg_0);
-}
-void main() {
-  frexp_4b2200();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_4b2200();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_4b2200();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'frexp' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct frexp_result_f32 {
   float fract;
   int exp;
 };
-precision highp float;
-precision highp int;
 
+void frexp_4b2200() {
+  float arg_0 = 1.0f;
+  frexp_result_f32 res = frexp(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  frexp_4b2200();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'frexp' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct frexp_result_f32 {
+  float fract;
+  int exp;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   float arg_0 = 1.0f;
   frexp_result_f32 res = frexp(arg_0);
 }
-void main() {
-  frexp_4b2200();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_4b2200();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_4b2200();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'frexp' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp int exp}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.glsl
index ffc85bb..1f280c7 100644
--- a/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/5257dd.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct frexp_result_f16 {
-  float16_t fract;
-  int exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_f16 {
+  float16_t fract;
+  int exp;
 };
 
 void frexp_5257dd() {
@@ -22,20 +18,10 @@
 void main() {
   frexp_5257dd();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_5257dd();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_5257dd();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global mediump int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'frexp' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global highp int exp}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_f16 {
   float16_t fract;
   int exp;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void frexp_5257dd() {
   float16_t arg_0 = 1.0hf;
   frexp_result_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_5257dd();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   frexp_5257dd();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_5257dd();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global highp int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'frexp' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global highp int exp}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_f16 {
   float16_t fract;
   int exp;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   float16_t arg_0 = 1.0hf;
   frexp_result_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_5257dd();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_5257dd();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_5257dd();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global highp int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'frexp' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global highp int exp}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.glsl
index 34199b4..5bb9452 100644
--- a/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/5f47bf.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct frexp_result_vec2_f16 {
-  f16vec2 fract;
-  ivec2 exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_vec2_f16 {
+  f16vec2 fract;
+  ivec2 exp;
 };
 
 void frexp_5f47bf() {
@@ -22,20 +18,10 @@
 void main() {
   frexp_5f47bf();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_5f47bf();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_5f47bf();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global mediump 2-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'frexp' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global highp 2-component vector of int exp}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_vec2_f16 {
   f16vec2 fract;
   ivec2 exp;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void frexp_5f47bf() {
   f16vec2 arg_0 = f16vec2(1.0hf);
   frexp_result_vec2_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_5f47bf();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   frexp_5f47bf();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_5f47bf();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global highp 2-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'frexp' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global highp 2-component vector of int exp}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_vec2_f16 {
   f16vec2 fract;
   ivec2 exp;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   f16vec2 arg_0 = f16vec2(1.0hf);
   frexp_result_vec2_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_5f47bf();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_5f47bf();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_5f47bf();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global highp 2-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'frexp' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global highp 2-component vector of int exp}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.glsl
index 3b990d5..01d474a 100644
--- a/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/77af93.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct frexp_result_vec4_f32 {
-  vec4 fract;
-  ivec4 exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_vec4_f32 {
+  vec4 fract;
+  ivec4 exp;
 };
 
 void frexp_77af93() {
@@ -21,71 +17,45 @@
 void main() {
   frexp_77af93();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_77af93();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_77af93();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct frexp_result_vec4_f32 {
-  vec4 fract;
-  ivec4 exp;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void frexp_77af93() {
-  vec4 arg_0 = vec4(1.0f);
-  frexp_result_vec4_f32 res = frexp(arg_0);
-}
-void main() {
-  frexp_77af93();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_77af93();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_77af93();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'frexp' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of int exp}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct frexp_result_vec4_f32 {
   vec4 fract;
   ivec4 exp;
 };
-precision highp float;
-precision highp int;
 
+void frexp_77af93() {
+  vec4 arg_0 = vec4(1.0f);
+  frexp_result_vec4_f32 res = frexp(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  frexp_77af93();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'frexp' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of int exp}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct frexp_result_vec4_f32 {
+  vec4 fract;
+  ivec4 exp;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   vec4 arg_0 = vec4(1.0f);
   frexp_result_vec4_f32 res = frexp(arg_0);
 }
-void main() {
-  frexp_77af93();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_77af93();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_77af93();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'frexp' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of int exp}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.glsl
index e94b3e6..e18d561 100644
--- a/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/979800.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct frexp_result_vec3_f32 {
-  vec3 fract;
-  ivec3 exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_vec3_f32 {
+  vec3 fract;
+  ivec3 exp;
 };
 
 void frexp_979800() {
@@ -21,71 +17,45 @@
 void main() {
   frexp_979800();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_979800();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_979800();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct frexp_result_vec3_f32 {
-  vec3 fract;
-  ivec3 exp;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void frexp_979800() {
-  vec3 arg_0 = vec3(1.0f);
-  frexp_result_vec3_f32 res = frexp(arg_0);
-}
-void main() {
-  frexp_979800();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_979800();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_979800();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'frexp' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of int exp}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct frexp_result_vec3_f32 {
   vec3 fract;
   ivec3 exp;
 };
-precision highp float;
-precision highp int;
 
+void frexp_979800() {
+  vec3 arg_0 = vec3(1.0f);
+  frexp_result_vec3_f32 res = frexp(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  frexp_979800();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'frexp' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of int exp}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct frexp_result_vec3_f32 {
+  vec3 fract;
+  ivec3 exp;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   vec3 arg_0 = vec3(1.0f);
   frexp_result_vec3_f32 res = frexp(arg_0);
 }
-void main() {
-  frexp_979800();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_979800();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_979800();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'frexp' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of int exp}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.glsl
index 56b0f94..41f1165 100644
--- a/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/ae4a66.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct frexp_result_vec3_f16 {
-  f16vec3 fract;
-  ivec3 exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_vec3_f16 {
+  f16vec3 fract;
+  ivec3 exp;
 };
 
 void frexp_ae4a66() {
@@ -22,20 +18,10 @@
 void main() {
   frexp_ae4a66();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_ae4a66();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_ae4a66();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global mediump 3-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'frexp' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global highp 3-component vector of int exp}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_vec3_f16 {
   f16vec3 fract;
   ivec3 exp;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void frexp_ae4a66() {
   f16vec3 arg_0 = f16vec3(1.0hf);
   frexp_result_vec3_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_ae4a66();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   frexp_ae4a66();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_ae4a66();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global highp 3-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'frexp' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global highp 3-component vector of int exp}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct frexp_result_vec3_f16 {
   f16vec3 fract;
   ivec3 exp;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   f16vec3 arg_0 = f16vec3(1.0hf);
   frexp_result_vec3_f16 res = frexp(arg_0);
 }
-void main() {
-  frexp_ae4a66();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_ae4a66();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_ae4a66();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'frexp' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global highp 3-component vector of int exp}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'frexp' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global highp 3-component vector of int exp}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.glsl
index 6e3dc2a..e53f5f0 100644
--- a/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/frexp/eb2421.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct frexp_result_vec2_f32 {
-  vec2 fract;
-  ivec2 exp;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct frexp_result_vec2_f32 {
+  vec2 fract;
+  ivec2 exp;
 };
 
 void frexp_eb2421() {
@@ -21,71 +17,45 @@
 void main() {
   frexp_eb2421();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_eb2421();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_eb2421();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct frexp_result_vec2_f32 {
-  vec2 fract;
-  ivec2 exp;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void frexp_eb2421() {
-  vec2 arg_0 = vec2(1.0f);
-  frexp_result_vec2_f32 res = frexp(arg_0);
-}
-void main() {
-  frexp_eb2421();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_eb2421();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  frexp_eb2421();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'frexp' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct frexp_result_vec2_f32 {
   vec2 fract;
   ivec2 exp;
 };
-precision highp float;
-precision highp int;
 
+void frexp_eb2421() {
+  vec2 arg_0 = vec2(1.0f);
+  frexp_result_vec2_f32 res = frexp(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  frexp_eb2421();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'frexp' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct frexp_result_vec2_f32 {
+  vec2 fract;
+  ivec2 exp;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   vec2 arg_0 = vec2(1.0f);
   frexp_result_vec2_f32 res = frexp(arg_0);
 }
-void main() {
-  frexp_eb2421();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  frexp_eb2421();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   frexp_eb2421();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'frexp' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'frexp' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of int exp}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl
index 3c33789..d5339d7 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/315bf5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl
index 3c33789..d5339d7 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/c38b2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl
index 3c33789..d5339d7 100644
--- a/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/inputAttachmentLoad/fc4d97.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: inputAttachmentLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.glsl
index 7c5890b..6ed25cb 100644
--- a/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/2d50da.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct modf_result_vec2_f32 {
-  vec2 fract;
-  vec2 whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_vec2_f32 {
+  vec2 fract;
+  vec2 whole;
 };
 
 void modf_2d50da() {
@@ -21,71 +17,45 @@
 void main() {
   modf_2d50da();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_2d50da();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_2d50da();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct modf_result_vec2_f32 {
-  vec2 fract;
-  vec2 whole;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void modf_2d50da() {
-  vec2 arg_0 = vec2(-1.5f);
-  modf_result_vec2_f32 res = modf(arg_0);
-}
-void main() {
-  modf_2d50da();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_2d50da();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_2d50da();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'modf' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct modf_result_vec2_f32 {
   vec2 fract;
   vec2 whole;
 };
-precision highp float;
-precision highp int;
 
+void modf_2d50da() {
+  vec2 arg_0 = vec2(-1.5f);
+  modf_result_vec2_f32 res = modf(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  modf_2d50da();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'modf' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct modf_result_vec2_f32 {
+  vec2 fract;
+  vec2 whole;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   vec2 arg_0 = vec2(-1.5f);
   modf_result_vec2_f32 res = modf(arg_0);
 }
-void main() {
-  modf_2d50da();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_2d50da();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_2d50da();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'modf' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.glsl
index 57dd8cf..349672b 100644
--- a/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/45005f.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct modf_result_vec3_f16 {
-  f16vec3 fract;
-  f16vec3 whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_vec3_f16 {
+  f16vec3 fract;
+  f16vec3 whole;
 };
 
 void modf_45005f() {
@@ -22,20 +18,10 @@
 void main() {
   modf_45005f();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_45005f();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_45005f();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global 3-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'modf' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global 3-component vector of float16_t whole}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_vec3_f16 {
   f16vec3 fract;
   f16vec3 whole;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void modf_45005f() {
   f16vec3 arg_0 = f16vec3(-1.5hf);
   modf_result_vec3_f16 res = modf(arg_0);
 }
-void main() {
-  modf_45005f();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   modf_45005f();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_45005f();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global 3-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'modf' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global 3-component vector of float16_t whole}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_vec3_f16 {
   f16vec3 fract;
   f16vec3 whole;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   f16vec3 arg_0 = f16vec3(-1.5hf);
   modf_result_vec3_f16 res = modf(arg_0);
 }
-void main() {
-  modf_45005f();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_45005f();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_45005f();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global 3-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'modf' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global 3-component vector of float16_t fract,  global 3-component vector of float16_t whole}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.glsl
index 527fbe0..26ac344 100644
--- a/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/4bfced.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct modf_result_vec4_f32 {
-  vec4 fract;
-  vec4 whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_vec4_f32 {
+  vec4 fract;
+  vec4 whole;
 };
 
 void modf_4bfced() {
@@ -21,71 +17,45 @@
 void main() {
   modf_4bfced();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_4bfced();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_4bfced();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct modf_result_vec4_f32 {
-  vec4 fract;
-  vec4 whole;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void modf_4bfced() {
-  vec4 arg_0 = vec4(-1.5f);
-  modf_result_vec4_f32 res = modf(arg_0);
-}
-void main() {
-  modf_4bfced();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_4bfced();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_4bfced();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'modf' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of float whole}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct modf_result_vec4_f32 {
   vec4 fract;
   vec4 whole;
 };
-precision highp float;
-precision highp int;
 
+void modf_4bfced() {
+  vec4 arg_0 = vec4(-1.5f);
+  modf_result_vec4_f32 res = modf(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  modf_4bfced();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'modf' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of float whole}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct modf_result_vec4_f32 {
+  vec4 fract;
+  vec4 whole;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   vec4 arg_0 = vec4(-1.5f);
   modf_result_vec4_f32 res = modf(arg_0);
 }
-void main() {
-  modf_4bfced();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_4bfced();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_4bfced();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'modf' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 4-component vector of float fract,  global highp 4-component vector of float whole}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.glsl
index 0d415c3..66a4103 100644
--- a/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/5ea256.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct modf_result_vec3_f32 {
-  vec3 fract;
-  vec3 whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_vec3_f32 {
+  vec3 fract;
+  vec3 whole;
 };
 
 void modf_5ea256() {
@@ -21,71 +17,45 @@
 void main() {
   modf_5ea256();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_5ea256();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_5ea256();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct modf_result_vec3_f32 {
-  vec3 fract;
-  vec3 whole;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void modf_5ea256() {
-  vec3 arg_0 = vec3(-1.5f);
-  modf_result_vec3_f32 res = modf(arg_0);
-}
-void main() {
-  modf_5ea256();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_5ea256();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_5ea256();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'modf' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of float whole}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct modf_result_vec3_f32 {
   vec3 fract;
   vec3 whole;
 };
-precision highp float;
-precision highp int;
 
+void modf_5ea256() {
+  vec3 arg_0 = vec3(-1.5f);
+  modf_result_vec3_f32 res = modf(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  modf_5ea256();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'modf' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of float whole}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct modf_result_vec3_f32 {
+  vec3 fract;
+  vec3 whole;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   vec3 arg_0 = vec3(-1.5f);
   modf_result_vec3_f32 res = modf(arg_0);
 }
-void main() {
-  modf_5ea256();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_5ea256();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_5ea256();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'modf' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 3-component vector of float fract,  global highp 3-component vector of float whole}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.glsl
index df644e9..f41bccb 100644
--- a/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/8dbbbf.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct modf_result_f16 {
-  float16_t fract;
-  float16_t whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_f16 {
+  float16_t fract;
+  float16_t whole;
 };
 
 void modf_8dbbbf() {
@@ -22,20 +18,10 @@
 void main() {
   modf_8dbbbf();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_8dbbbf();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_8dbbbf();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'modf' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global float16_t whole}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_f16 {
   float16_t fract;
   float16_t whole;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void modf_8dbbbf() {
   float16_t arg_0 = -1.5hf;
   modf_result_f16 res = modf(arg_0);
 }
-void main() {
-  modf_8dbbbf();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   modf_8dbbbf();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_8dbbbf();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'modf' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global float16_t whole}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_f16 {
   float16_t fract;
   float16_t whole;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   float16_t arg_0 = -1.5hf;
   modf_result_f16 res = modf(arg_0);
 }
-void main() {
-  modf_8dbbbf();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_8dbbbf();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_8dbbbf();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'modf' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global float16_t fract,  global float16_t whole}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.glsl
index 31305f2..1810d63 100644
--- a/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/995934.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct modf_result_vec4_f16 {
-  f16vec4 fract;
-  f16vec4 whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_vec4_f16 {
+  f16vec4 fract;
+  f16vec4 whole;
 };
 
 void modf_995934() {
@@ -22,20 +18,10 @@
 void main() {
   modf_995934();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_995934();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_995934();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global 4-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'modf' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global 4-component vector of float16_t whole}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_vec4_f16 {
   f16vec4 fract;
   f16vec4 whole;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void modf_995934() {
   f16vec4 arg_0 = f16vec4(-1.5hf);
   modf_result_vec4_f16 res = modf(arg_0);
 }
-void main() {
-  modf_995934();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   modf_995934();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_995934();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global 4-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'modf' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global 4-component vector of float16_t whole}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_vec4_f16 {
   f16vec4 fract;
   f16vec4 whole;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   f16vec4 arg_0 = f16vec4(-1.5hf);
   modf_result_vec4_f16 res = modf(arg_0);
 }
-void main() {
-  modf_995934();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_995934();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_995934();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global 4-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'modf' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global 4-component vector of float16_t fract,  global 4-component vector of float16_t whole}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.glsl
index ccc20dc..285f881 100644
--- a/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/a545b9.wgsl.expected.ir.glsl
@@ -2,17 +2,13 @@
 
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
-
-struct modf_result_vec2_f16 {
-  f16vec2 fract;
-  f16vec2 whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_vec2_f16 {
+  f16vec2 fract;
+  f16vec2 whole;
 };
 
 void modf_a545b9() {
@@ -22,20 +18,10 @@
 void main() {
   modf_a545b9();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_a545b9();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_a545b9();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global 2-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:14: 'modf' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global 2-component vector of float16_t whole}'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -43,39 +29,24 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_vec2_f16 {
   f16vec2 fract;
   f16vec2 whole;
 };
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
 
 void modf_a545b9() {
   f16vec2 arg_0 = f16vec2(-1.5hf);
   modf_result_vec2_f16 res = modf(arg_0);
 }
-void main() {
-  modf_a545b9();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
   modf_a545b9();
 }
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_a545b9();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global 2-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:12: 'modf' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global 2-component vector of float16_t whole}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -83,13 +54,11 @@
 #version 310 es
 #extension GL_AMD_gpu_shader_half_float: require
 
+
 struct modf_result_vec2_f16 {
   f16vec2 fract;
   f16vec2 whole;
 };
-precision highp float;
-precision highp int;
-
 
 struct VertexOutput {
   vec4 pos;
@@ -99,23 +68,22 @@
   f16vec2 arg_0 = f16vec2(-1.5hf);
   modf_result_vec2_f16 res = modf(arg_0);
 }
-void main() {
-  modf_a545b9();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_a545b9();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_a545b9();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'modf' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global 2-component vector of float16_t whole}'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'modf' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp structure{ global 2-component vector of float16_t fract,  global 2-component vector of float16_t whole}'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.glsl
index 03726fc..8ad2cf9 100644
--- a/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/modf/bbf7f7.wgsl.expected.ir.glsl
@@ -1,17 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct modf_result_f32 {
-  float fract;
-  float whole;
-};
 precision highp float;
 precision highp int;
 
 
-struct VertexOutput {
-  vec4 pos;
+struct modf_result_f32 {
+  float fract;
+  float whole;
 };
 
 void modf_bbf7f7() {
@@ -21,71 +17,45 @@
 void main() {
   modf_bbf7f7();
 }
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_bbf7f7();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_bbf7f7();
-  return tint_symbol;
-}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-#version 310 es
-
-struct modf_result_f32 {
-  float fract;
-  float whole;
-};
-precision highp float;
-precision highp int;
-
-
-struct VertexOutput {
-  vec4 pos;
-};
-
-void modf_bbf7f7() {
-  float arg_0 = -1.5f;
-  modf_result_f32 res = modf(arg_0);
-}
-void main() {
-  modf_bbf7f7();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_bbf7f7();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
-  tint_symbol.pos = vec4(0.0f);
-  modf_bbf7f7();
-  return tint_symbol;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:13: 'modf' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
 
+
 struct modf_result_f32 {
   float fract;
   float whole;
 };
-precision highp float;
-precision highp int;
 
+void modf_bbf7f7() {
+  float arg_0 = -1.5f;
+  modf_result_f32 res = modf(arg_0);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  modf_bbf7f7();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'modf' : no matching overloaded function found 
+ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct modf_result_f32 {
+  float fract;
+  float whole;
+};
 
 struct VertexOutput {
   vec4 pos;
@@ -95,23 +65,22 @@
   float arg_0 = -1.5f;
   modf_result_f32 res = modf(arg_0);
 }
-void main() {
-  modf_bbf7f7();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  modf_bbf7f7();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
   tint_symbol.pos = vec4(0.0f);
   modf_bbf7f7();
   return tint_symbol;
 }
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'modf' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'modf' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/pack4xI8/bfce01.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/pack4xI8/bfce01.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/pack4xI8/bfce01.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/pack4xI8/bfce01.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/pack4xI8Clamp/e42b2a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/pack4xI8Clamp/e42b2a.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/pack4xI8Clamp/e42b2a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/pack4xI8Clamp/e42b2a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/pack4xU8/b70b53.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/pack4xU8/b70b53.wgsl.expected.ir.glsl
index 44ffc71..545218f 100644
--- a/test/tint/builtins/gen/var/pack4xU8/b70b53.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/pack4xU8/b70b53.wgsl.expected.ir.glsl
@@ -4,85 +4,56 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint pack4xU8_b70b53() {
   uvec4 arg_0 = uvec4(1u);
-  uvec4 v = arg_0;
-  uvec4 v_1 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_2 = ((v & uvec4(255u)) << v_1);
-  uint res = dot(v_2, uvec4(1u));
+  uvec4 v_1 = arg_0;
+  uvec4 v_2 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_3 = ((v_1 & uvec4(255u)) << v_2);
+  uint res = dot(v_3, uvec4(1u));
   return res;
 }
 void main() {
-  prevent_dce = pack4xU8_b70b53();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = pack4xU8_b70b53();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = pack4xU8_b70b53();
-  return tint_symbol;
+  v.tint_symbol = pack4xU8_b70b53();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'dot' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:14: 'dot' : no matching overloaded function found 
+ERROR: 0:14: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint pack4xU8_b70b53() {
   uvec4 arg_0 = uvec4(1u);
-  uvec4 v = arg_0;
-  uvec4 v_1 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_2 = ((v & uvec4(255u)) << v_1);
-  uint res = dot(v_2, uvec4(1u));
+  uvec4 v_1 = arg_0;
+  uvec4 v_2 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_3 = ((v_1 & uvec4(255u)) << v_2);
+  uint res = dot(v_3, uvec4(1u));
   return res;
 }
-void main() {
-  prevent_dce = pack4xU8_b70b53();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = pack4xU8_b70b53();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = pack4xU8_b70b53();
-  return tint_symbol;
+  v.tint_symbol = pack4xU8_b70b53();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'dot' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:12: 'dot' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -90,7 +61,7 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint pack4xU8_b70b53() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 v = arg_0;
@@ -99,23 +70,24 @@
   uint res = dot(v_2, uvec4(1u));
   return res;
 }
-void main() {
-  prevent_dce = pack4xU8_b70b53();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = pack4xU8_b70b53();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = pack4xU8_b70b53();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v_3 = vertex_main_inner();
+  gl_Position = v_3.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_3.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:17: 'dot' : no matching overloaded function found 
-ERROR: 0:17: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:17: '' : compilation terminated 
+ERROR: 0:15: 'dot' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/pack4xU8Clamp/6b8c1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/pack4xU8Clamp/6b8c1b.wgsl.expected.ir.glsl
index 90eef2b..d6ee185 100644
--- a/test/tint/builtins/gen/var/pack4xU8Clamp/6b8c1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/pack4xU8Clamp/6b8c1b.wgsl.expected.ir.glsl
@@ -4,87 +4,58 @@
 precision highp float;
 precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint pack4xU8Clamp_6b8c1b() {
   uvec4 arg_0 = uvec4(1u);
-  uvec4 v = arg_0;
-  uvec4 v_1 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_2 = uvec4(0u);
-  uvec4 v_3 = (clamp(v, v_2, uvec4(255u)) << v_1);
-  uint res = dot(v_3, uvec4(1u));
+  uvec4 v_1 = arg_0;
+  uvec4 v_2 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_3 = uvec4(0u);
+  uvec4 v_4 = (clamp(v_1, v_3, uvec4(255u)) << v_2);
+  uint res = dot(v_4, uvec4(1u));
   return res;
 }
 void main() {
-  prevent_dce = pack4xU8Clamp_6b8c1b();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = pack4xU8Clamp_6b8c1b();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = pack4xU8Clamp_6b8c1b();
-  return tint_symbol;
+  v.tint_symbol = pack4xU8Clamp_6b8c1b();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'dot' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:15: 'dot' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-struct VertexOutput {
-  vec4 pos;
-  uint prevent_dce;
-};
-
-uint prevent_dce;
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
 uint pack4xU8Clamp_6b8c1b() {
   uvec4 arg_0 = uvec4(1u);
-  uvec4 v = arg_0;
-  uvec4 v_1 = uvec4(0u, 8u, 16u, 24u);
-  uvec4 v_2 = uvec4(0u);
-  uvec4 v_3 = (clamp(v, v_2, uvec4(255u)) << v_1);
-  uint res = dot(v_3, uvec4(1u));
+  uvec4 v_1 = arg_0;
+  uvec4 v_2 = uvec4(0u, 8u, 16u, 24u);
+  uvec4 v_3 = uvec4(0u);
+  uvec4 v_4 = (clamp(v_1, v_3, uvec4(255u)) << v_2);
+  uint res = dot(v_4, uvec4(1u));
   return res;
 }
-void main() {
-  prevent_dce = pack4xU8Clamp_6b8c1b();
-}
 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 void main() {
-  prevent_dce = pack4xU8Clamp_6b8c1b();
-}
-VertexOutput main() {
-  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
-  tint_symbol.pos = vec4(0.0f);
-  tint_symbol.prevent_dce = pack4xU8Clamp_6b8c1b();
-  return tint_symbol;
+  v.tint_symbol = pack4xU8Clamp_6b8c1b();
 }
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'dot' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:13: 'dot' : no matching overloaded function found 
+ERROR: 0:13: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
 
 #version 310 es
-precision highp float;
-precision highp int;
 
 
 struct VertexOutput {
@@ -92,7 +63,7 @@
   uint prevent_dce;
 };
 
-uint prevent_dce;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
 uint pack4xU8Clamp_6b8c1b() {
   uvec4 arg_0 = uvec4(1u);
   uvec4 v = arg_0;
@@ -102,23 +73,24 @@
   uint res = dot(v_3, uvec4(1u));
   return res;
 }
-void main() {
-  prevent_dce = pack4xU8Clamp_6b8c1b();
-}
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main() {
-  prevent_dce = pack4xU8Clamp_6b8c1b();
-}
-VertexOutput main() {
+VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
   tint_symbol.pos = vec4(0.0f);
   tint_symbol.prevent_dce = pack4xU8Clamp_6b8c1b();
   return tint_symbol;
 }
+void main() {
+  VertexOutput v_4 = vertex_main_inner();
+  gl_Position = v_4.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_4.prevent_dce;
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'dot' : no matching overloaded function found 
-ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp highp uint'
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:16: 'dot' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp highp uint'
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/0464d1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/0639ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/0cc513.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/0e0e6e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/2d0b7d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/355db5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/3c3824.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/4d9898.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/641316.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/704803.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/76f499.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/78129b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/796753.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/820991.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/960c6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/9d802c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/a2d2b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/ae401e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/b68331.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/bed00b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/c0e704.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/cd3624.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/cebc6a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/cfbf48.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/e6d39d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/e6d948.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/e7c301.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/ef7d5d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/f1e8ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/f5f923.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/f60448.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.glsl
index 325afea..81f13b2 100644
--- a/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadBroadcast/f9d579.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/15ac75.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/2be5e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/331804.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/348173.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/486196.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/730e40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/8077c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/856536.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/9ccb38.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a090b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a665b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/a82e1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/af19a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/b905fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/c31636.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl
index 8d30f7b..945081b 100644
--- a/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapDiagonal/e4bec8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapDiagonal
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/02834c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/053f3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/07f1fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/150d6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/19f8ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/1e1086.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/69af6a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/8203ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/879738.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/9bea80.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/a4e103.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/b1a5fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/bc2013.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/bddb9f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/d60cec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.glsl
index 1260e05..0e10b6c 100644
--- a/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapX/edfa1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapX
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/06a67c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/0c4938.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/0d05a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/14bb9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/1f1a06.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/264908.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/5b2e67.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/6f6bc9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/9277e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/94ab6d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/a27e1c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/a50fcb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/b9d9e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/bb697b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/be4e72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.glsl
index dda3257..d345cfa 100644
--- a/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quadSwapY/d1ab4d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quadSwapY
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quantizeToF16/12e50e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quantizeToF16/12e50e.wgsl.expected.ir.glsl
index 7996f70..7b797c8 100644
--- a/test/tint/builtins/gen/var/quantizeToF16/12e50e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quantizeToF16/12e50e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quantizeToF16/2cddf3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quantizeToF16/2cddf3.wgsl.expected.ir.glsl
index 7996f70..7b797c8 100644
--- a/test/tint/builtins/gen/var/quantizeToF16/2cddf3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quantizeToF16/2cddf3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quantizeToF16/cba294.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quantizeToF16/cba294.wgsl.expected.ir.glsl
index 7996f70..7b797c8 100644
--- a/test/tint/builtins/gen/var/quantizeToF16/cba294.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quantizeToF16/cba294.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/quantizeToF16/e8fd14.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/quantizeToF16/e8fd14.wgsl.expected.ir.glsl
index 7996f70..7b797c8 100644
--- a/test/tint/builtins/gen/var/quantizeToF16/e8fd14.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/quantizeToF16/e8fd14.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: quantizeToF16
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/208fd9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/44f20b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/7ea4c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/radians/fbacf0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.ir.glsl
index f297654..8021ef0 100644
--- a/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.ir.glsl
@@ -1,11 +1,108 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 select_087ea4() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 arg_1 = uvec4(1u);
+  bool arg_2 = true;
+  uvec4 v_1 = arg_0;
+  uvec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  uint v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  uint v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  uint v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  uvec4 res = uvec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_087ea4();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec4 tint_symbol;
+} v;
+uvec4 select_087ea4() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 arg_1 = uvec4(1u);
+  bool arg_2 = true;
+  uvec4 v_1 = arg_0;
+  uvec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  uint v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  uint v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  uint v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  uvec4 res = uvec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_087ea4();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec4 prevent_dce;
+};
+
+layout(location = 0) flat out uvec4 vertex_main_loc0_Output;
+uvec4 select_087ea4() {
+  uvec4 arg_0 = uvec4(1u);
+  uvec4 arg_1 = uvec4(1u);
+  bool arg_2 = true;
+  uvec4 v = arg_0;
+  uvec4 v_1 = arg_1;
+  bool v_2 = arg_2;
+  uint v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  uint v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  uint v_5 = ((v_2.z) ? (v_1.z) : (v.z));
+  uvec4 res = uvec4(v_3, v_4, v_5, ((v_2.w) ? (v_1.w) : (v.w)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec4(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_087ea4();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_6 = vertex_main_inner();
+  gl_Position = v_6.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_6.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/089657.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/089657.wgsl.expected.ir.glsl
index f297654..bd0cf82 100644
--- a/test/tint/builtins/gen/var/select/089657.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/089657.wgsl.expected.ir.glsl
@@ -1,11 +1,78 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+void select_089657() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec3(1.0f).x) : (vec3(1.0f).x));
+  float v_2 = ((v.y) ? (vec3(1.0f).y) : (vec3(1.0f).y));
+  vec3 res = vec3(v_1, v_2, ((v.z) ? (vec3(1.0f).z) : (vec3(1.0f).z)));
+}
+void main() {
+  select_089657();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:8: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:8: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+void select_089657() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec3(1.0f).x) : (vec3(1.0f).x));
+  float v_2 = ((v.y) ? (vec3(1.0f).y) : (vec3(1.0f).y));
+  vec3 res = vec3(v_1, v_2, ((v.z) ? (vec3(1.0f).z) : (vec3(1.0f).z)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  select_089657();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:6: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:6: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+};
+
+void select_089657() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec3(1.0f).x) : (vec3(1.0f).x));
+  float v_2 = ((v.y) ? (vec3(1.0f).y) : (vec3(1.0f).y));
+  vec3 res = vec3(v_1, v_2, ((v.z) ? (vec3(1.0f).z) : (vec3(1.0f).z)));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  select_089657();
+  return tint_symbol;
+}
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/17441a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/17441a.wgsl.expected.ir.glsl
index f297654..01de8e5 100644
--- a/test/tint/builtins/gen/var/select/17441a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/17441a.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+void select_17441a() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec4(1.0f).x) : (vec4(1.0f).x));
+  float v_2 = ((v.y) ? (vec4(1.0f).y) : (vec4(1.0f).y));
+  float v_3 = ((v.z) ? (vec4(1.0f).z) : (vec4(1.0f).z));
+  vec4 res = vec4(v_1, v_2, v_3, ((v.w) ? (vec4(1.0f).w) : (vec4(1.0f).w)));
+}
+void main() {
+  select_17441a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:8: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:8: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+void select_17441a() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec4(1.0f).x) : (vec4(1.0f).x));
+  float v_2 = ((v.y) ? (vec4(1.0f).y) : (vec4(1.0f).y));
+  float v_3 = ((v.z) ? (vec4(1.0f).z) : (vec4(1.0f).z));
+  vec4 res = vec4(v_1, v_2, v_3, ((v.w) ? (vec4(1.0f).w) : (vec4(1.0f).w)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  select_17441a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:6: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:6: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+};
+
+void select_17441a() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec4(1.0f).x) : (vec4(1.0f).x));
+  float v_2 = ((v.y) ? (vec4(1.0f).y) : (vec4(1.0f).y));
+  float v_3 = ((v.z) ? (vec4(1.0f).z) : (vec4(1.0f).z));
+  vec4 res = vec4(v_1, v_2, v_3, ((v.w) ? (vec4(1.0f).w) : (vec4(1.0f).w)));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  select_17441a();
+  return tint_symbol;
+}
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.glsl
index f297654..9bc6f09c 100644
--- a/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/1ada2a.wgsl.expected.ir.glsl
@@ -1,11 +1,108 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
+f16vec3 select_1ada2a() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 arg_1 = f16vec3(1.0hf);
+  bool arg_2 = true;
+  f16vec3 v_1 = arg_0;
+  f16vec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float16_t v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float16_t v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  f16vec3 res = f16vec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_1ada2a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
+f16vec3 select_1ada2a() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 arg_1 = f16vec3(1.0hf);
+  bool arg_2 = true;
+  f16vec3 v_1 = arg_0;
+  f16vec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float16_t v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float16_t v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  f16vec3 res = f16vec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_1ada2a();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:15: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:15: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+
+struct VertexOutput {
+  vec4 pos;
+  f16vec3 prevent_dce;
+};
+
+layout(location = 0) flat out f16vec3 vertex_main_loc0_Output;
+f16vec3 select_1ada2a() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 arg_1 = f16vec3(1.0hf);
+  bool arg_2 = true;
+  f16vec3 v = arg_0;
+  f16vec3 v_1 = arg_1;
+  bool v_2 = arg_2;
+  float16_t v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  float16_t v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  f16vec3 res = f16vec3(v_3, v_4, ((v_2.z) ? (v_1.z) : (v.z)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec3(0.0hf));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_1ada2a();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_5 = vertex_main_inner();
+  gl_Position = v_5.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_5.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:18: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:18: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/3a14be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/3a14be.wgsl.expected.ir.glsl
index f297654..a7ac5eb 100644
--- a/test/tint/builtins/gen/var/select/3a14be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/3a14be.wgsl.expected.ir.glsl
@@ -1,11 +1,75 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+void select_3a14be() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec2(1).x) : (ivec2(1).x));
+  ivec2 res = ivec2(v_1, ((v.y) ? (ivec2(1).y) : (ivec2(1).y)));
+}
+void main() {
+  select_3a14be();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:8: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:8: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+void select_3a14be() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec2(1).x) : (ivec2(1).x));
+  ivec2 res = ivec2(v_1, ((v.y) ? (ivec2(1).y) : (ivec2(1).y)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  select_3a14be();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:6: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:6: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+};
+
+void select_3a14be() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec2(1).x) : (ivec2(1).x));
+  ivec2 res = ivec2(v_1, ((v.y) ? (ivec2(1).y) : (ivec2(1).y)));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  select_3a14be();
+  return tint_symbol;
+}
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.ir.glsl
index f297654..48f0a85 100644
--- a/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.ir.glsl
@@ -1,11 +1,105 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_3c25ce() {
+  bvec3 arg_0 = bvec3(true);
+  bvec3 arg_1 = bvec3(true);
+  bool arg_2 = true;
+  bvec3 v_1 = arg_0;
+  bvec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bvec3 res = bvec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_3c25ce();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_3c25ce() {
+  bvec3 arg_0 = bvec3(true);
+  bvec3 arg_1 = bvec3(true);
+  bool arg_2 = true;
+  bvec3 v_1 = arg_0;
+  bvec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bvec3 res = bvec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_3c25ce();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_3c25ce() {
+  bvec3 arg_0 = bvec3(true);
+  bvec3 arg_1 = bvec3(true);
+  bool arg_2 = true;
+  bvec3 v = arg_0;
+  bvec3 v_1 = arg_1;
+  bool v_2 = arg_2;
+  bool v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  bool v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  bvec3 res = bvec3(v_3, v_4, ((v_2.z) ? (v_1.z) : (v.z)));
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_3c25ce();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_5 = vertex_main_inner();
+  gl_Position = v_5.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_5.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/4e60da.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/4e60da.wgsl.expected.ir.glsl
index f297654..b554c50 100644
--- a/test/tint/builtins/gen/var/select/4e60da.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/4e60da.wgsl.expected.ir.glsl
@@ -1,11 +1,75 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+void select_4e60da() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec2(1.0f).x) : (vec2(1.0f).x));
+  vec2 res = vec2(v_1, ((v.y) ? (vec2(1.0f).y) : (vec2(1.0f).y)));
+}
+void main() {
+  select_4e60da();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:8: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:8: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+void select_4e60da() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec2(1.0f).x) : (vec2(1.0f).x));
+  vec2 res = vec2(v_1, ((v.y) ? (vec2(1.0f).y) : (vec2(1.0f).y)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  select_4e60da();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:6: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:6: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+};
+
+void select_4e60da() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  float v_1 = ((v.x) ? (vec2(1.0f).x) : (vec2(1.0f).x));
+  vec2 res = vec2(v_1, ((v.y) ? (vec2(1.0f).y) : (vec2(1.0f).y)));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  select_4e60da();
+  return tint_symbol;
+}
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/51b047.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/51b047.wgsl.expected.ir.glsl
index f297654..3006149 100644
--- a/test/tint/builtins/gen/var/select/51b047.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/51b047.wgsl.expected.ir.glsl
@@ -1,11 +1,102 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 select_51b047() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 arg_1 = uvec2(1u);
+  bool arg_2 = true;
+  uvec2 v_1 = arg_0;
+  uvec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  uint v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  uvec2 res = uvec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_51b047();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+uvec2 select_51b047() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 arg_1 = uvec2(1u);
+  bool arg_2 = true;
+  uvec2 v_1 = arg_0;
+  uvec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  uint v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  uvec2 res = uvec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_51b047();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 select_51b047() {
+  uvec2 arg_0 = uvec2(1u);
+  uvec2 arg_1 = uvec2(1u);
+  bool arg_2 = true;
+  uvec2 v = arg_0;
+  uvec2 v_1 = arg_1;
+  bool v_2 = arg_2;
+  uint v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  uvec2 res = uvec2(v_3, ((v_2.y) ? (v_1.y) : (v.y)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_51b047();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_4 = vertex_main_inner();
+  gl_Position = v_4.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_4.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/713567.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/713567.wgsl.expected.ir.glsl
index f297654..5e4a357 100644
--- a/test/tint/builtins/gen/var/select/713567.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/713567.wgsl.expected.ir.glsl
@@ -1,11 +1,108 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+vec4 select_713567() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 arg_1 = vec4(1.0f);
+  bool arg_2 = true;
+  vec4 v_1 = arg_0;
+  vec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  float v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  vec4 res = vec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_713567();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+vec4 select_713567() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 arg_1 = vec4(1.0f);
+  bool arg_2 = true;
+  vec4 v_1 = arg_0;
+  vec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  float v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  vec4 res = vec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_713567();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 select_713567() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 arg_1 = vec4(1.0f);
+  bool arg_2 = true;
+  vec4 v = arg_0;
+  vec4 v_1 = arg_1;
+  bool v_2 = arg_2;
+  float v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  float v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  float v_5 = ((v_2.z) ? (v_1.z) : (v.z));
+  vec4 res = vec4(v_3, v_4, v_5, ((v_2.w) ? (v_1.w) : (v.w)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_713567();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_6 = vertex_main_inner();
+  gl_Position = v_6.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_6.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.ir.glsl
index f297654..a777673 100644
--- a/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.ir.glsl
@@ -1,11 +1,105 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
+vec3 select_78be5f() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 arg_1 = vec3(1.0f);
+  bool arg_2 = true;
+  vec3 v_1 = arg_0;
+  vec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  vec3 res = vec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_78be5f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
+vec3 select_78be5f() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 arg_1 = vec3(1.0f);
+  bool arg_2 = true;
+  vec3 v_1 = arg_0;
+  vec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  vec3 res = vec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_78be5f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec3 prevent_dce;
+};
+
+layout(location = 0) flat out vec3 vertex_main_loc0_Output;
+vec3 select_78be5f() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 arg_1 = vec3(1.0f);
+  bool arg_2 = true;
+  vec3 v = arg_0;
+  vec3 v_1 = arg_1;
+  bool v_2 = arg_2;
+  float v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  float v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  vec3 res = vec3(v_3, v_4, ((v_2.z) ? (v_1.z) : (v.z)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec3(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_78be5f();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_5 = vertex_main_inner();
+  gl_Position = v_5.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_5.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.ir.glsl
index f297654..c7b3c6a 100644
--- a/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.ir.glsl
@@ -1,11 +1,105 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_80a9a9() {
+  bvec3 arg_0 = bvec3(true);
+  bvec3 arg_1 = bvec3(true);
+  bvec3 arg_2 = bvec3(true);
+  bvec3 v_1 = arg_0;
+  bvec3 v_2 = arg_1;
+  bvec3 v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bvec3 res = bvec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_80a9a9();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:19: 'all' : no matching overloaded function found 
+ERROR: 0:19: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_80a9a9() {
+  bvec3 arg_0 = bvec3(true);
+  bvec3 arg_1 = bvec3(true);
+  bvec3 arg_2 = bvec3(true);
+  bvec3 v_1 = arg_0;
+  bvec3 v_2 = arg_1;
+  bvec3 v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bvec3 res = bvec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_80a9a9();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'all' : no matching overloaded function found 
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_80a9a9() {
+  bvec3 arg_0 = bvec3(true);
+  bvec3 arg_1 = bvec3(true);
+  bvec3 arg_2 = bvec3(true);
+  bvec3 v = arg_0;
+  bvec3 v_1 = arg_1;
+  bvec3 v_2 = arg_2;
+  bool v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  bool v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  bvec3 res = bvec3(v_3, v_4, ((v_2.z) ? (v_1.z) : (v.z)));
+  return ((all((res == bvec3(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_80a9a9();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_5 = vertex_main_inner();
+  gl_Position = v_5.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_5.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:20: 'all' : no matching overloaded function found 
+ERROR: 0:20: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.glsl
index f297654..34f215d 100644
--- a/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/830dd9.wgsl.expected.ir.glsl
@@ -1,11 +1,111 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
+f16vec4 select_830dd9() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 arg_1 = f16vec4(1.0hf);
+  bool arg_2 = true;
+  f16vec4 v_1 = arg_0;
+  f16vec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float16_t v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float16_t v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  float16_t v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  f16vec4 res = f16vec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_830dd9();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
+f16vec4 select_830dd9() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 arg_1 = f16vec4(1.0hf);
+  bool arg_2 = true;
+  f16vec4 v_1 = arg_0;
+  f16vec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float16_t v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  float16_t v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  float16_t v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  f16vec4 res = f16vec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_830dd9();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:15: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:15: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+
+struct VertexOutput {
+  vec4 pos;
+  f16vec4 prevent_dce;
+};
+
+layout(location = 0) flat out f16vec4 vertex_main_loc0_Output;
+f16vec4 select_830dd9() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 arg_1 = f16vec4(1.0hf);
+  bool arg_2 = true;
+  f16vec4 v = arg_0;
+  f16vec4 v_1 = arg_1;
+  bool v_2 = arg_2;
+  float16_t v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  float16_t v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  float16_t v_5 = ((v_2.z) ? (v_1.z) : (v.z));
+  f16vec4 res = f16vec4(v_3, v_4, v_5, ((v_2.w) ? (v_1.w) : (v.w)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec4(0.0hf));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_830dd9();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_6 = vertex_main_inner();
+  gl_Position = v_6.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_6.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:18: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:18: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.glsl
index f297654..314d2e3 100644
--- a/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/86f9bd.wgsl.expected.ir.glsl
@@ -1,11 +1,105 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
+f16vec2 select_86f9bd() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 arg_1 = f16vec2(1.0hf);
+  bool arg_2 = true;
+  f16vec2 v_1 = arg_0;
+  f16vec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float16_t v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  f16vec2 res = f16vec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_86f9bd();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
+f16vec2 select_86f9bd() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 arg_1 = f16vec2(1.0hf);
+  bool arg_2 = true;
+  f16vec2 v_1 = arg_0;
+  f16vec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float16_t v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  f16vec2 res = f16vec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_86f9bd();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:15: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:15: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+
+struct VertexOutput {
+  vec4 pos;
+  f16vec2 prevent_dce;
+};
+
+layout(location = 0) flat out f16vec2 vertex_main_loc0_Output;
+f16vec2 select_86f9bd() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 arg_1 = f16vec2(1.0hf);
+  bool arg_2 = true;
+  f16vec2 v = arg_0;
+  f16vec2 v_1 = arg_1;
+  bool v_2 = arg_2;
+  float16_t v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  f16vec2 res = f16vec2(v_3, ((v_2.y) ? (v_1.y) : (v.y)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), f16vec2(0.0hf));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_86f9bd();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_4 = vertex_main_inner();
+  gl_Position = v_4.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_4.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:18: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:18: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.ir.glsl
index f297654..afbf47a 100644
--- a/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.ir.glsl
@@ -1,11 +1,105 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  ivec3 tint_symbol;
+} v;
+ivec3 select_8fa62c() {
+  ivec3 arg_0 = ivec3(1);
+  ivec3 arg_1 = ivec3(1);
+  bool arg_2 = true;
+  ivec3 v_1 = arg_0;
+  ivec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  int v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  int v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  ivec3 res = ivec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_8fa62c();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  ivec3 tint_symbol;
+} v;
+ivec3 select_8fa62c() {
+  ivec3 arg_0 = ivec3(1);
+  ivec3 arg_1 = ivec3(1);
+  bool arg_2 = true;
+  ivec3 v_1 = arg_0;
+  ivec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  int v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  int v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  ivec3 res = ivec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_8fa62c();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  ivec3 prevent_dce;
+};
+
+layout(location = 0) flat out ivec3 vertex_main_loc0_Output;
+ivec3 select_8fa62c() {
+  ivec3 arg_0 = ivec3(1);
+  ivec3 arg_1 = ivec3(1);
+  bool arg_2 = true;
+  ivec3 v = arg_0;
+  ivec3 v_1 = arg_1;
+  bool v_2 = arg_2;
+  int v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  int v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  ivec3 res = ivec3(v_3, v_4, ((v_2.z) ? (v_1.z) : (v.z)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), ivec3(0));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_8fa62c();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_5 = vertex_main_inner();
+  gl_Position = v_5.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_5.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.ir.glsl
index f297654..2c0bcd6 100644
--- a/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.ir.glsl
@@ -1,11 +1,108 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  ivec4 tint_symbol;
+} v;
+ivec4 select_ab069f() {
+  ivec4 arg_0 = ivec4(1);
+  ivec4 arg_1 = ivec4(1);
+  bool arg_2 = true;
+  ivec4 v_1 = arg_0;
+  ivec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  int v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  int v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  int v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  ivec4 res = ivec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_ab069f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  ivec4 tint_symbol;
+} v;
+ivec4 select_ab069f() {
+  ivec4 arg_0 = ivec4(1);
+  ivec4 arg_1 = ivec4(1);
+  bool arg_2 = true;
+  ivec4 v_1 = arg_0;
+  ivec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  int v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  int v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  int v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  ivec4 res = ivec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_ab069f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  ivec4 prevent_dce;
+};
+
+layout(location = 0) flat out ivec4 vertex_main_loc0_Output;
+ivec4 select_ab069f() {
+  ivec4 arg_0 = ivec4(1);
+  ivec4 arg_1 = ivec4(1);
+  bool arg_2 = true;
+  ivec4 v = arg_0;
+  ivec4 v_1 = arg_1;
+  bool v_2 = arg_2;
+  int v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  int v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  int v_5 = ((v_2.z) ? (v_1.z) : (v.z));
+  ivec4 res = ivec4(v_3, v_4, v_5, ((v_2.w) ? (v_1.w) : (v.w)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), ivec4(0));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_ab069f();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_6 = vertex_main_inner();
+  gl_Position = v_6.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_6.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/b04721.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/b04721.wgsl.expected.ir.glsl
index f297654..0887bfd 100644
--- a/test/tint/builtins/gen/var/select/b04721.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/b04721.wgsl.expected.ir.glsl
@@ -1,11 +1,105 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 select_b04721() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 arg_1 = uvec3(1u);
+  bool arg_2 = true;
+  uvec3 v_1 = arg_0;
+  uvec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  uint v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  uint v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  uvec3 res = uvec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_b04721();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+uvec3 select_b04721() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 arg_1 = uvec3(1u);
+  bool arg_2 = true;
+  uvec3 v_1 = arg_0;
+  uvec3 v_2 = arg_1;
+  bool v_3 = arg_2;
+  uint v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  uint v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  uvec3 res = uvec3(v_4, v_5, ((v_3.z) ? (v_2.z) : (v_1.z)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_b04721();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec3 prevent_dce;
+};
+
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
+uvec3 select_b04721() {
+  uvec3 arg_0 = uvec3(1u);
+  uvec3 arg_1 = uvec3(1u);
+  bool arg_2 = true;
+  uvec3 v = arg_0;
+  uvec3 v_1 = arg_1;
+  bool v_2 = arg_2;
+  uint v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  uint v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  uvec3 res = uvec3(v_3, v_4, ((v_2.z) ? (v_1.z) : (v.z)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_b04721();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_5 = vertex_main_inner();
+  gl_Position = v_5.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_5.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.ir.glsl
index f297654..7335492 100644
--- a/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.ir.glsl
@@ -1,11 +1,102 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  ivec2 tint_symbol;
+} v;
+ivec2 select_bb447f() {
+  ivec2 arg_0 = ivec2(1);
+  ivec2 arg_1 = ivec2(1);
+  bool arg_2 = true;
+  ivec2 v_1 = arg_0;
+  ivec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  int v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  ivec2 res = ivec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_bb447f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  ivec2 tint_symbol;
+} v;
+ivec2 select_bb447f() {
+  ivec2 arg_0 = ivec2(1);
+  ivec2 arg_1 = ivec2(1);
+  bool arg_2 = true;
+  ivec2 v_1 = arg_0;
+  ivec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  int v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  ivec2 res = ivec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_bb447f();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  ivec2 prevent_dce;
+};
+
+layout(location = 0) flat out ivec2 vertex_main_loc0_Output;
+ivec2 select_bb447f() {
+  ivec2 arg_0 = ivec2(1);
+  ivec2 arg_1 = ivec2(1);
+  bool arg_2 = true;
+  ivec2 v = arg_0;
+  ivec2 v_1 = arg_1;
+  bool v_2 = arg_2;
+  int v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  ivec2 res = ivec2(v_3, ((v_2.y) ? (v_1.y) : (v.y)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), ivec2(0));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_bb447f();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_4 = vertex_main_inner();
+  gl_Position = v_4.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_4.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.ir.glsl
index f297654..cebede2 100644
--- a/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.ir.glsl
@@ -1,11 +1,102 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
+vec2 select_bf3d29() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 arg_1 = vec2(1.0f);
+  bool arg_2 = true;
+  vec2 v_1 = arg_0;
+  vec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  vec2 res = vec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+void main() {
+  v.tint_symbol = select_bf3d29();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
+vec2 select_bf3d29() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 arg_1 = vec2(1.0f);
+  bool arg_2 = true;
+  vec2 v_1 = arg_0;
+  vec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  float v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  vec2 res = vec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_bf3d29();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec2 prevent_dce;
+};
+
+layout(location = 0) flat out vec2 vertex_main_loc0_Output;
+vec2 select_bf3d29() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 arg_1 = vec2(1.0f);
+  bool arg_2 = true;
+  vec2 v = arg_0;
+  vec2 v_1 = arg_1;
+  bool v_2 = arg_2;
+  float v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  vec2 res = vec2(v_3, ((v_2.y) ? (v_1.y) : (v.y)));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec2(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_bf3d29();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_4 = vertex_main_inner();
+  gl_Position = v_4.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_4.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.ir.glsl
index f297654..76ffea0 100644
--- a/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.ir.glsl
@@ -1,11 +1,90 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c31f9e() {
+  bool arg_0 = true;
+  bool arg_1 = true;
+  bool arg_2 = true;
+  bool res = ((arg_2) ? (arg_1) : (arg_0));
+  return ((all((res == false))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_c31f9e();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'all' : no matching overloaded function found 
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c31f9e() {
+  bool arg_0 = true;
+  bool arg_1 = true;
+  bool arg_2 = true;
+  bool res = ((arg_2) ? (arg_1) : (arg_0));
+  return ((all((res == false))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_c31f9e();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'all' : no matching overloaded function found 
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_c31f9e() {
+  bool arg_0 = true;
+  bool arg_1 = true;
+  bool arg_2 = true;
+  bool res = ((arg_2) ? (arg_1) : (arg_0));
+  return ((all((res == false))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_c31f9e();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:15: 'all' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.ir.glsl
index f297654..bd1438f 100644
--- a/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.ir.glsl
@@ -1,11 +1,108 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c41bd1() {
+  bvec4 arg_0 = bvec4(true);
+  bvec4 arg_1 = bvec4(true);
+  bool arg_2 = true;
+  bvec4 v_1 = arg_0;
+  bvec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bool v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  bvec4 res = bvec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_c41bd1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_c41bd1() {
+  bvec4 arg_0 = bvec4(true);
+  bvec4 arg_1 = bvec4(true);
+  bool arg_2 = true;
+  bvec4 v_1 = arg_0;
+  bvec4 v_2 = arg_1;
+  bool v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bool v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  bvec4 res = bvec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_c41bd1();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_c41bd1() {
+  bvec4 arg_0 = bvec4(true);
+  bvec4 arg_1 = bvec4(true);
+  bool arg_2 = true;
+  bvec4 v = arg_0;
+  bvec4 v_1 = arg_1;
+  bool v_2 = arg_2;
+  bool v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  bool v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  bool v_5 = ((v_2.z) ? (v_1.z) : (v.z));
+  bvec4 res = bvec4(v_3, v_4, v_5, ((v_2.w) ? (v_1.w) : (v.w)));
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_c41bd1();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_6 = vertex_main_inner();
+  gl_Position = v_6.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_6.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.ir.glsl
index f297654..ad2f7e2 100644
--- a/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.ir.glsl
@@ -1,11 +1,102 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_cb9301() {
+  bvec2 arg_0 = bvec2(true);
+  bvec2 arg_1 = bvec2(true);
+  bvec2 arg_2 = bvec2(true);
+  bvec2 v_1 = arg_0;
+  bvec2 v_2 = arg_1;
+  bvec2 v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bvec2 res = bvec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_cb9301();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:18: 'all' : no matching overloaded function found 
+ERROR: 0:18: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_cb9301() {
+  bvec2 arg_0 = bvec2(true);
+  bvec2 arg_1 = bvec2(true);
+  bvec2 arg_2 = bvec2(true);
+  bvec2 v_1 = arg_0;
+  bvec2 v_2 = arg_1;
+  bvec2 v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bvec2 res = bvec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_cb9301();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'all' : no matching overloaded function found 
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_cb9301() {
+  bvec2 arg_0 = bvec2(true);
+  bvec2 arg_1 = bvec2(true);
+  bvec2 arg_2 = bvec2(true);
+  bvec2 v = arg_0;
+  bvec2 v_1 = arg_1;
+  bvec2 v_2 = arg_2;
+  bool v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  bvec2 res = bvec2(v_3, ((v_2.y) ? (v_1.y) : (v.y)));
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_cb9301();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_4 = vertex_main_inner();
+  gl_Position = v_4.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_4.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:19: 'all' : no matching overloaded function found 
+ERROR: 0:19: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/dfab3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/dfab3b.wgsl.expected.ir.glsl
index f297654..f85c518 100644
--- a/test/tint/builtins/gen/var/select/dfab3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/dfab3b.wgsl.expected.ir.glsl
@@ -1,11 +1,78 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+void select_dfab3b() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec3(1).x) : (ivec3(1).x));
+  int v_2 = ((v.y) ? (ivec3(1).y) : (ivec3(1).y));
+  ivec3 res = ivec3(v_1, v_2, ((v.z) ? (ivec3(1).z) : (ivec3(1).z)));
+}
+void main() {
+  select_dfab3b();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:8: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:8: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+void select_dfab3b() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec3(1).x) : (ivec3(1).x));
+  int v_2 = ((v.y) ? (ivec3(1).y) : (ivec3(1).y));
+  ivec3 res = ivec3(v_1, v_2, ((v.z) ? (ivec3(1).z) : (ivec3(1).z)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  select_dfab3b();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:6: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:6: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+};
+
+void select_dfab3b() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec3(1).x) : (ivec3(1).x));
+  int v_2 = ((v.y) ? (ivec3(1).y) : (ivec3(1).y));
+  ivec3 res = ivec3(v_1, v_2, ((v.z) ? (ivec3(1).z) : (ivec3(1).z)));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  select_dfab3b();
+  return tint_symbol;
+}
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/e381c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/e381c3.wgsl.expected.ir.glsl
index f297654..c3da7cd 100644
--- a/test/tint/builtins/gen/var/select/e381c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/e381c3.wgsl.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+void select_e381c3() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec4(1).x) : (ivec4(1).x));
+  int v_2 = ((v.y) ? (ivec4(1).y) : (ivec4(1).y));
+  int v_3 = ((v.z) ? (ivec4(1).z) : (ivec4(1).z));
+  ivec4 res = ivec4(v_1, v_2, v_3, ((v.w) ? (ivec4(1).w) : (ivec4(1).w)));
+}
+void main() {
+  select_e381c3();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:8: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:8: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+void select_e381c3() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec4(1).x) : (ivec4(1).x));
+  int v_2 = ((v.y) ? (ivec4(1).y) : (ivec4(1).y));
+  int v_3 = ((v.z) ? (ivec4(1).z) : (ivec4(1).z));
+  ivec4 res = ivec4(v_1, v_2, v_3, ((v.w) ? (ivec4(1).w) : (ivec4(1).w)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  select_e381c3();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:6: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:6: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+};
+
+void select_e381c3() {
+  bool arg_2 = true;
+  bool v = arg_2;
+  int v_1 = ((v.x) ? (ivec4(1).x) : (ivec4(1).x));
+  int v_2 = ((v.y) ? (ivec4(1).y) : (ivec4(1).y));
+  int v_3 = ((v.z) ? (ivec4(1).z) : (ivec4(1).z));
+  ivec4 res = ivec4(v_1, v_2, v_3, ((v.w) ? (ivec4(1).w) : (ivec4(1).w)));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  select_e381c3();
+  return tint_symbol;
+}
+void main() {
+  gl_Position = vertex_main_inner().pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:11: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:11: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.ir.glsl
index f297654..effd7f7 100644
--- a/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.ir.glsl
@@ -1,11 +1,108 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_e3e028() {
+  bvec4 arg_0 = bvec4(true);
+  bvec4 arg_1 = bvec4(true);
+  bvec4 arg_2 = bvec4(true);
+  bvec4 v_1 = arg_0;
+  bvec4 v_2 = arg_1;
+  bvec4 v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bool v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  bvec4 res = bvec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_e3e028();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:20: 'all' : no matching overloaded function found 
+ERROR: 0:20: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_e3e028() {
+  bvec4 arg_0 = bvec4(true);
+  bvec4 arg_1 = bvec4(true);
+  bvec4 arg_2 = bvec4(true);
+  bvec4 v_1 = arg_0;
+  bvec4 v_2 = arg_1;
+  bvec4 v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bool v_5 = ((v_3.y) ? (v_2.y) : (v_1.y));
+  bool v_6 = ((v_3.z) ? (v_2.z) : (v_1.z));
+  bvec4 res = bvec4(v_4, v_5, v_6, ((v_3.w) ? (v_2.w) : (v_1.w)));
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_e3e028();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:18: 'all' : no matching overloaded function found 
+ERROR: 0:18: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_e3e028() {
+  bvec4 arg_0 = bvec4(true);
+  bvec4 arg_1 = bvec4(true);
+  bvec4 arg_2 = bvec4(true);
+  bvec4 v = arg_0;
+  bvec4 v_1 = arg_1;
+  bvec4 v_2 = arg_2;
+  bool v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  bool v_4 = ((v_2.y) ? (v_1.y) : (v.y));
+  bool v_5 = ((v_2.z) ? (v_1.z) : (v.z));
+  bvec4 res = bvec4(v_3, v_4, v_5, ((v_2.w) ? (v_1.w) : (v.w)));
+  return ((all((res == bvec4(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_e3e028();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_6 = vertex_main_inner();
+  gl_Position = v_6.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_6.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: 'all' : no matching overloaded function found 
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.ir.glsl
index f297654..9f93d8c 100644
--- a/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.ir.glsl
@@ -1,11 +1,102 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_fb7e53() {
+  bvec2 arg_0 = bvec2(true);
+  bvec2 arg_1 = bvec2(true);
+  bool arg_2 = true;
+  bvec2 v_1 = arg_0;
+  bvec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bvec2 res = bvec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+void main() {
+  v.tint_symbol = select_fb7e53();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:16: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  int tint_symbol;
+} v;
+int select_fb7e53() {
+  bvec2 arg_0 = bvec2(true);
+  bvec2 arg_1 = bvec2(true);
+  bool arg_2 = true;
+  bvec2 v_1 = arg_0;
+  bvec2 v_2 = arg_1;
+  bool v_3 = arg_2;
+  bool v_4 = ((v_3.x) ? (v_2.x) : (v_1.x));
+  bvec2 res = bvec2(v_4, ((v_3.y) ? (v_2.y) : (v_1.y)));
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = select_fb7e53();
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  int prevent_dce;
+};
+
+layout(location = 0) flat out int vertex_main_loc0_Output;
+int select_fb7e53() {
+  bvec2 arg_0 = bvec2(true);
+  bvec2 arg_1 = bvec2(true);
+  bool arg_2 = true;
+  bvec2 v = arg_0;
+  bvec2 v_1 = arg_1;
+  bool v_2 = arg_2;
+  bool v_3 = ((v_2.x) ? (v_1.x) : (v.x));
+  bvec2 res = bvec2(v_3, ((v_2.y) ? (v_1.y) : (v.y)));
+  return ((all((res == bvec2(false)))) ? (1) : (0));
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = select_fb7e53();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_4 = vertex_main_inner();
+  gl_Position = v_4.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_4.prevent_dce;
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:17: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:17: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/0dd12a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/1280c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/1eb429.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/225207.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/22d041.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/28db2c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/2ab40a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/3854ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/6587ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/7d1215.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/8f4c15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/b61df7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/ba53f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/cae1ed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/dcf73f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.glsl
index 7b8b412..553e20d 100644
--- a/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAdd/fbc357.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.glsl
index 586f7f0..59d4137 100644
--- a/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAll/c962bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAll
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAll
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/1877b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/376802.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/4adc72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/4df632.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/97655b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/ad0cd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/c6fc92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl
index 92f1cbc..3b171b0 100644
--- a/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAnd/d2c9a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAnd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.glsl
index 7b0ac8e..03b76a1 100644
--- a/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupAny/cddda0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAny
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupAny
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.glsl
index f82dbfc..9a2f158 100644
--- a/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBallot/1a8251.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBallot
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBallot
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/02f329.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/07e2d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/08beca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/0f44e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/13f36c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/1d79c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/279027.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/2b59c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/34ae44.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/34fa3d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/3e6879.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/41e5d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/49de94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/4a4334.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/5196c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/6290a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/719ad6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/727609.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/838c78.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/867093.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/8855b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/912ff5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/9ccdca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/a279d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/a3b3e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/b7e93b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/c36fe1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/cd7aa1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/e275c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/e4dd1a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/f637f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl
index fffdc3a..7919de7 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcast/fa6810.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0538e1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/0e58ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/151e52.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/1d9530.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5c6962.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/5e5b6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/612d6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/61f177.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/6945f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/705aad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/85b351.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/8ae580.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9a1bdc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/9dccee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/a11307.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl
index c513220..74ea49a 100644
--- a/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupBroadcastFirst/e820d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupBroadcastFirst
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.glsl
index 9318e86..2abea21 100644
--- a/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupElect/3943d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupElect
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupElect
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/01de08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/0ff95a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/406ab4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/41cfde.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/42684c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/48acea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4a1568.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/4c8024.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/71ad0f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/95e984.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/967e38.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/b0c261.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/c08160.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/e58e23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/ec300f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl
index 0a2d6e3..944c066 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveAdd/f0f712.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveAdd
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/000b92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/019660.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/0a04d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/13ba26.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/25d1b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/4525a3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/6f431e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/7b5f57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/87f23e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/98b2e4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/a07956.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/a23002.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/d1d490.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/dc51f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/e88d1c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl
index b5c358a..96111c3 100644
--- a/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupExclusiveMul/f039f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupExclusiveMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/0b0375.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/15ccbf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/1a1a5f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/1fc846.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/23f502.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/33e339.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/4ea90e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/5611a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/6c913e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/7c934c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/7e81ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/932164.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/a3afe3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/a3d5f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/b58cbf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.glsl
index 16bc154..d4626220 100644
--- a/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMax/b8fb0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMax
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/030ad6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/0bc13a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/1de104.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/2493ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/2d8828.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/337a21.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/7def0a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/82ef23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/836960.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/8bb8c1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/8ffadc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/a96a2e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/bbd9b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/c6da7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/cd3b9d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.glsl
index 1e5a191..bed894a 100644
--- a/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMin/d85be6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMin
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/0de9d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/2941a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/3fe886.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/4f8ee6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/53aee2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/5a8c86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/66c813.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/6aaaf3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/93eccd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/d584a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/dc672a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/dd1333.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/f2ac5b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/f78398.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/fa781b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.glsl
index 768fd24..15d8e86 100644
--- a/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupMul/fab258.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupMul
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/03343f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/0bc264.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/3f60e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/4d4eb0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/663a21.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/aa74f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/ae58b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.glsl
index 53914c7..3a61197 100644
--- a/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupOr/f915e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupOr
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/030422.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/1f664c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/21f083.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/2ee993.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/323416.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/4752bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/4cbb69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/4f5711.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/54f328.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/5dfeab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/5ef5a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/647034.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/7ba2d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/7c5d64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/7d7b1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/821df9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/824702.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/84f261.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/85587b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/8890a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/8bfbcd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/8c3fd2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/aa1d5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/b0f28d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/b4bbb7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/bbb06c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/d4a772.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/d9ff67.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/e13c81.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/e854d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/f194f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl
index 9b1c4ec..b39cfe8 100644
--- a/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffle/fb4ab9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffle
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/10eb45.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/1b530f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/257ff0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/313d9b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/57b1e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/5d8b9f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/63fdb0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/642789.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/7a0cf5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/7f8886.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/9c6714.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/b41899.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/c9f1c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d269eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d46304.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl
index 063f2db..1a37434 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleDown/d90c2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleDown
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/0990cd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/1bb93f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/23c7ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/3242a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/33d495.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/3e609f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/58de69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/868e52.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/87c9d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/88eb07.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/8a63f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/a2075a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/abaea0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/b58804.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/bbf7f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl
index f8cf454..1236db1 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleUp/db5bcb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleUp
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/071aa0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/08f588.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1d36b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1e247f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/1f2590.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/2e033d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/445e83.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/7435fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/80b6e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/9f945a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/bdddba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/c88290.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/caa816.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/d224ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/e3c10b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl
index 4bdd94b..78424bc 100644
--- a/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupShuffleXor/f7b453.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupShuffleXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/468721.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/473de8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/694b17.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/7750d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/7f6672.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/83b1f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/9c6e73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.glsl
index 5362511..74f70ac 100644
--- a/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/subgroupXor/9d77e4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: subgroupXor
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/00229f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/00229f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/00229f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/00229f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/00348c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/00348c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/00348c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/00348c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/01e21e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/01e21e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/01e21e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/01e21e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/01edb1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/01edb1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/01edb1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/01edb1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/022903.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/022903.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/022903.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/022903.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0276ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0276ec.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0276ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0276ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/029589.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/029589.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/029589.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/029589.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0329b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0329b0.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0329b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0329b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/033195.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/033195.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/033195.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/033195.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/033ea7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/033ea7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/033ea7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/033ea7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/038847.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/038847.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/038847.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/038847.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/03f81e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/03f81e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/03f81e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/03f81e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/07f1ba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/07f1ba.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/07f1ba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/07f1ba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/088918.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/088918.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/088918.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/088918.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0890c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0890c6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0890c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0890c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/08e371.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/09140b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/09140b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/09140b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/09140b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0973c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0973c9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0973c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0973c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0baa0d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0baa0d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0baa0d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0baa0d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0c0b0c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0c0b0c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0c0b0c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0c0b0c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0d4a7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0d4a7c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0d4a7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0d4a7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0de70c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0de70c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0de70c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0de70c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/0ff9a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/0ff9a4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/0ff9a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/0ff9a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/135176.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/135176.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/135176.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/135176.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/13f8db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/13f8db.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/13f8db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/13f8db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/1417dd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/1417dd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/1417dd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/1417dd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/15aa17.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/15aa17.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/15aa17.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/15aa17.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/15b577.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/15b577.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/15b577.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/15b577.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/18160d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/18160d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/18160d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/18160d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/18f19f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/18f19f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/18f19f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/18f19f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/1a2be7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/1a2be7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/1a2be7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/1a2be7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/1b720f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/1b720f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/1b720f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/1b720f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/1bc428.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/1bc428.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/1bc428.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/1bc428.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/1bd78c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/1bd78c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/1bd78c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/1bd78c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/1e4024.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/1e4024.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/1e4024.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/1e4024.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/20eaad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/20eaad.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/20eaad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/20eaad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/20ecef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/20ecef.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/20ecef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/20ecef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/212362.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/212362.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/212362.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/212362.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/224113.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/224113.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/224113.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/224113.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/22b5b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/22b5b6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/22b5b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/22b5b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/24db07.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/24db07.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/24db07.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/24db07.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/25d284.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/25d284.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/25d284.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/25d284.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/2674d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/2674d8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/2674d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/2674d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/268ddb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/268ddb.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/268ddb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/268ddb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/26d6bf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/26d6bf.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/26d6bf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/26d6bf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/282978.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/282978.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/282978.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/282978.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/283b58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/283b58.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/283b58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/283b58.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/284c27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/2a58b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/2a58b7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/2a58b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/2a58b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/2bafdf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/2bafdf.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/2bafdf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/2bafdf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/2dc5c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/2dc5c5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/2dc5c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/2dc5c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/2e443d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/2e443d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/2e443d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/2e443d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/2fd2a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/2fd2a4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/2fd2a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/2fd2a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/2ff32a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/2ff32a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/2ff32a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/2ff32a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/305dd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/305dd5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/305dd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/305dd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/31799c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/31799c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/31799c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/31799c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/31d00d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/31d00d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/31d00d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/31d00d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/325338.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/325338.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/325338.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/325338.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/346fee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/346fee.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/346fee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/346fee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/35a7e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/35a7e5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/35a7e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/35a7e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/35ee69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/35ee69.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/35ee69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/35ee69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/36eeb7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/36eeb7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/36eeb7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/36eeb7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/378a65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/378a65.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/378a65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/378a65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/382b16.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/382b16.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/382b16.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/382b16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3834f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3834f8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3834f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3834f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/38c9ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/38c9ca.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/38c9ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/38c9ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3963d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3963d0.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3963d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3963d0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/397dab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/397dab.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/397dab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/397dab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3a5bb1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3a5bb1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3a5bb1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3a5bb1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3a7b69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3a7b69.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3a7b69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3a7b69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3af3e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3af3e7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3af3e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3af3e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3b38f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3b38f6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3b38f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3b38f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3baab5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3baab5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3baab5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3baab5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3bf12a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3bf12a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3bf12a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3bf12a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3c66f0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3c66f0.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3c66f0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3c66f0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3f3474.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3f3474.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3f3474.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3f3474.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3fc3dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3fc3dc.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3fc3dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3fc3dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/3ff0a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/3ff0a5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/3ff0a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/3ff0a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/40c671.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/40c671.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/40c671.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/40c671.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/40da20.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/40da20.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/40da20.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/40da20.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/40ecf4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/40ecf4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/40ecf4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/40ecf4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/41545f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/41545f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/41545f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/41545f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/423519.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/423519.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/423519.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/423519.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/427f92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/427f92.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/427f92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/427f92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/439651.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/439651.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/439651.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/439651.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/445376.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/445376.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/445376.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/445376.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/44b358.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/44b358.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/44b358.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/44b358.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/452fc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/452fc1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/452fc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/452fc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/46f0fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/46f0fc.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/46f0fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/46f0fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4716a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4716a4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4716a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4716a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/475c10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/475c10.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/475c10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/475c10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/49a067.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/49a067.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/49a067.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/49a067.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4acec7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4acec7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4acec7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4acec7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4b26ef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4b26ef.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4b26ef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4b26ef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4be71b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4be71b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4be71b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4be71b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4d1f71.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4d27b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4d27b3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4d27b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4d27b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4df14c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4df14c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4df14c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4df14c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/4e540a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/4e540a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/4e540a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/4e540a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/528c0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/528c0e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/528c0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/528c0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/52cf60.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/534ef8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/534ef8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/534ef8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/534ef8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/542c62.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/542c62.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/542c62.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/542c62.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/55fdeb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/55fdeb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureDimensions/55fdeb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/55fdeb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/5703b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/5703b3.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureDimensions/5703b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/5703b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/578e75.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/578e75.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/578e75.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/578e75.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/579eee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/579eee.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/579eee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/579eee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/58a82d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/58a82d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/58a82d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/58a82d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/591981.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/591981.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/591981.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/591981.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/599ab5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/599ab5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/599ab5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/599ab5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/5df042.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/5df042.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/5df042.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/5df042.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/607979.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/607979.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/607979.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/607979.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/609d34.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/609d34.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/609d34.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/609d34.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/617dc8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/617dc8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/617dc8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/617dc8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/62cb5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/62cb5a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/62cb5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/62cb5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/62e7ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/62e7ae.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/62e7ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/62e7ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/64dc74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/64dc74.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/64dc74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/64dc74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/674058.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/674058.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/674058.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/674058.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/6dae40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/6dbef4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/6e6c7a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/6e6c7a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/6e6c7a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/6e6c7a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/6e72c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/6e72c5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/6e72c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/6e72c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/6f1b5d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/6f1b5d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/6f1b5d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/6f1b5d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/709357.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/709357.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/709357.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/709357.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/70dd33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/70dd33.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/70dd33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/70dd33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/715917.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/715917.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureDimensions/715917.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/715917.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7228de.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7228de.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7228de.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7228de.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7327fa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7327fa.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7327fa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7327fa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/740e7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/740e7c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/740e7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/740e7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/756031.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/756031.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/756031.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/756031.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/756304.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/756304.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/756304.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/756304.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/790e57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/790e57.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/790e57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/790e57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/795fbb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/795fbb.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/795fbb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/795fbb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/797c30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/797c30.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/797c30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/797c30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/79d168.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/79d168.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/79d168.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/79d168.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7a3890.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7a3890.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7a3890.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7a3890.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7a9e30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7a9e30.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7a9e30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7a9e30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7c753b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7c753b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7c753b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7c753b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7c7c64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7c7c64.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7c7c64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7c7c64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7d8439.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7ea4b5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7ea4b5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7ea4b5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7ea4b5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/7edb05.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/7edb05.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/7edb05.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/7edb05.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8243a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8243a1.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8243a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8243a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/835f90.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/835f90.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/835f90.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/835f90.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/841ebe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/841ebe.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/841ebe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/841ebe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/84f363.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/84f363.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/84f363.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/84f363.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/867ead.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/867ead.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/867ead.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/867ead.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/879b73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/879b73.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/879b73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/879b73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/87b42d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/87b42d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/87b42d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/87b42d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/881dd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/881dd4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/881dd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/881dd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8a2b17.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8a2b17.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8a2b17.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8a2b17.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8a35f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8a35f9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8a35f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8a35f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8af728.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8af728.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8af728.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8af728.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8b9906.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8b9906.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8b9906.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8b9906.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8bd369.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8bd369.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8bd369.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8bd369.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8e15f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8e5de6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8e5de6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8e5de6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8e5de6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/8efd47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8efd47.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8efd47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8efd47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/902179.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/902179.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/902179.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/902179.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/904b0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/904b0f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/904b0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/904b0f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/90dd74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/90dd74.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/90dd74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/90dd74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/91e3b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/91e3b4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/91e3b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/91e3b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/920006.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/920006.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/920006.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/920006.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/92552e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/92552e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/92552e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/92552e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9573f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9573f3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9573f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9573f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/965645.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/965645.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/965645.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/965645.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/98b2d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/98b2d3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/98b2d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/98b2d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/991ea9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/991ea9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/991ea9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/991ea9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9944d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9944d5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9944d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9944d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9b223b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9b223b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9b223b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9b223b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9baf27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9baf27.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9baf27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9baf27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9c7a00.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9c7a00.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9c7a00.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9c7a00.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9cd4ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9cd4ca.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9cd4ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9cd4ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9cd8ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9cd8ad.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9cd8ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9cd8ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9d0bac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9d0bac.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9d0bac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9d0bac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9d68b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9d68b8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9d68b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9d68b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9dc27a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9e0794.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9e0794.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9e0794.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9e0794.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/9fcc3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9fcc3b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9fcc3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9fcc3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a105a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a105a5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a105a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a105a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a14386.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a14386.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a14386.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a14386.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a1598a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a1598a.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a1598a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a1598a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a20ba2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a20ba2.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a20ba2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a20ba2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a25d9b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a25d9b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a25d9b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a25d9b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a2ba5e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a2ba5e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a2ba5e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a2ba5e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a3ea91.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a3ea91.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a3ea91.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a3ea91.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a48049.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a48049.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a48049.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a48049.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a4cd56.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a4cd56.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a4cd56.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a4cd56.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a65776.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a65776.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a65776.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a65776.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/a7ae4c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/a7ae4c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/a7ae4c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/a7ae4c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/aa4353.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/aa4353.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/aa4353.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/aa4353.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/aac604.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/aac604.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/aac604.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/aac604.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ad7d3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ad7d3b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ad7d3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ad7d3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ae4595.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ae4595.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ae4595.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ae4595.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ae75a7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ae75a7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ae75a7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ae75a7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/af46ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/af46ab.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/af46ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/af46ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b16352.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b16352.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b16352.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b16352.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b284b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b284b8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b284b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b284b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b3ab5e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b3ab5e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b3ab5e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b3ab5e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b46d97.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b46d97.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b46d97.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b46d97.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b51345.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b51345.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b51345.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b51345.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b56112.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b56112.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b56112.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b56112.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b5ba03.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b5ba03.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b5ba03.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b5ba03.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b5d68e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b5d68e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b5d68e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b5d68e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b6bbf4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b6bbf4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b6bbf4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b6bbf4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b8287f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b8287f.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b8287f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b8287f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/b9e7ef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/b9e7ef.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/b9e7ef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/b9e7ef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/bb95d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/bb95d9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/bb95d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/bb95d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/bbe285.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/bbe285.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/bbe285.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/bbe285.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/bc96f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/bc96f6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/bc96f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/bc96f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/bd94c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/bd94c8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/bd94c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/bd94c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/bec716.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/bec716.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/bec716.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/bec716.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/bf9170.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/bf9170.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/bf9170.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/bf9170.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c1189e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c1189e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c1189e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c1189e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c1dbf6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c1dbf6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c1dbf6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c1dbf6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c27466.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c27466.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c27466.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c27466.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c2cdd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c2cdd3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c2cdd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c2cdd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c44fc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c44fc1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c44fc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c44fc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c5a36e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c5a36e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c5a36e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c5a36e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c6b44c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c6b44c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c6b44c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c6b44c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c6b985.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c6b985.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c6b985.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c6b985.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c7ea63.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c7ea63.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c7ea63.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c7ea63.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c82420.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c82420.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c82420.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c82420.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/c871f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/c871f3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/c871f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/c871f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ca10cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ca10cc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ca10cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ca10cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/cad3b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/cad3b7.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/cad3b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/cad3b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/cc947b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/cc947b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/cc947b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/cc947b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/cd3033.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/cedabd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/cf2b50.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/cf2b50.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/cf2b50.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/cf2b50.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d0778e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d08a94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d08a94.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d08a94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d08a94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d3accd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d3accd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d3accd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d3accd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d44dd1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d44dd1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d44dd1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d44dd1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d63c28.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d63c28.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d63c28.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d63c28.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d6f3cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d6f3cf.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d6f3cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d6f3cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d8ba68.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d8ba68.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d8ba68.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d8ba68.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/d8f887.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d8f887.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d8f887.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d8f887.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/da30d2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/da30d2.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/da30d2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/da30d2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/daf0fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/daf0fe.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/daf0fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/daf0fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/db7131.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/db7131.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/db7131.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/db7131.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/dc83ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/dc83ce.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/dc83ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/dc83ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/de03c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/de03c6.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/de03c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/de03c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/deb3c0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/deb3c0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/deb3c0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/deb3c0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/dee461.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/dee461.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/dee461.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/dee461.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/dfdc32.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/dfdc32.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/dfdc32.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/dfdc32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e122fe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e122fe.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e122fe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e122fe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e18a8b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e18a8b.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e18a8b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e18a8b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e4bfd2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e4bfd2.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e4bfd2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e4bfd2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e4e310.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e4e310.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e4e310.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e4e310.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e4f021.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e4f021.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e4f021.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e4f021.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e50eb8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e50eb8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e50eb8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e50eb8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e5a203.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e5a203.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e5a203.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e5a203.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e738f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e738f4.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e738f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e738f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e824b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e824b6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e824b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e824b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/e99308.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/e99308.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/e99308.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/e99308.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ea066c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ea066c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ea066c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ea066c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ea25bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ea25bc.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ea25bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ea25bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/eafe19.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/eafe19.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/eafe19.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/eafe19.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/eb03b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/eb03b1.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/eb03b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/eb03b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/eb10d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/eb10d6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/eb10d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/eb10d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/eb1249.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/eb1249.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/eb1249.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/eb1249.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/eb9f4d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/eb9f4d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/eb9f4d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/eb9f4d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ed1030.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ed1030.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ed1030.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ed1030.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/ef2e58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/ef2e58.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/ef2e58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/ef2e58.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f17acd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f17acd.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f17acd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f17acd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f264a3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f264a3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f264a3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f264a3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f3a2ac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f3a2ac.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f3a2ac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f3a2ac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f406ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f406ff.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f406ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f406ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f4321c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f4321c.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f4321c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f4321c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f48886.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f48886.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f48886.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f48886.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f4e469.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f4e469.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f4e469.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f4e469.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f55a94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f55a94.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f55a94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f55a94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f626b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f626b3.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f626b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f626b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f7bac5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f7bac5.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f7bac5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f7bac5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f8522e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f8522e.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f8522e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f8522e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f93ece.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f93ece.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f93ece.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f93ece.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/f94e55.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/f94e55.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureDimensions/f94e55.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/f94e55.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl
index d0115e4..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/fdbae8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/fdbae8.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/fdbae8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/fdbae8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureDimensions/fdf6e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/fdf6e9.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/gen/var/textureDimensions/fdf6e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/fdf6e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/0166ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/0166ec.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/0166ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/0166ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/04fa78.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/04fa78.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/04fa78.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/04fa78.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/11b2db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/11b2db.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/11b2db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/11b2db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/17baac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/17baac.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/17baac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/17baac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/1bf0ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/1bf0ab.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/1bf0ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/1bf0ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/238ec4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/238ec4.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/238ec4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/238ec4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/24b0bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/24b0bd.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/24b0bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/24b0bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/269250.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/269250.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/269250.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/269250.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/2a4f40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/2a4f40.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/2a4f40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/2a4f40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/445793.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/445793.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/445793.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/445793.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/4e8ac5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/4e8ac5.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/4e8ac5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/4e8ac5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/59372a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/59372a.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/59372a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/59372a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/6b7b74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/6b7b74.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/6b7b74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/6b7b74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/788010.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/788010.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/788010.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/788010.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/7dd226.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/7dd226.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/7dd226.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/7dd226.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/829357.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/829357.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/829357.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/829357.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/831549.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/831549.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/831549.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/831549.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/8578bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/8578bc.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/8578bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/8578bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/89680f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/89680f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/89680f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/89680f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/8fae00.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/8fae00.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/8fae00.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/8fae00.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/92ea47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/92ea47.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/92ea47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/92ea47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/986700.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/986700.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/986700.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/986700.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/9ab41e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/9ab41e.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/9ab41e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/9ab41e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/a0372b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/a0372b.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/a0372b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/a0372b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/a68027.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/a68027.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/a68027.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/a68027.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/aaf6bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/aaf6bd.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/aaf6bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/aaf6bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/bd33b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/bd33b6.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/bd33b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/bd33b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/be276f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/be276f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/be276f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/be276f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/ccadde.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/ccadde.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/ccadde.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/ccadde.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/ce5578.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/ce5578.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/ce5578.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/ce5578.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/cf9112.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/cf9112.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/cf9112.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/cf9112.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/d4b5c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/d4b5c6.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/d4b5c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/d4b5c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/d6507c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/d6507c.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/d6507c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/d6507c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/d8e958.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/d8e958.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/d8e958.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/d8e958.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/d98d59.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/d98d59.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/d98d59.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/d98d59.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/dc6661.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/dc6661.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/dc6661.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/dc6661.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/e2acac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/e2acac.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/e2acac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/e2acac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/e3165f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/e3165f.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/e3165f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/e3165f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/ea8eb4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/ea8eb4.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/ea8eb4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/ea8eb4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/144a9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/144a9a.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/144a9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/144a9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/2e409c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/2e409c.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/2e409c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/2e409c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/b5bc43.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.ir.glsl
index b771681..a7be7e4 100644
--- a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGatherCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/012e11.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/019da0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/019da0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/019da0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/019da0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/01cd01.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/01cd01.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/01cd01.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/01cd01.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/026217.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/026217.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/026217.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/026217.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/02c48d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/02ef1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/02ef1f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/02ef1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/02ef1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/03e03e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/045ec9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/045ec9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/045ec9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/045ec9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/04b911.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/04b911.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/04b911.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/04b911.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/050c33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/054350.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/0674b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/0674b1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/0674b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/0674b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/06ac37.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/06ac37.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/06ac37.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/06ac37.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/072e26.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/072e26.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/072e26.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/072e26.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/078bc4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/078bc4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/078bc4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/078bc4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/0b515a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/0cb698.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/0cb698.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/0cb698.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/0cb698.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/10db82.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/10db82.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/10db82.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/10db82.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/126466.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/127e12.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/127e12.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/127e12.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/127e12.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1373dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1373dc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1373dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1373dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/13d539.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/13d539.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/13d539.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/13d539.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/13e90c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/13e90c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/13e90c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/13e90c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/143d84.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1471b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1471b8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1471b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1471b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/14cc4c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1561a7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1561a7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1561a7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1561a7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/15e675.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/15e675.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/15e675.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/15e675.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1619bf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1619bf.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1619bf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1619bf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/168dc8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/168dc8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/168dc8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/168dc8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/170593.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/17095b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/18ac11.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/19d6be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/19d6be.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/19d6be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/19d6be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/19e5ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/19e5ca.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/19e5ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/19e5ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1a062f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1a062f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1a062f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1a062f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1a8452.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1a8452.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1a8452.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1a8452.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1aa950.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1aa950.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1aa950.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1aa950.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1b051f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1b051f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1b051f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1b051f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1b4332.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1b4332.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1b4332.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1b4332.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1bc5ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1bfdfb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1bfdfb.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1bfdfb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1bfdfb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1c562a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1c562a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1c562a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1c562a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1d43ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1e6baa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1eb93f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/1fde63.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/1fde63.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/1fde63.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/1fde63.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/206a08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/206a08.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/206a08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/206a08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/20fa2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/216c37.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/216c37.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/216c37.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/216c37.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/21d1c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/21d1c4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/21d1c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/21d1c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/223246.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/223246.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/223246.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/223246.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/22e963.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/22e963.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/22e963.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/22e963.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/23007a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2363be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2363be.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2363be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2363be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/23ff89.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/23ff89.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/23ff89.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/23ff89.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/25b67f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/26b8f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/26d7f1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/272e7a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/272e7a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/272e7a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/272e7a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/276643.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/276643.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/276643.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/276643.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/276a2c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/276a2c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/276a2c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/276a2c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2887d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2887d7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2887d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2887d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2a82d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2a82d9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2a82d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2a82d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2ae485.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2ae485.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2ae485.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2ae485.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2c72ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2c72ae.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2c72ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2c72ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2cee30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2d479c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2d479c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2d479c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2d479c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2d6cf7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2dbfc2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2e09aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2e09aa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2e09aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2e09aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2e3552.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2e3552.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/2e3552.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2e3552.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/2eaf31.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/313c73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/313c73.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/313c73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/313c73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/31db4b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/31db4b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/31db4b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/31db4b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/321210.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/321210.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/321210.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/321210.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/32a7b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/33d3aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/33d3aa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/33d3aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/33d3aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/348827.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/348827.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/348827.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/348827.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/34d97c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/35a5e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/35a5e2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/35a5e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/35a5e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/35d464.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/35d464.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/35d464.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/35d464.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/374351.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/374351.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/374351.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/374351.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/388688.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/388688.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/388688.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/388688.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/38f8ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/38f8ab.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/38f8ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/38f8ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/39016c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/395447.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/39ef40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/39ef40.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/39ef40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/39ef40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3a2350.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3aea13.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3aea13.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3aea13.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3aea13.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3bbc2b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3bbc2b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3bbc2b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3bbc2b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3c0d9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3c0d9e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3c0d9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3c0d9e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3c9587.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3c9587.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3c9587.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3c9587.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3c96e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3c96e8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3c96e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3c96e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3cfb9c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3d001b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3d001b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3d001b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3d001b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3d3fd1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3d3fd1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3d3fd1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3d3fd1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3d9c90.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3d9c90.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3d9c90.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3d9c90.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3da3ed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3da3ed.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3da3ed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3da3ed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3e16a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3e16a8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/3e16a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3e16a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/3e5f6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/3e5f6a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/3e5f6a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/3e5f6a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/40ee8b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4212a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/424afd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/42a631.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/43484a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/43484a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/43484a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/43484a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/439e2a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/439e2a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/439e2a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/439e2a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/43cd86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/44c826.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4542ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/454347.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/454347.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/454347.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/454347.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4638a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4638a0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4638a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4638a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/469912.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/46a93f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/46a93f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/46a93f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/46a93f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/46dbf5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/46dbf5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/46dbf5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/46dbf5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/473d3e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/47e818.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/47e818.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/47e818.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/47e818.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/482627.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4951bb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4951bb.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4951bb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4951bb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/49f76f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/49f76f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/49f76f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/49f76f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4a5c55.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4acb64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4acb64.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4acb64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4acb64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4c15b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4c1a1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4c423f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4c423f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4c423f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4c423f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4c67be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4c67be.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4c67be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4c67be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4ccf9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4cdca5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4cdca5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4cdca5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4cdca5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4db25c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4db25c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4db25c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4db25c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4e2c5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4f5496.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4f5496.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4f5496.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4f5496.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4f90bb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/505aa2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/505aa2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/505aa2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/505aa2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/50915c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/50915c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/50915c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/50915c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5154e1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/519ab5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/519ab5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/519ab5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/519ab5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/53378a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/53941c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/53e142.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/53e142.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/53e142.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/53e142.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/54a59b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/54a59b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/54a59b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/54a59b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/54fb38.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/55e745.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/55e745.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/55e745.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/55e745.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/560573.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/560573.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/560573.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/560573.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/56a000.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/582015.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/582015.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/582015.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/582015.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/589eaa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/589eaa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/589eaa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/589eaa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5abbf2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5b0f5b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5b4947.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5bb7fb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5c69f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5cd3fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5cd3fc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5cd3fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5cd3fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5cee3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5cee3b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5cee3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5cee3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5d0a2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5d0a2f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5d0a2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5d0a2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5d4042.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5d4042.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5d4042.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5d4042.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5dd4c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5dd4c7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5dd4c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5dd4c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5e17a7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5e1843.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5e8d3f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5e8d3f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5e8d3f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5e8d3f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5ed6ad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5ed6ad.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5ed6ad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5ed6ad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5f4473.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5f4473.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5f4473.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5f4473.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/5feb4d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/5feb4d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/5feb4d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/5feb4d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/61e2e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/620caa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/622278.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/62d125.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/62d125.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/62d125.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/62d125.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/62d1de.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/62d1de.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/62d1de.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/62d1de.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/639962.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/639962.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/639962.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/639962.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/63be18.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/64c372.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/656d76.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/656d76.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/656d76.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/656d76.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/65a4d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/65a4d0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/65a4d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/65a4d0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/666010.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6678b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6678b6.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6678b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6678b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/66be47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/66be47.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/66be47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/66be47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/67d826.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/67d826.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/67d826.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/67d826.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/67edca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/67edca.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/67edca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/67edca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/68d273.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6925bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6925bc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6925bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6925bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/69fee5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/69fee5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/69fee5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/69fee5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6a6871.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6b77d4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6b77d4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6b77d4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6b77d4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6b8ba6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6ba9ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6bf3e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6bf4b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6bf4b7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6bf4b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6bf4b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6d1fb4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6d1fb4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6d1fb4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6d1fb4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6d376a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6d376a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6d376a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6d376a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6d7bb5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6e903f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6f0370.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6f0370.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6f0370.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6f0370.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6f0ea8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6f1750.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6f1750.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/6f1750.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6f1750.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/6f8927.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/714471.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/714471.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/714471.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/714471.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/72bb3c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/72bb3c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/72bb3c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/72bb3c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/72c9c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/72c9c3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/72c9c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/72c9c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/742f1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/749704.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/749704.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/749704.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/749704.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/74a387.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/773c46.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/789045.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/789045.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/789045.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/789045.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7ab4df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7ab4df.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/7ab4df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7ab4df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7b63e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7b63e0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/7b63e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7b63e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7bee94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7bee94.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/7bee94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7bee94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7dab57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7dd3d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7dd3d5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/7dd3d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7dd3d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7e5cbc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/7fd822.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/7fd822.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/7fd822.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/7fd822.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/80dae1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/83162f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/83cea4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/83cea4.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/83cea4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/83cea4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/83d6e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/83d6e3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/83d6e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/83d6e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/848d85.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/84a438.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/84c728.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/84c728.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/84c728.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/84c728.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/84dee1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/84dee1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/84dee1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/84dee1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8527b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8527b1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8527b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8527b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/862833.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/862833.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/862833.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/862833.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/878e24.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/87f0a6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/881349.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/897cf3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/897cf3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/897cf3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/897cf3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8a9988.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8b62fb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8bf8c2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8bf8c2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8bf8c2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8bf8c2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8c6176.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8ccbe3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8ccbe3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8ccbe3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8ccbe3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8d64c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8db0ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8db0ce.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8db0ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8db0ce.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8e5032.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8e68c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8fc29b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/8ff033.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8ff033.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/8ff033.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8ff033.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/91ede5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9242e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/92dd61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/92dd61.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/92dd61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/92dd61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/92eb1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/92eb1f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/92eb1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/92eb1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/936952.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/936952.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/936952.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/936952.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/93f23e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/93f23e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/93f23e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/93f23e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/947107.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/947107.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/947107.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/947107.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/96efd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/96efd5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/96efd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/96efd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/970308.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/970308.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/970308.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/970308.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9885b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9885b0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9885b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9885b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/99d8fa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/99d8fa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/99d8fa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/99d8fa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9a7c90.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9a7c90.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9a7c90.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9a7c90.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9a8c1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9a8c1e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9a8c1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9a8c1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9aa733.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9aa733.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9aa733.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9aa733.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9b5343.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9b5343.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9b5343.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9b5343.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9c2376.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9c2376.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9c2376.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9c2376.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9c2a14.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9cf7df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9d70e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9d70e9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9d70e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9d70e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9de6f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9de6f5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9de6f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9de6f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9ed19e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9ed19e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9ed19e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9ed19e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9fa9fd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9fbfd9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9fbfd9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/9fbfd9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9fbfd9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/9fd7be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a03af1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a03af1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a03af1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a03af1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a24be1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a24be1.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a24be1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a24be1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a2b3f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a3733f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a3f122.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a548a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a54e11.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a5c4e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a5e0a5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a5e0a5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a5e0a5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a5e0a5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a64b1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a6a85a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a6a85a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a6a85a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a6a85a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a6b61d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a6b61d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a6b61d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a6b61d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a7444c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a7444c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a7444c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a7444c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a7a3c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a7a3c3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a7a3c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a7a3c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a7bcb4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a7c171.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a8549b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a8549b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a8549b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a8549b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a92b18.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aa2579.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aa6130.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/aa8a0d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/aa8a0d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/aa8a0d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aa8a0d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/aae7f6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/aae7f6.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/aae7f6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aae7f6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aae9c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/acf22f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ad551e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ad551e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ad551e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ad551e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/aeae73.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/aeae73.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/aeae73.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aeae73.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/aebc09.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/aebc09.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/aebc09.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/aebc09.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/af0507.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b1bf79.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b1bf79.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b1bf79.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b1bf79.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b1ca35.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b24d27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b24d27.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b24d27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b24d27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b25644.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b25644.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b25644.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b25644.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b27c33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b27c33.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b27c33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b27c33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b29f71.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b29f71.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b29f71.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b29f71.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b4d6c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b58c6d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b58c6d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b58c6d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b58c6d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b60a86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b60db7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b6ba5d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b6ba5d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b6ba5d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b6ba5d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b6c458.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b6c458.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b6c458.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b6c458.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b73f6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b73f6b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b73f6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b73f6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b75c8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b75c8f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b75c8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b75c8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b75d4a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b75d4a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b75d4a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b75d4a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b7f74f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b7f74f.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/b7f74f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b7f74f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b80e7e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b80e7e.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b80e7e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b80e7e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/b94d15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/b94d15.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/b94d15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/b94d15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ba023a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ba023a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ba023a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ba023a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ba74b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/babdf3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bba04a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bbb762.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bc3201.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bc3201.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/bc3201.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bc3201.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bc882d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bc882d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/bc882d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bc882d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bcbb3c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bcbb3c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/bcbb3c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bcbb3c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bd990a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bdc67a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/bfd154.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/bfd154.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/bfd154.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/bfd154.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c02b74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c02b74.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c02b74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c02b74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c07013.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c07013.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c07013.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c07013.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c16e00.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c16e00.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c16e00.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c16e00.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c21b33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c21b33.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c21b33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c21b33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c2d09a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c2d09a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c2d09a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c2d09a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c40dcb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c40dcb.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c40dcb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c40dcb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c456bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c456bc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c456bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c456bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c5791b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c5791b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c5791b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c5791b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c5c86d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c66b20.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c66b20.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c66b20.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c66b20.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c7cbed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c7cbed.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c7cbed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c7cbed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c7e313.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c80691.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c80691.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c80691.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c80691.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c8ed19.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c98bf4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c9b083.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c9cc40.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c9cc40.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c9cc40.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c9cc40.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/c9f310.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/c9f310.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/c9f310.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/c9f310.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cac876.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cad5f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cad5f2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/cad5f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cad5f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cb57c2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cb57c2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/cb57c2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cb57c2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cdbcf6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cdccd2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cdd343.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cdd343.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/cdd343.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cdd343.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cddf6b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cec477.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cec477.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/cec477.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cec477.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/cece6c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/cece6c.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/cece6c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/cece6c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d02afc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d02afc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/d02afc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d02afc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d0e351.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d357bb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d357bb.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/d357bb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d357bb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d37a08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d3d8fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d41c72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d4df19.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d4df19.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/d4df19.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d4df19.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d5c48d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d5c48d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/d5c48d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d5c48d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d72de9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d7996a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d79c5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d80ff3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d81c57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d85d61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d85d61.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/d85d61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d85d61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d8617f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d8be5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/d91f37.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dab04f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/dbd554.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/dbd554.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/dbd554.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dbd554.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dd5859.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dd8776.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ddeed3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ddeed3.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ddeed3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ddeed3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/de5a0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/dee8e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/dee8e7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/dee8e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dee8e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/defd9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/dfdf3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/dfdf3b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/dfdf3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/dfdf3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e1c3cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e2292f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e2292f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e2292f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e2292f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e2b3a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e2d7da.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e33285.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e35f72.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e35f72.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e35f72.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e35f72.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e3b08b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e3b08b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e3b08b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e3b08b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e4051a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e4051a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/e4051a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e4051a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e59fdf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e65916.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e893d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e893d7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e893d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e893d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e92dd0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e92dd0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/e92dd0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e92dd0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e9eb65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ea2abd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ea2abd.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ea2abd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ea2abd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/eb573b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/eb573b.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/eb573b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/eb573b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ebfb92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ebfb92.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ebfb92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ebfb92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ecc823.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ecc823.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ecc823.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ecc823.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ed55a8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ee33c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ee33c5.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ee33c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ee33c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/eecf7d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ef2ec3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ef5405.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/efa787.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/efa787.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/efa787.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/efa787.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f0514a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f06b69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f06b69.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f06b69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f06b69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f0abad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f0abad.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f0abad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f0abad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f1c549.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f1c549.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f1c549.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f1c549.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f2a7ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f2a7ff.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f2a7ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f2a7ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f2bdd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f2bdd4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/f2bdd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f2bdd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f2c311.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f348d9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f348d9.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f348d9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f348d9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f35ac7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f35ac7.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f35ac7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f35ac7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f379e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f379e2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f379e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f379e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f56e6f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f56e6f.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f56e6f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f56e6f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f5aee2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f5aee2.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f5aee2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f5aee2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f5fbc6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f74bd8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f7f3bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f7f936.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f7f936.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f7f936.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f7f936.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f81792.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f81792.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f81792.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f81792.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f82eb2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f85291.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f85291.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f85291.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f85291.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl
index a475c65..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f92c2d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f92c2d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f92c2d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f92c2d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/f9eaaf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f9eaaf.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/f9eaaf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f9eaaf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fc47ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fc6d36.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fc6d36.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/fc6d36.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fc6d36.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fcd23d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fcd23d.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/fcd23d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fcd23d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fd6442.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fd6442.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/fd6442.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fd6442.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fd9606.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fdebd0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fdebd0.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/fdebd0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fdebd0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fe0565.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fe0565.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/fe0565.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fe0565.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fe222a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fe222a.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/fe222a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fe222a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/fe2c1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/feab99.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/feab99.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/feab99.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/feab99.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureLoad/ff1119.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ff1119.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/gen/var/textureLoad/ff1119.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ff1119.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/014a3b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/014a3b.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/014a3b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/014a3b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/071ebc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/071ebc.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/071ebc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/071ebc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/0856ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/0856ae.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/0856ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/0856ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/0ec222.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/0ec222.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/0ec222.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/0ec222.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/0fe8dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/17ccad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/17ccad.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/17ccad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/17ccad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl
index f4ea61b..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/24d572.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/24d572.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/24d572.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/24d572.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/26c9f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/26c9f9.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/26c9f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/26c9f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/2a48dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/2a48dc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/2a48dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/2a48dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/2d95ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/327d70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/327d70.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/327d70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/327d70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/32ca10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/32ca10.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/32ca10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/32ca10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/3465ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/3465ec.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/3465ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/3465ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/34cefa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/34cefa.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/34cefa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/34cefa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/3580ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/3580ab.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/3580ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/3580ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/379cc5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/379cc5.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/379cc5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/379cc5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/37bc8a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/37bc8a.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/37bc8a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/37bc8a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/380a60.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/380a60.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/380a60.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/380a60.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/3ad143.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/3ad143.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/3ad143.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/3ad143.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/3eff89.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/3eff89.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/3eff89.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/3eff89.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl
index f4ea61b..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/48ef47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/48ef47.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/48ef47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/48ef47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/4adaad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/4adaad.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/4adaad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/4adaad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/4c4333.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/4c4333.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/4c4333.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/4c4333.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/520086.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/520086.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/520086.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/520086.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/52dfc5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/52dfc5.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/52dfc5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/52dfc5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/54a654.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/54a654.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/54a654.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/54a654.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/555f67.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/555f67.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/555f67.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/555f67.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/59cc27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/59cc27.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/59cc27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/59cc27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/59eb57.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/59eb57.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/59eb57.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/59eb57.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/5ee8f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/5f20d1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/5f20d1.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/5f20d1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/5f20d1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/61bd23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/61bd23.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/61bd23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/61bd23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/622aa2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/622aa2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/622aa2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/622aa2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/6b4321.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/6b4321.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/6b4321.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/6b4321.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/6da0eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/6da0eb.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/6da0eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/6da0eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/77be7b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/77be7b.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/77be7b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/77be7b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/7895f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/7895f4.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/7895f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/7895f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/7f28cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/7f28cf.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/7f28cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/7f28cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/8356f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/8356f7.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/8356f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/8356f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/878dea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/878dea.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/878dea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/878dea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/87faad.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/87faad.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/87faad.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/87faad.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/8ac32a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/8ac32a.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/8ac32a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/8ac32a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/8bd987.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/8bd987.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/8bd987.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/8bd987.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/8dbf23.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/8dbf23.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/8dbf23.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/8dbf23.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/8e1bd0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/90b8cc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/9695c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/9695c6.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/9695c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/9695c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/98a9cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/98a9cf.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/98a9cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/98a9cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/9c60e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/9c60e3.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/9c60e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/9c60e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/a54655.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/a54655.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/a54655.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/a54655.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/a9d3f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/aac630.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/aac630.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/aac630.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/aac630.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/bf2f76.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/c1eca9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/c1eca9.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/c1eca9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/c1eca9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/d3e21f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/d3e21f.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/d3e21f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/d3e21f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/d3f655.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/d3f655.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/d3f655.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/d3f655.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/d75a0b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/d75a0b.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/d75a0b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/d75a0b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/de8087.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/de8087.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/de8087.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/de8087.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/e47aac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/e47aac.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/e47aac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/e47aac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLayers/f1783f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/f1783f.wgsl.expected.ir.glsl
index f4ea61b..c7310b2 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/f1783f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/f1783f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLayers
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/181090.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/181090.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/181090.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/181090.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/1a3fa9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/1a7fc3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/2267d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/2267d8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/2267d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/2267d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/24b2c6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/24b2c6.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/24b2c6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/24b2c6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/2bea6c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/2bea6c.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/2bea6c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/2bea6c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/2df1ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/2df1ab.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/2df1ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/2df1ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/46dbd8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/46dbd8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/46dbd8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/46dbd8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/60d9b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/60d9b8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/60d9b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/60d9b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/903920.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/903920.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/903920.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/903920.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/9a1a65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/9a1a65.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/9a1a65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/9a1a65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/adc783.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/adc783.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/adc783.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/adc783.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/ae911c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/ae911c.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/ae911c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/ae911c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/c386c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/c386c8.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/c386c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/c386c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/c399f9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/c399f9.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/c399f9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/c399f9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/c8c25c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/c8c25c.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/c8c25c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/c8c25c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/d63126.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/d63126.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/d63126.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/d63126.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/d8f73b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/d8f73b.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/d8f73b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/d8f73b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/ef7944.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/ef7944.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/ef7944.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/ef7944.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/efd6df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/efd6df.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/efd6df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/efd6df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/f742c0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/f742c0.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/f742c0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/f742c0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumLevels/fe2171.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLevels/fe2171.wgsl.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/builtins/gen/var/textureNumLevels/fe2171.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLevels/fe2171.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumSamples/50f399.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumSamples/50f399.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/var/textureNumSamples/50f399.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumSamples/50f399.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumSamples/c1a777.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumSamples/c1a777.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/var/textureNumSamples/c1a777.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumSamples/c1a777.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumSamples/dbb799.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumSamples/dbb799.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/var/textureNumSamples/dbb799.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumSamples/dbb799.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureNumSamples/ecd321.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumSamples/ecd321.wgsl.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/gen/var/textureNumSamples/ecd321.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumSamples/ecd321.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/193203.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/1a4e1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/1a4e1b.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/1a4e1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/1a4e1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/4703d0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/7fd8cb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/7fd8cb.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/7fd8cb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/7fd8cb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/bc7477.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/bc7477.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/bc7477.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/bc7477.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/d6b281.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/d6b281.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/d6b281.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/d6b281.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBaseClampToEdge/9ca02c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/1c707e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/1c707e.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/1c707e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/1c707e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/87915c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/c6953d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/c6953d.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/c6953d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/c6953d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/1912e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/1912e5.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/1912e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/1912e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/7b5025.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/90ae56.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/90ae56.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/90ae56.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/90ae56.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/7dc3c0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/958c87.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/bcb3dd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/7cd6de.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/a09131.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/a09131.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/a09131.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/a09131.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/bbb58f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/265cc7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/265cc7.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/265cc7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/265cc7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/73e892.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/73e892.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/73e892.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/73e892.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/941a53.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/941a53.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/941a53.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/941a53.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/a12142.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/a12142.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/a12142.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/a12142.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/aab3b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/f3b2c8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/faa6d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/ff11bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/00ca64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/00ca64.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/00ca64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/00ca64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0148bd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0148bd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/0148bd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0148bd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/031506.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/031506.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/031506.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/031506.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/036d0e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/036d0e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/036d0e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/036d0e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/03e7a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/03e7a0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/03e7a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/03e7a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/042b06.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/042b06.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/042b06.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/042b06.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/052a4e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/052a4e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/052a4e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/052a4e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/053664.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/053664.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/053664.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/053664.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/06e49c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/06e49c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/06e49c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/06e49c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/07548b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/07548b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/07548b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/07548b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/09e4d5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/09e4d5.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/09e4d5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/09e4d5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0a1a79.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0a1a79.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/0a1a79.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0a1a79.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0ad124.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0ad124.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/0ad124.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0ad124.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0ade9a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0ade9a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/0ade9a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0ade9a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0cc825.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0cc825.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/0cc825.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0cc825.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/0ff97a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/0ff97a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/0ff97a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/0ff97a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/101325.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/101325.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/101325.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/101325.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/145061.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/145061.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/145061.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/145061.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/158cf0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/158cf0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/158cf0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/158cf0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/178e69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/178e69.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/178e69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/178e69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1839f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1839f2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1839f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1839f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/195d1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/195d1b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/195d1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/195d1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/197637.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/197637.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/197637.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/197637.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1a264d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1a264d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1a264d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1a264d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1a6c0b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1a6c0b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/1a6c0b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1a6c0b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1a7d35.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1a7d35.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1a7d35.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1a7d35.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1af236.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1af236.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/1af236.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1af236.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1dc954.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1dc954.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1dc954.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1dc954.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1e20f2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1e20f2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1e20f2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1e20f2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1e79f0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1e79f0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1e79f0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1e79f0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1e9fbd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1e9fbd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1e9fbd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1e9fbd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1efc36.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1efc36.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1efc36.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1efc36.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1f1ef8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1f1ef8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1f1ef8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1f1ef8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/1fef04.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/1fef04.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/1fef04.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/1fef04.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2046db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2046db.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/2046db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2046db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/207fdd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/207fdd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/207fdd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/207fdd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2173fd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2173fd.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/2173fd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2173fd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/22f045.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/22f045.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/22f045.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/22f045.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2383fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2383fc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/2383fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2383fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/24e6b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/24e6b7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/24e6b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/24e6b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/258ab0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/258ab0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/258ab0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/258ab0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/26a26d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/26a26d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/26a26d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/26a26d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/27063a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/27063a.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/27063a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/27063a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/272f5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/272f5a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/272f5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/272f5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/285218.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/285218.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/285218.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/285218.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/28a7ec.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/28a7ec.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/28a7ec.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/28a7ec.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/28e109.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/28e109.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/28e109.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/28e109.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2a60c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2a60c9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/2a60c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2a60c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2addd6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2addd6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/2addd6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2addd6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2c76db.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2c76db.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/2c76db.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2c76db.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2d2835.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2d2835.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/2d2835.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2d2835.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2e512f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2e512f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/2e512f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2e512f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2e6102.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2e6102.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/2e6102.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2e6102.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/2f29ea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2f29ea.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/2f29ea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2f29ea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/30b0b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/30b0b0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/30b0b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/30b0b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/312f27.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/312f27.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/312f27.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/312f27.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/32d3d6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/32d3d6.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/32d3d6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/32d3d6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/330b7c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/330b7c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/330b7c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/330b7c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3310d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3310d3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/3310d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3310d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/33cec0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/33cec0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/33cec0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/33cec0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/345332.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/345332.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/345332.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/345332.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/37eeef.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/37eeef.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/37eeef.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/37eeef.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/37ffd4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/37ffd4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/37ffd4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/37ffd4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3c1937.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3c1937.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/3c1937.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3c1937.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3d1ebe.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3d1ebe.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/3d1ebe.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3d1ebe.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3d6f01.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3d6f01.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/3d6f01.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3d6f01.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3d96a4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3d96a4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/3d96a4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3d96a4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3e0dc4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3e0dc4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/3e0dc4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3e0dc4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3f61ca.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3f61ca.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/3f61ca.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3f61ca.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/3fb31f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/3fb31f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/3fb31f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/3fb31f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/40c455.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/40c455.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/40c455.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/40c455.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4288fc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4288fc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/4288fc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4288fc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/43d1df.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/43d1df.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/43d1df.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/43d1df.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/441222.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/441222.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/441222.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/441222.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4483e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4483e7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/4483e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4483e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/44b372.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/44b372.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/44b372.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/44b372.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/44daa7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/44daa7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/44daa7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/44daa7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/473ead.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/473ead.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/473ead.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/473ead.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/47bd70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/47bd70.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/47bd70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/47bd70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/486500.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/486500.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/486500.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/486500.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/48cb56.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/48cb56.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/48cb56.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/48cb56.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/48eae1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/48eae1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/48eae1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/48eae1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4bf1fd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4bf1fd.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/4bf1fd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4bf1fd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4c454f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4c454f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/4c454f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4c454f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4c76b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4c76b7.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/4c76b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4c76b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4cce74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4cce74.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/4cce74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4cce74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4d359d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4d359d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/4d359d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4d359d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4ddf52.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4ddf52.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/4ddf52.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4ddf52.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4e2b3a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4e2b3a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/4e2b3a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4e2b3a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5030f5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5030f5.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/5030f5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5030f5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/506a71.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/506a71.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/506a71.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/506a71.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/51ec82.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/51ec82.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/51ec82.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/51ec82.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5246b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5246b4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/5246b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5246b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/52f503.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/52f503.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/52f503.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/52f503.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/53a68b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/53a68b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/53a68b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/53a68b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5425ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5425ab.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/5425ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5425ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/544f06.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/544f06.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/544f06.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/544f06.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/55f9dc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/55f9dc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/55f9dc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/55f9dc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/574a31.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/574a31.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/574a31.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/574a31.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/579b93.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/579b93.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/579b93.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/579b93.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5841f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5841f8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/5841f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5841f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/58fc35.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/58fc35.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/58fc35.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/58fc35.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/59a0ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/59a0ab.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/59a0ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/59a0ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5a8b41.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5a8b41.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/5a8b41.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5a8b41.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5b17eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5b17eb.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/5b17eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5b17eb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5b4522.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5b4522.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/5b4522.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5b4522.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5bc4f3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5bc4f3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/5bc4f3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5bc4f3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5ddc61.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5ddc61.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/5ddc61.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5ddc61.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5ec6b2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5ec6b2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/5ec6b2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5ec6b2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5ee194.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5ee194.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/5ee194.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5ee194.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/5f9a49.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/5f9a49.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/5f9a49.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/5f9a49.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/602b5a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/602b5a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/602b5a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/602b5a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/614b58.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/614b58.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/614b58.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/614b58.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/635584.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/635584.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/635584.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/635584.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/63f34a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/63f34a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/63f34a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/63f34a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/646dbc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/646dbc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/646dbc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/646dbc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/658a74.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/658a74.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/658a74.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/658a74.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/65b6aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/65b6aa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/65b6aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/65b6aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/65ba8b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/65ba8b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/65ba8b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/65ba8b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/699a1b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/699a1b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/699a1b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/699a1b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6be9e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6be9e0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6be9e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6be9e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6c4a70.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6c4a70.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6c4a70.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6c4a70.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6d1809.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6d1809.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/6d1809.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6d1809.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6d259f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6d259f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/6d259f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6d259f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6e6cc0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6e6cc0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6e6cc0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6e6cc0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6f0c92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6f0c92.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/6f0c92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6f0c92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6f3542.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6f3542.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/6f3542.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6f3542.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6f8642.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6f8642.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6f8642.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6f8642.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6fb99b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6fb99b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/6fb99b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6fb99b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/6fd2b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/6fd2b1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/6fd2b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/6fd2b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/704e1f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/704e1f.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/704e1f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/704e1f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/706236.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/706236.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/706236.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/706236.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/706560.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/706560.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/706560.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/706560.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/726472.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/726472.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/726472.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/726472.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/726d6d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/726d6d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/726d6d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/726d6d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/72fa64.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/72fa64.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/72fa64.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/72fa64.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/73a735.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/73a735.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/73a735.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/73a735.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/73bbbc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/73bbbc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/73bbbc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/73bbbc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/74886f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/74886f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/74886f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/74886f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/751256.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/751256.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/751256.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/751256.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/75bbd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/75bbd5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/75bbd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/75bbd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7792fa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7792fa.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/7792fa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7792fa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/779d14.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/779d14.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/779d14.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/779d14.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7b8f86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7b8f86.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/7b8f86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7b8f86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7bb211.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7bb211.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/7bb211.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7bb211.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7cf6e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7cf6e7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/7cf6e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7cf6e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7d10e0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7d10e0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/7d10e0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7d10e0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7dd042.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7dd042.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/7dd042.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7dd042.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7e787a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7e787a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/7e787a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7e787a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/803a10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/803a10.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/803a10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/803a10.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/80bf1d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/80bf1d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/80bf1d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/80bf1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/818df6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/818df6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/818df6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/818df6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/81ae31.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/81ae31.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/81ae31.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/81ae31.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/820272.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/820272.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/820272.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/820272.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/84d435.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/84d435.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/84d435.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/84d435.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/84f4f4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/84f4f4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/84f4f4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/84f4f4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8676c9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8676c9.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8676c9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8676c9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/86f713.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/86f713.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/86f713.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/86f713.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/877c92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/877c92.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/877c92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/877c92.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8815b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8815b1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/8815b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8815b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/885921.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/885921.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/885921.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/885921.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/88ce7e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/88ce7e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/88ce7e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/88ce7e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8a16b0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8a16b0.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8a16b0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8a16b0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8a46ff.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8a46ff.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/8a46ff.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8a46ff.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8a85b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8a85b9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/8a85b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8a85b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8a8681.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8a8681.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/8a8681.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8a8681.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8ae0bc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8ae0bc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/8ae0bc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8ae0bc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8b9310.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8b9310.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8b9310.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8b9310.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8bb287.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8bb287.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8bb287.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8bb287.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8c76e9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8c76e9.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8c76e9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8c76e9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8cd611.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8cd611.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8cd611.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8cd611.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8cd841.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8cd841.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8cd841.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8cd841.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8dc54f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8dc54f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8dc54f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8dc54f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8ebdc9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8ebdc9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/8ebdc9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8ebdc9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8ed9f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8ed9f8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8ed9f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8ed9f8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/8ff674.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/8ff674.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/8ff674.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/8ff674.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/90960e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/90960e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/90960e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/90960e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/90a553.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/90a553.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/90a553.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/90a553.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/958353.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/958353.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/958353.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/958353.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/959d94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/959d94.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/959d94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/959d94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/95e452.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/95e452.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/95e452.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/95e452.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/976636.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/976636.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/976636.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/976636.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9938b7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9938b7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9938b7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9938b7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9aedd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9aedd3.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/9aedd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9aedd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9ba5c1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9ba5c1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/9ba5c1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9ba5c1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9cea9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9cea9e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/9cea9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9cea9e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9d7c62.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9d7c62.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/9d7c62.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9d7c62.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9d8668.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9d8668.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9d8668.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9d8668.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9e5bc2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9e5bc2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9e5bc2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9e5bc2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9f5318.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9f5318.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9f5318.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9f5318.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/9f7cea.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/9f7cea.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/9f7cea.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/9f7cea.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a0022f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a0022f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a0022f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a0022f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a0f96e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a0f96e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a0f96e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a0f96e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a1352c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a1352c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a1352c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a1352c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a14041.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a14041.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a14041.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a14041.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a165b8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a165b8.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/a165b8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a165b8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a19a12.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a19a12.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a19a12.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a19a12.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a24491.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a24491.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a24491.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a24491.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a4c338.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a4c338.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a4c338.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a4c338.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a5b88e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a5b88e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a5b88e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a5b88e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a5c925.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a5c925.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a5c925.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a5c925.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a5e80d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a5e80d.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a5e80d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a5e80d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a66ca4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a66ca4.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/a66ca4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a66ca4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a6a986.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a6a986.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a6a986.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a6a986.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a6e78f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a6e78f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a6e78f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a6e78f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a702b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a702b6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a702b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a702b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a7fc47.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a7fc47.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a7fc47.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a7fc47.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a9298c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a9298c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/a9298c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a9298c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/a9426c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/a9426c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/a9426c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/a9426c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ab03b6.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ab03b6.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ab03b6.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ab03b6.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ab788e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ab788e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ab788e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ab788e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/abdd21.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/abdd21.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/abdd21.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/abdd21.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ac0a55.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ac0a55.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ac0a55.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ac0a55.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ae6a2a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ae6a2a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ae6a2a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ae6a2a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/aeb38a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/aeb38a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/aeb38a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/aeb38a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/aedea3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/aedea3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/aedea3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/aedea3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b16110.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b16110.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/b16110.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b16110.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b286b4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b286b4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/b286b4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b286b4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b36bc1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b36bc1.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/b36bc1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b36bc1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b42fd3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b42fd3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/b42fd3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b42fd3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b4389e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b4389e.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/b4389e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b4389e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b70ded.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b70ded.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/b70ded.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b70ded.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b71c13.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b71c13.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/b71c13.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b71c13.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b7232c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b7232c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/b7232c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b7232c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b76ff3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b76ff3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/b76ff3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b76ff3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b77161.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b77161.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/b77161.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b77161.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b89ffb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b89ffb.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/b89ffb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b89ffb.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b91b86.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b91b86.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/b91b86.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b91b86.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b9c81a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b9c81a.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/b9c81a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b9c81a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/b9d863.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/b9d863.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/b9d863.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/b9d863.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/bc1423.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/bc1423.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/bc1423.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/bc1423.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/bcc97a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/bcc97a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/bcc97a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/bcc97a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/bd6602.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/bd6602.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/bd6602.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/bd6602.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c06463.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c06463.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/c06463.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c06463.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c1c664.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c1c664.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/c1c664.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c1c664.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c1f29e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c1f29e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/c1f29e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c1f29e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c1f760.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c1f760.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/c1f760.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c1f760.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c2ca46.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c2ca46.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/c2ca46.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c2ca46.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c32905.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c32905.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/c32905.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c32905.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c33478.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c33478.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/c33478.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c33478.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c35268.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c35268.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/c35268.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c35268.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c63f05.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c63f05.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/c63f05.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c63f05.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c79451.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c79451.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/c79451.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c79451.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/c9d780.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/c9d780.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/c9d780.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/c9d780.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/cb3b0b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/cb3b0b.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/cb3b0b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/cb3b0b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ccac20.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ccac20.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ccac20.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ccac20.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/cd6755.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/cd6755.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/cd6755.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/cd6755.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ceb832.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ceb832.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/ceb832.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ceb832.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d0d62c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d0d62c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/d0d62c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d0d62c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d0fadc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d0fadc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/d0fadc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d0fadc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d19db4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d19db4.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/d19db4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d19db4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d1ab82.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d1ab82.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/d1ab82.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d1ab82.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d26166.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d26166.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/d26166.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d26166.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d2b565.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d2b565.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/d2b565.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d2b565.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d3a22b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d3a22b.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/d3a22b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d3a22b.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d4aa95.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d4aa95.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/d4aa95.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d4aa95.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d55e65.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d55e65.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/d55e65.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d55e65.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d82b0a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d82b0a.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/d82b0a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d82b0a.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/d86d33.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/d86d33.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/d86d33.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/d86d33.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/da530c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/da530c.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/da530c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/da530c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/db5128.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/db5128.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/db5128.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/db5128.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/db92a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/db92a2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/db92a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/db92a2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/dce0e2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/dce0e2.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/dce0e2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/dce0e2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/dd8b29.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/dd8b29.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/dd8b29.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/dd8b29.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/de38e5.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/de38e5.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/de38e5.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/de38e5.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/de4b94.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/de4b94.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/de4b94.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/de4b94.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/df0c51.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/df0c51.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/df0c51.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/df0c51.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/df2ca4.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/df2ca4.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/df2ca4.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/df2ca4.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/dfa9a1.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/dfa9a1.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/dfa9a1.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/dfa9a1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/dffb13.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/dffb13.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/dffb13.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/dffb13.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e077e7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e077e7.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/e077e7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e077e7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e0b666.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e0b666.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/e0b666.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e0b666.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e1784d.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e1784d.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/e1784d.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e1784d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e38281.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e38281.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/gen/var/textureStore/e38281.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e38281.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e46fd8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e46fd8.wgsl.expected.ir.glsl
index 73a2897..37fa6e9 100644
--- a/test/tint/builtins/gen/var/textureStore/e46fd8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e46fd8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e72bdc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e72bdc.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/e72bdc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e72bdc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e7c6d8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e7c6d8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/e7c6d8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e7c6d8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e87f6e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e87f6e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/e87f6e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e87f6e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/e8cbf7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/e8cbf7.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/e8cbf7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/e8cbf7.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ea30d2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ea30d2.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ea30d2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ea30d2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ed6198.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ed6198.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ed6198.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ed6198.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f05928.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f05928.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/f05928.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f05928.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f1e6d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f1e6d3.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/f1e6d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f1e6d3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f64d69.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f64d69.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/f64d69.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f64d69.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f6f392.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f6f392.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/f6f392.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f6f392.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f7b0ab.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f7b0ab.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/f7b0ab.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f7b0ab.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f8aaf9.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f8aaf9.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/f8aaf9.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f8aaf9.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f975a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f975a0.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/f975a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f975a0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/fc916e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/fc916e.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/fc916e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/fc916e.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/fcbe66.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/fcbe66.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/fcbe66.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/fcbe66.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/fd350c.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/fd350c.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/gen/var/textureStore/fd350c.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/fd350c.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/textureStore/ff23b3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/ff23b3.wgsl.expected.ir.glsl
index 73a2897..2d340e3 100644
--- a/test/tint/builtins/gen/var/textureStore/ff23b3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/ff23b3.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:698 internal compiler error: TINT_UNREACHABLE 
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:731 internal compiler error: TINT_UNREACHABLE 
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/gen/var/unpack4xI8/830900.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/unpack4xI8/830900.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/builtins/gen/var/unpack4xI8/830900.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/unpack4xI8/830900.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.ir.glsl b/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.ir.glsl b/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.ir.glsl b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.ir.glsl b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.ir.glsl
index 3ed1835..ec5b2d0 100644
--- a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: insertBits
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.glsl b/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.glsl
index 8fcd1ed..35a5d00 100644
--- a/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/modf/scalar/mixed.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct modf_result_f32 {
   float fract;
   float whole;
@@ -17,9 +18,9 @@
   float whole = res.whole;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'modf' : no matching overloaded function found 
-ERROR: 0:12: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:13: 'modf' : no matching overloaded function found 
+ERROR: 0:13: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.glsl b/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.glsl
index 4d81a3d..af0b4fc 100644
--- a/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/modf/scalar/runtime.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct modf_result_f32 {
   float fract;
   float whole;
@@ -15,9 +16,9 @@
   float whole = res.whole;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:11: 'modf' : no matching overloaded function found 
-ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
-ERROR: 0:11: '' : compilation terminated 
+ERROR: 0:12: 'modf' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global highp float fract,  global highp float whole}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.glsl b/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.glsl
index 2f460a9..b0af9a1 100644
--- a/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/modf/vector/mixed.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct modf_result_vec2_f32 {
   vec2 fract;
   vec2 whole;
@@ -17,9 +18,9 @@
   vec2 whole = res.whole;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'modf' : no matching overloaded function found 
-ERROR: 0:12: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:13: 'modf' : no matching overloaded function found 
+ERROR: 0:13: 'assign' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.glsl b/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.glsl
index f31ab0a..f926980 100644
--- a/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/modf/vector/runtime.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct modf_result_vec2_f32 {
   vec2 fract;
   vec2 whole;
@@ -15,9 +16,9 @@
   vec2 whole = res.whole;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:11: 'modf' : no matching overloaded function found 
-ERROR: 0:11: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
-ERROR: 0:11: '' : compilation terminated 
+ERROR: 0:12: 'modf' : no matching overloaded function found 
+ERROR: 0:12: '=' :  cannot convert from ' const float' to ' temp structure{ global highp 2-component vector of float fract,  global highp 2-component vector of float whole}'
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/builtins/radians.spvasm.expected.ir.glsl b/test/tint/builtins/radians.spvasm.expected.ir.glsl
index 0eb6a29..dd1b2dd 100644
--- a/test/tint/builtins/radians.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/radians.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl b/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl
index 87886fe..1d446c1 100644
--- a/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.ir.glsl b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/f32/green.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/f32/green.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/f32/green.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/f32/green.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/f32/red.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/f32/red.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/f32/red.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/f32/red.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/i32/green.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/i32/green.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/i32/green.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/i32/green.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/i32/red.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/i32/red.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/i32/red.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/i32/red.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/u32/green.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/u32/green.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/u32/green.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/u32/green.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureGather/u32/red.wgsl.expected.ir.glsl b/test/tint/builtins/textureGather/u32/red.wgsl.expected.ir.glsl
index b771681..0faf273 100644
--- a/test/tint/builtins/textureGather/u32/red.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureGather/u32/red.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureGather
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.ir.glsl b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.ir.glsl b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.ir.glsl b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.ir.glsl b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl b/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl
index 35602ce..8c4d356 100644
--- a/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:992 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/builtins/textureStore/loop_continuing_read_write_texture.wgsl.expected.ir.glsl b/test/tint/builtins/textureStore/loop_continuing_read_write_texture.wgsl.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/builtins/textureStore/loop_continuing_read_write_texture.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureStore/loop_continuing_read_write_texture.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/case_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/case_body_attribute.wgsl.expected.ir.glsl
index 5ba6ced..dd13d64 100644
--- a/test/tint/diagnostic_filtering/case_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/case_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   switch (i32(x)) {
               ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/compound_statement_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/compound_statement_attribute.wgsl.expected.ir.glsl
index fb9c820..3785ad8 100644
--- a/test/tint/diagnostic_filtering/compound_statement_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/compound_statement_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
     if (x > 0) {
         ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/default_case_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/default_case_body_attribute.wgsl.expected.ir.glsl
index 1078885..02b6dee 100644
--- a/test/tint/diagnostic_filtering/default_case_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/default_case_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   switch (i32(x)) {
               ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/directive.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/directive.wgsl.expected.ir.glsl
index 993f0c7..21b7010 100644
--- a/test/tint/diagnostic_filtering/directive.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/directive.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   if (x > 0) {
       ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/else_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/else_body_attribute.wgsl.expected.ir.glsl
index 9e2e839..ea0ee0b 100644
--- a/test/tint/diagnostic_filtering/else_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/else_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   if (x > 0) {
       ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/else_if_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/else_if_body_attribute.wgsl.expected.ir.glsl
index b5d2447..49ab0b1 100644
--- a/test/tint/diagnostic_filtering/else_if_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/else_if_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   if (x > 0) {
       ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.glsl
index e77e5a7..4c7729e 100644
--- a/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/for_loop_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
     v = textureSample(t, s, vec2(0, 0));
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/function_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/function_attribute.wgsl.expected.ir.glsl
index 58705d4..f2b8a3b 100644
--- a/test/tint/diagnostic_filtering/function_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/function_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   if (x > 0) {
       ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/function_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/function_body_attribute.wgsl.expected.ir.glsl
index c9b8e21..4ecd040 100644
--- a/test/tint/diagnostic_filtering/function_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/function_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   if (x > 0) {
       ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/if_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/if_body_attribute.wgsl.expected.ir.glsl
index ab7b847..74a9f19 100644
--- a/test/tint/diagnostic_filtering/if_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/if_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
   if (x > 0) @diagnostic(warning, derivative_uniformity) {
       ^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.glsl b/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.glsl
index da3e232..9f02d95 100644
--- a/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.glsl
+++ b/test/tint/diagnostic_filtering/while_loop_body_attribute.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
     v = textureSample(t, s, vec2(0, 0));
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..7b37ef0 100644
--- a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,23 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 2;
+  int r = tint_div_i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..b424531 100644
--- a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(1, 2, 3);
+  ivec3 r = tint_div_v3i32(ivec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..17ede29 100644
--- a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(1u, 2u, 3u);
+  uvec3 r = tint_div_v3u32(uvec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..72568ee 100644
--- a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 4;
+  ivec3 r = tint_div_v3i32(a, ivec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..ad2f7ba 100644
--- a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 4u;
+  uvec3 r = tint_div_v3u32(a, uvec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..90de924 100644
--- a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(4, 5, 6);
+  ivec3 r = tint_div_v3i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..9388011 100644
--- a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(4u, 5u, 6u);
+  uvec3 r = tint_div_v3u32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..6ea1f3d 100644
--- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,23 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 0;
+  int r = tint_div_i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..79f5416 100644
--- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(0, 2, 0);
+  ivec3 r = tint_div_v3i32(ivec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..7829e8e 100644
--- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(0u, 2u, 0u);
+  uvec3 r = tint_div_v3u32(uvec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..be81f65 100644
--- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 0;
+  ivec3 r = tint_div_v3i32(a, ivec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..bb9733d 100644
--- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 0u;
+  uvec3 r = tint_div_v3u32(a, uvec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..60a3ce0 100644
--- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(0, 5, 0);
+  ivec3 r = tint_div_v3i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..beec859 100644
--- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(0u, 5u, 0u);
+  uvec3 r = tint_div_v3u32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..c5dc247 100644
--- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,23 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 0;
+  int r = tint_div_i32(a, (b + b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..82aaf1c 100644
--- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(0, 2, 0);
+  ivec3 v_2 = (b + b);
+  ivec3 r = tint_div_v3i32(ivec3(a), v_2);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..dc9ce00 100644
--- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(0u, 2u, 0u);
+  uvec3 v_2 = (b + b);
+  uvec3 r = tint_div_v3u32(uvec3(a), v_2);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..99f856c 100644
--- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 0;
+  ivec3 v_2 = a;
+  ivec3 r = tint_div_v3i32(v_2, ivec3((b + b)));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..10f5e6c 100644
--- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 0u;
+  uvec3 v_2 = a;
+  uvec3 r = tint_div_v3u32(v_2, uvec3((b + b)));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..7aa3ce8 100644
--- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(0, 5, 0);
+  ivec3 r = tint_div_v3i32(a, (b + b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..91278d4 100644
--- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(0u, 5u, 0u);
+  uvec3 r = tint_div_v3u32(a, (b + b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..6ea1f3d 100644
--- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,23 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 0;
+  int r = tint_div_i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..e18ca1a 100644
--- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(0, 2, 0);
+  ivec3 v_2 = b;
+  ivec3 r = tint_div_v3i32(ivec3(a), v_2);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..fe1d756 100644
--- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(0u, 2u, 0u);
+  uvec3 v_2 = b;
+  uvec3 r = tint_div_v3u32(uvec3(a), v_2);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..360745a 100644
--- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 0;
+  ivec3 v_2 = a;
+  ivec3 r = tint_div_v3i32(v_2, ivec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..1dcaa57 100644
--- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 0u;
+  uvec3 v_2 = a;
+  uvec3 r = tint_div_v3u32(v_2, uvec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..60a3ce0 100644
--- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_div_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  return (lhs / ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(0, 5, 0);
+  ivec3 r = tint_div_v3i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..beec859 100644
--- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_div_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  return (lhs / uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z))));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(0u, 5u, 0u);
+  uvec3 r = tint_div_v3u32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..db0aedc 100644
--- a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_mod_i32(int lhs, int rhs) {
+  int v = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v) * v));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 2;
+  int r = tint_mod_i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..2ca59b5 100644
--- a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(1, 2, 3);
+  ivec3 r = tint_mod_v3i32(ivec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..eb8d3fd 100644
--- a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(1u, 2u, 3u);
+  uvec3 r = tint_mod_v3u32(uvec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..b7a3813 100644
--- a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 4;
+  ivec3 r = tint_mod_v3i32(a, ivec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..974b28c 100644
--- a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 4u;
+  uvec3 r = tint_mod_v3u32(a, uvec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..f674e90 100644
--- a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(4, 5, 6);
+  ivec3 r = tint_mod_v3i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..6e9f15f 100644
--- a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(4u, 5u, 6u);
+  uvec3 r = tint_mod_v3u32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..e70647d 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_mod_i32(int lhs, int rhs) {
+  int v = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v) * v));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 0;
+  int r = tint_mod_i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..ce93f4b 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(0, 2, 0);
+  ivec3 r = tint_mod_v3i32(ivec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..99210af 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(0u, 2u, 0u);
+  uvec3 r = tint_mod_v3u32(uvec3(a), b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..5f58d25 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 0;
+  ivec3 r = tint_mod_v3i32(a, ivec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..9da9987 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 0u;
+  uvec3 r = tint_mod_v3u32(a, uvec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..9a1da09 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(0, 5, 0);
+  ivec3 r = tint_mod_v3i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..f4f69ff 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(0u, 5u, 0u);
+  uvec3 r = tint_mod_v3u32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..5b59571 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_mod_i32(int lhs, int rhs) {
+  int v = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v) * v));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 0;
+  int r = tint_mod_i32(a, (b + b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..d8065f9 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,27 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(0, 2, 0);
+  ivec3 v_3 = (b + b);
+  ivec3 r = tint_mod_v3i32(ivec3(a), v_3);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..843a6d5 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(0u, 2u, 0u);
+  uvec3 v_3 = (b + b);
+  uvec3 r = tint_mod_v3u32(uvec3(a), v_3);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..3a221c2 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,27 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 0;
+  ivec3 v_3 = a;
+  ivec3 r = tint_mod_v3i32(v_3, ivec3((b + b)));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..dea679e 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 0u;
+  uvec3 v_3 = a;
+  uvec3 r = tint_mod_v3u32(v_3, uvec3((b + b)));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..64a4451 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(0, 5, 0);
+  ivec3 r = tint_mod_v3i32(a, (b + b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..f54202f 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(0u, 5u, 0u);
+  uvec3 r = tint_mod_v3u32(a, (b + b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl
index f297654..e70647d 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,24 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int tint_mod_i32(int lhs, int rhs) {
+  int v = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v) * v));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 1;
+  int b = 0;
+  int r = tint_mod_i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl
index f297654..e741e5b 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,27 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  int a = 4;
+  ivec3 b = ivec3(0, 2, 0);
+  ivec3 v_3 = b;
+  ivec3 r = tint_mod_v3i32(ivec3(a), v_3);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl
index f297654..7308a34 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uint a = 4u;
+  uvec3 b = uvec3(0u, 2u, 0u);
+  uvec3 v_3 = b;
+  uvec3 r = tint_mod_v3u32(uvec3(a), v_3);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl
index f297654..f2ff30c 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,27 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  int b = 0;
+  ivec3 v_3 = a;
+  ivec3 r = tint_mod_v3i32(v_3, ivec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl
index f297654..8111952 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uint b = 0u;
+  uvec3 v_3 = a;
+  uvec3 r = tint_mod_v3u32(v_3, uvec3(b));
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl
index f297654..9a1da09 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.ir.glsl
@@ -1,11 +1,26 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+ivec3 tint_mod_v3i32(ivec3 lhs, ivec3 rhs) {
+  int v = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).x) ? (ivec3(1).x) : (rhs.x));
+  int v_1 = ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).y) ? (ivec3(1).y) : (rhs.y));
+  ivec3 v_2 = ivec3(v, v_1, ((((rhs == ivec3(0)) | ((lhs == ivec3((-2147483647 - 1))) & (rhs == ivec3(-1)))).z) ? (ivec3(1).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  ivec3 a = ivec3(1, 2, 3);
+  ivec3 b = ivec3(0, 5, 0);
+  ivec3 r = tint_mod_v3i32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl
index f297654..f4f69ff 100644
--- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+uvec3 tint_mod_v3u32(uvec3 lhs, uvec3 rhs) {
+  uint v = (((rhs == uvec3(0u)).x) ? (uvec3(1u).x) : (rhs.x));
+  uint v_1 = (((rhs == uvec3(0u)).y) ? (uvec3(1u).y) : (rhs.y));
+  uvec3 v_2 = uvec3(v, v_1, (((rhs == uvec3(0u)).z) ? (uvec3(1u).z) : (rhs.z)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  uvec3 a = uvec3(1u, 2u, 3u);
+  uvec3 b = uvec3(0u, 5u, 0u);
+  uvec3 r = tint_mod_v3u32(a, b);
+}
+error: Error parsing GLSL shader:
+ERROR: 0:4: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:4: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4f32-vec4u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4i32-vec4u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/128bit/vec4u32-vec4u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/16bit/f16-f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/f32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/f32-f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/f32-f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/f32-f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/f32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/f32-i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/f32-i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/f32-i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/f32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/f32-u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/f32-u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/f32-u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/f32-vec2f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/i32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/i32-f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/i32-f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/i32-f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/i32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/i32-i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/i32-i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/i32-i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/i32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/i32-u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/i32-u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/i32-u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/i32-vec2f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/u32-f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/u32-f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/u32-f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/u32-f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/u32-i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/u32-i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/u32-i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/u32-i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/u32-u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/u32-u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/u32-u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/u32-u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/u32-vec2f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/32bit/vec2f16-vec2f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/48bit/vec3f16-vec3f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec2u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2f32-vec4f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec2u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2i32-vec4f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec2u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec2u32-vec4f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec2u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/64bit/vec4f16-vec4f16.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3f32-vec3u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3i32-vec3u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3f32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3f32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3f32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3f32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3i32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3i32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3i32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3u32.wgsl.expected.ir.glsl b/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3u32.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3u32.wgsl.expected.ir.glsl
+++ b/test/tint/expressions/bitcast/let/96bit/vec3u32-vec3u32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/clip_distances/clip_distances_size_1.wgsl.expected.ir.glsl b/test/tint/extensions/clip_distances/clip_distances_size_1.wgsl.expected.ir.glsl
index 0383231..f8978b0 100644
--- a/test/tint/extensions/clip_distances/clip_distances_size_1.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/clip_distances/clip_distances_size_1.wgsl.expected.ir.glsl
@@ -1,21 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct VertexOutputs {
-  vec4 position;
-  float clipDistance[1];
-};
-
-VertexOutputs main() {
-  return VertexOutputs(vec4(1.0f, 2.0f, 3.0f, 4.0f), float[1](0.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: 'structure' :  entry point cannot return a value
-ERROR: 0:8: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/clip_distances/clip_distances_size_3.wgsl.expected.ir.glsl b/test/tint/extensions/clip_distances/clip_distances_size_3.wgsl.expected.ir.glsl
index 18a4003..f8978b0 100644
--- a/test/tint/extensions/clip_distances/clip_distances_size_3.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/clip_distances/clip_distances_size_3.wgsl.expected.ir.glsl
@@ -1,21 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct VertexOutputs {
-  vec4 position;
-  float clipDistance[3];
-};
-
-VertexOutputs main() {
-  return VertexOutputs(vec4(1.0f, 2.0f, 3.0f, 4.0f), float[3](0.0f, 0.0f, 0.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: 'structure' :  entry point cannot return a value
-ERROR: 0:8: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/clip_distances/clip_distances_size_4.wgsl.expected.ir.glsl b/test/tint/extensions/clip_distances/clip_distances_size_4.wgsl.expected.ir.glsl
index 7a20cb9..f8978b0 100644
--- a/test/tint/extensions/clip_distances/clip_distances_size_4.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/clip_distances/clip_distances_size_4.wgsl.expected.ir.glsl
@@ -1,21 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct VertexOutputs {
-  vec4 position;
-  float clipDistance[4];
-};
-
-VertexOutputs main() {
-  return VertexOutputs(vec4(1.0f, 2.0f, 3.0f, 4.0f), float[4](0.0f, 0.0f, 0.0f, 0.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: 'structure' :  entry point cannot return a value
-ERROR: 0:8: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/clip_distances/clip_distances_size_5.wgsl.expected.ir.glsl b/test/tint/extensions/clip_distances/clip_distances_size_5.wgsl.expected.ir.glsl
index c0bfa14..f8978b0 100644
--- a/test/tint/extensions/clip_distances/clip_distances_size_5.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/clip_distances/clip_distances_size_5.wgsl.expected.ir.glsl
@@ -1,21 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct VertexOutputs {
-  vec4 position;
-  float clipDistance[5];
-};
-
-VertexOutputs main() {
-  return VertexOutputs(vec4(1.0f, 2.0f, 3.0f, 4.0f), float[5](0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: 'structure' :  entry point cannot return a value
-ERROR: 0:8: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/clip_distances/clip_distances_size_8.wgsl.expected.ir.glsl b/test/tint/extensions/clip_distances/clip_distances_size_8.wgsl.expected.ir.glsl
index 9f69404..f8978b0 100644
--- a/test/tint/extensions/clip_distances/clip_distances_size_8.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/clip_distances/clip_distances_size_8.wgsl.expected.ir.glsl
@@ -1,21 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct VertexOutputs {
-  vec4 position;
-  float clipDistance[8];
-};
-
-VertexOutputs main() {
-  return VertexOutputs(vec4(1.0f, 2.0f, 3.0f, 4.0f), float[8](0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: 'structure' :  entry point cannot return a value
-ERROR: 0:8: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location_in_struct.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location_in_struct.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location_in_struct.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_and_location_in_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location_in_struct.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location_in_struct.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location_in_struct.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/builtin_in_struct_and_location_in_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin_in_struct.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin_in_struct.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin_in_struct.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/invariant_builtin_in_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/location.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/location.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/location.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/location.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/additional_params/location_in_struct.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/additional_params/location_in_struct.wgsl.expected.ir.glsl
index 16ea413..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/additional_params/location_in_struct.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/additional_params/location_in_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl
index 3e9b53a..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl
@@ -1,33 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-  int b;
-  float c;
-};
-
-struct Out {
-  vec4 x;
-  vec4 y;
-  vec4 z;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-Out main() {
-  P.a = (P.a + 42u);
-  return Out(vec4(10.0f), vec4(20.0f), vec4(30.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:6: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:6: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl
index 728b28e..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl
@@ -1,31 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-};
-
-struct Out {
-  vec4 x;
-  vec4 y;
-  vec4 z;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-Out main() {
-  P.a = (P.a + 42u);
-  return Out(vec4(10.0f), vec4(20.0f), vec4(30.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:8: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/entry_point_use/one_output/multiple_attachments.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/one_output/multiple_attachments.wgsl.expected.ir.glsl
index 959fef6..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/one_output/multiple_attachments.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/one_output/multiple_attachments.wgsl.expected.ir.glsl
@@ -1,27 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-  int b;
-  float c;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-vec4 main() {
-  P.a = (P.a + 42u);
-  return vec4(2.0f);
-}
-error: Error parsing GLSL shader:
-ERROR: 0:6: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:6: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/entry_point_use/one_output/single_attachment.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/one_output/single_attachment.wgsl.expected.ir.glsl
index d0fd55f..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/one_output/single_attachment.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/one_output/single_attachment.wgsl.expected.ir.glsl
@@ -1,25 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-vec4 main() {
-  P.a = (P.a + 42u);
-  return vec4(2.0f);
-}
-error: Error parsing GLSL shader:
-ERROR: 0:11: 'float' :  entry point cannot return a value
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl
index 681d36a..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl
@@ -1,26 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-  int b;
-  float c;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-void main() {
-  P.a = (P.a + 42u);
-}
-error: Error parsing GLSL shader:
-ERROR: 0:6: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:6: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl
index 94504b6..c2f739d 100644
--- a/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/entry_point_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl
@@ -1,13 +1,11 @@
 SKIP: INVALID
 
-struct PixelLocal {
-  uint a;
-};
-precision highp float;
-precision highp int;
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-
-PixelLocal P;
-void main() {
-  P.a = (P.a + 42u);
-}
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl
index 3c14df4..c2f739d 100644
--- a/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/multiple_attachments.wgsl.expected.ir.glsl
@@ -1,44 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-  int b;
-  float c;
-};
-
-struct Out {
-  vec4 x;
-  vec4 y;
-  vec4 z;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-void f0() {
-  P.a = (P.a + 9u);
-}
-void f1() {
-  f0();
-  P.a = (P.a + 8u);
-}
-void f2() {
-  P.a = (P.a + 7u);
-  f1();
-}
-Out main() {
-  f2();
-  return Out(vec4(10.0f), vec4(20.0f), vec4(30.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:6: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:6: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl
index 0547a0d..c2f739d 100644
--- a/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/indirect_use/multiple_outputs/single_attachment.wgsl.expected.ir.glsl
@@ -1,42 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-};
-
-struct Out {
-  vec4 x;
-  vec4 y;
-  vec4 z;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-void f0() {
-  P.a = (P.a + 9u);
-}
-void f1() {
-  f0();
-  P.a = (P.a + 8u);
-}
-void f2() {
-  P.a = (P.a + 7u);
-  f1();
-}
-Out main() {
-  f2();
-  return Out(vec4(10.0f), vec4(20.0f), vec4(30.0f));
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:8: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/indirect_use/one_output/multiple_attachments.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/indirect_use/one_output/multiple_attachments.wgsl.expected.ir.glsl
index 2917150..c2f739d 100644
--- a/test/tint/extensions/pixel_local/indirect_use/one_output/multiple_attachments.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/indirect_use/one_output/multiple_attachments.wgsl.expected.ir.glsl
@@ -1,38 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-  int b;
-  float c;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-void f0() {
-  P.a = (P.a + 9u);
-}
-void f1() {
-  f0();
-  P.a = (P.a + 8u);
-}
-void f2() {
-  P.a = (P.a + 7u);
-  f1();
-}
-vec4 main() {
-  f2();
-  return vec4(2.0f);
-}
-error: Error parsing GLSL shader:
-ERROR: 0:6: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:6: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/indirect_use/one_output/single_attachment.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/indirect_use/one_output/single_attachment.wgsl.expected.ir.glsl
index 8b5799f..c2f739d 100644
--- a/test/tint/extensions/pixel_local/indirect_use/one_output/single_attachment.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/indirect_use/one_output/single_attachment.wgsl.expected.ir.glsl
@@ -1,36 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-void f0() {
-  P.a = (P.a + 9u);
-}
-void f1() {
-  f0();
-  P.a = (P.a + 8u);
-}
-void f2() {
-  P.a = (P.a + 7u);
-  f1();
-}
-vec4 main() {
-  f2();
-  return vec4(2.0f);
-}
-error: Error parsing GLSL shader:
-ERROR: 0:22: 'float' :  entry point cannot return a value
-ERROR: 0:22: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/indirect_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/indirect_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl
index 42f421c..c2f739d 100644
--- a/test/tint/extensions/pixel_local/indirect_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/indirect_use/zero_outputs/multiple_attachments.wgsl.expected.ir.glsl
@@ -1,37 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-  int b;
-  float c;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-void f0() {
-  P.a = (P.a + 9u);
-}
-void f1() {
-  f0();
-  P.a = (P.a + 8u);
-}
-void f2() {
-  P.a = (P.a + 7u);
-  f1();
-}
-void main() {
-  f2();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:6: 'float' : type requires declaration of default precision qualifier
-ERROR: 0:6: '' : compilation terminated
-ERROR: 2 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/indirect_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/indirect_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl
index 8becfd0..c2f739d 100644
--- a/test/tint/extensions/pixel_local/indirect_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/indirect_use/zero_outputs/single_attachment.wgsl.expected.ir.glsl
@@ -1,26 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct PixelLocal {
-  uint a;
-};
-precision highp float;
-precision highp int;
-
-
-PixelLocal P;
-void f0() {
-  P.a = (P.a + 9u);
-}
-void f1() {
-  f0();
-  P.a = (P.a + 8u);
-}
-void f2() {
-  P.a = (P.a + 7u);
-  f1();
-}
-void main() {
-  f2();
-}
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/extensions/pixel_local/ptr/local.wgsl.expected.ir.glsl b/test/tint/extensions/pixel_local/ptr/local.wgsl.expected.ir.glsl
index e2d5618..c2f739d 100644
--- a/test/tint/extensions/pixel_local/ptr/local.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/pixel_local/ptr/local.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: INVALID
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:849 internal compiler error: TINT_UNREACHABLE PixelLocal not supported
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.glsl b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.glsl
index da945e1..8da20b5 100644
--- a/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/texel_fetch/additional_params/d.wgsl.expected.ir.glsl
@@ -9,14 +9,22 @@
   vec4 pos;
 };
 
+in ivec4 f_Input;
+layout(location = 0) in vec4 f_loc0_Input;
+in uvec4 f_Input_1;
 void g(int a, float b, float c, uint d) {
 }
-void main(ivec4 fbf_2, In tint_symbol, vec4 uv, uvec4 fbf_0) {
+void f_inner(ivec4 fbf_2, In tint_symbol, vec4 uv, uvec4 fbf_0) {
   g(fbf_2[2u], tint_symbol.pos[0u], uv[0u], fbf_0[1u]);
 }
+void main() {
+  ivec4 v = f_Input;
+  In v_1 = In(gl_FragCoord);
+  f_inner(v, v_1, f_loc0_Input, f_Input_1);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:10: 'int' : must be qualified as flat in
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.glsl b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.glsl
index 1037809..b74f0ad 100644
--- a/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/texel_fetch/additional_params/e.wgsl.expected.ir.glsl
@@ -10,14 +10,18 @@
   vec4 pos;
 };
 
+in ivec4 f_Input;
 void g(int a, float b) {
 }
-void main(In tint_symbol) {
+void f_inner(In tint_symbol) {
   g(tint_symbol.fbf[3u], tint_symbol.pos[0u]);
 }
+void main() {
+  f_inner(In(f_Input, gl_FragCoord));
+}
 error: Error parsing GLSL shader:
-ERROR: 0:13: 'main' : function cannot take any parameter(s) 
-ERROR: 0:13: '' : compilation terminated 
+ERROR: 0:11: 'int' : must be qualified as flat in
+ERROR: 0:11: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.glsl b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.glsl
index 4585378..1915c0c 100644
--- a/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/texel_fetch/additional_params/h.wgsl.expected.ir.glsl
@@ -10,14 +10,20 @@
   ivec4 c3;
 };
 
+in vec4 f_Input;
+in ivec4 f_Input_1;
 void g(float a, float b, int c) {
 }
-void main(vec4 pos, FBF fbf) {
+void f_inner(vec4 pos, FBF fbf) {
   g(fbf.c1[0u], pos[1u], fbf.c3[2u]);
 }
+void main() {
+  vec4 v = gl_FragCoord;
+  f_inner(v, FBF(f_Input, f_Input_1));
+}
 error: Error parsing GLSL shader:
-ERROR: 0:13: 'main' : function cannot take any parameter(s) 
-ERROR: 0:13: '' : compilation terminated 
+ERROR: 0:12: 'int' : must be qualified as flat in
+ERROR: 0:12: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.glsl b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.glsl
index d21de4d..351090a8 100644
--- a/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.glsl
+++ b/test/tint/extensions/texel_fetch/additional_params/i.wgsl.expected.ir.glsl
@@ -11,13 +11,19 @@
   ivec4 fbf;
 };
 
+layout(location = 0) in vec4 f_loc0_Input;
+layout(location = 1) flat in vec4 f_loc1_Input;
+in ivec4 f_Input;
 void g(float a, float b, int c) {
 }
-void main(In tint_symbol) {
+void f_inner(In tint_symbol) {
   g(tint_symbol.a[0u], tint_symbol.b[1u], tint_symbol.fbf[0u]);
 }
+void main() {
+  f_inner(In(f_loc0_Input, f_loc1_Input, f_Input));
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'main' : function cannot take any parameter(s) 
+ERROR: 0:14: 'int' : must be qualified as flat in
 ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
diff --git a/test/tint/ptr_ref/access/matrix.wgsl.expected.ir.glsl b/test/tint/ptr_ref/access/matrix.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_ref/access/matrix.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_ref/access/matrix.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.ir.glsl b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.ir.glsl
index 56f48c5..1c00ea3 100644
--- a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: workgroupBarrier
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_ref/store/local/i32.wgsl.expected.ir.glsl b/test/tint/ptr_ref/store/local/i32.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_ref/store/local/i32.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_ref/store/local/i32.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/array.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/array.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/array.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/builtin_struct.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/builtin_struct.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/builtin_struct.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/builtin_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/compound_assign_index.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/compound_assign_member.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/compound_assign_member.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/compound_assign_member.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/compound_assign_member.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/matrix.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/matrix.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/matrix.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/matrix.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/struct.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/struct.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/struct.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/struct.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/vector_index.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/vector_index.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/vector_index.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/vector_index.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/vector_member.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/vector_member.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/vector_member.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/vector_member.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/ptr_sugar/vector_swizzle.wgsl.expected.ir.glsl b/test/tint/ptr_sugar/vector_swizzle.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/ptr_sugar/vector_swizzle.wgsl.expected.ir.glsl
+++ b/test/tint/ptr_sugar/vector_swizzle.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/samples/triangle.wgsl.expected.ir.glsl b/test/tint/samples/triangle.wgsl.expected.ir.glsl
index 86263c2..25b3e2f 100644
--- a/test/tint/samples/triangle.wgsl.expected.ir.glsl
+++ b/test/tint/samples/triangle.wgsl.expected.ir.glsl
@@ -1,20 +1,20 @@
 SKIP: FAILED
 
 #version 310 es
-precision highp float;
-precision highp int;
 
-
-vec4 main(uint VertexIndex) {
+vec4 vtx_main_inner(uint VertexIndex) {
   return vec4(vec2[3](vec2(0.0f, 0.5f), vec2(-0.5f), vec2(0.5f, -0.5f))[VertexIndex], 0.0f, 1.0f);
 }
-vec4 main() {
-  return vec4(1.0f, 0.0f, 0.0f, 1.0f);
+void main() {
+  gl_Position = vtx_main_inner(gl_VertexID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:6: 'main' : function cannot take any parameter(s) 
-ERROR: 0:6: 'float' :  entry point cannot return a value
-ERROR: 0:6: '' : compilation terminated 
+ERROR: 0:7: 'vtx_main_inner' : no matching overloaded function found 
+ERROR: 0:7: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:7: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
@@ -23,20 +23,12 @@
 precision highp float;
 precision highp int;
 
-
-vec4 main(uint VertexIndex) {
-  return vec4(vec2[3](vec2(0.0f, 0.5f), vec2(-0.5f), vec2(0.5f, -0.5f))[VertexIndex], 0.0f, 1.0f);
-}
-vec4 main() {
+layout(location = 0) out vec4 frag_main_loc0_Output;
+vec4 frag_main_inner() {
   return vec4(1.0f, 0.0f, 0.0f, 1.0f);
 }
-error: Error parsing GLSL shader:
-ERROR: 0:6: 'main' : function cannot take any parameter(s) 
-ERROR: 0:6: 'float' :  entry point cannot return a value
-ERROR: 0:6: '' : compilation terminated 
-ERROR: 3 compilation errors.  No code generated.
-
-
-
+void main() {
+  frag_main_loc0_Output = frag_main_inner();
+}
 
 tint executable returned error: exit status 1
diff --git a/test/tint/shadowing/short_names/renamer/function.wgsl.expected.ir.glsl b/test/tint/shadowing/short_names/renamer/function.wgsl.expected.ir.glsl
index f297654..4197ad7 100644
--- a/test/tint/shadowing/short_names/renamer/function.wgsl.expected.ir.glsl
+++ b/test/tint/shadowing/short_names/renamer/function.wgsl.expected.ir.glsl
@@ -1,11 +1,35 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+int vec4f() {
+  return 0;
+}
+float vec2f(int i) {
+  return float(i);
+}
+bool vec2i(float f) {
+  return bool(f);
+}
+vec4 tint_symbol_inner(uint VertexIndex) {
+  bool v = vec2i(vec2f(vec4f()));
+  float v_1 = ((v.x) ? (vec4(1.0f).x) : (vec4(0.0f).x));
+  float v_2 = ((v.y) ? (vec4(1.0f).y) : (vec4(0.0f).y));
+  float v_3 = ((v.z) ? (vec4(1.0f).z) : (vec4(0.0f).z));
+  return vec4(v_1, v_2, v_3, ((v.w) ? (vec4(1.0f).w) : (vec4(0.0f).w)));
+}
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:14: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:14: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/shadowing/short_names/renamer/renamer.wgsl.expected.ir.glsl b/test/tint/shadowing/short_names/renamer/renamer.wgsl.expected.ir.glsl
index 066a8ba..cc2d30f 100644
--- a/test/tint/shadowing/short_names/renamer/renamer.wgsl.expected.ir.glsl
+++ b/test/tint/shadowing/short_names/renamer/renamer.wgsl.expected.ir.glsl
@@ -2,13 +2,19 @@
 
 #version 310 es
 
-vec4 main(uint VertexIndex) {
+vec4 tint_symbol_inner(uint VertexIndex) {
   return vec4(0.0f, 0.0f, 0.0f, 1.0f);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:3: 'main' : function cannot take any parameter(s) 
-ERROR: 0:3: 'float' :  entry point cannot return a value
-ERROR: 0:3: '' : compilation terminated 
+ERROR: 0:7: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:7: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:7: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/shadowing/short_names/renamer/type.wgsl.expected.ir.glsl b/test/tint/shadowing/short_names/renamer/type.wgsl.expected.ir.glsl
index f297654..fbb1c7e 100644
--- a/test/tint/shadowing/short_names/renamer/type.wgsl.expected.ir.glsl
+++ b/test/tint/shadowing/short_names/renamer/type.wgsl.expected.ir.glsl
@@ -1,11 +1,33 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+
+struct vec4f {
+  int i;
+};
+
+vec4 tint_symbol_inner(uint VertexIndex) {
+  vec4f s = vec4f(1);
+  float f = float(s.i);
+  bool b = bool(f);
+  float v = ((b.x) ? (vec4(1.0f).x) : (vec4(0.0f).x));
+  float v_1 = ((b.y) ? (vec4(1.0f).y) : (vec4(0.0f).y));
+  float v_2 = ((b.z) ? (vec4(1.0f).z) : (vec4(0.0f).z));
+  return vec4(v, v_1, v_2, ((b.w) ? (vec4(1.0f).w) : (vec4(0.0f).w)));
+}
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:12: 'scalar swizzle' : not supported with this profile: es
+ERROR: 0:12: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.ir.glsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.ir.glsl
+++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.ir.glsl b/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.ir.glsl
+++ b/test/tint/statements/compound_assign/complex_lhs.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/statements/compound_assign/for_loop.wgsl.expected.ir.glsl b/test/tint/statements/compound_assign/for_loop.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/statements/compound_assign/for_loop.wgsl.expected.ir.glsl
+++ b/test/tint/statements/compound_assign/for_loop.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/statements/decrement/complex.wgsl.expected.ir.glsl b/test/tint/statements/decrement/complex.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/statements/decrement/complex.wgsl.expected.ir.glsl
+++ b/test/tint/statements/decrement/complex.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/statements/discard/atomic_cmpxchg.wgsl.expected.ir.glsl b/test/tint/statements/discard/atomic_cmpxchg.wgsl.expected.ir.glsl
index 072de26..8aeaa3c 100644
--- a/test/tint/statements/discard/atomic_cmpxchg.wgsl.expected.ir.glsl
+++ b/test/tint/statements/discard/atomic_cmpxchg.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Atomic
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: atomicCompareExchangeWeak
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/statements/discard/atomic_in_for_loop_continuing.wgsl.expected.ir.glsl b/test/tint/statements/discard/atomic_in_for_loop_continuing.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/statements/discard/atomic_in_for_loop_continuing.wgsl.expected.ir.glsl
+++ b/test/tint/statements/discard/atomic_in_for_loop_continuing.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/statements/increment/complex.wgsl.expected.ir.glsl b/test/tint/statements/increment/complex.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/statements/increment/complex.wgsl.expected.ir.glsl
+++ b/test/tint/statements/increment/complex.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/function_scope_declarations.wgsl.expected.ir.glsl b/test/tint/types/function_scope_declarations.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/types/function_scope_declarations.wgsl.expected.ir.glsl
+++ b/test/tint/types/function_scope_declarations.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.ir.glsl
index 40e925e..f8978b0 100644
--- a/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/compute_subgroup_builtins.wgsl.expected.ir.glsl
@@ -1,17 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-uint tint_symbol[];
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main(uint subgroup_invocation_id, uint subgroup_size) {
-  tint_symbol[subgroup_invocation_id] = subgroup_size;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:3: '' : array size required
-ERROR: 1 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.ir.glsl
index ae34def..f8978b0 100644
--- a/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/compute_subgroup_builtins_struct.wgsl.expected.ir.glsl
@@ -1,22 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-struct ComputeInputs {
-  uint subgroup_invocation_id;
-  uint subgroup_size;
-};
-
-uint tint_symbol[];
-layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
-void main(ComputeInputs inputs) {
-  tint_symbol[inputs.subgroup_invocation_id] = inputs.subgroup_size;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:8: '' : array size required
-ERROR: 1 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/types/functions/shader_io/fragment_input_builtins.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_input_builtins.wgsl.expected.ir.glsl
index 56df566..b7d7711 100644
--- a/test/tint/types/functions/shader_io/fragment_input_builtins.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_input_builtins.wgsl.expected.ir.glsl
@@ -1,19 +1,22 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
-void main(vec4 position, bool front_facing, uint sample_index, uint sample_mask) {
+void tint_symbol_inner(vec4 position, bool front_facing, uint sample_index, uint sample_mask) {
   if (front_facing) {
     vec4 foo = position;
     uint bar = (sample_index + sample_mask);
   }
 }
+void main() {
+  tint_symbol_inner(gl_FragCoord, gl_FrontFacing, gl_SampleID, gl_SampleMaskIn);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:6: 'main' : function cannot take any parameter(s) 
-ERROR: 0:6: '' : compilation terminated 
+ERROR: 0:13: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:13: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_input_builtins_struct.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_input_builtins_struct.wgsl.expected.ir.glsl
index b60f5cf..756267e 100644
--- a/test/tint/types/functions/shader_io/fragment_input_builtins_struct.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_input_builtins_struct.wgsl.expected.ir.glsl
@@ -1,6 +1,7 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
@@ -12,15 +13,18 @@
   uint sample_mask;
 };
 
-void main(FragmentInputs inputs) {
+void tint_symbol_inner(FragmentInputs inputs) {
   if (inputs.front_facing) {
     vec4 foo = inputs.position;
     uint bar = (inputs.sample_index + inputs.sample_mask);
   }
 }
+void main() {
+  tint_symbol_inner(FragmentInputs(gl_FragCoord, gl_FrontFacing, gl_SampleID, gl_SampleMaskIn));
+}
 error: Error parsing GLSL shader:
-ERROR: 0:13: 'main' : function cannot take any parameter(s) 
-ERROR: 0:13: '' : compilation terminated 
+ERROR: 0:21: 'constructor' : array argument must be sized 
+ERROR: 0:21: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_input_mixed.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_input_mixed.wgsl.expected.ir.glsl
index cd09978..e5bf037 100644
--- a/test/tint/types/functions/shader_io/fragment_input_mixed.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_input_mixed.wgsl.expected.ir.glsl
@@ -1,6 +1,7 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
@@ -15,7 +16,11 @@
   uint sample_mask;
 };
 
-void main(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2) {
+layout(location = 0) flat in int tint_symbol_loc0_Input;
+layout(location = 1) flat in uint tint_symbol_loc1_Input;
+layout(location = 3) in vec4 tint_symbol_loc3_Input;
+layout(location = 2) in float tint_symbol_loc2_Input;
+void tint_symbol_inner(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2) {
   if (front_facing) {
     vec4 foo = inputs0.position;
     uint bar = (sample_index + inputs1.sample_mask);
@@ -25,9 +30,17 @@
     vec4 v = inputs1.loc3;
   }
 }
+void main() {
+  FragmentInputs0 v_1 = FragmentInputs0(gl_FragCoord, tint_symbol_loc0_Input);
+  bool v_2 = gl_FrontFacing;
+  uint v_3 = tint_symbol_loc1_Input;
+  uint v_4 = gl_SampleID;
+  FragmentInputs1 v_5 = FragmentInputs1(tint_symbol_loc3_Input, gl_SampleMaskIn);
+  tint_symbol_inner(v_1, v_2, v_3, v_4, v_5, tint_symbol_loc2_Input);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:16: 'main' : function cannot take any parameter(s) 
-ERROR: 0:16: '' : compilation terminated 
+ERROR: 0:35: '=' :  cannot convert from ' flat in lowp int SampleId' to ' temp highp uint'
+ERROR: 0:35: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.glsl
index add9442..a26dbee 100644
--- a/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_input_mixed_f16.wgsl.expected.ir.glsl
@@ -1,6 +1,8 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+#extension GL_AMD_gpu_shader_half_float: require
 precision highp float;
 precision highp int;
 
@@ -9,7 +11,6 @@
   vec4 position;
   int loc0;
 };
-#extension GL_AMD_gpu_shader_half_float: require
 
 struct FragmentInputs1 {
   vec4 loc3;
@@ -17,7 +18,13 @@
   uint sample_mask;
 };
 
-void main(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2, float16_t loc4) {
+layout(location = 0) flat in int tint_symbol_loc0_Input;
+layout(location = 1) flat in uint tint_symbol_loc1_Input;
+layout(location = 3) in vec4 tint_symbol_loc3_Input;
+layout(location = 5) in f16vec3 tint_symbol_loc5_Input;
+layout(location = 2) in float tint_symbol_loc2_Input;
+layout(location = 4) in float16_t tint_symbol_loc4_Input;
+void tint_symbol_inner(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2, float16_t loc4) {
   if (front_facing) {
     vec4 foo = inputs0.position;
     uint bar = (sample_index + inputs1.sample_mask);
@@ -29,9 +36,17 @@
     f16vec3 y = inputs1.loc5;
   }
 }
+void main() {
+  FragmentInputs0 v_1 = FragmentInputs0(gl_FragCoord, tint_symbol_loc0_Input);
+  bool v_2 = gl_FrontFacing;
+  uint v_3 = tint_symbol_loc1_Input;
+  uint v_4 = gl_SampleID;
+  FragmentInputs1 v_5 = FragmentInputs1(tint_symbol_loc3_Input, tint_symbol_loc5_Input, gl_SampleMaskIn);
+  tint_symbol_inner(v_1, v_2, v_3, v_4, v_5, tint_symbol_loc2_Input, tint_symbol_loc4_Input);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:18: 'main' : function cannot take any parameter(s) 
-ERROR: 0:18: '' : compilation terminated 
+ERROR: 0:41: '=' :  cannot convert from ' flat in lowp int SampleId' to ' temp highp uint'
+ERROR: 0:41: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_output_builtins.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_output_builtins.wgsl.expected.ir.glsl
index e022441..be5f93d 100644
--- a/test/tint/types/functions/shader_io/fragment_output_builtins.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_output_builtins.wgsl.expected.ir.glsl
@@ -4,40 +4,26 @@
 precision highp float;
 precision highp int;
 
-precision highp float;
-precision highp int;
-
-
-float main() {
+float main1_inner() {
   return 1.0f;
 }
-uint main() {
-  return 1u;
+void main() {
+  gl_FragDepth = main1_inner();
 }
-error: Error parsing GLSL shader:
-ERROR: 0:9: 'float' :  entry point cannot return a value
-ERROR: 0:9: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
-
-
-
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-precision highp float;
-precision highp int;
-
-
-float main() {
-  return 1.0f;
-}
-uint main() {
+uint main2_inner() {
   return 1u;
 }
+void main() {
+  gl_SampleMask = main2_inner();
+}
 error: Error parsing GLSL shader:
-ERROR: 0:9: 'float' :  entry point cannot return a value
-ERROR: 0:9: '' : compilation terminated 
+ERROR: 0:10: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:10: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_output_builtins_struct.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_output_builtins_struct.wgsl.expected.ir.glsl
index ccfc474..7f65c90 100644
--- a/test/tint/types/functions/shader_io/fragment_output_builtins_struct.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_output_builtins_struct.wgsl.expected.ir.glsl
@@ -1,21 +1,27 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+precision highp float;
+precision highp int;
+
 
 struct FragmentOutputs {
   float frag_depth;
   uint sample_mask;
 };
-precision highp float;
-precision highp int;
 
-
-FragmentOutputs main() {
+FragmentOutputs tint_symbol_inner() {
   return FragmentOutputs(1.0f, 1u);
 }
+void main() {
+  FragmentOutputs v = tint_symbol_inner();
+  gl_FragDepth = v.frag_depth;
+  gl_SampleMask = v.sample_mask;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:18: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:18: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_output_mixed.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_output_mixed.wgsl.expected.ir.glsl
index fc29edb..bd8be70 100644
--- a/test/tint/types/functions/shader_io/fragment_output_mixed.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_output_mixed.wgsl.expected.ir.glsl
@@ -1,6 +1,10 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+precision highp float;
+precision highp int;
+
 
 struct FragmentOutputs {
   int loc0;
@@ -10,16 +14,26 @@
   uint sample_mask;
   vec4 loc3;
 };
-precision highp float;
-precision highp int;
 
-
-FragmentOutputs main() {
+layout(location = 0) out int tint_symbol_loc0_Output;
+layout(location = 1) out uint tint_symbol_loc1_Output;
+layout(location = 2) out float tint_symbol_loc2_Output;
+layout(location = 3) out vec4 tint_symbol_loc3_Output;
+FragmentOutputs tint_symbol_inner() {
   return FragmentOutputs(1, 2.0f, 1u, 1.0f, 2u, vec4(1.0f, 2.0f, 3.0f, 4.0f));
 }
+void main() {
+  FragmentOutputs v = tint_symbol_inner();
+  tint_symbol_loc0_Output = v.loc0;
+  gl_FragDepth = v.frag_depth;
+  tint_symbol_loc1_Output = v.loc1;
+  tint_symbol_loc2_Output = v.loc2;
+  gl_SampleMask = v.sample_mask;
+  tint_symbol_loc3_Output = v.loc3;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:5: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:5: '' : compilation terminated 
+ERROR: 0:29: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:29: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.glsl
index 3222a74..0bb5789 100644
--- a/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_output_mixed_f16.wgsl.expected.ir.glsl
@@ -1,7 +1,11 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 #extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
+
 
 struct FragmentOutputs {
   int loc0;
@@ -13,16 +17,30 @@
   float16_t loc4;
   f16vec3 loc5;
 };
-precision highp float;
-precision highp int;
 
-
-FragmentOutputs main() {
+layout(location = 0) out int tint_symbol_loc0_Output;
+layout(location = 1) out uint tint_symbol_loc1_Output;
+layout(location = 2) out float tint_symbol_loc2_Output;
+layout(location = 3) out vec4 tint_symbol_loc3_Output;
+layout(location = 4) out float16_t tint_symbol_loc4_Output;
+layout(location = 5) out f16vec3 tint_symbol_loc5_Output;
+FragmentOutputs tint_symbol_inner() {
   return FragmentOutputs(1, 2.0f, 1u, 1.0f, 2u, vec4(1.0f, 2.0f, 3.0f, 4.0f), 2.25hf, f16vec3(3.0hf, 5.0hf, 8.0hf));
 }
+void main() {
+  FragmentOutputs v = tint_symbol_inner();
+  tint_symbol_loc0_Output = v.loc0;
+  gl_FragDepth = v.frag_depth;
+  tint_symbol_loc1_Output = v.loc1;
+  tint_symbol_loc2_Output = v.loc2;
+  gl_SampleMask = v.sample_mask;
+  tint_symbol_loc3_Output = v.loc3;
+  tint_symbol_loc4_Output = v.loc4;
+  tint_symbol_loc5_Output = v.loc5;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:6: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:6: '' : compilation terminated 
+ERROR: 0:34: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:34: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/fragment_subgroup_builtins.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_subgroup_builtins.wgsl.expected.ir.glsl
index 1cda96a..f8978b0 100644
--- a/test/tint/types/functions/shader_io/fragment_subgroup_builtins.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_subgroup_builtins.wgsl.expected.ir.glsl
@@ -1,19 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
-precision highp float;
-precision highp int;
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-
-uint tint_symbol[];
-void main(uint subgroup_invocation_id, uint subgroup_size) {
-  tint_symbol[subgroup_invocation_id] = subgroup_size;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:6: '' : array size required
-ERROR: 1 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/types/functions/shader_io/fragment_subgroup_builtins_struct.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/fragment_subgroup_builtins_struct.wgsl.expected.ir.glsl
index dee12f1..f8978b0 100644
--- a/test/tint/types/functions/shader_io/fragment_subgroup_builtins_struct.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/fragment_subgroup_builtins_struct.wgsl.expected.ir.glsl
@@ -1,24 +1,11 @@
 SKIP: INVALID
 
-#version 310 es
-precision highp float;
-precision highp int;
+<dawn>/src/tint/lang/glsl/writer/raise/shader_io.cc:109 internal compiler error: TINT_UNREACHABLE 
+********************************************************************
+*  The tint shader compiler has encountered an unexpected error.   *
+*                                                                  *
+*  Please help us fix this issue by submitting a bug report at     *
+*  crbug.com/tint with the source program that triggered the bug.  *
+********************************************************************
 
-
-struct FragmentInputs {
-  uint subgroup_invocation_id;
-  uint subgroup_size;
-};
-
-uint tint_symbol[];
-void main(FragmentInputs inputs) {
-  tint_symbol[inputs.subgroup_invocation_id] = inputs.subgroup_size;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:11: '' : array size required
-ERROR: 1 compilation errors.  No code generated.
-
-
-
-
-tint executable returned error: exit status 1
+tint executable returned error: signal: trace/BPT trap
diff --git a/test/tint/types/functions/shader_io/vertex_input_builtins.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/vertex_input_builtins.wgsl.expected.ir.glsl
index f1f6b23..d638b08 100644
--- a/test/tint/types/functions/shader_io/vertex_input_builtins.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/vertex_input_builtins.wgsl.expected.ir.glsl
@@ -2,14 +2,20 @@
 
 #version 310 es
 
-vec4 main(uint vertex_index, uint instance_index) {
+vec4 tint_symbol_inner(uint vertex_index, uint instance_index) {
   uint foo = (vertex_index + instance_index);
   return vec4(0.0f);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID, gl_InstanceID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:3: 'main' : function cannot take any parameter(s) 
-ERROR: 0:3: 'float' :  entry point cannot return a value
-ERROR: 0:3: '' : compilation terminated 
+ERROR: 0:8: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:8: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:8: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/vertex_input_builtins_struct.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/vertex_input_builtins_struct.wgsl.expected.ir.glsl
index b84261f..3370b31 100644
--- a/test/tint/types/functions/shader_io/vertex_input_builtins_struct.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/vertex_input_builtins_struct.wgsl.expected.ir.glsl
@@ -2,19 +2,26 @@
 
 #version 310 es
 
+
 struct VertexInputs {
   uint vertex_index;
   uint instance_index;
 };
 
-vec4 main(VertexInputs inputs) {
+vec4 tint_symbol_inner(VertexInputs inputs) {
   uint foo = (inputs.vertex_index + inputs.instance_index);
   return vec4(0.0f);
 }
+void main() {
+  gl_Position = tint_symbol_inner(VertexInputs(gl_VertexID, gl_InstanceID));
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:8: 'main' : function cannot take any parameter(s) 
-ERROR: 0:8: 'float' :  entry point cannot return a value
-ERROR: 0:8: '' : compilation terminated 
+ERROR: 0:14: 'constructor' :  cannot convert parameter 1 from ' gl_VertexId highp int VertexId' to ' global highp uint'
+ERROR: 0:14: ' temp structure{ global highp uint vertex_index,  global highp uint instance_index}' : cannot construct with these arguments 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/functions/shader_io/vertex_input_mixed.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/vertex_input_mixed.wgsl.expected.ir.glsl
index ab35d37..8dcda62 100644
--- a/test/tint/types/functions/shader_io/vertex_input_mixed.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/vertex_input_mixed.wgsl.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct VertexInputs0 {
   uint vertex_index;
   int loc0;
@@ -12,7 +13,11 @@
   vec4 loc3;
 };
 
-vec4 main(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) {
+layout(location = 0) in int tint_symbol_loc0_Input;
+layout(location = 1) in uint tint_symbol_loc1_Input;
+layout(location = 2) in float tint_symbol_loc2_Input;
+layout(location = 3) in vec4 tint_symbol_loc3_Input;
+vec4 tint_symbol_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) {
   uint foo = (inputs0.vertex_index + instance_index);
   int i = inputs0.loc0;
   uint u = loc1;
@@ -20,11 +25,21 @@
   vec4 v = inputs1.loc3;
   return vec4(0.0f);
 }
+void main() {
+  VertexInputs0 v_1 = VertexInputs0(gl_VertexID, tint_symbol_loc0_Input);
+  uint v_2 = tint_symbol_loc1_Input;
+  uint v_3 = gl_InstanceID;
+  gl_Position = tint_symbol_inner(v_1, v_2, v_3, VertexInputs1(tint_symbol_loc2_Input, tint_symbol_loc3_Input));
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:13: 'main' : function cannot take any parameter(s) 
-ERROR: 0:13: 'float' :  entry point cannot return a value
-ERROR: 0:13: '' : compilation terminated 
-ERROR: 3 compilation errors.  No code generated.
+ERROR: 0:27: 'constructor' :  cannot convert parameter 1 from ' gl_VertexId highp int VertexId' to ' global highp uint'
+ERROR: 0:27: ' temp structure{ global highp uint vertex_index,  global highp int loc0}' : cannot construct with these arguments 
+ERROR: 0:27: '=' :  cannot convert from ' const float' to ' temp structure{ global highp uint vertex_index,  global highp int loc0}'
+ERROR: 0:27: '' : compilation terminated 
+ERROR: 4 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.glsl b/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.glsl
index 8721d13..70547bf 100644
--- a/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.glsl
+++ b/test/tint/types/functions/shader_io/vertex_input_mixed_f16.wgsl.expected.ir.glsl
@@ -1,12 +1,13 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
 
 struct VertexInputs0 {
   uint vertex_index;
   int loc0;
 };
-#extension GL_AMD_gpu_shader_half_float: require
 
 struct VertexInputs1 {
   float loc2;
@@ -14,7 +15,13 @@
   f16vec3 loc5;
 };
 
-vec4 main(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1, float16_t loc4) {
+layout(location = 0) in int tint_symbol_loc0_Input;
+layout(location = 1) in uint tint_symbol_loc1_Input;
+layout(location = 2) in float tint_symbol_loc2_Input;
+layout(location = 3) in vec4 tint_symbol_loc3_Input;
+layout(location = 5) in f16vec3 tint_symbol_loc5_Input;
+layout(location = 4) in float16_t tint_symbol_loc4_Input;
+vec4 tint_symbol_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1, float16_t loc4) {
   uint foo = (inputs0.vertex_index + instance_index);
   int i = inputs0.loc0;
   uint u = loc1;
@@ -24,11 +31,22 @@
   f16vec3 y = inputs1.loc5;
   return vec4(0.0f);
 }
+void main() {
+  VertexInputs0 v_1 = VertexInputs0(gl_VertexID, tint_symbol_loc0_Input);
+  uint v_2 = tint_symbol_loc1_Input;
+  uint v_3 = gl_InstanceID;
+  VertexInputs1 v_4 = VertexInputs1(tint_symbol_loc2_Input, tint_symbol_loc3_Input, tint_symbol_loc5_Input);
+  gl_Position = tint_symbol_inner(v_1, v_2, v_3, v_4, tint_symbol_loc4_Input);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:15: 'main' : function cannot take any parameter(s) 
-ERROR: 0:15: 'float' :  entry point cannot return a value
-ERROR: 0:15: '' : compilation terminated 
-ERROR: 3 compilation errors.  No code generated.
+ERROR: 0:33: 'constructor' :  cannot convert parameter 1 from ' gl_VertexId highp int VertexId' to ' global highp uint'
+ERROR: 0:33: ' temp structure{ global highp uint vertex_index,  global highp int loc0}' : cannot construct with these arguments 
+ERROR: 0:33: '=' :  cannot convert from ' const float' to ' temp structure{ global highp uint vertex_index,  global highp int loc0}'
+ERROR: 0:33: '' : compilation terminated 
+ERROR: 4 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/types/module_scope_vars_pointers.wgsl.expected.ir.glsl b/test/tint/types/module_scope_vars_pointers.wgsl.expected.ir.glsl
index 56f48c5..1c00ea3 100644
--- a/test/tint/types/module_scope_vars_pointers.wgsl.expected.ir.glsl
+++ b/test/tint/types/module_scope_vars_pointers.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: workgroupBarrier
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/sampler.wgsl.expected.ir.glsl b/test/tint/types/sampler.wgsl.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/types/sampler.wgsl.expected.ir.glsl
+++ b/test/tint/types/sampler.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/short_names/short_names.wgsl.expected.ir.glsl b/test/tint/types/short_names/short_names.wgsl.expected.ir.glsl
index 066a8ba..cc2d30f 100644
--- a/test/tint/types/short_names/short_names.wgsl.expected.ir.glsl
+++ b/test/tint/types/short_names/short_names.wgsl.expected.ir.glsl
@@ -2,13 +2,19 @@
 
 #version 310 es
 
-vec4 main(uint VertexIndex) {
+vec4 tint_symbol_inner(uint VertexIndex) {
   return vec4(0.0f, 0.0f, 0.0f, 1.0f);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:3: 'main' : function cannot take any parameter(s) 
-ERROR: 0:3: 'float' :  entry point cannot return a value
-ERROR: 0:3: '' : compilation terminated 
+ERROR: 0:7: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:7: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:7: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/types/texture/depth/2d.wgsl.expected.ir.glsl b/test/tint/types/texture/depth/2d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/depth/2d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/depth/2d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/depth/2d_array.wgsl.expected.ir.glsl b/test/tint/types/texture/depth/2d_array.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/depth/2d_array.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/depth/2d_array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/depth/cube.wgsl.expected.ir.glsl b/test/tint/types/texture/depth/cube.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/depth/cube.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/depth/cube.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl b/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/multisampled/2d.wgsl.expected.ir.glsl b/test/tint/types/texture/multisampled/2d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/multisampled/2d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/multisampled/2d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/sampled/1d.wgsl.expected.ir.glsl b/test/tint/types/texture/sampled/1d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/sampled/1d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/sampled/1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/sampled/2d.wgsl.expected.ir.glsl b/test/tint/types/texture/sampled/2d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/sampled/2d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/sampled/2d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/sampled/2d_array.wgsl.expected.ir.glsl b/test/tint/types/texture/sampled/2d_array.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/sampled/2d_array.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/sampled/2d_array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/sampled/3d.wgsl.expected.ir.glsl b/test/tint/types/texture/sampled/3d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/sampled/3d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/sampled/3d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/sampled/cube.wgsl.expected.ir.glsl b/test/tint/types/texture/sampled/cube.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/sampled/cube.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/sampled/cube.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl b/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/storage/1d.wgsl.expected.ir.glsl b/test/tint/types/texture/storage/1d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/storage/1d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/storage/1d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/storage/2d.wgsl.expected.ir.glsl b/test/tint/types/texture/storage/2d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/storage/2d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/storage/2d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/storage/2d_array.wgsl.expected.ir.glsl b/test/tint/types/texture/storage/2d_array.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/storage/2d_array.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/storage/2d_array.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/types/texture/storage/3d.wgsl.expected.ir.glsl b/test/tint/types/texture/storage/3d.wgsl.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/types/texture/storage/3d.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/storage/3d.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertResultSignedness_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl
index b771681..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ConvertUintCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_1D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_2DArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_2D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_3D_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Good_Cube_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_DepthMultisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_Depth_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_ConvertSampleOperand_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_Multisampled_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageFetch_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..060ad63 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySamples_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..060ad63 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySamples_UnsignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_NonArrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySize_Arrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageQuerySize_NonArrayed_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageRead_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingGrad_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleExplicitLod_UsingLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_BothDrefAndNonDref_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_6.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_7.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_8.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjDrefExplicitLod_CheckForLod0_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjDrefImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..a387480 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Grad_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleGrad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjExplicitLod_Lod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..de3e0f3 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_Bias_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleBias
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_DepthTexture_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleProjImplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_7.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_7.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_7.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_7.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_SameSignedness_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Signedness_AndWidening_SpvParserHandleTest_ImageAccessTest_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/ImageWrite_OptionalParams_SpvParserHandleTest_ImageAccessTest_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.ir.glsl
index b771681..060ad63 100644
--- a/test/tint/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Multisampled_Only2DNonArrayedIsValid_SpvParserHandleTest_ImageDeclTest_DeclareAndUseHandle_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..cd405ed 100644
--- a/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveFloatCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:618 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveFloatCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..daed05e 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_Arrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
index b771681..daed05e 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
index b771681..c42d861 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl
index b771681..daed05e 100644
--- a/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/PreserveIntCoords_NonArrayed_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_1.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_3.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_5.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_7.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_7.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_7.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_7.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_1.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_3.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_5.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_7.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_7.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_7.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_CopyObject_7.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_1.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_3.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_5.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_7.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_7.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_7.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_Direct_7.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.ir.glsl
index 35602ce..daed05e 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.ir.glsl
index a475c65..c42d861 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_3.spvasm.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_4.spvasm.expected.ir.glsl
index d0115e4..fbd651e 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureDimensions
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.ir.glsl
index 43548a7..2f10a04 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_5.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumLevels
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.ir.glsl
index 3adf1b1..060ad63 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_6.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureNumSamples
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_2.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_2.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_2.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_2.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_3.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_3.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_3.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_3.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_4.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_6.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_6.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_6.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_6.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_7.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_7.spvasm.expected.ir.glsl
index b771681..6935ac3 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_7.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_7.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.ir.glsl
index b771681..7c0deda 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_8.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompare
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.ir.glsl
index b771681..c6fdcd1 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_SampledImage_Variable_9.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSampleCompareLevel
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_BuiltinVertexIndex.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_BuiltinVertexIndex.spvasm.expected.ir.glsl
index 0a71379..26f57be 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_BuiltinVertexIndex.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_BuiltinVertexIndex.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 position_1_1;
 };
@@ -10,15 +11,21 @@
 vec4 position_1 = vec4(0.0f);
 void main_1() {
 }
-main_out main(uint x_2_param) {
+main_out tint_symbol_inner(uint x_2_param) {
   x_2 = x_2_param;
   main_1();
   return main_out(position_1);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID).position_1_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:11: 'main' : function cannot take any parameter(s) 
-ERROR: 0:11: 'structure' :  entry point cannot return a value
-ERROR: 0:11: '' : compilation terminated 
+ERROR: 0:18: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:18: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:18: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_OppositeSignedness.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_OppositeSignedness.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_OppositeSignedness.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_OppositeSignedness.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_SameSignedness.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_SameSignedness.spvasm.expected.ir.glsl
index 425aa06..65b897d 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_SameSignedness.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_Input_SameSignedness.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 x_4_1;
 };
@@ -11,15 +12,21 @@
 void main_1() {
   uint x_2 = x_1;
 }
-main_out main(uint x_1_param) {
+main_out tint_symbol_inner(uint x_1_param) {
   x_1 = x_1_param;
   main_1();
   return main_out(x_4);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_InstanceID).x_4_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: 'structure' :  entry point cannot return a value
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:19: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:19: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Signed.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.ir.glsl
index 2dc25a7..1f3db5f 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_In_Unsigned.spvasm.expected.ir.glsl
@@ -1,20 +1,23 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1[1] = uint[1](0u);
 void main_1() {
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1[0] = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleMaskIn);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:9: 'main' : function cannot take any parameter(s) 
-ERROR: 0:9: '' : compilation terminated 
+ERROR: 0:14: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Signed_Initializer.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.ir.glsl
index b675b38..397b7a2 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_EntryPointWrapping_BuiltinVar_SampleMask_Out_Unsigned_Initializer.spvasm.expected.ir.glsl
@@ -1,24 +1,28 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  uint x_1_1;
-};
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  uint x_1_1;
+};
+
 uint x_1[1] = uint[1](0u);
 void main_1() {
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_1[0]);
 }
+void main() {
+  gl_SampleMask = tint_symbol_inner().x_1_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:13: 'structure' :  entry point cannot return a value
-ERROR: 0:13: '' : compilation terminated 
+ERROR: 0:19: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_Direct.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_I32_Load_Direct.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl
index 7a71ae7..353d4c9 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 position_1_1;
 };
@@ -11,15 +12,21 @@
 void main_1() {
   uint x_2 = x_4;
 }
-main_out main(uint x_4_param) {
+main_out tint_symbol_inner(uint x_4_param) {
   x_4 = x_4_param;
   main_1();
   return main_out(position_1);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_InstanceID).position_1_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: 'structure' :  entry point cannot return a value
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:19: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:19: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl
index 7a71ae7..353d4c9 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 position_1_1;
 };
@@ -11,15 +12,21 @@
 void main_1() {
   uint x_2 = x_4;
 }
-main_out main(uint x_4_param) {
+main_out tint_symbol_inner(uint x_4_param) {
   x_4 = x_4_param;
   main_1();
   return main_out(position_1);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_InstanceID).position_1_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: 'structure' :  entry point cannot return a value
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:19: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:19: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_Direct.spvasm.expected.ir.glsl
index 7a71ae7..353d4c9 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_Direct.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 position_1_1;
 };
@@ -11,15 +12,21 @@
 void main_1() {
   uint x_2 = x_4;
 }
-main_out main(uint x_4_param) {
+main_out tint_symbol_inner(uint x_4_param) {
   x_4 = x_4_param;
   main_1();
   return main_out(position_1);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_InstanceID).position_1_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: 'structure' :  entry point cannot return a value
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:19: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:19: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_AccessChain.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_I32_Load_Direct.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.ir.glsl
index b9ec6d0..7f70305 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_AccessChain.spvasm.expected.ir.glsl
@@ -1,21 +1,24 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1 = 0u;
 void main_1() {
   uint x_2 = x_1;
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1 = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleID);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:10: 'main' : function cannot take any parameter(s) 
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:15: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.ir.glsl
index b9ec6d0..7f70305 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm.expected.ir.glsl
@@ -1,21 +1,24 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1 = 0u;
 void main_1() {
   uint x_2 = x_1;
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1 = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleID);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:10: 'main' : function cannot take any parameter(s) 
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:15: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.ir.glsl
index b9ec6d0..7f70305 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleId_U32_Load_Direct.spvasm.expected.ir.glsl
@@ -1,21 +1,24 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1 = 0u;
 void main_1() {
   uint x_2 = x_1;
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1 = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleID);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:10: 'main' : function cannot take any parameter(s) 
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:15: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_AccessChain.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_CopyObject.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.ir.glsl
index c20593f..64c78d3 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_AccessChain.spvasm.expected.ir.glsl
@@ -1,21 +1,24 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1[1] = uint[1](0u);
 void main_1() {
   uint x_4 = x_1[0];
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1[0] = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleMaskIn);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:10: 'main' : function cannot take any parameter(s) 
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:15: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.ir.glsl
index c20593f..64c78d3 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_CopyObject.spvasm.expected.ir.glsl
@@ -1,21 +1,24 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1[1] = uint[1](0u);
 void main_1() {
   uint x_4 = x_1[0];
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1[0] = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleMaskIn);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:10: 'main' : function cannot take any parameter(s) 
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:15: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.ir.glsl
index 7b536c5..4e95b64 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm.expected.ir.glsl
@@ -1,21 +1,24 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1[1] = uint[1](0u);
 void main_1() {
   uint x_3 = x_1[0];
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1[0] = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleMaskIn);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:10: 'main' : function cannot take any parameter(s) 
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:15: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.ir.glsl
index 7b536c5..4e95b64 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm.expected.ir.glsl
@@ -1,21 +1,24 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
 precision highp float;
 precision highp int;
 
-
 uint x_1[1] = uint[1](0u);
 void main_1() {
   uint x_3 = x_1[0];
 }
-void main(uint x_1_param) {
+void tint_symbol_inner(uint x_1_param) {
   x_1[0] = x_1_param;
   main_1();
 }
+void main() {
+  tint_symbol_inner(gl_SampleMaskIn);
+}
 error: Error parsing GLSL shader:
-ERROR: 0:10: 'main' : function cannot take any parameter(s) 
-ERROR: 0:10: '' : compilation terminated 
+ERROR: 0:15: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_AccessChain.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_CopyObject.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_I32_Direct.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.ir.glsl
index 96c856f..9080715 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.spvasm.expected.ir.glsl
@@ -1,25 +1,29 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+precision highp float;
+precision highp int;
+
 
 struct main_out {
   uint x_1_1;
 };
-precision highp float;
-precision highp int;
-
 
 uint x_1[1] = uint[1](0u);
 void main_1() {
   x_1[0] = 0u;
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_1[0]);
 }
+void main() {
+  gl_SampleMask = tint_symbol_inner().x_1_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'structure' :  entry point cannot return a value
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:20: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:20: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.ir.glsl
index 96c856f..9080715 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_CopyObject.spvasm.expected.ir.glsl
@@ -1,25 +1,29 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+precision highp float;
+precision highp int;
+
 
 struct main_out {
   uint x_1_1;
 };
-precision highp float;
-precision highp int;
-
 
 uint x_1[1] = uint[1](0u);
 void main_1() {
   x_1[0] = 0u;
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_1[0]);
 }
+void main() {
+  gl_SampleMask = tint_symbol_inner().x_1_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'structure' :  entry point cannot return a value
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:20: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:20: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.ir.glsl
index 96c856f..9080715 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm.expected.ir.glsl
@@ -1,25 +1,29 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+precision highp float;
+precision highp int;
+
 
 struct main_out {
   uint x_1_1;
 };
-precision highp float;
-precision highp int;
-
 
 uint x_1[1] = uint[1](0u);
 void main_1() {
   x_1[0] = 0u;
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_1[0]);
 }
+void main() {
+  gl_SampleMask = tint_symbol_inner().x_1_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'structure' :  entry point cannot return a value
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:20: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:20: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.ir.glsl
index 96c856f..9080715 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_SampleMask_Out_WithStride.spvasm.expected.ir.glsl
@@ -1,25 +1,29 @@
 SKIP: FAILED
 
 #version 310 es
+#extension GL_OES_sample_variables: require
+precision highp float;
+precision highp int;
+
 
 struct main_out {
   uint x_1_1;
 };
-precision highp float;
-precision highp int;
-
 
 uint x_1[1] = uint[1](0u);
 void main_1() {
   x_1[0] = 0u;
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_1[0]);
 }
+void main() {
+  gl_SampleMask = tint_symbol_inner().x_1_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:14: 'structure' :  entry point cannot return a value
-ERROR: 0:14: '' : compilation terminated 
+ERROR: 0:20: 'assign' :  cannot convert from ' global highp uint' to ' out unsized 1-element array of highp int SampleMaskIn'
+ERROR: 0:20: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_AccessChain.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_CopyObject.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_Direct.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_I32_Load_Direct.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl
index 621dcc8..34936b9 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_AccessChain.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 x_1_1;
 };
@@ -11,15 +12,21 @@
 void main_1() {
   uint x_2 = x_4;
 }
-main_out main(uint x_4_param) {
+main_out tint_symbol_inner(uint x_4_param) {
   x_4 = x_4_param;
   main_1();
   return main_out(x_1);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID).x_1_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: 'structure' :  entry point cannot return a value
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:19: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:19: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl
index 621dcc8..34936b9 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_CopyObject.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 x_1_1;
 };
@@ -11,15 +12,21 @@
 void main_1() {
   uint x_2 = x_4;
 }
-main_out main(uint x_4_param) {
+main_out tint_symbol_inner(uint x_4_param) {
   x_4 = x_4_param;
   main_1();
   return main_out(x_1);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID).x_1_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: 'structure' :  entry point cannot return a value
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:19: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:19: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_Direct.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_Direct.spvasm.expected.ir.glsl
index 621dcc8..34936b9 100644
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_Direct.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_VertexIndex_U32_Load_Direct.spvasm.expected.ir.glsl
@@ -2,6 +2,7 @@
 
 #version 310 es
 
+
 struct main_out {
   vec4 x_1_1;
 };
@@ -11,15 +12,21 @@
 void main_1() {
   uint x_2 = x_4;
 }
-main_out main(uint x_4_param) {
+main_out tint_symbol_inner(uint x_4_param) {
   x_4 = x_4_param;
   main_1();
   return main_out(x_1);
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_VertexID).x_1_1;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'main' : function cannot take any parameter(s) 
-ERROR: 0:12: 'structure' :  entry point cannot return a value
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:19: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:19: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/unittest/reader/spirv/SpvParserHandleTest_NeverGenerateConstDeclForHandle_UseVariableDirectly.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvParserHandleTest_NeverGenerateConstDeclForHandle_UseVariableDirectly.spvasm.expected.ir.glsl
index b771681..a5b1e86 100644
--- a/test/tint/unittest/reader/spirv/SpvParserHandleTest_NeverGenerateConstDeclForHandle_UseVariableDirectly.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvParserHandleTest_NeverGenerateConstDeclForHandle_UseVariableDirectly.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:585 internal compiler error: Switch() matched no cases. Type: tint::core::type::Sampler
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureSample
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.ir.glsl
index 697d463..5bd4476 100644
--- a/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.ir.glsl
+++ b/test/tint/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromVar.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: arrayLength
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/var/uses/instance_index.wgsl.expected.ir.glsl b/test/tint/var/uses/instance_index.wgsl.expected.ir.glsl
index d4c89cd..946f53f 100644
--- a/test/tint/var/uses/instance_index.wgsl.expected.ir.glsl
+++ b/test/tint/var/uses/instance_index.wgsl.expected.ir.glsl
@@ -2,13 +2,19 @@
 
 #version 310 es
 
-vec4 main(uint b) {
+vec4 tint_symbol_inner(uint b) {
   return vec4(float(b));
 }
+void main() {
+  gl_Position = tint_symbol_inner(gl_InstanceID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:3: 'main' : function cannot take any parameter(s) 
-ERROR: 0:3: 'float' :  entry point cannot return a value
-ERROR: 0:3: '' : compilation terminated 
+ERROR: 0:7: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:7: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:7: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/var/uses/push_constant_and_instance_index.wgsl.expected.ir.glsl b/test/tint/var/uses/push_constant_and_instance_index.wgsl.expected.ir.glsl
index 007cb43..9d68a35 100644
--- a/test/tint/var/uses/push_constant_and_instance_index.wgsl.expected.ir.glsl
+++ b/test/tint/var/uses/push_constant_and_instance_index.wgsl.expected.ir.glsl
@@ -2,15 +2,26 @@
 
 #version 310 es
 
-uniform float a;
-vec4 main(uint b) {
-  float v = a;
-  return vec4((v + float(b)));
+
+struct tint_symbol_2 {
+  float tint_symbol_1;
+};
+
+layout(location = 0) uniform tint_symbol_2 v;
+vec4 tint_symbol_inner(uint b) {
+  float v_1 = v.tint_symbol_1;
+  return vec4((v_1 + float(b)));
+}
+void main() {
+  gl_Position = tint_symbol_inner(gl_InstanceID);
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  gl_PointSize = 1.0f;
 }
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'main' : function cannot take any parameter(s) 
-ERROR: 0:4: 'float' :  entry point cannot return a value
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:14: 'tint_symbol_inner' : no matching overloaded function found 
+ERROR: 0:14: 'assign' :  cannot convert from ' const float' to ' gl_Position highp 4-component vector of float Position'
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 3 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/combined_operations/negintdivand/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/combined_operations/negintdivand/1.spvasm.expected.ir.glsl
index f297654..457377a 100644
--- a/test/tint/vk-gl-cts/combined_operations/negintdivand/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/combined_operations/negintdivand/1.spvasm.expected.ir.glsl
@@ -1,11 +1,52 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct main_out {
+  vec4 color_out_1;
+};
+
+vec4 frag_color = vec4(0.0f);
+vec4 color_out = vec4(0.0f);
+layout(location = 1) in vec4 tint_symbol_loc1_Input;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+ivec2 tint_v2f32_to_v2i32(vec2 value) {
+  ivec2 v = ivec2(value);
+  int v_1 = (((value >= vec2(-2147483648.0f)).x) ? (v.x) : (ivec2((-2147483647 - 1)).x));
+  ivec2 v_2 = ivec2(v_1, (((value >= vec2(-2147483648.0f)).y) ? (v.y) : (ivec2((-2147483647 - 1)).y)));
+  int v_3 = (((value <= vec2(2147483520.0f)).x) ? (v_2.x) : (ivec2(2147483647).x));
+  return ivec2(v_3, (((value <= vec2(2147483520.0f)).y) ? (v_2.y) : (ivec2(2147483647).y)));
+}
+void main_1() {
+  ivec2 iv = ivec2(0);
+  iv = tint_v2f32_to_v2i32((frag_color.xy * 256.0f));
+  if (((tint_div_i32(iv.y, 2) & 64) == 64)) {
+    color_out = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    color_out = vec4(0.0f, 1.0f, 1.0f, 1.0f);
+  }
+}
+main_out tint_symbol_inner(vec4 frag_color_param) {
+  frag_color = frag_color_param;
+  main_1();
+  return main_out(color_out);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner(tint_symbol_loc1_Input).color_out_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:15: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:15: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:15: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl.expected.ir.glsl
index f297654..2404c7e 100644
--- a/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl.expected.ir.glsl
@@ -1,11 +1,54 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct main_out {
+  vec4 color_out_1;
+};
+
+vec4 frag_color = vec4(0.0f);
+vec4 color_out = vec4(0.0f);
+layout(location = 1) in vec4 tint_symbol_loc1_Input;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+ivec2 tint_v2f32_to_v2i32(vec2 value) {
+  ivec2 v = ivec2(value);
+  int v_1 = (((value >= vec2(-2147483648.0f)).x) ? (v.x) : (ivec2((-2147483647 - 1)).x));
+  ivec2 v_2 = ivec2(v_1, (((value >= vec2(-2147483648.0f)).y) ? (v.y) : (ivec2((-2147483647 - 1)).y)));
+  int v_3 = (((value <= vec2(2147483520.0f)).x) ? (v_2.x) : (ivec2(2147483647).x));
+  return ivec2(v_3, (((value <= vec2(2147483520.0f)).y) ? (v_2.y) : (ivec2(2147483647).y)));
+}
+void main_1() {
+  ivec2 iv = ivec2(0);
+  vec4 x_28 = frag_color;
+  iv = tint_v2f32_to_v2i32((vec2(x_28[0u], x_28[1u]) * 256.0f));
+  int x_33 = iv.y;
+  if (((tint_div_i32(x_33, 2) & 64) == 64)) {
+    color_out = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    color_out = vec4(0.0f, 1.0f, 1.0f, 1.0f);
+  }
+}
+main_out tint_symbol_inner(vec4 frag_color_param) {
+  frag_color = frag_color_param;
+  main_1();
+  return main_out(color_out);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner(tint_symbol_loc1_Input).color_out_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:15: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:15: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:15: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.spvasm.expected.ir.glsl
index f297654..a11f5cb 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,76 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  float el;
+};
+
+struct buf1 {
+  strided_arr x_GLF_uniform_float_values[3];
+};
+
+struct strided_arr_1 {
+  int el;
+};
+
+struct buf0 {
+  strided_arr_1 x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_2;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+ivec2 tint_v2f32_to_v2i32(vec2 value) {
+  ivec2 v_3 = ivec2(value);
+  int v_4 = (((value >= vec2(-2147483648.0f)).x) ? (v_3.x) : (ivec2((-2147483647 - 1)).x));
+  ivec2 v_5 = ivec2(v_4, (((value >= vec2(-2147483648.0f)).y) ? (v_3.y) : (ivec2((-2147483647 - 1)).y)));
+  int v_6 = (((value <= vec2(2147483520.0f)).x) ? (v_5.x) : (ivec2(2147483647).x));
+  return ivec2(v_6, (((value <= vec2(2147483520.0f)).y) ? (v_5.y) : (ivec2(2147483647).y)));
+}
+void main_1() {
+  ivec2 v = ivec2(0);
+  if ((tint_symbol.y < v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el)) {
+    x_GLF_color = vec4(float(v_2.tint_symbol_5.x_GLF_uniform_int_values[0].el));
+  } else {
+    vec2 v_7 = tint_symbol.xy;
+    vec2 v_8 = (v_7 - vec2(v_1.tint_symbol_3.x_GLF_uniform_float_values[1].el, v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el));
+    v = tint_v2f32_to_v2i32((v_8 * v_1.tint_symbol_3.x_GLF_uniform_float_values[2].el));
+    float v_9 = v_1.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+    float v_10 = float(((v.y - v_2.tint_symbol_5.x_GLF_uniform_int_values[1].el) & v_2.tint_symbol_5.x_GLF_uniform_int_values[1].el));
+    float v_11 = float((v.x & v_2.tint_symbol_5.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(v_9, v_10, v_11, v_1.tint_symbol_3.x_GLF_uniform_float_values[1].el);
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:39: '>=' :  wrong operand types: no operation '>=' exists that takes a left-hand operand of type ' in highp 2-component vector of float' and a right operand of type ' const 2-component vector of float' (or there is no acceptable conversion)
+ERROR: 0:39: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl.expected.ir.glsl
index f297654..f7d8165 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,88 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  float el;
+};
+
+struct buf1 {
+  strided_arr x_GLF_uniform_float_values[3];
+};
+
+struct strided_arr_1 {
+  int el;
+};
+
+struct buf0 {
+  strided_arr_1 x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_2;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+ivec2 tint_v2f32_to_v2i32(vec2 value) {
+  ivec2 v_3 = ivec2(value);
+  int v_4 = (((value >= vec2(-2147483648.0f)).x) ? (v_3.x) : (ivec2((-2147483647 - 1)).x));
+  ivec2 v_5 = ivec2(v_4, (((value >= vec2(-2147483648.0f)).y) ? (v_3.y) : (ivec2((-2147483647 - 1)).y)));
+  int v_6 = (((value <= vec2(2147483520.0f)).x) ? (v_5.x) : (ivec2(2147483647).x));
+  return ivec2(v_6, (((value <= vec2(2147483520.0f)).y) ? (v_5.y) : (ivec2(2147483647).y)));
+}
+void main_1() {
+  ivec2 v = ivec2(0);
+  float x_39 = tint_symbol.y;
+  float x_41 = v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+  if ((x_39 < x_41)) {
+    int x_47 = v_2.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+    float x_48 = float(x_47);
+    x_GLF_color = vec4(x_48, x_48, x_48, x_48);
+  } else {
+    vec4 x_50 = tint_symbol;
+    float x_53 = v_1.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+    float x_55 = v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+    float x_59 = v_1.tint_symbol_3.x_GLF_uniform_float_values[2].el;
+    vec2 v_7 = vec2(x_50[0u], x_50[1u]);
+    v = tint_v2f32_to_v2i32(((v_7 - vec2(x_53, x_55)) * x_59));
+    float x_63 = v_1.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+    int x_65 = v.y;
+    int x_67 = v_2.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+    int x_70 = v_2.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+    int x_74 = v.x;
+    int x_76 = v_2.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+    float x_80 = v_1.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+    float v_8 = float(((x_65 - x_67) & x_70));
+    x_GLF_color = vec4(x_63, v_8, float((x_74 & x_76)), x_80);
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:39: '>=' :  wrong operand types: no operation '>=' exists that takes a left-hand operand of type ' in highp 2-component vector of float' and a right operand of type ' const 2-component vector of float' (or there is no acceptable conversion)
+ERROR: 0:39: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.ir.glsl
index fa345ea..be114f3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   float dist1 = 0.0f;
@@ -25,13 +26,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl.expected.ir.glsl
index 619e4ce..e015af0 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   float dist1 = 0.0f;
@@ -31,13 +32,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:27: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:27: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.glsl
index 1f3658c..83c0d92 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -21,37 +24,41 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf1 x_6;
-uniform buf0 x_9;
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v_1;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_2;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   int i = 0;
-  float v_1 = float(x_6.x_GLF_uniform_int_values[1].el);
-  float v_2 = float(x_6.x_GLF_uniform_int_values[2].el);
-  float v_3 = float(x_6.x_GLF_uniform_int_values[3].el);
-  v = vec4(v_1, v_2, v_3, float(x_6.x_GLF_uniform_int_values[0].el));
-  i = x_6.x_GLF_uniform_int_values[4].el;
+  float v_3 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+  float v_4 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+  float v_5 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el);
+  v = vec4(v_3, v_4, v_5, float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el));
+  i = v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el;
   {
     while(true) {
-      if ((i < x_6.x_GLF_uniform_int_values[0].el)) {
+      if ((i < v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
       } else {
         break;
       }
-      vec4 v_4 = vec4(v.x, v.y, v.z, v.w);
-      vec4 v_5 = vec4(v.x, v.y, v.z, v.w);
       vec4 v_6 = vec4(v.x, v.y, v.z, v.w);
-      mat4 v_7 = mat4(v_4, v_5, v_6, vec4(v.x, v.y, v.z, v.w));
-      if ((v_7[0u][i] > x_9.x_GLF_uniform_float_values[0].el)) {
+      vec4 v_7 = vec4(v.x, v.y, v.z, v.w);
+      vec4 v_8 = vec4(v.x, v.y, v.z, v.w);
+      mat4 v_9 = mat4(v_6, v_7, v_8, vec4(v.x, v.y, v.z, v.w));
+      if ((v_9[0u][i] > v_2.tint_symbol_3.x_GLF_uniform_float_values[0].el)) {
         int x_96 = i;
-        vec4 v_8 = v;
-        vec4 v_9 = vec4(x_9.x_GLF_uniform_float_values[1].el);
-        vec4 v_10 = clamp(v_8, v_9, vec4(x_9.x_GLF_uniform_float_values[0].el));
-        v[x_96] = v_10[x_6.x_GLF_uniform_int_values[1].el];
+        vec4 v_10 = v;
+        vec4 v_11 = vec4(v_2.tint_symbol_3.x_GLF_uniform_float_values[1].el);
+        vec4 v_12 = clamp(v_10, v_11, vec4(v_2.tint_symbol_3.x_GLF_uniform_float_values[0].el));
+        v[x_96] = v_12[v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el];
       }
       {
         i = (i + 1);
@@ -59,23 +66,26 @@
       continue;
     }
   }
-  vec4 v_11 = v;
-  if (all((v_11 == vec4(float(x_6.x_GLF_uniform_int_values[1].el))))) {
-    float v_12 = float(x_6.x_GLF_uniform_int_values[1].el);
-    float v_13 = float(x_6.x_GLF_uniform_int_values[4].el);
-    float v_14 = float(x_6.x_GLF_uniform_int_values[4].el);
-    x_GLF_color = vec4(v_12, v_13, v_14, float(x_6.x_GLF_uniform_int_values[1].el));
+  vec4 v_13 = v;
+  if (all((v_13 == vec4(float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el))))) {
+    float v_14 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_15 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el);
+    float v_16 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el);
+    x_GLF_color = vec4(v_14, v_15, v_16, float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el));
   } else {
-    x_GLF_color = vec4(float(x_6.x_GLF_uniform_int_values[4].el));
+    x_GLF_color = vec4(float(v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:68: 'all' : no matching overloaded function found 
+ERROR: 0:68: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.glsl
index 14e2975..99c6002 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -21,30 +24,34 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf1 x_6;
-uniform buf0 x_9;
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v_1;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_2;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   int i = 0;
-  int x_40 = x_6.x_GLF_uniform_int_values[1].el;
-  int x_43 = x_6.x_GLF_uniform_int_values[2].el;
-  int x_46 = x_6.x_GLF_uniform_int_values[3].el;
-  int x_49 = x_6.x_GLF_uniform_int_values[0].el;
-  float v_1 = float(x_40);
-  float v_2 = float(x_43);
-  float v_3 = float(x_46);
-  v = vec4(v_1, v_2, v_3, float(x_49));
-  int x_53 = x_6.x_GLF_uniform_int_values[4].el;
+  int x_40 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_43 = v_1.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_46 = v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  int x_49 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  float v_3 = float(x_40);
+  float v_4 = float(x_43);
+  float v_5 = float(x_46);
+  v = vec4(v_3, v_4, v_5, float(x_49));
+  int x_53 = v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el;
   i = x_53;
   {
     while(true) {
       int x_58 = i;
-      int x_60 = x_6.x_GLF_uniform_int_values[0].el;
+      int x_60 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
       if ((x_58 < x_60)) {
       } else {
         break;
@@ -54,18 +61,18 @@
       vec4 x_65 = v;
       vec4 x_66 = v;
       int x_88 = i;
-      float x_92 = x_9.x_GLF_uniform_float_values[0].el;
-      vec4 v_4 = vec4(x_63[0u], x_63[1u], x_63[2u], x_63[3u]);
-      vec4 v_5 = vec4(x_64[0u], x_64[1u], x_64[2u], x_64[3u]);
-      vec4 v_6 = vec4(x_65[0u], x_65[1u], x_65[2u], x_65[3u]);
-      if ((mat4(v_4, v_5, v_6, vec4(x_66[0u], x_66[1u], x_66[2u], x_66[3u]))[0u][x_88] > x_92)) {
+      float x_92 = v_2.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+      vec4 v_6 = vec4(x_63[0u], x_63[1u], x_63[2u], x_63[3u]);
+      vec4 v_7 = vec4(x_64[0u], x_64[1u], x_64[2u], x_64[3u]);
+      vec4 v_8 = vec4(x_65[0u], x_65[1u], x_65[2u], x_65[3u]);
+      if ((mat4(v_6, v_7, v_8, vec4(x_66[0u], x_66[1u], x_66[2u], x_66[3u]))[0u][x_88] > x_92)) {
         int x_96 = i;
         vec4 x_97 = v;
-        float x_99 = x_9.x_GLF_uniform_float_values[1].el;
-        float x_102 = x_9.x_GLF_uniform_float_values[0].el;
-        int x_106 = x_6.x_GLF_uniform_int_values[1].el;
-        vec4 v_7 = vec4(x_99, x_99, x_99, x_99);
-        v[x_96] = clamp(x_97, v_7, vec4(x_102, x_102, x_102, x_102))[x_106];
+        float x_99 = v_2.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+        float x_102 = v_2.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+        int x_106 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+        vec4 v_9 = vec4(x_99, x_99, x_99, x_99);
+        v[x_96] = clamp(x_97, v_9, vec4(x_102, x_102, x_102, x_102))[x_106];
       }
       {
         int x_109 = i;
@@ -75,30 +82,33 @@
     }
   }
   vec4 x_111 = v;
-  int x_113 = x_6.x_GLF_uniform_int_values[1].el;
+  int x_113 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
   float x_114 = float(x_113);
   if (all((x_111 == vec4(x_114, x_114, x_114, x_114)))) {
-    int x_122 = x_6.x_GLF_uniform_int_values[1].el;
-    int x_125 = x_6.x_GLF_uniform_int_values[4].el;
-    int x_128 = x_6.x_GLF_uniform_int_values[4].el;
-    int x_131 = x_6.x_GLF_uniform_int_values[1].el;
-    float v_8 = float(x_122);
-    float v_9 = float(x_125);
-    float v_10 = float(x_128);
-    x_GLF_color = vec4(v_8, v_9, v_10, float(x_131));
+    int x_122 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_125 = v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+    int x_128 = v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+    int x_131 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float v_10 = float(x_122);
+    float v_11 = float(x_125);
+    float v_12 = float(x_128);
+    x_GLF_color = vec4(v_10, v_11, v_12, float(x_131));
   } else {
-    int x_135 = x_6.x_GLF_uniform_int_values[4].el;
+    int x_135 = v_1.tint_symbol_1.x_GLF_uniform_int_values[4].el;
     float x_136 = float(x_135);
     x_GLF_color = vec4(x_136, x_136, x_136, x_136);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:85: 'all' : no matching overloaded function found 
+ERROR: 0:85: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.spvasm.expected.ir.glsl
index 4e31885..d455e7e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -21,36 +24,43 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf1 x_6;
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf0 x_9;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec2 v0 = vec2(0.0f);
   vec2 v1 = vec2(0.0f);
-  v0 = vec2(x_6.x_GLF_uniform_float_values[2].el, 3.79999995231628417969f);
-  vec2 v = (v0 - vec2(1.0f));
-  v1 = clamp(v, vec2(0.0f), vec2(x_6.x_GLF_uniform_float_values[1].el));
-  vec2 v_1 = v1;
-  if (all((v_1 == vec2(x_6.x_GLF_uniform_float_values[0].el, x_6.x_GLF_uniform_float_values[1].el)))) {
-    float v_2 = float(x_9.x_GLF_uniform_int_values[0].el);
-    float v_3 = float(x_9.x_GLF_uniform_int_values[1].el);
-    float v_4 = float(x_9.x_GLF_uniform_int_values[1].el);
-    x_GLF_color = vec4(v_2, v_3, v_4, float(x_9.x_GLF_uniform_int_values[0].el));
+  v0 = vec2(v.tint_symbol_1.x_GLF_uniform_float_values[2].el, 3.79999995231628417969f);
+  vec2 v_2 = (v0 - vec2(1.0f));
+  v1 = clamp(v_2, vec2(0.0f), vec2(v.tint_symbol_1.x_GLF_uniform_float_values[1].el));
+  vec2 v_3 = v1;
+  if (all((v_3 == vec2(v.tint_symbol_1.x_GLF_uniform_float_values[0].el, v.tint_symbol_1.x_GLF_uniform_float_values[1].el)))) {
+    float v_4 = float(v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el);
+    float v_5 = float(v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el);
+    float v_6 = float(v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_4, v_5, v_6, float(v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el));
   } else {
-    x_GLF_color = vec4(float(x_9.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(float(v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:43: 'all' : no matching overloaded function found 
+ERROR: 0:43: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl.expected.ir.glsl
index 90110d2..39ca8f7 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -21,46 +24,53 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf1 x_6;
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf0 x_9;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec2 v0 = vec2(0.0f);
   vec2 v1 = vec2(0.0f);
-  float x_37 = x_6.x_GLF_uniform_float_values[2].el;
+  float x_37 = v.tint_symbol_1.x_GLF_uniform_float_values[2].el;
   v0 = vec2(x_37, 3.79999995231628417969f);
   vec2 x_39 = v0;
-  float x_43 = x_6.x_GLF_uniform_float_values[1].el;
+  float x_43 = v.tint_symbol_1.x_GLF_uniform_float_values[1].el;
   v1 = clamp((x_39 - vec2(1.0f)), vec2(0.0f), vec2(x_43, x_43));
   vec2 x_47 = v1;
-  float x_49 = x_6.x_GLF_uniform_float_values[0].el;
-  float x_51 = x_6.x_GLF_uniform_float_values[1].el;
+  float x_49 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
+  float x_51 = v.tint_symbol_1.x_GLF_uniform_float_values[1].el;
   if (all((x_47 == vec2(x_49, x_51)))) {
-    int x_59 = x_9.x_GLF_uniform_int_values[0].el;
-    int x_62 = x_9.x_GLF_uniform_int_values[1].el;
-    int x_65 = x_9.x_GLF_uniform_int_values[1].el;
-    int x_68 = x_9.x_GLF_uniform_int_values[0].el;
-    float v = float(x_59);
-    float v_1 = float(x_62);
-    float v_2 = float(x_65);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_68));
+    int x_59 = v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el;
+    int x_62 = v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+    int x_65 = v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+    int x_68 = v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el;
+    float v_2 = float(x_59);
+    float v_3 = float(x_62);
+    float v_4 = float(x_65);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(x_68));
   } else {
-    int x_72 = x_9.x_GLF_uniform_int_values[1].el;
+    int x_72 = v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el;
     float x_73 = float(x_72);
     x_GLF_color = vec4(x_73, x_73, x_73, x_73);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:47: 'all' : no matching overloaded function found 
+ERROR: 0:47: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.spvasm.expected.ir.glsl
index 1ec3bbe..e04e571 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float quarter;
@@ -9,28 +12,32 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
-  v = ceil(vec4(424.113006591796875f, x_6.quarter, 1.29999995231628417969f, 19.6200008392333984375f));
+  v = ceil(vec4(424.113006591796875f, v_1.tint_symbol_1.quarter, 1.29999995231628417969f, 19.6200008392333984375f));
   if (all((v == vec4(425.0f, 1.0f, 2.0f, 20.0f)))) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:23: 'all' : no matching overloaded function found 
+ERROR: 0:23: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl.expected.ir.glsl
index 3c4bd5e..edf3e1e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float quarter;
@@ -9,15 +12,16 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
-  float x_32 = x_6.quarter;
+  float x_32 = v_1.tint_symbol_1.quarter;
   v = ceil(vec4(424.113006591796875f, x_32, 1.29999995231628417969f, 19.6200008392333984375f));
   vec4 x_35 = v;
   if (all((x_35 == vec4(425.0f, 1.0f, 2.0f, 20.0f)))) {
@@ -26,13 +30,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:25: 'all' : no matching overloaded function found 
+ERROR: 0:25: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.ir.glsl
index b3cd18e..20815a1 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int i = 0;
   int j = 0;
@@ -35,13 +36,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:31: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl.expected.ir.glsl
index 32519f7..e249533 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int i = 0;
   int j = 0;
@@ -40,13 +41,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:36: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:36: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.spvasm.expected.ir.glsl
index ee920cd..cb256ef 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float zero;
@@ -9,27 +12,31 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
-  float v = clamp(2.0f, x_5.zero, 1.0f);
-  if (any((vec4(v, clamp(-1.0f, 0.0f, x_5.zero), 0.0f, 1.0f) != vec4(1.0f, 0.0f, 0.0f, 1.0f)))) {
+  float v_1 = clamp(2.0f, v.tint_symbol_1.zero, 1.0f);
+  if (any((vec4(v_1, clamp(-1.0f, 0.0f, v.tint_symbol_1.zero), 0.0f, 1.0f) != vec4(1.0f, 0.0f, 0.0f, 1.0f)))) {
     x_GLF_color = vec4(0.0f);
   } else {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:22: 'any' : no matching overloaded function found 
+ERROR: 0:22: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl.expected.ir.glsl
index e381d07..c2bd626 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float zero;
@@ -9,29 +12,33 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
-  float x_25 = x_5.zero;
-  float x_28 = x_5.zero;
-  float v = clamp(2.0f, x_25, 1.0f);
-  if (any((vec4(v, clamp(-1.0f, 0.0f, x_28), 0.0f, 1.0f) != vec4(1.0f, 0.0f, 0.0f, 1.0f)))) {
+  float x_25 = v.tint_symbol_1.zero;
+  float x_28 = v.tint_symbol_1.zero;
+  float v_1 = clamp(2.0f, x_25, 1.0f);
+  if (any((vec4(v_1, clamp(-1.0f, 0.0f, x_28), 0.0f, 1.0f) != vec4(1.0f, 0.0f, 0.0f, 1.0f)))) {
     x_GLF_color = vec4(0.0f);
   } else {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:24: 'any' : no matching overloaded function found 
+ERROR: 0:24: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.ir.glsl
index b36e015..91658df 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float f = 0.0f;
   f = 0.9199161529541015625f;
@@ -19,13 +20,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:15: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl.expected.ir.glsl
index 30f5e73..4245a3d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float f = 0.0f;
   f = 0.9199161529541015625f;
@@ -21,13 +22,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:17: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:17: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.spvasm.expected.ir.glsl
index f297654..97a3c66 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,96 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[5];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+int func_f1_(inout float f) {
+  int a = 0;
+  int b = 0;
+  int i = 0;
+  a = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  b = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  {
+    while(true) {
+      if ((i < v.tint_symbol_1.x_GLF_uniform_int_values[4].el)) {
+      } else {
+        break;
+      }
+      if ((a > v.tint_symbol_1.x_GLF_uniform_int_values[3].el)) {
+        break;
+      }
+      int v_1 = tint_f32_to_i32(f);
+      int v_2 = (v_1 - tint_div_i32(v.tint_symbol_1.x_GLF_uniform_int_values[1].el, 2));
+      a = (v_2 + i);
+      b = (b + 1);
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((b == v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
+    int x_100 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    return x_100;
+  } else {
+    int x_102 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    return x_102;
+  }
+  /* unreachable */
+}
+void main_1() {
+  float param = 0.0f;
+  param = 0.69999998807907104492f;
+  int x_34 = func_f1_(param);
+  if ((x_34 == v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    float v_5 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    x_GLF_color = vec4(v_3, v_4, v_5, float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl.expected.ir.glsl
index f297654..ef4ca53 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,116 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[5];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+int func_f1_(inout float f) {
+  int a = 0;
+  int b = 0;
+  int i = 0;
+  int x_60 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  a = x_60;
+  int x_62 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  b = x_62;
+  int x_64 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  i = x_64;
+  {
+    while(true) {
+      int x_69 = i;
+      int x_71 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+      if ((x_69 < x_71)) {
+      } else {
+        break;
+      }
+      int x_74 = a;
+      int x_76 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+      if ((x_74 > x_76)) {
+        break;
+      }
+      float x_80 = f;
+      int x_83 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+      int x_86 = i;
+      int v_1 = tint_f32_to_i32(x_80);
+      a = ((v_1 - tint_div_i32(x_83, 2)) + x_86);
+      int x_88 = b;
+      b = (x_88 + 1);
+      {
+        int x_90 = i;
+        i = (x_90 + 1);
+      }
+      continue;
+    }
+  }
+  int x_92 = b;
+  int x_94 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  if ((x_92 == x_94)) {
+    int x_100 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    return x_100;
+  } else {
+    int x_102 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    return x_102;
+  }
+  /* unreachable */
+}
+void main_1() {
+  float param = 0.0f;
+  param = 0.69999998807907104492f;
+  int x_34 = func_f1_(param);
+  int x_36 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  if ((x_34 == x_36)) {
+    int x_42 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_45 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_48 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_51 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float v_2 = float(x_42);
+    float v_3 = float(x_45);
+    float v_4 = float(x_48);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(x_51));
+  } else {
+    int x_55 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float x_56 = float(x_55);
+    x_GLF_color = vec4(x_56, x_56, x_56, x_56);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.spvasm.expected.ir.glsl
index da4a436..2a351df 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 one;
@@ -9,28 +12,32 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec2 mixed = vec2(0.0f);
-  mixed = mix(vec2(1.0f), x_6.one, vec2(0.5f));
+  mixed = mix(vec2(1.0f), v.tint_symbol_1.one, vec2(0.5f));
   if (all((mixed == vec2(1.0f)))) {
     x_GLF_color = vec4(mixed.x, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:23: 'all' : no matching overloaded function found 
+ERROR: 0:23: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl.expected.ir.glsl
index 59b8437..be5dbd5 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 one;
@@ -9,15 +12,16 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec2 mixed = vec2(0.0f);
-  vec2 x_30 = x_6.one;
+  vec2 x_30 = v.tint_symbol_1.one;
   mixed = mix(vec2(1.0f), x_30, vec2(0.5f));
   vec2 x_33 = mixed;
   if (all((x_33 == vec2(1.0f)))) {
@@ -27,13 +31,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:25: 'all' : no matching overloaded function found 
+ERROR: 0:25: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.glsl
index 330928f..1ea0ce7 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,20 +16,21 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   int i = 0;
-  v = vec4(float(x_6.x_GLF_uniform_int_values[3].el));
-  i = x_6.x_GLF_uniform_int_values[0].el;
+  v = vec4(float(v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el));
+  i = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   {
     while(true) {
-      if ((i < x_6.x_GLF_uniform_int_values[3].el)) {
+      if ((i < v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el)) {
       } else {
         break;
       }
@@ -38,26 +42,29 @@
       continue;
     }
   }
-  vec4 v_1 = v;
-  float v_2 = float(x_6.x_GLF_uniform_int_values[0].el);
-  float v_3 = float(x_6.x_GLF_uniform_int_values[1].el);
-  float v_4 = float(x_6.x_GLF_uniform_int_values[2].el);
-  if (all((v_1 == vec4(v_2, v_3, v_4, float(x_6.x_GLF_uniform_int_values[3].el))))) {
-    float v_5 = float(x_6.x_GLF_uniform_int_values[1].el);
-    float v_6 = float(x_6.x_GLF_uniform_int_values[0].el);
-    float v_7 = float(x_6.x_GLF_uniform_int_values[0].el);
-    x_GLF_color = vec4(v_5, v_6, v_7, float(x_6.x_GLF_uniform_int_values[1].el));
+  vec4 v_2 = v;
+  float v_3 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+  float v_4 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+  float v_5 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+  if (all((v_2 == vec4(v_3, v_4, v_5, float(v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el))))) {
+    float v_6 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_7 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_8 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    x_GLF_color = vec4(v_6, v_7, v_8, float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el));
   } else {
-    x_GLF_color = vec4(float(x_6.x_GLF_uniform_int_values[0].el));
+    x_GLF_color = vec4(float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:47: 'all' : no matching overloaded function found 
+ERROR: 0:47: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.glsl
index 20bd70c..0c3e3c3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,24 +16,25 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   int i = 0;
-  int x_36 = x_6.x_GLF_uniform_int_values[3].el;
+  int x_36 = v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el;
   float x_37 = float(x_36);
   v = vec4(x_37, x_37, x_37, x_37);
-  int x_40 = x_6.x_GLF_uniform_int_values[0].el;
+  int x_40 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   i = x_40;
   {
     while(true) {
       int x_45 = i;
-      int x_47 = x_6.x_GLF_uniform_int_values[3].el;
+      int x_47 = v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el;
       if ((x_45 < x_47)) {
       } else {
         break;
@@ -46,35 +50,38 @@
     }
   }
   vec4 x_57 = v;
-  int x_59 = x_6.x_GLF_uniform_int_values[0].el;
-  int x_62 = x_6.x_GLF_uniform_int_values[1].el;
-  int x_65 = x_6.x_GLF_uniform_int_values[2].el;
-  int x_68 = x_6.x_GLF_uniform_int_values[3].el;
-  float v_1 = float(x_59);
-  float v_2 = float(x_62);
-  float v_3 = float(x_65);
-  if (all((x_57 == vec4(v_1, v_2, v_3, float(x_68))))) {
-    int x_77 = x_6.x_GLF_uniform_int_values[1].el;
-    int x_80 = x_6.x_GLF_uniform_int_values[0].el;
-    int x_83 = x_6.x_GLF_uniform_int_values[0].el;
-    int x_86 = x_6.x_GLF_uniform_int_values[1].el;
-    float v_4 = float(x_77);
-    float v_5 = float(x_80);
-    float v_6 = float(x_83);
-    x_GLF_color = vec4(v_4, v_5, v_6, float(x_86));
+  int x_59 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  int x_62 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_65 = v_1.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_68 = v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  float v_2 = float(x_59);
+  float v_3 = float(x_62);
+  float v_4 = float(x_65);
+  if (all((x_57 == vec4(v_2, v_3, v_4, float(x_68))))) {
+    int x_77 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_80 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_83 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_86 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float v_5 = float(x_77);
+    float v_6 = float(x_80);
+    float v_7 = float(x_83);
+    x_GLF_color = vec4(v_5, v_6, v_7, float(x_86));
   } else {
-    int x_90 = x_6.x_GLF_uniform_int_values[0].el;
+    int x_90 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
     float x_91 = float(x_90);
     x_GLF_color = vec4(x_91, x_91, x_91, x_91);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:58: 'all' : no matching overloaded function found 
+ERROR: 0:58: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.spvasm.expected.ir.glsl
index 869cf05..67a0efe 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -21,21 +24,25 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf1 x_7;
-uniform buf0 x_12;
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 float func_f1_(inout float b) {
-  x_GLF_color = vec4(x_7.x_GLF_uniform_float_values[0].el, x_7.x_GLF_uniform_float_values[0].el, x_7.x_GLF_uniform_float_values[1].el, 1.0f);
+  x_GLF_color = vec4(v.tint_symbol_1.x_GLF_uniform_float_values[0].el, v.tint_symbol_1.x_GLF_uniform_float_values[0].el, v.tint_symbol_1.x_GLF_uniform_float_values[1].el, 1.0f);
   x_GLF_color = x_GLF_color;
-  if ((x_7.x_GLF_uniform_float_values[0].el >= b)) {
-    float x_104 = x_7.x_GLF_uniform_float_values[0].el;
+  if ((v.tint_symbol_1.x_GLF_uniform_float_values[0].el >= b)) {
+    float x_104 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
     return x_104;
   }
-  float x_106 = x_7.x_GLF_uniform_float_values[2].el;
+  float x_106 = v.tint_symbol_1.x_GLF_uniform_float_values[2].el;
   return x_106;
 }
 void main_1() {
@@ -44,36 +51,40 @@
   float param_1 = 0.0f;
   bool x_71 = false;
   bool x_72 = false;
-  param = x_7.x_GLF_uniform_float_values[0].el;
+  param = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
   float x_45 = func_f1_(param);
   a = x_45;
-  param_1 = (x_7.x_GLF_uniform_float_values[0].el + x_7.x_GLF_uniform_float_values[0].el);
+  param_1 = (v.tint_symbol_1.x_GLF_uniform_float_values[0].el + v.tint_symbol_1.x_GLF_uniform_float_values[0].el);
   float x_51 = func_f1_(param_1);
   a = (a + x_51);
-  bool x_57 = (a == x_7.x_GLF_uniform_float_values[3].el);
+  bool x_57 = (a == v.tint_symbol_1.x_GLF_uniform_float_values[3].el);
   x_72 = x_57;
   if (x_57) {
-    vec4 v = x_GLF_color;
-    x_71 = all((v == vec4(x_7.x_GLF_uniform_float_values[0].el, x_7.x_GLF_uniform_float_values[0].el, x_7.x_GLF_uniform_float_values[1].el, x_7.x_GLF_uniform_float_values[0].el)));
+    vec4 v_2 = x_GLF_color;
+    x_71 = all((v_2 == vec4(v.tint_symbol_1.x_GLF_uniform_float_values[0].el, v.tint_symbol_1.x_GLF_uniform_float_values[0].el, v.tint_symbol_1.x_GLF_uniform_float_values[1].el, v.tint_symbol_1.x_GLF_uniform_float_values[0].el)));
     x_72 = x_71;
   }
   if (x_72) {
-    float v_1 = float(x_12.x_GLF_uniform_int_values[0].el);
-    float v_2 = float(x_12.x_GLF_uniform_int_values[1].el);
-    float v_3 = float(x_12.x_GLF_uniform_int_values[1].el);
-    x_GLF_color = vec4(v_1, v_2, v_3, float(x_12.x_GLF_uniform_int_values[0].el));
+    float v_3 = float(v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el);
+    float v_4 = float(v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el);
+    float v_5 = float(v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_3, v_4, v_5, float(v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el));
   } else {
-    x_GLF_color = vec4(float(x_12.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(float(v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:62: 'all' : no matching overloaded function found 
+ERROR: 0:62: 'assign' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:62: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl.expected.ir.glsl
index 3839db9..535da3a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -21,27 +24,31 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf1 x_7;
-uniform buf0 x_12;
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 float func_f1_(inout float b) {
-  float x_90 = x_7.x_GLF_uniform_float_values[0].el;
-  float x_92 = x_7.x_GLF_uniform_float_values[0].el;
-  float x_94 = x_7.x_GLF_uniform_float_values[1].el;
+  float x_90 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
+  float x_92 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
+  float x_94 = v.tint_symbol_1.x_GLF_uniform_float_values[1].el;
   x_GLF_color = vec4(x_90, x_92, x_94, 1.0f);
   vec4 x_96 = x_GLF_color;
   x_GLF_color = x_96;
-  float x_98 = x_7.x_GLF_uniform_float_values[0].el;
+  float x_98 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
   float x_99 = b;
   if ((x_98 >= x_99)) {
-    float x_104 = x_7.x_GLF_uniform_float_values[0].el;
+    float x_104 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
     return x_104;
   }
-  float x_106 = x_7.x_GLF_uniform_float_values[2].el;
+  float x_106 = v.tint_symbol_1.x_GLF_uniform_float_values[2].el;
   return x_106;
 }
 void main_1() {
@@ -50,53 +57,57 @@
   float param_1 = 0.0f;
   bool x_71 = false;
   bool x_72_phi = false;
-  float x_44 = x_7.x_GLF_uniform_float_values[0].el;
+  float x_44 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
   param = x_44;
   float x_45 = func_f1_(param);
   a = x_45;
-  float x_47 = x_7.x_GLF_uniform_float_values[0].el;
-  float x_49 = x_7.x_GLF_uniform_float_values[0].el;
+  float x_47 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
+  float x_49 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
   param_1 = (x_47 + x_49);
   float x_51 = func_f1_(param_1);
   float x_52 = a;
   a = (x_52 + x_51);
   float x_54 = a;
-  float x_56 = x_7.x_GLF_uniform_float_values[3].el;
+  float x_56 = v.tint_symbol_1.x_GLF_uniform_float_values[3].el;
   bool x_57 = (x_54 == x_56);
   x_72_phi = x_57;
   if (x_57) {
     vec4 x_60 = x_GLF_color;
-    float x_62 = x_7.x_GLF_uniform_float_values[0].el;
-    float x_64 = x_7.x_GLF_uniform_float_values[0].el;
-    float x_66 = x_7.x_GLF_uniform_float_values[1].el;
-    float x_68 = x_7.x_GLF_uniform_float_values[0].el;
+    float x_62 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
+    float x_64 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
+    float x_66 = v.tint_symbol_1.x_GLF_uniform_float_values[1].el;
+    float x_68 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
     x_71 = all((x_60 == vec4(x_62, x_64, x_66, x_68)));
     x_72_phi = x_71;
   }
   bool x_72 = x_72_phi;
   if (x_72) {
-    int x_15 = x_12.x_GLF_uniform_int_values[0].el;
-    int x_16 = x_12.x_GLF_uniform_int_values[1].el;
-    int x_17 = x_12.x_GLF_uniform_int_values[1].el;
-    int x_18 = x_12.x_GLF_uniform_int_values[0].el;
-    float v = float(x_15);
-    float v_1 = float(x_16);
-    float v_2 = float(x_17);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_18));
+    int x_15 = v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el;
+    int x_16 = v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+    int x_17 = v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+    int x_18 = v_1.tint_symbol_3.x_GLF_uniform_int_values[0].el;
+    float v_2 = float(x_15);
+    float v_3 = float(x_16);
+    float v_4 = float(x_17);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(x_18));
   } else {
-    int x_19 = x_12.x_GLF_uniform_int_values[1].el;
+    int x_19 = v_1.tint_symbol_3.x_GLF_uniform_int_values[1].el;
     float x_86 = float(x_19);
     x_GLF_color = vec4(x_86, x_86, x_86, x_86);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:78: 'all' : no matching overloaded function found 
+ERROR: 0:78: 'assign' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:78: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.spvasm.expected.ir.glsl
index f297654..a668245 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,80 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf1 {
+  int ten;
+};
+
+struct buf0 {
+  int minusEight;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  int b = 0;
+  int i = 0;
+  a = 0;
+  b = 0;
+  i = 0;
+  {
+    while(true) {
+      if ((i < v.tint_symbol_1.ten)) {
+      } else {
+        break;
+      }
+      if ((a > 5)) {
+        break;
+      }
+      int v_2 = a;
+      a = (v_2 + tint_div_i32(v_1.tint_symbol_3.minusEight, -4));
+      b = (b + 1);
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((b == 3)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:29: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:29: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:29: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl.expected.ir.glsl
index f297654..e6debe9 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,87 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf1 {
+  int ten;
+};
+
+struct buf0 {
+  int minusEight;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  int b = 0;
+  int i = 0;
+  a = 0;
+  b = 0;
+  i = 0;
+  {
+    while(true) {
+      int x_36 = i;
+      int x_38 = v.tint_symbol_1.ten;
+      if ((x_36 < x_38)) {
+      } else {
+        break;
+      }
+      int x_41 = a;
+      if ((x_41 > 5)) {
+        break;
+      }
+      int x_46 = v_1.tint_symbol_3.minusEight;
+      int x_48 = a;
+      a = (x_48 + tint_div_i32(x_46, -4));
+      int x_50 = b;
+      b = (x_50 + 1);
+      {
+        int x_52 = i;
+        i = (x_52 + 1);
+      }
+      continue;
+    }
+  }
+  int x_54 = b;
+  if ((x_54 == 3)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:29: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:29: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:29: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.ir.glsl
index 8cd2d97..1044e12 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
   m = mat2(vec2(0.5f, 1.5f), vec2(1.0f, 2.0f));
@@ -20,14 +21,18 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:15: 'all' : no matching overloaded function found 
+ERROR: 0:15: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:15: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl.expected.ir.glsl
index e03f70b..95b689b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
   m = mat2(vec2(0.5f, 1.5f), vec2(1.0f, 2.0f));
@@ -21,14 +22,18 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:16: 'all' : no matching overloaded function found 
+ERROR: 0:16: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:16: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl.expected.ir.glsl
index f297654..d1ac2a5 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,100 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int arr[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int a = 0;
+  int i = 0;
+  arr = int[10](1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
+  a = 0;
+  int x_42 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_44 = arr[x_42];
+  if ((x_44 == 2)) {
+    int x_49 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    i = x_49;
+    {
+      while(true) {
+        int x_54 = i;
+        int x_56 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+        if ((x_54 < x_56)) {
+        } else {
+          break;
+        }
+        {
+          int x_59 = i;
+          i = (x_59 + 1);
+        }
+        continue;
+      }
+    }
+    int x_61 = a;
+    a = (x_61 + 1);
+  }
+  int x_63 = a;
+  int x_66 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  if ((tint_mod_i32(-1, x_63) == x_66)) {
+    int x_71 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_75 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    arr[ivec2(x_71, x_71)[1u]] = x_75;
+  }
+  int x_78 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_80 = arr[x_78];
+  int x_82 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  if ((x_80 == x_82)) {
+    int x_88 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_91 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_94 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_97 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float v_2 = float(x_88);
+    float v_3 = float(x_91);
+    float v_4 = float(x_94);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(x_97));
+  } else {
+    int x_101 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float x_102 = float(x_101);
+    x_GLF_color = vec4(x_102, x_102, x_102, x_102);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.ir.glsl
index 26fc0d3..d69019d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   bool a = false;
   a = false;
@@ -19,13 +20,16 @@
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:15: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl.expected.ir.glsl
index 69daa6a..4dc308b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   bool a = false;
   a = false;
@@ -20,13 +21,16 @@
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:16: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.ir.glsl
index 950946e..29d614e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.spvasm.expected.ir.glsl
@@ -1,16 +1,17 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   int i = 0;
   i = 2;
@@ -30,14 +31,17 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl.expected.ir.glsl
index 41889fc..af73431 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl.expected.ir.glsl
@@ -1,16 +1,17 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   int i = 0;
   i = 2;
@@ -32,14 +33,17 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.ir.glsl
index 2056658..ecb4ad9 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.spvasm.expected.ir.glsl
@@ -1,16 +1,17 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   if (((tint_symbol.x < 0.0f) | true)) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
@@ -18,14 +19,17 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:14: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion)
+ERROR: 0:14: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl.expected.ir.glsl
index 157ee49..e6108f2 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl.expected.ir.glsl
@@ -1,16 +1,17 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   float x_22 = tint_symbol.x;
   if (((x_22 < 0.0f) | true)) {
@@ -19,14 +20,17 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:15: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' const bool' (or there is no acceptable conversion)
+ERROR: 0:15: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.ir.glsl
index f902e00..936836f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float one;
@@ -9,28 +12,32 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float f = 0.0f;
-  f = (4.0f / (2.0f * x_6.one));
+  f = (4.0f / (2.0f * v.tint_symbol_1.one));
   if (((f > 1.89999997615814208984f) & (f < 2.09999990463256835938f))) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl.expected.ir.glsl
index 42ea1b5..b74c78a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float one;
@@ -9,15 +12,16 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float f = 0.0f;
-  float x_28 = x_6.one;
+  float x_28 = v.tint_symbol_1.one;
   f = (4.0f / (2.0f * x_28));
   float x_31 = f;
   float x_33 = f;
@@ -27,13 +31,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:26: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:26: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.ir.glsl
index 2dde10b..a3f3585 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float four;
@@ -9,28 +12,32 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float a = 0.0f;
-  a = (2.0f / (1.0f / x_6.four));
+  a = (2.0f / (1.0f / v.tint_symbol_1.four));
   if (((a > 7.90000009536743164062f) & (a < 8.1000003814697265625f))) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl.expected.ir.glsl
index ba6ab6d..332bf90 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float four;
@@ -9,15 +12,16 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float a = 0.0f;
-  float x_27 = x_6.four;
+  float x_27 = v.tint_symbol_1.four;
   a = (2.0f / (1.0f / x_27));
   float x_30 = a;
   float x_32 = a;
@@ -27,13 +31,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:26: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:26: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.ir.glsl
index 6f6a3b7..d320d15 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float one;
@@ -9,28 +12,32 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float f = 0.0f;
-  f = (4.0f * (2.0f / x_6.one));
+  f = (4.0f * (2.0f / v.tint_symbol_1.one));
   if (((f > 7.90000009536743164062f) & (f < 8.1000003814697265625f))) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl.expected.ir.glsl
index 70a4ea6..20711c4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float one;
@@ -9,15 +12,16 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float f = 0.0f;
-  float x_28 = x_6.one;
+  float x_28 = v.tint_symbol_1.one;
   f = (4.0f * (2.0f / x_28));
   float x_31 = f;
   float x_33 = f;
@@ -27,13 +31,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:26: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:26: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.spvasm.expected.ir.glsl
index f297654..be192ff 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,48 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int four;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  if ((-(tint_div_i32(v.tint_symbol_1.four, 2)) == -2)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl.expected.ir.glsl
index f297654..db22dba 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,49 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int four;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int x_6 = v.tint_symbol_1.four;
+  if ((-(tint_div_i32(x_6, 2)) == -2)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.spvasm.expected.ir.glsl
index b21b227..c661826 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 injectionSwitch;
@@ -9,26 +12,30 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
-  if (all((mix(x_5.injectionSwitch, vec2(1.0f), vec2(0.0f)) == vec2(0.0f, 1.0f)))) {
+  if (all((mix(v.tint_symbol_1.injectionSwitch, vec2(1.0f), vec2(0.0f)) == vec2(0.0f, 1.0f)))) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:21: 'all' : no matching overloaded function found 
+ERROR: 0:21: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl.expected.ir.glsl
index 223a5e5..a90b94a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 injectionSwitch;
@@ -9,27 +12,31 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
-  vec2 x_27 = x_5.injectionSwitch;
+  vec2 x_27 = v.tint_symbol_1.injectionSwitch;
   if (all((mix(x_27, vec2(1.0f), vec2(0.0f)) == vec2(0.0f, 1.0f)))) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:22: 'all' : no matching overloaded function found 
+ERROR: 0:22: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.ir.glsl
index f297654..dde74de 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,50 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 threeandfour;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+void main_1() {
+  vec4 v = vec4(0.0f);
+  v = vec4(2.0f, 3.0f, 4.0f, 5.0f);
+  vec2 v_2 = vec2(1.0f, v_1.tint_symbol_1.threeandfour.y);
+  float v_3 = ((bvec2(true, false).x) ? (v_2.x) : (vec2(2.0f, 6.0f).x));
+  vec2 v_4 = vec2(v_3, ((bvec2(true, false).y) ? (v_2.y) : (vec2(2.0f, 6.0f).y))).xy;
+  v = vec4(v_4, v.zw);
+  if (all((v == vec4(1.0f, 6.0f, 4.0f, 5.0f)))) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:27: 'all' : no matching overloaded function found 
+ERROR: 0:27: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.ir.glsl
index f297654..070be60 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,53 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 threeandfour;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+void main_1() {
+  vec4 v = vec4(0.0f);
+  v = vec4(2.0f, 3.0f, 4.0f, 5.0f);
+  float x_40 = v_1.tint_symbol_1.threeandfour.y;
+  vec2 v_2 = vec2(1.0f, x_40);
+  float v_3 = ((bvec2(true, false).x) ? (v_2.x) : (vec2(2.0f, 6.0f).x));
+  vec2 x_42 = vec2(v_3, ((bvec2(true, false).y) ? (v_2.y) : (vec2(2.0f, 6.0f).y)));
+  vec4 x_43 = v;
+  v = vec4(x_42[0u], x_42[1u], x_43[2u], x_43[3u]);
+  vec4 x_45 = v;
+  if (all((x_45 == vec4(1.0f, 6.0f, 4.0f, 5.0f)))) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:30: 'all' : no matching overloaded function found 
+ERROR: 0:30: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.spvasm.expected.ir.glsl
index 386be58..0fea834 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   v = vec4(vec2(1.0f), v.zw);
@@ -20,13 +21,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:16: 'all' : no matching overloaded function found 
+ERROR: 0:16: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl.expected.ir.glsl
index 39fa3fb..3cf2572 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 v = vec4(0.0f);
   vec4 x_23 = v;
@@ -23,13 +24,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:19: 'all' : no matching overloaded function found 
+ERROR: 0:19: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.spvasm.expected.ir.glsl
index f297654..c8d7711 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,71 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[4];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+ivec2 tint_mod_v2i32(ivec2 lhs, ivec2 rhs) {
+  int v_1 = ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).x) ? (ivec2(1).x) : (rhs.x));
+  ivec2 v_2 = ivec2(v_1, ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).y) ? (ivec2(1).y) : (rhs.y)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+void main_1() {
+  int i = 0;
+  int a[2] = int[2](0, 0);
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  {
+    while(true) {
+      if ((i < v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
+      } else {
+        break;
+      }
+      int v_3 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+      ivec2 v_4 = ivec2(i);
+      a = int[2](v_3, tint_mod_v2i32(v_4, ivec2(3, v.tint_symbol_1.x_GLF_uniform_int_values[3].el))[1u]);
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  float v_5 = float(a[v.tint_symbol_1.x_GLF_uniform_int_values[2].el]);
+  float v_6 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+  float v_7 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+  x_GLF_color = vec4(v_5, v_6, v_7, float(a[v.tint_symbol_1.x_GLF_uniform_int_values[2].el]));
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl.expected.ir.glsl
index f297654..c2ee8cf 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,83 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[4];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+ivec2 tint_mod_v2i32(ivec2 lhs, ivec2 rhs) {
+  int v_1 = ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).x) ? (ivec2(1).x) : (rhs.x));
+  ivec2 v_2 = ivec2(v_1, ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).y) ? (ivec2(1).y) : (rhs.y)));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+void main_1() {
+  int i = 0;
+  int a[2] = int[2](0, 0);
+  int x_32 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  i = x_32;
+  {
+    while(true) {
+      int x_37 = i;
+      int x_39 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+      if ((x_37 < x_39)) {
+      } else {
+        break;
+      }
+      int x_43 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+      int x_44 = i;
+      int x_46 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+      ivec2 v_3 = ivec2(x_44, x_44);
+      a = int[2](x_43, tint_mod_v2i32(v_3, ivec2(3, x_46))[1u]);
+      {
+        int x_52 = i;
+        i = (x_52 + 1);
+      }
+      continue;
+    }
+  }
+  int x_55 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_57 = a[x_55];
+  int x_60 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_63 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_66 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_68 = a[x_66];
+  float v_4 = float(x_57);
+  float v_5 = float(x_60);
+  float v_6 = float(x_63);
+  x_GLF_color = vec4(v_4, v_5, v_6, float(x_68));
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.spvasm.expected.ir.glsl
index f297654..c1dd36e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,87 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  float el;
+};
+
+struct buf1 {
+  strided_arr x_GLF_uniform_float_values[4];
+};
+
+struct strided_arr_1 {
+  int el;
+};
+
+struct buf0 {
+  strided_arr_1 x_GLF_uniform_int_values[1];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+ivec2 tint_v2f32_to_v2i32(vec2 value) {
+  ivec2 v_2 = ivec2(value);
+  int v_3 = (((value >= vec2(-2147483648.0f)).x) ? (v_2.x) : (ivec2((-2147483647 - 1)).x));
+  ivec2 v_4 = ivec2(v_3, (((value >= vec2(-2147483648.0f)).y) ? (v_2.y) : (ivec2((-2147483647 - 1)).y)));
+  int v_5 = (((value <= vec2(2147483520.0f)).x) ? (v_4.x) : (ivec2(2147483647).x));
+  return ivec2(v_5, (((value <= vec2(2147483520.0f)).y) ? (v_4.y) : (ivec2(2147483647).y)));
+}
+void main_1() {
+  ivec2 icoord = ivec2(0);
+  float x_40 = 0.0f;
+  ivec2 icoord_1 = ivec2(0);
+  if (((tint_symbol.x * v.tint_symbol_3.x_GLF_uniform_float_values[1].el) > v.tint_symbol_3.x_GLF_uniform_float_values[0].el)) {
+    vec2 v_6 = (tint_symbol.xy * v.tint_symbol_3.x_GLF_uniform_float_values[1].el);
+    icoord = tint_v2f32_to_v2i32((v_6 - vec2(v.tint_symbol_3.x_GLF_uniform_float_values[0].el, v.tint_symbol_3.x_GLF_uniform_float_values[2].el)));
+    float x_65 = v.tint_symbol_3.x_GLF_uniform_float_values[2].el;
+    float x_67 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    if (((icoord.x * icoord.y) != v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el)) {
+      x_40 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    } else {
+      x_40 = v.tint_symbol_3.x_GLF_uniform_float_values[2].el;
+    }
+    float v_7 = x_40;
+    x_GLF_color = vec4(x_65, x_67, v_7, float(v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el));
+  } else {
+    vec2 v_8 = (tint_symbol.xy * v.tint_symbol_3.x_GLF_uniform_float_values[1].el);
+    icoord_1 = tint_v2f32_to_v2i32((v_8 - vec2(v.tint_symbol_3.x_GLF_uniform_float_values[0].el, v.tint_symbol_3.x_GLF_uniform_float_values[2].el)));
+    float v_9 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    float v_10 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    float v_11 = float(icoord_1.x);
+    x_GLF_color = vec4(v_9, v_10, v_11, v.tint_symbol_3.x_GLF_uniform_float_values[3].el);
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:39: '>=' :  wrong operand types: no operation '>=' exists that takes a left-hand operand of type ' in highp 2-component vector of float' and a right operand of type ' const 2-component vector of float' (or there is no acceptable conversion)
+ERROR: 0:39: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl.expected.ir.glsl
index f297654..7d2dabf 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,105 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  float el;
+};
+
+struct buf1 {
+  strided_arr x_GLF_uniform_float_values[4];
+};
+
+struct strided_arr_1 {
+  int el;
+};
+
+struct buf0 {
+  strided_arr_1 x_GLF_uniform_int_values[1];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+ivec2 tint_v2f32_to_v2i32(vec2 value) {
+  ivec2 v_2 = ivec2(value);
+  int v_3 = (((value >= vec2(-2147483648.0f)).x) ? (v_2.x) : (ivec2((-2147483647 - 1)).x));
+  ivec2 v_4 = ivec2(v_3, (((value >= vec2(-2147483648.0f)).y) ? (v_2.y) : (ivec2((-2147483647 - 1)).y)));
+  int v_5 = (((value <= vec2(2147483520.0f)).x) ? (v_4.x) : (ivec2(2147483647).x));
+  return ivec2(v_5, (((value <= vec2(2147483520.0f)).y) ? (v_4.y) : (ivec2(2147483647).y)));
+}
+void main_1() {
+  ivec2 icoord = ivec2(0);
+  float x_40 = 0.0f;
+  ivec2 icoord_1 = ivec2(0);
+  float x_42 = tint_symbol.x;
+  float x_44 = v.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+  float x_47 = v.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+  if (((x_42 * x_44) > x_47)) {
+    vec4 x_52 = tint_symbol;
+    float x_55 = v.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+    float x_58 = v.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+    float x_60 = v.tint_symbol_3.x_GLF_uniform_float_values[2].el;
+    vec2 v_6 = (vec2(x_52[0u], x_52[1u]) * x_55);
+    icoord = tint_v2f32_to_v2i32((v_6 - vec2(x_58, x_60)));
+    float x_65 = v.tint_symbol_3.x_GLF_uniform_float_values[2].el;
+    float x_67 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    int x_69 = icoord.x;
+    int x_71 = icoord.y;
+    int x_74 = v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+    if (((x_69 * x_71) != x_74)) {
+      float x_80 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+      x_40 = x_80;
+    } else {
+      float x_82 = v.tint_symbol_3.x_GLF_uniform_float_values[2].el;
+      x_40 = x_82;
+    }
+    float x_83 = x_40;
+    int x_85 = v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+    x_GLF_color = vec4(x_65, x_67, x_83, float(x_85));
+  } else {
+    vec4 x_88 = tint_symbol;
+    float x_91 = v.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+    float x_94 = v.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+    float x_96 = v.tint_symbol_3.x_GLF_uniform_float_values[2].el;
+    vec2 v_7 = (vec2(x_88[0u], x_88[1u]) * x_91);
+    icoord_1 = tint_v2f32_to_v2i32((v_7 - vec2(x_94, x_96)));
+    float x_101 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    float x_103 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    int x_105 = icoord_1.x;
+    float x_108 = v.tint_symbol_3.x_GLF_uniform_float_values[3].el;
+    x_GLF_color = vec4(x_101, x_103, float(x_105), x_108);
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:39: '>=' :  wrong operand types: no operation '>=' exists that takes a left-hand operand of type ' in highp 2-component vector of float' and a right operand of type ' const 2-component vector of float' (or there is no acceptable conversion)
+ERROR: 0:39: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.ir.glsl
index 8884268..9f7a3c8 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,13 +16,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 int x_GLF_global_loop_count = 0;
-uniform buf0 x_7;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 int func_() {
   {
     while(true) {
@@ -28,11 +32,11 @@
         break;
       }
       x_GLF_global_loop_count = (x_GLF_global_loop_count + 1);
-      int x_78 = x_7.x_GLF_uniform_int_values[0].el;
+      int x_78 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
       return x_78;
     }
   }
-  int x_80 = x_7.x_GLF_uniform_int_values[2].el;
+  int x_80 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
   return x_80;
 }
 void main_1() {
@@ -53,22 +57,25 @@
   }
   int x_42 = func_();
   a = x_42;
-  if ((a == x_7.x_GLF_uniform_int_values[2].el)) {
-    float v = float(x_7.x_GLF_uniform_int_values[0].el);
-    float v_1 = float(x_7.x_GLF_uniform_int_values[1].el);
-    float v_2 = float(x_7.x_GLF_uniform_int_values[1].el);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_7.x_GLF_uniform_int_values[0].el));
+  if ((a == v.tint_symbol_1.x_GLF_uniform_int_values[2].el)) {
+    float v_1 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
   } else {
-    x_GLF_color = vec4(float(x_7.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:51: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:51: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl.expected.ir.glsl
index d978a73..99ae081 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,13 +16,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 int x_GLF_global_loop_count = 0;
-uniform buf0 x_7;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 int func_() {
   {
     while(true) {
@@ -30,11 +34,11 @@
       }
       int x_75 = x_GLF_global_loop_count;
       x_GLF_global_loop_count = (x_75 + 1);
-      int x_78 = x_7.x_GLF_uniform_int_values[0].el;
+      int x_78 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
       return x_78;
     }
   }
-  int x_80 = x_7.x_GLF_uniform_int_values[2].el;
+  int x_80 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
   return x_80;
 }
 void main_1() {
@@ -57,29 +61,32 @@
   int x_42 = func_();
   a = x_42;
   int x_43 = a;
-  int x_45 = x_7.x_GLF_uniform_int_values[2].el;
+  int x_45 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
   if ((x_43 == x_45)) {
-    int x_51 = x_7.x_GLF_uniform_int_values[0].el;
-    int x_54 = x_7.x_GLF_uniform_int_values[1].el;
-    int x_57 = x_7.x_GLF_uniform_int_values[1].el;
-    int x_60 = x_7.x_GLF_uniform_int_values[0].el;
-    float v = float(x_51);
-    float v_1 = float(x_54);
-    float v_2 = float(x_57);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_60));
+    int x_51 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_54 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_57 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_60 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float v_1 = float(x_51);
+    float v_2 = float(x_54);
+    float v_3 = float(x_57);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_60));
   } else {
-    int x_64 = x_7.x_GLF_uniform_int_values[1].el;
+    int x_64 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
     float x_65 = float(x_64);
     x_GLF_color = vec4(x_65, x_65, x_65, x_65);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:54: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' const bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:54: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.spvasm.expected.ir.glsl
index f297654..6518583 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,78 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[5];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  int indexable[9] = int[9](0, 0, 0, 0, 0, 0, 0, 0, 0);
+  a = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  {
+    while(true) {
+      if ((i < v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
+      } else {
+        break;
+      }
+      int x_50 = i;
+      int x_52 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+      indexable = int[9](1, 2, 3, 4, 5, 6, 7, 8, 9);
+      int v_2 = a;
+      a = (v_2 + indexable[tint_mod_i32(x_50, x_52)]);
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((a == v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[3].el);
+    float v_5 = float(v.tint_symbol_1.x_GLF_uniform_int_values[3].el);
+    x_GLF_color = vec4(v_3, v_4, v_5, float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[3].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl.expected.ir.glsl
index f297654..bc5a09a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,92 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[5];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  int indexable[9] = int[9](0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int x_38 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  a = x_38;
+  int x_40 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  i = x_40;
+  {
+    while(true) {
+      int x_45 = i;
+      int x_47 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+      if ((x_45 < x_47)) {
+      } else {
+        break;
+      }
+      int x_50 = i;
+      int x_52 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+      indexable = int[9](1, 2, 3, 4, 5, 6, 7, 8, 9);
+      int x_55 = indexable[tint_mod_i32(x_50, x_52)];
+      int x_56 = a;
+      a = (x_56 + x_55);
+      {
+        int x_58 = i;
+        i = (x_58 + 1);
+      }
+      continue;
+    }
+  }
+  int x_60 = a;
+  int x_62 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  if ((x_60 == x_62)) {
+    int x_68 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_71 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+    int x_74 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+    int x_77 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float v_2 = float(x_68);
+    float v_3 = float(x_71);
+    float v_4 = float(x_74);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(x_77));
+  } else {
+    int x_81 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+    float x_82 = float(x_81);
+    x_GLF_color = vec4(x_82, x_82, x_82, x_82);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.ir.glsl
index 810f13b..c56af1b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,12 +16,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int a = 0;
   int b = 0;
@@ -27,12 +31,12 @@
   bool x_77 = false;
   bool x_83 = false;
   bool x_84 = false;
-  a = x_6.x_GLF_uniform_int_values[0].el;
-  b = x_6.x_GLF_uniform_int_values[2].el;
+  a = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  b = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
   c = 1;
   {
     while(true) {
-      if (((b < x_6.x_GLF_uniform_int_values[4].el) & (a < 10))) {
+      if (((b < v.tint_symbol_1.x_GLF_uniform_int_values[4].el) & (a < 10))) {
       } else {
         break;
       }
@@ -49,7 +53,7 @@
   }
   {
     while(true) {
-      if ((a < x_6.x_GLF_uniform_int_values[1].el)) {
+      if ((a < v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
       } else {
         break;
       }
@@ -59,33 +63,36 @@
       continue;
     }
   }
-  bool x_70 = (a == x_6.x_GLF_uniform_int_values[1].el);
+  bool x_70 = (a == v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
   x_77 = x_70;
   if (x_70) {
-    x_76 = (b == x_6.x_GLF_uniform_int_values[3].el);
+    x_76 = (b == v.tint_symbol_1.x_GLF_uniform_int_values[3].el);
     x_77 = x_76;
   }
   x_84 = x_77;
   if (x_77) {
-    x_83 = (c == x_6.x_GLF_uniform_int_values[3].el);
+    x_83 = (c == v.tint_symbol_1.x_GLF_uniform_int_values[3].el);
     x_84 = x_83;
   }
   if (x_84) {
-    float v = float(x_6.x_GLF_uniform_int_values[2].el);
-    float v_1 = float(x_6.x_GLF_uniform_int_values[0].el);
-    float v_2 = float(x_6.x_GLF_uniform_int_values[0].el);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_6.x_GLF_uniform_int_values[2].el));
+    float v_1 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
   } else {
-    x_GLF_color = vec4(float(x_6.x_GLF_uniform_int_values[0].el));
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl.expected.ir.glsl
index 68def29..4b2f00d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,12 +16,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int a = 0;
   int b = 0;
@@ -27,15 +31,15 @@
   bool x_83 = false;
   bool x_77_phi = false;
   bool x_84_phi = false;
-  int x_31 = x_6.x_GLF_uniform_int_values[0].el;
+  int x_31 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   a = x_31;
-  int x_33 = x_6.x_GLF_uniform_int_values[2].el;
+  int x_33 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
   b = x_33;
   c = 1;
   {
     while(true) {
       int x_38 = b;
-      int x_40 = x_6.x_GLF_uniform_int_values[4].el;
+      int x_40 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
       int x_42 = a;
       if (((x_38 < x_40) & (x_42 < 10))) {
       } else {
@@ -59,7 +63,7 @@
   {
     while(true) {
       int x_60 = a;
-      int x_62 = x_6.x_GLF_uniform_int_values[1].el;
+      int x_62 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
       if ((x_60 < x_62)) {
       } else {
         break;
@@ -72,12 +76,12 @@
     }
   }
   int x_67 = a;
-  int x_69 = x_6.x_GLF_uniform_int_values[1].el;
+  int x_69 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
   bool x_70 = (x_67 == x_69);
   x_77_phi = x_70;
   if (x_70) {
     int x_73 = b;
-    int x_75 = x_6.x_GLF_uniform_int_values[3].el;
+    int x_75 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
     x_76 = (x_73 == x_75);
     x_77_phi = x_76;
   }
@@ -85,33 +89,36 @@
   x_84_phi = x_77;
   if (x_77) {
     int x_80 = c;
-    int x_82 = x_6.x_GLF_uniform_int_values[3].el;
+    int x_82 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
     x_83 = (x_80 == x_82);
     x_84_phi = x_83;
   }
   bool x_84 = x_84_phi;
   if (x_84) {
-    int x_89 = x_6.x_GLF_uniform_int_values[2].el;
-    int x_92 = x_6.x_GLF_uniform_int_values[0].el;
-    int x_95 = x_6.x_GLF_uniform_int_values[0].el;
-    int x_98 = x_6.x_GLF_uniform_int_values[2].el;
-    float v = float(x_89);
-    float v_1 = float(x_92);
-    float v_2 = float(x_95);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_98));
+    int x_89 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_92 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_95 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_98 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float v_1 = float(x_89);
+    float v_2 = float(x_92);
+    float v_3 = float(x_95);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_98));
   } else {
-    int x_102 = x_6.x_GLF_uniform_int_values[0].el;
+    int x_102 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
     float x_103 = float(x_102);
     x_GLF_color = vec4(x_103, x_103, x_103, x_103);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:42: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:42: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.glsl
index 7e53597..c225e4f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -21,48 +24,55 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
-uniform buf1 x_9;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v_2;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat3 m = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
   int a = 0;
   vec3 arr[2] = vec3[2](vec3(0.0f), vec3(0.0f));
   vec3 v = vec3(0.0f);
-  float x_46 = float(x_6.x_GLF_uniform_int_values[0].el);
-  vec3 v_1 = vec3(x_46, 0.0f, 0.0f);
-  vec3 v_2 = vec3(0.0f, x_46, 0.0f);
-  m = mat3(v_1, v_2, vec3(0.0f, 0.0f, x_46));
-  a = x_6.x_GLF_uniform_int_values[0].el;
+  float x_46 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+  vec3 v_3 = vec3(x_46, 0.0f, 0.0f);
+  vec3 v_4 = vec3(0.0f, x_46, 0.0f);
+  m = mat3(v_3, v_4, vec3(0.0f, 0.0f, x_46));
+  a = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   int x_53 = a;
   int x_54 = a;
-  m[x_53][x_54] = x_9.x_GLF_uniform_float_values[0].el;
+  m[x_53][x_54] = v_2.tint_symbol_3.x_GLF_uniform_float_values[0].el;
   arr = vec3[2](m[1], m[1]);
-  v = vec3(x_9.x_GLF_uniform_float_values[1].el);
+  v = vec3(v_2.tint_symbol_3.x_GLF_uniform_float_values[1].el);
   v = (v + arr[a]);
-  vec3 v_3 = v;
-  float v_4 = float(x_6.x_GLF_uniform_int_values[1].el);
-  float v_5 = float(x_6.x_GLF_uniform_int_values[2].el);
-  if (all((v_3 == vec3(v_4, v_5, float(x_6.x_GLF_uniform_int_values[1].el))))) {
-    float v_6 = float(x_6.x_GLF_uniform_int_values[0].el);
-    float v_7 = float(x_6.x_GLF_uniform_int_values[3].el);
-    float v_8 = float(x_6.x_GLF_uniform_int_values[3].el);
-    x_GLF_color = vec4(v_6, v_7, v_8, float(x_6.x_GLF_uniform_int_values[0].el));
+  vec3 v_5 = v;
+  float v_6 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+  float v_7 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+  if (all((v_5 == vec3(v_6, v_7, float(v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el))))) {
+    float v_8 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_9 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el);
+    float v_10 = float(v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el);
+    x_GLF_color = vec4(v_8, v_9, v_10, float(v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el));
   } else {
-    x_GLF_color = vec4(float(x_6.x_GLF_uniform_int_values[3].el));
+    x_GLF_color = vec4(float(v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:55: 'all' : no matching overloaded function found 
+ERROR: 0:55: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.glsl
index 2c13aa5..a3bbe7d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -21,66 +24,73 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
-uniform buf1 x_9;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v_2;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat3 m = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
   int a = 0;
   vec3 arr[2] = vec3[2](vec3(0.0f), vec3(0.0f));
   vec3 v = vec3(0.0f);
-  int x_45 = x_6.x_GLF_uniform_int_values[0].el;
+  int x_45 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   float x_46 = float(x_45);
-  vec3 v_1 = vec3(x_46, 0.0f, 0.0f);
-  vec3 v_2 = vec3(0.0f, x_46, 0.0f);
-  m = mat3(v_1, v_2, vec3(0.0f, 0.0f, x_46));
-  int x_52 = x_6.x_GLF_uniform_int_values[0].el;
+  vec3 v_3 = vec3(x_46, 0.0f, 0.0f);
+  vec3 v_4 = vec3(0.0f, x_46, 0.0f);
+  m = mat3(v_3, v_4, vec3(0.0f, 0.0f, x_46));
+  int x_52 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   a = x_52;
   int x_53 = a;
   int x_54 = a;
-  float x_56 = x_9.x_GLF_uniform_float_values[0].el;
+  float x_56 = v_2.tint_symbol_3.x_GLF_uniform_float_values[0].el;
   m[x_53][x_54] = x_56;
   vec3 x_59 = m[1];
   vec3 x_61 = m[1];
   arr = vec3[2](x_59, x_61);
-  float x_64 = x_9.x_GLF_uniform_float_values[1].el;
+  float x_64 = v_2.tint_symbol_3.x_GLF_uniform_float_values[1].el;
   v = vec3(x_64, x_64, x_64);
   int x_66 = a;
   vec3 x_68 = arr[x_66];
   vec3 x_69 = v;
   v = (x_69 + x_68);
   vec3 x_71 = v;
-  int x_73 = x_6.x_GLF_uniform_int_values[1].el;
-  int x_76 = x_6.x_GLF_uniform_int_values[2].el;
-  int x_79 = x_6.x_GLF_uniform_int_values[1].el;
-  float v_3 = float(x_73);
-  float v_4 = float(x_76);
-  if (all((x_71 == vec3(v_3, v_4, float(x_79))))) {
-    int x_88 = x_6.x_GLF_uniform_int_values[0].el;
-    int x_91 = x_6.x_GLF_uniform_int_values[3].el;
-    int x_94 = x_6.x_GLF_uniform_int_values[3].el;
-    int x_97 = x_6.x_GLF_uniform_int_values[0].el;
-    float v_5 = float(x_88);
-    float v_6 = float(x_91);
-    float v_7 = float(x_94);
-    x_GLF_color = vec4(v_5, v_6, v_7, float(x_97));
+  int x_73 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_76 = v_1.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_79 = v_1.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  float v_5 = float(x_73);
+  float v_6 = float(x_76);
+  if (all((x_71 == vec3(v_5, v_6, float(x_79))))) {
+    int x_88 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_91 = v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+    int x_94 = v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+    int x_97 = v_1.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float v_7 = float(x_88);
+    float v_8 = float(x_91);
+    float v_9 = float(x_94);
+    x_GLF_color = vec4(v_7, v_8, v_9, float(x_97));
   } else {
-    int x_101 = x_6.x_GLF_uniform_int_values[3].el;
+    int x_101 = v_1.tint_symbol_1.x_GLF_uniform_int_values[3].el;
     float x_102 = float(x_101);
     x_GLF_color = vec4(x_102, x_102, x_102, x_102);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:67: 'all' : no matching overloaded function found 
+ERROR: 0:67: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.spvasm.expected.ir.glsl
index f297654..c18e997 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,81 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf1 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct strided_arr_1 {
+  float el;
+};
+
+struct buf0 {
+  strided_arr_1 x_GLF_uniform_float_values[1];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+void main_1() {
+  int i = 0;
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  {
+    while(true) {
+      if ((i >= 0)) {
+      } else {
+        break;
+      }
+      if ((tint_mod_i32(i, 2) == 0)) {
+        float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+        float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+        x_GLF_color = vec4(1.0f, v_3, v_4, float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
+      } else {
+        x_GLF_color = vec4(v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el);
+      }
+      i = (i - 1);
+      {
+      }
+      continue;
+    }
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl.expected.ir.glsl
index f297654..85ae53e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,89 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf1 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct strided_arr_1 {
+  float el;
+};
+
+struct buf0 {
+  strided_arr_1 x_GLF_uniform_float_values[1];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+void main_1() {
+  int i = 0;
+  int x_32 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  i = x_32;
+  {
+    while(true) {
+      int x_37 = i;
+      if ((x_37 >= 0)) {
+      } else {
+        break;
+      }
+      int x_40 = i;
+      if ((tint_mod_i32(x_40, 2) == 0)) {
+        int x_47 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+        int x_50 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+        int x_53 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+        float v_3 = float(x_47);
+        float v_4 = float(x_50);
+        x_GLF_color = vec4(1.0f, v_3, v_4, float(x_53));
+      } else {
+        float x_57 = v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+        x_GLF_color = vec4(x_57, x_57, x_57, x_57);
+      }
+      int x_59 = i;
+      i = (x_59 - 1);
+      {
+      }
+      continue;
+    }
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.spvasm.expected.ir.glsl
index f297654..3dce87f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,158 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[12];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int f_i1_(inout int a) {
+  int i = 0;
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  {
+    while(true) {
+      if ((i < v.tint_symbol_1.x_GLF_uniform_int_values[6].el)) {
+      } else {
+        break;
+      }
+      if ((i > v.tint_symbol_1.x_GLF_uniform_int_values[2].el)) {
+        int x_21 = a;
+        return x_21;
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  int x_24 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  return x_24;
+}
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int r[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int i_1 = 0;
+  int a_1[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int param = 0;
+  int param_1 = 0;
+  int i_2 = 0;
+  int x_25 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  r[x_25] = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_27 = v.tint_symbol_1.x_GLF_uniform_int_values[11].el;
+  r[x_27] = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  r[x_29] = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  int x_31 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  r[x_31] = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+  int x_33 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  r[x_33] = v.tint_symbol_1.x_GLF_uniform_int_values[5].el;
+  int x_35 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+  r[x_35] = v.tint_symbol_1.x_GLF_uniform_int_values[6].el;
+  int x_37 = v.tint_symbol_1.x_GLF_uniform_int_values[5].el;
+  r[x_37] = v.tint_symbol_1.x_GLF_uniform_int_values[7].el;
+  int x_39 = v.tint_symbol_1.x_GLF_uniform_int_values[8].el;
+  r[x_39] = v.tint_symbol_1.x_GLF_uniform_int_values[8].el;
+  int x_41 = v.tint_symbol_1.x_GLF_uniform_int_values[9].el;
+  r[x_41] = v.tint_symbol_1.x_GLF_uniform_int_values[9].el;
+  int x_43 = v.tint_symbol_1.x_GLF_uniform_int_values[10].el;
+  r[x_43] = v.tint_symbol_1.x_GLF_uniform_int_values[10].el;
+  i_1 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  {
+    while(true) {
+      if ((i_1 < v.tint_symbol_1.x_GLF_uniform_int_values[6].el)) {
+      } else {
+        break;
+      }
+      int x_48 = i_1;
+      a_1[x_48] = i_1;
+      int v_1 = i_1;
+      if ((v_1 < tint_div_i32(v.tint_symbol_1.x_GLF_uniform_int_values[6].el, v.tint_symbol_1.x_GLF_uniform_int_values[1].el))) {
+        int x_54 = i_1;
+        a_1[x_54] = (i_1 + v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+        if ((i_1 < v.tint_symbol_1.x_GLF_uniform_int_values[6].el)) {
+          {
+            i_1 = (i_1 + 1);
+          }
+          continue;
+        }
+        int x_60 = i_1;
+        a_1[x_60] = (i_1 + v.tint_symbol_1.x_GLF_uniform_int_values[8].el);
+        param = a_1[i_1];
+        int x_66 = f_i1_(param);
+        if ((x_66 < v.tint_symbol_1.x_GLF_uniform_int_values[8].el)) {
+          int x_68 = i_1;
+          int x_182_save = x_68;
+          a_1[x_182_save] = (a_1[x_68] - 1);
+        }
+      } else {
+        param_1 = a_1[i_1];
+        int x_73 = f_i1_(param_1);
+        if ((x_73 < v.tint_symbol_1.x_GLF_uniform_int_values[8].el)) {
+          int x_75 = i_1;
+          a_1[x_75] = (a_1[i_1] + v.tint_symbol_1.x_GLF_uniform_int_values[4].el);
+        }
+      }
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+  i_2 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  {
+    while(true) {
+      if ((i_2 < v.tint_symbol_1.x_GLF_uniform_int_values[6].el)) {
+      } else {
+        break;
+      }
+      if ((a_1[i_2] != r[i_2])) {
+        x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
+        return;
+      }
+      {
+        i_2 = (i_2 + 1);
+      }
+      continue;
+    }
+  }
+  float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[11].el);
+  float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+  float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+  x_GLF_color = vec4(v_2, v_3, v_4, float(v.tint_symbol_1.x_GLF_uniform_int_values[11].el));
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:47: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:47: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:47: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl.expected.ir.glsl
index f297654..0af8507 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,211 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[12];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int f_i1_(inout int a) {
+  int i = 0;
+  int x_16 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  i = x_16;
+  {
+    while(true) {
+      int x_17 = i;
+      int x_18 = v.tint_symbol_1.x_GLF_uniform_int_values[6].el;
+      if ((x_17 < x_18)) {
+      } else {
+        break;
+      }
+      int x_19 = i;
+      int x_20 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+      if ((x_19 > x_20)) {
+        int x_21 = a;
+        return x_21;
+      }
+      {
+        int x_22 = i;
+        i = (x_22 + 1);
+      }
+      continue;
+    }
+  }
+  int x_24 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  return x_24;
+}
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int r[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int i_1 = 0;
+  int a_1[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int param = 0;
+  int param_1 = 0;
+  int i_2 = 0;
+  int x_25 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  int x_26 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  r[x_25] = x_26;
+  int x_27 = v.tint_symbol_1.x_GLF_uniform_int_values[11].el;
+  int x_28 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  r[x_27] = x_28;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_30 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  r[x_29] = x_30;
+  int x_31 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_32 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+  r[x_31] = x_32;
+  int x_33 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  int x_34 = v.tint_symbol_1.x_GLF_uniform_int_values[5].el;
+  r[x_33] = x_34;
+  int x_35 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+  int x_36 = v.tint_symbol_1.x_GLF_uniform_int_values[6].el;
+  r[x_35] = x_36;
+  int x_37 = v.tint_symbol_1.x_GLF_uniform_int_values[5].el;
+  int x_38 = v.tint_symbol_1.x_GLF_uniform_int_values[7].el;
+  r[x_37] = x_38;
+  int x_39 = v.tint_symbol_1.x_GLF_uniform_int_values[8].el;
+  int x_40 = v.tint_symbol_1.x_GLF_uniform_int_values[8].el;
+  r[x_39] = x_40;
+  int x_41 = v.tint_symbol_1.x_GLF_uniform_int_values[9].el;
+  int x_42 = v.tint_symbol_1.x_GLF_uniform_int_values[9].el;
+  r[x_41] = x_42;
+  int x_43 = v.tint_symbol_1.x_GLF_uniform_int_values[10].el;
+  int x_44 = v.tint_symbol_1.x_GLF_uniform_int_values[10].el;
+  r[x_43] = x_44;
+  int x_45 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  i_1 = x_45;
+  {
+    while(true) {
+      int x_46 = i_1;
+      int x_47 = v.tint_symbol_1.x_GLF_uniform_int_values[6].el;
+      if ((x_46 < x_47)) {
+      } else {
+        break;
+      }
+      int x_48 = i_1;
+      int x_49 = i_1;
+      a_1[x_48] = x_49;
+      int x_50 = i_1;
+      int x_51 = v.tint_symbol_1.x_GLF_uniform_int_values[6].el;
+      int x_52 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+      if ((x_50 < tint_div_i32(x_51, x_52))) {
+        int x_54 = i_1;
+        int x_55 = i_1;
+        int x_56 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+        a_1[x_54] = (x_55 + x_56);
+        int x_58 = i_1;
+        int x_59 = v.tint_symbol_1.x_GLF_uniform_int_values[6].el;
+        if ((x_58 < x_59)) {
+          {
+            int x_79 = i_1;
+            i_1 = (x_79 + 1);
+          }
+          continue;
+        }
+        int x_60 = i_1;
+        int x_61 = i_1;
+        int x_62 = v.tint_symbol_1.x_GLF_uniform_int_values[8].el;
+        a_1[x_60] = (x_61 + x_62);
+        int x_64 = i_1;
+        int x_65 = a_1[x_64];
+        param = x_65;
+        int x_66 = f_i1_(param);
+        int x_67 = v.tint_symbol_1.x_GLF_uniform_int_values[8].el;
+        if ((x_66 < x_67)) {
+          int x_68 = i_1;
+          int x_182_save = x_68;
+          int x_69 = a_1[x_182_save];
+          a_1[x_182_save] = (x_69 - 1);
+        }
+      } else {
+        int x_71 = i_1;
+        int x_72 = a_1[x_71];
+        param_1 = x_72;
+        int x_73 = f_i1_(param_1);
+        int x_74 = v.tint_symbol_1.x_GLF_uniform_int_values[8].el;
+        if ((x_73 < x_74)) {
+          int x_75 = i_1;
+          int x_76 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
+          int x_77 = a_1[x_75];
+          a_1[x_75] = (x_77 + x_76);
+        }
+      }
+      {
+        int x_79 = i_1;
+        i_1 = (x_79 + 1);
+      }
+      continue;
+    }
+  }
+  int x_81 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  i_2 = x_81;
+  {
+    while(true) {
+      int x_82 = i_2;
+      int x_83 = v.tint_symbol_1.x_GLF_uniform_int_values[6].el;
+      if ((x_82 < x_83)) {
+      } else {
+        break;
+      }
+      int x_84 = i_2;
+      int x_85 = a_1[x_84];
+      int x_86 = i_2;
+      int x_87 = r[x_86];
+      if ((x_85 != x_87)) {
+        int x_88 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+        float x_205 = float(x_88);
+        x_GLF_color = vec4(x_205, x_205, x_205, x_205);
+        return;
+      }
+      {
+        int x_89 = i_2;
+        i_2 = (x_89 + 1);
+      }
+      continue;
+    }
+  }
+  int x_91 = v.tint_symbol_1.x_GLF_uniform_int_values[11].el;
+  int x_92 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  int x_93 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  int x_94 = v.tint_symbol_1.x_GLF_uniform_int_values[11].el;
+  float v_1 = float(x_91);
+  float v_2 = float(x_92);
+  float v_3 = float(x_93);
+  x_GLF_color = vec4(v_1, v_2, v_3, float(x_94));
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:53: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:53: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:53: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.spvasm.expected.ir.glsl
index f297654..da60c9a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,60 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+ivec2 tint_div_v2i32(ivec2 lhs, ivec2 rhs) {
+  int v_1 = ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).x) ? (ivec2(1).x) : (rhs.x));
+  return (lhs / ivec2(v_1, ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).y) ? (ivec2(1).y) : (rhs.y))));
+}
+void main_1() {
+  int a = 0;
+  a = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  ivec2 v_2 = ivec2(a);
+  int v_3 = tint_div_v2i32(v_2, ivec2(v.tint_symbol_1.x_GLF_uniform_int_values[2].el, 63677))[1u];
+  if ((v_3 == v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    float v_5 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_6 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    x_GLF_color = vec4(v_4, v_5, v_6, float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl.expected.ir.glsl
index f297654..a2d1d50 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,69 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+ivec2 tint_div_v2i32(ivec2 lhs, ivec2 rhs) {
+  int v_1 = ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).x) ? (ivec2(1).x) : (rhs.x));
+  return (lhs / ivec2(v_1, ((((rhs == ivec2(0)) | ((lhs == ivec2((-2147483647 - 1))) & (rhs == ivec2(-1)))).y) ? (ivec2(1).y) : (rhs.y))));
+}
+void main_1() {
+  int a = 0;
+  int x_28 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  a = x_28;
+  int x_29 = a;
+  int x_31 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_37 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  ivec2 v_2 = ivec2(x_29, x_29);
+  if ((tint_div_v2i32(v_2, ivec2(x_31, 63677))[1u] == x_37)) {
+    int x_43 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_46 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_49 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_52 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float v_3 = float(x_43);
+    float v_4 = float(x_46);
+    float v_5 = float(x_49);
+    x_GLF_color = vec4(v_3, v_4, v_5, float(x_52));
+  } else {
+    int x_56 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float x_57 = float(x_56);
+    x_GLF_color = vec4(x_57, x_57, x_57, x_57);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.spvasm.expected.ir.glsl
index f297654..747dad4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,78 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  int v_1 = tint_f32_to_i32(tint_symbol.x);
+  a = (((v_1 < v.tint_symbol_3.x_GLF_uniform_int_values[1].el)) ? (0) : (-1));
+  i = 0;
+  {
+    while(true) {
+      if ((i < 5)) {
+      } else {
+        break;
+      }
+      a = tint_div_i32(a, 2);
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((a == 0)) {
+    float v_2 = float(v.tint_symbol_3.x_GLF_uniform_int_values[0].el);
+    float v_3 = float(v.tint_symbol_3.x_GLF_uniform_int_values[1].el);
+    float v_4 = float(v.tint_symbol_3.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(v.tint_symbol_3.x_GLF_uniform_int_values[0].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_3.x_GLF_uniform_int_values[1].el));
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:26: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:26: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:26: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl.expected.ir.glsl
index f297654..3a062da 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,89 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  float x_32 = tint_symbol.x;
+  int x_35 = v.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+  a = (((tint_f32_to_i32(x_32) < x_35)) ? (0) : (-1));
+  i = 0;
+  {
+    while(true) {
+      int x_42 = i;
+      if ((x_42 < 5)) {
+      } else {
+        break;
+      }
+      int x_45 = a;
+      a = tint_div_i32(x_45, 2);
+      {
+        int x_47 = i;
+        i = (x_47 + 1);
+      }
+      continue;
+    }
+  }
+  int x_49 = a;
+  if ((x_49 == 0)) {
+    int x_55 = v.tint_symbol_3.x_GLF_uniform_int_values[0].el;
+    int x_58 = v.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+    int x_61 = v.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+    int x_64 = v.tint_symbol_3.x_GLF_uniform_int_values[0].el;
+    float v_1 = float(x_55);
+    float v_2 = float(x_58);
+    float v_3 = float(x_61);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_64));
+  } else {
+    int x_68 = v.tint_symbol_3.x_GLF_uniform_int_values[1].el;
+    float x_69 = float(x_68);
+    x_GLF_color = vec4(x_69, x_69, x_69, x_69);
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:26: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:26: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:26: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.spvasm.expected.ir.glsl
index f297654..f95305e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,76 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int count = 0;
+  int i = 0;
+  count = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  {
+    while(true) {
+      if ((i < v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
+      } else {
+        break;
+      }
+      int v_2 = tint_mod_i32(count, -93448);
+      if ((v_2 > v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
+        count = (count + 1);
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((count == v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_5 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_3, v_4, v_5, float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl.expected.ir.glsl
index f297654..38df010 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,91 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int count = 0;
+  int i = 0;
+  int x_27 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  count = x_27;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  i = x_29;
+  {
+    while(true) {
+      int x_34 = i;
+      int x_36 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+      if ((x_34 < x_36)) {
+      } else {
+        break;
+      }
+      int x_39 = count;
+      int x_42 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+      if ((tint_mod_i32(x_39, -93448) > x_42)) {
+        int x_46 = count;
+        count = (x_46 + 1);
+      }
+      {
+        int x_48 = i;
+        i = (x_48 + 1);
+      }
+      continue;
+    }
+  }
+  int x_50 = count;
+  int x_52 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  if ((x_50 == x_52)) {
+    int x_58 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_61 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_64 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_67 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float v_2 = float(x_58);
+    float v_3 = float(x_61);
+    float v_4 = float(x_64);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(x_67));
+  } else {
+    int x_71 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float x_72 = float(x_71);
+    x_GLF_color = vec4(x_72, x_72, x_72, x_72);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.spvasm.expected.ir.glsl
index 25905a3..8074674 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 vec3 func_() {
   vec2 v = vec2(0.0f);
   int i = 0;
@@ -91,14 +92,18 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:81: 'all' : no matching overloaded function found 
+ERROR: 0:81: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:81: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl.expected.ir.glsl
index 6df7ad0..b72edba 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 vec3 func_() {
   vec2 v = vec2(0.0f);
   int i = 0;
@@ -103,14 +104,18 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:91: 'all' : no matching overloaded function found 
+ERROR: 0:91: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:91: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.ir.glsl
index 73b5fbe..8a2bbea 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,12 +16,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int arr[3] = int[3](0, 0, 0);
   int index = 0;
@@ -26,7 +30,7 @@
   bool x_77 = false;
   bool x_86 = false;
   bool x_87 = false;
-  arr = int[3](x_6.x_GLF_uniform_int_values[3].el, x_6.x_GLF_uniform_int_values[5].el, x_6.x_GLF_uniform_int_values[2].el);
+  arr = int[3](v.tint_symbol_1.x_GLF_uniform_int_values[3].el, v.tint_symbol_1.x_GLF_uniform_int_values[5].el, v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
   index = 1;
   {
     while(true) {
@@ -34,7 +38,7 @@
       bool x_52 = false;
       x_52 = true;
       if (true) {
-        x_51 = !(((x_6.x_GLF_uniform_int_values[0].el == 1) & (index <= 1)));
+        x_51 = !(((v.tint_symbol_1.x_GLF_uniform_int_values[0].el == 1) & (index <= 1)));
         x_52 = x_51;
       }
       if (!(x_52)) {
@@ -50,33 +54,36 @@
       continue;
     }
   }
-  bool x_67 = (arr[x_6.x_GLF_uniform_int_values[1].el] == x_6.x_GLF_uniform_int_values[3].el);
+  bool x_67 = (arr[v.tint_symbol_1.x_GLF_uniform_int_values[1].el] == v.tint_symbol_1.x_GLF_uniform_int_values[3].el);
   x_77 = x_67;
   if (x_67) {
-    x_76 = (arr[x_6.x_GLF_uniform_int_values[0].el] == x_6.x_GLF_uniform_int_values[4].el);
+    x_76 = (arr[v.tint_symbol_1.x_GLF_uniform_int_values[0].el] == v.tint_symbol_1.x_GLF_uniform_int_values[4].el);
     x_77 = x_76;
   }
   x_87 = x_77;
   if (x_77) {
-    x_86 = (arr[x_6.x_GLF_uniform_int_values[3].el] == x_6.x_GLF_uniform_int_values[2].el);
+    x_86 = (arr[v.tint_symbol_1.x_GLF_uniform_int_values[3].el] == v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
     x_87 = x_86;
   }
   if (x_87) {
-    float v = float(x_6.x_GLF_uniform_int_values[0].el);
-    float v_1 = float(x_6.x_GLF_uniform_int_values[1].el);
-    float v_2 = float(x_6.x_GLF_uniform_int_values[1].el);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_6.x_GLF_uniform_int_values[0].el));
+    float v_1 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
   } else {
-    x_GLF_color = vec4(float(x_6.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:39: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:39: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl.expected.ir.glsl
index 5a3c739..de54234 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,12 +16,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int arr[3] = int[3](0, 0, 0);
   int index = 0;
@@ -26,9 +30,9 @@
   bool x_86 = false;
   bool x_77_phi = false;
   bool x_87_phi = false;
-  int x_33 = x_6.x_GLF_uniform_int_values[3].el;
-  int x_35 = x_6.x_GLF_uniform_int_values[5].el;
-  int x_37 = x_6.x_GLF_uniform_int_values[2].el;
+  int x_33 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  int x_35 = v.tint_symbol_1.x_GLF_uniform_int_values[5].el;
+  int x_37 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
   arr = int[3](x_33, x_35, x_37);
   index = 1;
   {
@@ -37,7 +41,7 @@
       bool x_52_phi = false;
       x_52_phi = true;
       if (true) {
-        int x_46 = x_6.x_GLF_uniform_int_values[0].el;
+        int x_46 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
         int x_48 = index;
         x_51 = !(((x_46 == 1) & (x_48 <= 1)));
         x_52_phi = x_51;
@@ -58,50 +62,53 @@
       continue;
     }
   }
-  int x_62 = x_6.x_GLF_uniform_int_values[1].el;
+  int x_62 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
   int x_64 = arr[x_62];
-  int x_66 = x_6.x_GLF_uniform_int_values[3].el;
+  int x_66 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
   bool x_67 = (x_64 == x_66);
   x_77_phi = x_67;
   if (x_67) {
-    int x_71 = x_6.x_GLF_uniform_int_values[0].el;
+    int x_71 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
     int x_73 = arr[x_71];
-    int x_75 = x_6.x_GLF_uniform_int_values[4].el;
+    int x_75 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
     x_76 = (x_73 == x_75);
     x_77_phi = x_76;
   }
   bool x_77 = x_77_phi;
   x_87_phi = x_77;
   if (x_77) {
-    int x_81 = x_6.x_GLF_uniform_int_values[3].el;
+    int x_81 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
     int x_83 = arr[x_81];
-    int x_85 = x_6.x_GLF_uniform_int_values[2].el;
+    int x_85 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
     x_86 = (x_83 == x_85);
     x_87_phi = x_86;
   }
   bool x_87 = x_87_phi;
   if (x_87) {
-    int x_92 = x_6.x_GLF_uniform_int_values[0].el;
-    int x_95 = x_6.x_GLF_uniform_int_values[1].el;
-    int x_98 = x_6.x_GLF_uniform_int_values[1].el;
-    int x_101 = x_6.x_GLF_uniform_int_values[0].el;
-    float v = float(x_92);
-    float v_1 = float(x_95);
-    float v_2 = float(x_98);
-    x_GLF_color = vec4(v, v_1, v_2, float(x_101));
+    int x_92 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_95 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_98 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_101 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float v_1 = float(x_92);
+    float v_2 = float(x_95);
+    float v_3 = float(x_98);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_101));
   } else {
-    int x_105 = x_6.x_GLF_uniform_int_values[1].el;
+    int x_105 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
     float x_106 = float(x_105);
     x_GLF_color = vec4(x_106, x_106, x_106, x_106);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
+ERROR: 0:44: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:44: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.glsl
index b6c08bd..3d874e6 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -21,33 +24,37 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf1 x_7;
-uniform buf0 x_10;
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   mat2x3 m23 = mat2x3(vec3(0.0f), vec3(0.0f));
   int i = 0;
-  float x_46 = x_7.x_GLF_uniform_float_values[1].el;
-  vec3 v = vec3(x_46, 0.0f, 0.0f);
-  m23 = mat2x3(v, vec3(0.0f, x_46, 0.0f));
+  float x_46 = v.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+  vec3 v_2 = vec3(x_46, 0.0f, 0.0f);
+  m23 = mat2x3(v_2, vec3(0.0f, x_46, 0.0f));
   i = 1;
   {
     while(true) {
       bool x_80 = false;
       bool x_81 = false;
-      if ((i < x_10.x_GLF_uniform_int_values[3].el)) {
+      if ((i < v_1.tint_symbol_5.x_GLF_uniform_int_values[3].el)) {
       } else {
         break;
       }
-      int x_60 = x_10.x_GLF_uniform_int_values[0].el;
-      int x_62 = x_10.x_GLF_uniform_int_values[2].el;
-      m23[x_60][x_62] = (m23[x_60][x_62] + x_7.x_GLF_uniform_float_values[0].el);
-      if ((tint_symbol.y < x_7.x_GLF_uniform_float_values[0].el)) {
+      int x_60 = v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+      int x_62 = v_1.tint_symbol_5.x_GLF_uniform_int_values[2].el;
+      m23[x_60][x_62] = (m23[x_60][x_62] + v.tint_symbol_3.x_GLF_uniform_float_values[0].el);
+      if ((tint_symbol.y < v.tint_symbol_3.x_GLF_uniform_float_values[0].el)) {
       }
       x_81 = true;
       if (true) {
@@ -63,31 +70,35 @@
       continue;
     }
   }
-  float v_1 = float(x_10.x_GLF_uniform_int_values[1].el);
-  float v_2 = float(x_10.x_GLF_uniform_int_values[1].el);
-  vec3 v_3 = vec3(v_1, v_2, float(x_10.x_GLF_uniform_int_values[1].el));
-  float v_4 = float(x_10.x_GLF_uniform_int_values[1].el);
-  float v_5 = float(x_10.x_GLF_uniform_int_values[1].el);
-  mat2x3 x_108 = mat2x3(v_3, vec3(v_4, v_5, float(x_10.x_GLF_uniform_int_values[0].el)));
-  bool v_6 = all((m23[0u] == x_108[0u]));
-  if ((v_6 & all((m23[1u] == x_108[1u])))) {
-    float v_7 = float(x_10.x_GLF_uniform_int_values[0].el);
-    float v_8 = float(x_10.x_GLF_uniform_int_values[1].el);
-    float v_9 = float(x_10.x_GLF_uniform_int_values[1].el);
-    x_GLF_color = vec4(v_7, v_8, v_9, float(x_10.x_GLF_uniform_int_values[0].el));
+  float v_3 = float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el);
+  float v_4 = float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el);
+  vec3 v_5 = vec3(v_3, v_4, float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el));
+  float v_6 = float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el);
+  float v_7 = float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el);
+  mat2x3 x_108 = mat2x3(v_5, vec3(v_6, v_7, float(v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el)));
+  bool v_8 = all((m23[0u] == x_108[0u]));
+  if ((v_8 & all((m23[1u] == x_108[1u])))) {
+    float v_9 = float(v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el);
+    float v_10 = float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el);
+    float v_11 = float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_9, v_10, v_11, float(v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el));
   } else {
-    x_GLF_color = vec4(float(x_10.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(float(v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el));
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:77: 'all' : no matching overloaded function found 
+ERROR: 0:77: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:77: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.glsl
index 07dacb8..6ad8c0a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -21,38 +24,42 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf1 x_7;
-uniform buf0 x_10;
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   mat2x3 m23 = mat2x3(vec3(0.0f), vec3(0.0f));
   int i = 0;
-  float x_46 = x_7.x_GLF_uniform_float_values[1].el;
-  vec3 v = vec3(x_46, 0.0f, 0.0f);
-  m23 = mat2x3(v, vec3(0.0f, x_46, 0.0f));
+  float x_46 = v.tint_symbol_3.x_GLF_uniform_float_values[1].el;
+  vec3 v_2 = vec3(x_46, 0.0f, 0.0f);
+  m23 = mat2x3(v_2, vec3(0.0f, x_46, 0.0f));
   i = 1;
   {
     while(true) {
       bool x_80 = false;
       bool x_81_phi = false;
       int x_54 = i;
-      int x_56 = x_10.x_GLF_uniform_int_values[3].el;
+      int x_56 = v_1.tint_symbol_5.x_GLF_uniform_int_values[3].el;
       if ((x_54 < x_56)) {
       } else {
         break;
       }
-      int x_60 = x_10.x_GLF_uniform_int_values[0].el;
-      int x_62 = x_10.x_GLF_uniform_int_values[2].el;
-      float x_64 = x_7.x_GLF_uniform_float_values[0].el;
+      int x_60 = v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+      int x_62 = v_1.tint_symbol_5.x_GLF_uniform_int_values[2].el;
+      float x_64 = v.tint_symbol_3.x_GLF_uniform_float_values[0].el;
       float x_66 = m23[x_60][x_62];
       m23[x_60][x_62] = (x_66 + x_64);
       float x_70 = tint_symbol.y;
-      float x_72 = x_7.x_GLF_uniform_float_values[0].el;
+      float x_72 = v.tint_symbol_3.x_GLF_uniform_float_values[0].el;
       if ((x_70 < x_72)) {
       }
       x_81_phi = true;
@@ -73,43 +80,47 @@
     }
   }
   mat2x3 x_87 = m23;
-  int x_89 = x_10.x_GLF_uniform_int_values[1].el;
-  int x_92 = x_10.x_GLF_uniform_int_values[1].el;
-  int x_95 = x_10.x_GLF_uniform_int_values[1].el;
-  int x_98 = x_10.x_GLF_uniform_int_values[1].el;
-  int x_101 = x_10.x_GLF_uniform_int_values[1].el;
-  int x_104 = x_10.x_GLF_uniform_int_values[0].el;
-  float v_1 = float(x_89);
-  float v_2 = float(x_92);
-  vec3 v_3 = vec3(v_1, v_2, float(x_95));
-  float v_4 = float(x_98);
-  float v_5 = float(x_101);
-  mat2x3 x_108 = mat2x3(v_3, vec3(v_4, v_5, float(x_104)));
-  bool v_6 = all((x_87[0u] == x_108[0u]));
-  if ((v_6 & all((x_87[1u] == x_108[1u])))) {
-    int x_122 = x_10.x_GLF_uniform_int_values[0].el;
-    int x_125 = x_10.x_GLF_uniform_int_values[1].el;
-    int x_128 = x_10.x_GLF_uniform_int_values[1].el;
-    int x_131 = x_10.x_GLF_uniform_int_values[0].el;
-    float v_7 = float(x_122);
-    float v_8 = float(x_125);
-    float v_9 = float(x_128);
-    x_GLF_color = vec4(v_7, v_8, v_9, float(x_131));
+  int x_89 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+  int x_92 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+  int x_95 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+  int x_98 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+  int x_101 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+  int x_104 = v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+  float v_3 = float(x_89);
+  float v_4 = float(x_92);
+  vec3 v_5 = vec3(v_3, v_4, float(x_95));
+  float v_6 = float(x_98);
+  float v_7 = float(x_101);
+  mat2x3 x_108 = mat2x3(v_5, vec3(v_6, v_7, float(x_104)));
+  bool v_8 = all((x_87[0u] == x_108[0u]));
+  if ((v_8 & all((x_87[1u] == x_108[1u])))) {
+    int x_122 = v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+    int x_125 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+    int x_128 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
+    int x_131 = v_1.tint_symbol_5.x_GLF_uniform_int_values[0].el;
+    float v_9 = float(x_122);
+    float v_10 = float(x_125);
+    float v_11 = float(x_128);
+    x_GLF_color = vec4(v_9, v_10, v_11, float(x_131));
   } else {
-    int x_135 = x_10.x_GLF_uniform_int_values[1].el;
+    int x_135 = v_1.tint_symbol_5.x_GLF_uniform_int_values[1].el;
     float x_136 = float(x_135);
     x_GLF_color = vec4(x_136, x_136, x_136, x_136);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:93: 'all' : no matching overloaded function found 
+ERROR: 0:93: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:93: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.spvasm.expected.ir.glsl
index f297654..0da368a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,76 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[4];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  a = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  i = 0;
+  {
+    while(true) {
+      if ((i < 3)) {
+      } else {
+        break;
+      }
+      if ((i == v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
+        a = (a + 1);
+      } else {
+        a = tint_div_i32(a, i);
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((a == v.tint_symbol_1.x_GLF_uniform_int_values[2].el)) {
+    float v_1 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl.expected.ir.glsl
index f297654..d2222bf 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,92 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[4];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  int x_27 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  a = x_27;
+  i = 0;
+  {
+    while(true) {
+      int x_32 = i;
+      if ((x_32 < 3)) {
+      } else {
+        break;
+      }
+      int x_35 = i;
+      int x_37 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+      if ((x_35 == x_37)) {
+        int x_42 = a;
+        a = (x_42 + 1);
+      } else {
+        int x_44 = a;
+        int x_45 = i;
+        a = tint_div_i32(x_44, x_45);
+      }
+      {
+        int x_47 = i;
+        i = (x_47 + 1);
+      }
+      continue;
+    }
+  }
+  int x_49 = a;
+  int x_51 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  if ((x_49 == x_51)) {
+    int x_57 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_60 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_63 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_66 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float v_1 = float(x_57);
+    float v_2 = float(x_60);
+    float v_3 = float(x_63);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_66));
+  } else {
+    int x_70 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float x_71 = float(x_70);
+    x_GLF_color = vec4(x_71, x_71, x_71, x_71);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.spvasm.expected.ir.glsl
index f297654..7ffd4b0 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,69 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  a = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  {
+    while(true) {
+      if ((a >= 0)) {
+      } else {
+        break;
+      }
+      a = (tint_div_i32(a, 2) - 1);
+      {
+      }
+      continue;
+    }
+  }
+  if ((a == -(v.tint_symbol_1.x_GLF_uniform_int_values[0].el))) {
+    float v_1 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl.expected.ir.glsl
index f297654..a3cd85c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,80 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[3];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  int x_25 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  a = x_25;
+  {
+    while(true) {
+      int x_30 = a;
+      if ((x_30 >= 0)) {
+      } else {
+        break;
+      }
+      int x_33 = a;
+      a = (tint_div_i32(x_33, 2) - 1);
+      {
+      }
+      continue;
+    }
+  }
+  int x_36 = a;
+  int x_38 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  if ((x_36 == -(x_38))) {
+    int x_45 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_48 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_51 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_54 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float v_1 = float(x_45);
+    float v_2 = float(x_48);
+    float v_3 = float(x_51);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_54));
+  } else {
+    int x_58 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float x_59 = float(x_58);
+    x_GLF_color = vec4(x_59, x_59, x_59, x_59);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.spvasm.expected.ir.glsl
index f297654..0ca3164 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,72 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  a = 0;
+  i = 0;
+  {
+    while(true) {
+      int v_1 = i;
+      if ((v_1 < tint_f32_to_i32(v.tint_symbol_1.injectionSwitch.y))) {
+      } else {
+        break;
+      }
+      if ((a > 0)) {
+        break;
+      }
+      a = tint_div_i32((tint_f32_to_i32(v.tint_symbol_1.injectionSwitch.y) * 2), 2);
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((a == 1)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl.expected.ir.glsl
index f297654..ed2a072 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,77 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  a = 0;
+  i = 0;
+  {
+    while(true) {
+      int x_33 = i;
+      float x_35 = v.tint_symbol_1.injectionSwitch.y;
+      if ((x_33 < tint_f32_to_i32(x_35))) {
+      } else {
+        break;
+      }
+      int x_39 = a;
+      if ((x_39 > 0)) {
+        break;
+      }
+      float x_44 = v.tint_symbol_1.injectionSwitch.y;
+      a = tint_div_i32((tint_f32_to_i32(x_44) * 2), 2);
+      {
+        int x_48 = i;
+        i = (x_48 + 1);
+      }
+      continue;
+    }
+  }
+  int x_50 = a;
+  if ((x_50 == 1)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.ir.glsl
index 6d24be3..dcff26c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,38 +16,43 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
-  float x_30 = float(x_6.x_GLF_uniform_int_values[0].el);
-  vec2 v = vec2(x_30, 0.0f);
-  m = transpose(transpose(mat2(v, vec2(0.0f, x_30))));
-  float x_39 = float(x_6.x_GLF_uniform_int_values[0].el);
-  vec2 v_1 = vec2(x_39, 0.0f);
-  mat2 x_42 = mat2(v_1, vec2(0.0f, x_39));
-  bool v_2 = all((m[0u] == x_42[0u]));
-  if ((v_2 & all((m[1u] == x_42[1u])))) {
-    float v_3 = float(x_6.x_GLF_uniform_int_values[0].el);
-    float v_4 = float(x_6.x_GLF_uniform_int_values[1].el);
-    float v_5 = float(x_6.x_GLF_uniform_int_values[1].el);
-    x_GLF_color = vec4(v_3, v_4, v_5, float(x_6.x_GLF_uniform_int_values[0].el));
+  float x_30 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+  vec2 v_1 = vec2(x_30, 0.0f);
+  m = transpose(transpose(mat2(v_1, vec2(0.0f, x_30))));
+  float x_39 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+  vec2 v_2 = vec2(x_39, 0.0f);
+  mat2 x_42 = mat2(v_2, vec2(0.0f, x_39));
+  bool v_3 = all((m[0u] == x_42[0u]));
+  if ((v_3 & all((m[1u] == x_42[1u])))) {
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_5 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_6 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_4, v_5, v_6, float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
   } else {
-    x_GLF_color = vec4(float(x_6.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:32: 'all' : no matching overloaded function found 
+ERROR: 0:32: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:32: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl.expected.ir.glsl
index ca75f7a..6c2acaa 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,47 +16,52 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
-  int x_29 = x_6.x_GLF_uniform_int_values[0].el;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   float x_30 = float(x_29);
-  vec2 v = vec2(x_30, 0.0f);
-  m = transpose(transpose(mat2(v, vec2(0.0f, x_30))));
+  vec2 v_1 = vec2(x_30, 0.0f);
+  m = transpose(transpose(mat2(v_1, vec2(0.0f, x_30))));
   mat2 x_36 = m;
-  int x_38 = x_6.x_GLF_uniform_int_values[0].el;
+  int x_38 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
   float x_39 = float(x_38);
-  vec2 v_1 = vec2(x_39, 0.0f);
-  mat2 x_42 = mat2(v_1, vec2(0.0f, x_39));
-  bool v_2 = all((x_36[0u] == x_42[0u]));
-  if ((v_2 & all((x_36[1u] == x_42[1u])))) {
-    int x_56 = x_6.x_GLF_uniform_int_values[0].el;
-    int x_59 = x_6.x_GLF_uniform_int_values[1].el;
-    int x_62 = x_6.x_GLF_uniform_int_values[1].el;
-    int x_65 = x_6.x_GLF_uniform_int_values[0].el;
-    float v_3 = float(x_56);
-    float v_4 = float(x_59);
-    float v_5 = float(x_62);
-    x_GLF_color = vec4(v_3, v_4, v_5, float(x_65));
+  vec2 v_2 = vec2(x_39, 0.0f);
+  mat2 x_42 = mat2(v_2, vec2(0.0f, x_39));
+  bool v_3 = all((x_36[0u] == x_42[0u]));
+  if ((v_3 & all((x_36[1u] == x_42[1u])))) {
+    int x_56 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_59 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_62 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_65 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float v_4 = float(x_56);
+    float v_5 = float(x_59);
+    float v_6 = float(x_62);
+    x_GLF_color = vec4(v_4, v_5, v_6, float(x_65));
   } else {
-    int x_69 = x_6.x_GLF_uniform_int_values[1].el;
+    int x_69 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
     float x_70 = float(x_69);
     x_GLF_color = vec4(x_70, x_70, x_70, x_70);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:35: 'all' : no matching overloaded function found 
+ERROR: 0:35: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:35: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.spvasm.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.ir.glsl
index d2eecf2..8b770dc 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf2 {
   float one;
@@ -25,16 +28,23 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 mat4x2 m = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
-uniform buf2 x_10;
-uniform buf0 x_12;
+layout(binding = 2, std140)
+uniform tint_symbol_4_1_ubo {
+  buf2 tint_symbol_3;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
 vec4 tint_symbol = vec4(0.0f);
-uniform buf1 x_16;
+layout(binding = 1, std140)
+uniform tint_symbol_8_1_ubo {
+  buf1 tint_symbol_7;
+} v_2;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void func0_i1_(inout int x) {
   int i = 0;
   bool x_137 = false;
@@ -46,7 +56,7 @@
     bool x_130 = (x > 1);
     x_138 = x_130;
     if (x_130) {
-      x_137 = (x_10.one > x_12.x_GLF_uniform_float_values[0].el);
+      x_137 = (v.tint_symbol_3.one > v_1.tint_symbol_5.x_GLF_uniform_float_values[0].el);
       x_138 = x_137;
     }
     x_139 = x_138;
@@ -54,7 +64,7 @@
   if (x_139) {
     return;
   }
-  if ((x_10.one == x_12.x_GLF_uniform_float_values[0].el)) {
+  if ((v.tint_symbol_3.one == v_1.tint_symbol_5.x_GLF_uniform_float_values[0].el)) {
     i = 0;
     {
       while(true) {
@@ -65,7 +75,7 @@
         {
           int x_155 = min(max(x, 0), 3);
           int x_156 = i;
-          m[x_155][x_156] = (m[x_155][i] + x_12.x_GLF_uniform_float_values[0].el);
+          m[x_155][x_156] = (m[x_155][i] + v_1.tint_symbol_5.x_GLF_uniform_float_values[0].el);
           i = (i + 1);
         }
         continue;
@@ -85,35 +95,39 @@
   m = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
   func1_();
   func1_();
-  float v = float(x_16.x_GLF_uniform_int_values[0].el);
-  vec2 v_1 = vec2(v, float(x_16.x_GLF_uniform_int_values[0].el));
-  float v_2 = float(x_16.x_GLF_uniform_int_values[1].el);
-  vec2 v_3 = vec2(v_2, float(x_16.x_GLF_uniform_int_values[1].el));
-  float v_4 = float(x_16.x_GLF_uniform_int_values[0].el);
-  vec2 v_5 = vec2(v_4, float(x_16.x_GLF_uniform_int_values[0].el));
-  float v_6 = float(x_16.x_GLF_uniform_int_values[0].el);
-  mat4x2 x_83 = mat4x2(v_1, v_3, v_5, vec2(v_6, float(x_16.x_GLF_uniform_int_values[0].el)));
-  bool v_7 = all((m[0u] == x_83[0u]));
-  bool v_8 = (v_7 & all((m[1u] == x_83[1u])));
-  bool v_9 = (v_8 & all((m[2u] == x_83[2u])));
-  if ((v_9 & all((m[3u] == x_83[3u])))) {
-    float v_10 = float(x_16.x_GLF_uniform_int_values[3].el);
-    float v_11 = float(x_16.x_GLF_uniform_int_values[0].el);
-    float v_12 = float(x_16.x_GLF_uniform_int_values[0].el);
-    x_GLF_color = vec4(v_10, v_11, v_12, float(x_16.x_GLF_uniform_int_values[3].el));
+  float v_3 = float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el);
+  vec2 v_4 = vec2(v_3, float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el));
+  float v_5 = float(v_2.tint_symbol_7.x_GLF_uniform_int_values[1].el);
+  vec2 v_6 = vec2(v_5, float(v_2.tint_symbol_7.x_GLF_uniform_int_values[1].el));
+  float v_7 = float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el);
+  vec2 v_8 = vec2(v_7, float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el));
+  float v_9 = float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el);
+  mat4x2 x_83 = mat4x2(v_4, v_6, v_8, vec2(v_9, float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el)));
+  bool v_10 = all((m[0u] == x_83[0u]));
+  bool v_11 = (v_10 & all((m[1u] == x_83[1u])));
+  bool v_12 = (v_11 & all((m[2u] == x_83[2u])));
+  if ((v_12 & all((m[3u] == x_83[3u])))) {
+    float v_13 = float(v_2.tint_symbol_7.x_GLF_uniform_int_values[3].el);
+    float v_14 = float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el);
+    float v_15 = float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el);
+    x_GLF_color = vec4(v_13, v_14, v_15, float(v_2.tint_symbol_7.x_GLF_uniform_int_values[3].el));
   } else {
-    x_GLF_color = vec4(float(x_16.x_GLF_uniform_int_values[0].el));
+    x_GLF_color = vec4(float(v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el));
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:104: 'all' : no matching overloaded function found 
+ERROR: 0:104: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:104: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl.expected.ir.glsl
index ed301ba..4f46b39 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf2 {
   float one;
@@ -25,16 +28,23 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 mat4x2 m = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
-uniform buf2 x_10;
-uniform buf0 x_12;
+layout(binding = 2, std140)
+uniform tint_symbol_4_1_ubo {
+  buf2 tint_symbol_3;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
 vec4 tint_symbol = vec4(0.0f);
-uniform buf1 x_16;
+layout(binding = 1, std140)
+uniform tint_symbol_8_1_ubo {
+  buf1 tint_symbol_7;
+} v_2;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void func0_i1_(inout int x) {
   int i = 0;
   bool x_137 = false;
@@ -49,8 +59,8 @@
     bool x_130 = (x_129 > 1);
     x_138_phi = x_130;
     if (x_130) {
-      float x_134 = x_10.one;
-      float x_136 = x_12.x_GLF_uniform_float_values[0].el;
+      float x_134 = v.tint_symbol_3.one;
+      float x_136 = v_1.tint_symbol_5.x_GLF_uniform_float_values[0].el;
       x_137 = (x_134 > x_136);
       x_138_phi = x_137;
     }
@@ -61,8 +71,8 @@
   if (x_139) {
     return;
   }
-  float x_143 = x_10.one;
-  float x_145 = x_12.x_GLF_uniform_float_values[0].el;
+  float x_143 = v.tint_symbol_3.one;
+  float x_145 = v_1.tint_symbol_5.x_GLF_uniform_float_values[0].el;
   if ((x_143 == x_145)) {
     i = 0;
     {
@@ -76,7 +86,7 @@
           int x_154 = x;
           int x_155 = min(max(x_154, 0), 3);
           int x_156 = i;
-          float x_158 = x_12.x_GLF_uniform_float_values[0].el;
+          float x_158 = v_1.tint_symbol_5.x_GLF_uniform_float_values[0].el;
           float x_160 = m[x_155][x_156];
           m[x_155][x_156] = (x_160 + x_158);
           int x_163 = i;
@@ -101,49 +111,53 @@
   func1_();
   func1_();
   mat4x2 x_54 = m;
-  int x_56 = x_16.x_GLF_uniform_int_values[0].el;
-  int x_59 = x_16.x_GLF_uniform_int_values[0].el;
-  int x_62 = x_16.x_GLF_uniform_int_values[1].el;
-  int x_65 = x_16.x_GLF_uniform_int_values[1].el;
-  int x_68 = x_16.x_GLF_uniform_int_values[0].el;
-  int x_71 = x_16.x_GLF_uniform_int_values[0].el;
-  int x_74 = x_16.x_GLF_uniform_int_values[0].el;
-  int x_77 = x_16.x_GLF_uniform_int_values[0].el;
-  float v = float(x_56);
-  vec2 v_1 = vec2(v, float(x_59));
-  float v_2 = float(x_62);
-  vec2 v_3 = vec2(v_2, float(x_65));
-  float v_4 = float(x_68);
-  vec2 v_5 = vec2(v_4, float(x_71));
-  float v_6 = float(x_74);
-  mat4x2 x_83 = mat4x2(v_1, v_3, v_5, vec2(v_6, float(x_77)));
-  bool v_7 = all((x_54[0u] == x_83[0u]));
-  bool v_8 = (v_7 & all((x_54[1u] == x_83[1u])));
-  bool v_9 = (v_8 & all((x_54[2u] == x_83[2u])));
-  if ((v_9 & all((x_54[3u] == x_83[3u])))) {
-    int x_107 = x_16.x_GLF_uniform_int_values[3].el;
-    int x_110 = x_16.x_GLF_uniform_int_values[0].el;
-    int x_113 = x_16.x_GLF_uniform_int_values[0].el;
-    int x_116 = x_16.x_GLF_uniform_int_values[3].el;
-    float v_10 = float(x_107);
-    float v_11 = float(x_110);
-    float v_12 = float(x_113);
-    x_GLF_color = vec4(v_10, v_11, v_12, float(x_116));
+  int x_56 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+  int x_59 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+  int x_62 = v_2.tint_symbol_7.x_GLF_uniform_int_values[1].el;
+  int x_65 = v_2.tint_symbol_7.x_GLF_uniform_int_values[1].el;
+  int x_68 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+  int x_71 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+  int x_74 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+  int x_77 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+  float v_3 = float(x_56);
+  vec2 v_4 = vec2(v_3, float(x_59));
+  float v_5 = float(x_62);
+  vec2 v_6 = vec2(v_5, float(x_65));
+  float v_7 = float(x_68);
+  vec2 v_8 = vec2(v_7, float(x_71));
+  float v_9 = float(x_74);
+  mat4x2 x_83 = mat4x2(v_4, v_6, v_8, vec2(v_9, float(x_77)));
+  bool v_10 = all((x_54[0u] == x_83[0u]));
+  bool v_11 = (v_10 & all((x_54[1u] == x_83[1u])));
+  bool v_12 = (v_11 & all((x_54[2u] == x_83[2u])));
+  if ((v_12 & all((x_54[3u] == x_83[3u])))) {
+    int x_107 = v_2.tint_symbol_7.x_GLF_uniform_int_values[3].el;
+    int x_110 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+    int x_113 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
+    int x_116 = v_2.tint_symbol_7.x_GLF_uniform_int_values[3].el;
+    float v_13 = float(x_107);
+    float v_14 = float(x_110);
+    float v_15 = float(x_113);
+    x_GLF_color = vec4(v_13, v_14, v_15, float(x_116));
   } else {
-    int x_120 = x_16.x_GLF_uniform_int_values[0].el;
+    int x_120 = v_2.tint_symbol_7.x_GLF_uniform_int_values[0].el;
     float x_121 = float(x_120);
     x_GLF_color = vec4(x_121, x_121, x_121, x_121);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:128: 'all' : no matching overloaded function found 
+ERROR: 0:128: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:128: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.spvasm.expected.ir.glsl
index f297654..e1a98c7 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.spvasm.expected.ir.glsl
@@ -1,11 +1,48 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int three;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  if ((tint_div_i32(10, (2 & v.tint_symbol_1.three)) == 5)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl.expected.ir.glsl
index f297654..01f10fa 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl.expected.ir.glsl
@@ -1,11 +1,49 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int three;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int x_25 = v.tint_symbol_1.three;
+  if ((tint_div_i32(10, (2 & x_25)) == 5)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.ir.glsl
index e5164ca..260610d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -13,12 +16,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf0 x_8;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float a = 0.0f;
   float b = 0.0f;
@@ -28,18 +32,21 @@
   c = pow(a, b);
   x_GLF_color = vec4(c);
   if (((a == -1.0f) & (b == 1.70000004768371582031f))) {
-    x_GLF_color = vec4(x_8.x_GLF_uniform_float_values[0].el, x_8.x_GLF_uniform_float_values[1].el, x_8.x_GLF_uniform_float_values[1].el, x_8.x_GLF_uniform_float_values[0].el);
+    x_GLF_color = vec4(v.tint_symbol_1.x_GLF_uniform_float_values[0].el, v.tint_symbol_1.x_GLF_uniform_float_values[1].el, v.tint_symbol_1.x_GLF_uniform_float_values[1].el, v.tint_symbol_1.x_GLF_uniform_float_values[0].el);
   } else {
-    x_GLF_color = vec4(x_8.x_GLF_uniform_float_values[0].el);
+    x_GLF_color = vec4(v.tint_symbol_1.x_GLF_uniform_float_values[0].el);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:32: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:32: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl.expected.ir.glsl
index 41308bf..db521cb 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   float el;
@@ -13,12 +16,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf0 x_8;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   float a = 0.0f;
   float b = 0.0f;
@@ -33,23 +37,26 @@
   float x_32 = a;
   float x_34 = b;
   if (((x_32 == -1.0f) & (x_34 == 1.70000004768371582031f))) {
-    float x_41 = x_8.x_GLF_uniform_float_values[0].el;
-    float x_43 = x_8.x_GLF_uniform_float_values[1].el;
-    float x_45 = x_8.x_GLF_uniform_float_values[1].el;
-    float x_47 = x_8.x_GLF_uniform_float_values[0].el;
+    float x_41 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
+    float x_43 = v.tint_symbol_1.x_GLF_uniform_float_values[1].el;
+    float x_45 = v.tint_symbol_1.x_GLF_uniform_float_values[1].el;
+    float x_47 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
     x_GLF_color = vec4(x_41, x_43, x_45, x_47);
   } else {
-    float x_50 = x_8.x_GLF_uniform_float_values[0].el;
+    float x_50 = v.tint_symbol_1.x_GLF_uniform_float_values[0].el;
     x_GLF_color = vec4(x_50, x_50, x_50, x_50);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.spvasm.expected.ir.glsl
index f297654..71ef8bd 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,58 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  a = -7563;
+  int v_1 = tint_div_i32(v.tint_symbol_1.x_GLF_uniform_int_values[1].el, a);
+  if ((v_1 == v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
+    float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl.expected.ir.glsl
index f297654..0ed8cb4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,66 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  a = -7563;
+  int x_25 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_26 = a;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  if ((tint_div_i32(x_25, x_26) == x_29)) {
+    int x_35 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_38 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_41 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_44 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float v_1 = float(x_35);
+    float v_2 = float(x_38);
+    float v_3 = float(x_41);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_44));
+  } else {
+    int x_48 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float x_49 = float(x_48);
+    x_GLF_color = vec4(x_49, x_49, x_49, x_49);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.spvasm.expected.ir.glsl
index f297654..8110e88 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,58 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  a = -1;
+  int v_1 = tint_div_i32(v.tint_symbol_1.x_GLF_uniform_int_values[1].el, a);
+  if ((v_1 < v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
+    float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl.expected.ir.glsl
index f297654..3b9cada 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,66 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[2];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int a = 0;
+  a = -1;
+  int x_25 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_26 = a;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  if ((tint_div_i32(x_25, x_26) < x_29)) {
+    int x_35 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_38 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_41 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    int x_44 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float v_1 = float(x_35);
+    float v_2 = float(x_38);
+    float v_3 = float(x_41);
+    x_GLF_color = vec4(v_1, v_2, v_3, float(x_44));
+  } else {
+    int x_48 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+    float x_49 = float(x_48);
+    x_GLF_color = vec4(x_49, x_49, x_49, x_49);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.ir.glsl
index 003a93c..5b5f40e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   int zero;
@@ -9,12 +12,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int x_9[1] = int[1](0);
   int x_10 = 0;
@@ -22,7 +26,7 @@
   {
     while(true) {
       x_GLF_color = vec4(0.0f);
-      if ((x_9[x_5.zero] == x_6)) {
+      if ((x_9[v.tint_symbol_1.zero] == x_6)) {
         x_10 = 1;
         break;
       }
@@ -36,13 +40,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:8: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:8: '' : compilation terminated 
+ERROR: 0:35: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:35: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl.expected.ir.glsl
index 084ff8d..6591d0d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   int zero;
@@ -9,12 +12,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 x_GLF_color = vec4(0.0f);
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int x_9[1] = int[1](0);
   int x_10_phi = 0;
@@ -23,7 +27,7 @@
   {
     while(true) {
       x_GLF_color = vec4(0.0f);
-      int x_7 = x_5.zero;
+      int x_7 = v.tint_symbol_1.zero;
       int x_8 = x_9[x_7];
       if ((x_8 == x_6)) {
         x_10_phi = 1;
@@ -40,13 +44,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:8: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:8: '' : compilation terminated 
+ERROR: 0:39: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:39: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.glsl
index 63a2efd..2eb59fb 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,38 +16,39 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
   float f = 0.0f;
   int i = 0;
   int j = 0;
-  if ((x_5.x_GLF_uniform_int_values[1].el == 1)) {
-    vec2 v = vec2(f, 0.0f);
-    m = mat2(v, vec2(0.0f, f));
+  if ((v.tint_symbol_1.x_GLF_uniform_int_values[1].el == 1)) {
+    vec2 v_1 = vec2(f, 0.0f);
+    m = mat2(v_1, vec2(0.0f, f));
   }
-  i = x_5.x_GLF_uniform_int_values[1].el;
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
   {
     while(true) {
-      if ((i < x_5.x_GLF_uniform_int_values[0].el)) {
+      if ((i < v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
       } else {
         break;
       }
-      j = x_5.x_GLF_uniform_int_values[1].el;
+      j = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
       {
         while(true) {
-          if ((j < x_5.x_GLF_uniform_int_values[0].el)) {
+          if ((j < v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
           } else {
             break;
           }
           int x_66 = i;
           int x_67 = j;
-          m[x_66][x_67] = float(((i * x_5.x_GLF_uniform_int_values[0].el) + j));
+          m[x_66][x_67] = float(((i * v.tint_symbol_1.x_GLF_uniform_int_values[0].el) + j));
           {
             j = (j + 1);
           }
@@ -57,28 +61,32 @@
       continue;
     }
   }
-  float v_1 = float(x_5.x_GLF_uniform_int_values[1].el);
-  vec2 v_2 = vec2(v_1, float(x_5.x_GLF_uniform_int_values[2].el));
-  float v_3 = float(x_5.x_GLF_uniform_int_values[0].el);
-  mat2 x_95 = mat2(v_2, vec2(v_3, float(x_5.x_GLF_uniform_int_values[3].el)));
-  bool v_4 = all((m[0u] == x_95[0u]));
-  if ((v_4 & all((m[1u] == x_95[1u])))) {
-    float v_5 = float(x_5.x_GLF_uniform_int_values[2].el);
-    float v_6 = float(x_5.x_GLF_uniform_int_values[1].el);
-    float v_7 = float(x_5.x_GLF_uniform_int_values[1].el);
-    x_GLF_color = vec4(v_5, v_6, v_7, float(x_5.x_GLF_uniform_int_values[2].el));
+  float v_2 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+  vec2 v_3 = vec2(v_2, float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
+  float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[0].el);
+  mat2 x_95 = mat2(v_3, vec2(v_4, float(v.tint_symbol_1.x_GLF_uniform_int_values[3].el)));
+  bool v_5 = all((m[0u] == x_95[0u]));
+  if ((v_5 & all((m[1u] == x_95[1u])))) {
+    float v_6 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    float v_7 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    float v_8 = float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el);
+    x_GLF_color = vec4(v_6, v_7, v_8, float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
   } else {
-    x_GLF_color = vec4(float(x_5.x_GLF_uniform_int_values[1].el));
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[1].el));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:66: 'all' : no matching overloaded function found 
+ERROR: 0:66: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:66: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.glsl
index f902ac5..3bc822f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,39 +16,40 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
   float f = 0.0f;
   int i = 0;
   int j = 0;
-  int x_36 = x_5.x_GLF_uniform_int_values[1].el;
+  int x_36 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
   if ((x_36 == 1)) {
     float x_40 = f;
-    vec2 v = vec2(x_40, 0.0f);
-    m = mat2(v, vec2(0.0f, x_40));
+    vec2 v_1 = vec2(x_40, 0.0f);
+    m = mat2(v_1, vec2(0.0f, x_40));
   }
-  int x_45 = x_5.x_GLF_uniform_int_values[1].el;
+  int x_45 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
   i = x_45;
   {
     while(true) {
       int x_50 = i;
-      int x_52 = x_5.x_GLF_uniform_int_values[0].el;
+      int x_52 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
       if ((x_50 < x_52)) {
       } else {
         break;
       }
-      int x_56 = x_5.x_GLF_uniform_int_values[1].el;
+      int x_56 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
       j = x_56;
       {
         while(true) {
           int x_61 = j;
-          int x_63 = x_5.x_GLF_uniform_int_values[0].el;
+          int x_63 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
           if ((x_61 < x_63)) {
           } else {
             break;
@@ -53,7 +57,7 @@
           int x_66 = i;
           int x_67 = j;
           int x_68 = i;
-          int x_70 = x_5.x_GLF_uniform_int_values[0].el;
+          int x_70 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
           int x_72 = j;
           m[x_66][x_67] = float(((x_68 * x_70) + x_72));
           {
@@ -71,38 +75,42 @@
     }
   }
   mat2 x_80 = m;
-  int x_82 = x_5.x_GLF_uniform_int_values[1].el;
-  int x_85 = x_5.x_GLF_uniform_int_values[2].el;
-  int x_88 = x_5.x_GLF_uniform_int_values[0].el;
-  int x_91 = x_5.x_GLF_uniform_int_values[3].el;
-  float v_1 = float(x_82);
-  vec2 v_2 = vec2(v_1, float(x_85));
-  float v_3 = float(x_88);
-  mat2 x_95 = mat2(v_2, vec2(v_3, float(x_91)));
-  bool v_4 = all((x_80[0u] == x_95[0u]));
-  if ((v_4 & all((x_80[1u] == x_95[1u])))) {
-    int x_109 = x_5.x_GLF_uniform_int_values[2].el;
-    int x_112 = x_5.x_GLF_uniform_int_values[1].el;
-    int x_115 = x_5.x_GLF_uniform_int_values[1].el;
-    int x_118 = x_5.x_GLF_uniform_int_values[2].el;
-    float v_5 = float(x_109);
-    float v_6 = float(x_112);
-    float v_7 = float(x_115);
-    x_GLF_color = vec4(v_5, v_6, v_7, float(x_118));
+  int x_82 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_85 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_88 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  int x_91 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  float v_2 = float(x_82);
+  vec2 v_3 = vec2(v_2, float(x_85));
+  float v_4 = float(x_88);
+  mat2 x_95 = mat2(v_3, vec2(v_4, float(x_91)));
+  bool v_5 = all((x_80[0u] == x_95[0u]));
+  if ((v_5 & all((x_80[1u] == x_95[1u])))) {
+    int x_109 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_112 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_115 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_118 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float v_6 = float(x_109);
+    float v_7 = float(x_112);
+    float v_8 = float(x_115);
+    x_GLF_color = vec4(v_6, v_7, v_8, float(x_118));
   } else {
-    int x_122 = x_5.x_GLF_uniform_int_values[1].el;
+    int x_122 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
     float x_123 = float(x_122);
     x_GLF_color = vec4(x_123, x_123, x_123, x_123);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:84: 'all' : no matching overloaded function found 
+ERROR: 0:84: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:84: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.spvasm.expected.ir.glsl
index f297654..738a236 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,99 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int one;
+};
+
+struct S {
+  int data;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int func_struct_S_i11_i1_(inout S s, inout int x) {
+  if ((s.data == 1)) {
+    int x_18 = x;
+    int x_19 = s.data;
+    return (x_18 + x_19);
+  } else {
+    int x_21 = x;
+    return x_21;
+  }
+  /* unreachable */
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int a = 0;
+  S arr[1] = S[1](S(0));
+  int i = 0;
+  S param = S(0);
+  int param_1 = 0;
+  S param_2 = S(0);
+  int param_3 = 0;
+  a = 0;
+  arr[0].data = v.tint_symbol_1.one;
+  i = 0;
+  {
+    while(true) {
+      if ((i < (5 + v.tint_symbol_1.one))) {
+      } else {
+        break;
+      }
+      if ((tint_mod_i32(i, 2) != 0)) {
+        param = arr[0];
+        param_1 = i;
+        int x_29 = func_struct_S_i11_i1_(param, param_1);
+        arr[0] = param;
+        a = x_29;
+      } else {
+        param_2 = arr[0];
+        param_3 = 1;
+        int x_30 = func_struct_S_i11_i1_(param_2, param_3);
+        arr[0] = param_2;
+        a = x_30;
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((a == 6)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:36: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:36: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:36: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl.expected.ir.glsl
index f297654..08efa38 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,111 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int one;
+};
+
+struct S {
+  int data;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int func_struct_S_i11_i1_(inout S s, inout int x) {
+  int x_17 = s.data;
+  if ((x_17 == 1)) {
+    int x_18 = x;
+    int x_19 = s.data;
+    return (x_18 + x_19);
+  } else {
+    int x_21 = x;
+    return x_21;
+  }
+  /* unreachable */
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int a = 0;
+  S arr[1] = S[1](S(0));
+  int i = 0;
+  S param = S(0);
+  int param_1 = 0;
+  S param_2 = S(0);
+  int param_3 = 0;
+  a = 0;
+  int x_22 = v.tint_symbol_1.one;
+  arr[0].data = x_22;
+  i = 0;
+  {
+    while(true) {
+      int x_23 = i;
+      int x_24 = v.tint_symbol_1.one;
+      if ((x_23 < (5 + x_24))) {
+      } else {
+        break;
+      }
+      int x_26 = i;
+      if ((tint_mod_i32(x_26, 2) != 0)) {
+        S x_74 = arr[0];
+        param = x_74;
+        int x_28 = i;
+        param_1 = x_28;
+        int x_29 = func_struct_S_i11_i1_(param, param_1);
+        S x_75 = param;
+        arr[0] = x_75;
+        a = x_29;
+      } else {
+        S x_78 = arr[0];
+        param_2 = x_78;
+        param_3 = 1;
+        int x_30 = func_struct_S_i11_i1_(param_2, param_3);
+        S x_79 = param_2;
+        arr[0] = x_79;
+        a = x_30;
+      }
+      {
+        int x_31 = i;
+        i = (x_31 + 1);
+      }
+      continue;
+    }
+  }
+  int x_33 = a;
+  if ((x_33 == 6)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.spvasm.expected.ir.glsl
index 6d893fb..7682626 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct strided_arr {
   int el;
@@ -13,20 +16,21 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_5;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 x_33 = vec4(0.0f);
   int x_36 = 0;
   int x_38 = 0;
   bool x_74 = false;
   bool x_75 = false;
-  int x_29 = x_5.x_GLF_uniform_int_values[0].el;
-  int x_31 = x_5.x_GLF_uniform_int_values[1].el;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+  int x_31 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
   x_33 = vec4(0.0f);
   x_36 = x_29;
   x_38 = x_31;
@@ -36,7 +40,7 @@
       vec4 x_34 = vec4(0.0f);
       int x_62 = 0;
       int x_39 = 0;
-      int x_41 = x_5.x_GLF_uniform_int_values[4].el;
+      int x_41 = v.tint_symbol_1.x_GLF_uniform_int_values[4].el;
       if ((x_38 < x_41)) {
       } else {
         break;
@@ -45,7 +49,7 @@
       switch(0u) {
         default:
         {
-          if ((x_38 > x_5.x_GLF_uniform_int_values[3].el)) {
+          if ((x_38 > v.tint_symbol_1.x_GLF_uniform_int_values[3].el)) {
             x_34 = x_33;
             x_62 = 2;
             break;
@@ -84,11 +88,11 @@
       continue;
     }
   }
-  vec4 v = x_GLF_color;
-  bool x_69 = all((v == vec4(float(x_5.x_GLF_uniform_int_values[2].el))));
+  vec4 v_1 = x_GLF_color;
+  bool x_69 = all((v_1 == vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el))));
   x_75 = x_69;
   if (x_69) {
-    x_74 = (x_36 == x_5.x_GLF_uniform_int_values[5].el);
+    x_74 = (x_36 == v.tint_symbol_1.x_GLF_uniform_int_values[5].el);
     x_75 = x_74;
   }
   if (x_75) {
@@ -99,14 +103,18 @@
     x_GLF_color = vec4(float(x_29));
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:12: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:12: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:90: 'all' : no matching overloaded function found 
+ERROR: 0:90: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:90: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.spvasm.expected.ir.glsl
index f297654..5bd50cd 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,66 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int two;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int i = 0;
+  int r = 0;
+  i = 0;
+  r = 0;
+  {
+    while(true) {
+      if ((r < (v.tint_symbol_1.two * 4))) {
+      } else {
+        break;
+      }
+      int v_1 = i;
+      i = (v_1 + ivec4(1, 2, 3, 4)[tint_div_i32(r, v.tint_symbol_1.two)]);
+      {
+        r = (r + 2);
+      }
+      continue;
+    }
+  }
+  if ((i == 10)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl.expected.ir.glsl
index f297654..5a0d11c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,72 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  int two;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void main_1() {
+  int i = 0;
+  int r = 0;
+  i = 0;
+  r = 0;
+  {
+    while(true) {
+      int x_35 = r;
+      int x_37 = v.tint_symbol_1.two;
+      if ((x_35 < (x_37 * 4))) {
+      } else {
+        break;
+      }
+      int x_41 = r;
+      int x_43 = v.tint_symbol_1.two;
+      int x_46 = i;
+      i = (x_46 + ivec4(1, 2, 3, 4)[tint_div_i32(x_41, x_43)]);
+      {
+        int x_48 = r;
+        r = (x_48 + 2);
+      }
+      continue;
+    }
+  }
+  int x_50 = i;
+  if ((x_50 == 10)) {
+    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+  } else {
+    x_GLF_color = vec4(0.0f);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.ir.glsl
index ca162d0..9dd551a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float two;
@@ -9,33 +12,37 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_8;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   float a = 0.0f;
   float b = 0.0f;
   float x_33 = tint_symbol.x;
   a = dFdx(cos(x_33));
-  b = mix(2.0f, x_8.two, a);
+  b = mix(2.0f, v.tint_symbol_3.two, a);
   if (((b >= 1.89999997615814208984f) & (b <= 2.09999990463256835938f))) {
     x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
   } else {
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:27: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:27: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.ir.glsl
index 2c51327..96d86e9 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float two;
@@ -9,19 +12,20 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_8;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 void main_1() {
   float a = 0.0f;
   float b = 0.0f;
   float x_33 = tint_symbol.x;
   a = dFdx(cos(x_33));
-  float x_37 = x_8.two;
+  float x_37 = v.tint_symbol_3.two;
   float x_38 = a;
   b = mix(2.0f, x_37, x_38);
   float x_40 = b;
@@ -32,14 +36,17 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:31: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.ir.glsl
index 4bc9a8b..3bd980b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.spvasm.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
   m = mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f));
@@ -23,14 +24,18 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:18: 'all' : no matching overloaded function found 
+ERROR: 0:18: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:18: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl.expected.ir.glsl
index e6d659a..6ec1b28 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl.expected.ir.glsl
@@ -1,15 +1,16 @@
 SKIP: FAILED
 
 #version 310 es
-
-struct main_out {
-  vec4 x_GLF_color_1;
-};
 precision highp float;
 precision highp int;
 
 
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   mat2 m = mat2(vec2(0.0f), vec2(0.0f));
   m = mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f));
@@ -27,14 +28,18 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
-ERROR: 2 compilation errors.  No code generated.
+ERROR: 0:22: 'all' : no matching overloaded function found 
+ERROR: 0:22: '=' :  cannot convert from ' const float' to ' temp bool'
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
 
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.glsl
index f297654..256aafe 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,148 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf1 {
+  strided_arr x_GLF_uniform_int_values[4];
+};
+
+struct strided_arr_1 {
+  float el;
+};
+
+struct buf0 {
+  strided_arr_1 x_GLF_uniform_float_values[1];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_2_1_ubo {
+  buf1 tint_symbol_1;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+void main_1() {
+  mat4 m0 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int c = 0;
+  mat4 m1 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int x_40 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  float x_41 = float(x_40);
+  vec4 v_3 = vec4(x_41, 0.0f, 0.0f, 0.0f);
+  vec4 v_4 = vec4(0.0f, x_41, 0.0f, 0.0f);
+  vec4 v_5 = vec4(0.0f, 0.0f, x_41, 0.0f);
+  m0 = mat4(v_3, v_4, v_5, vec4(0.0f, 0.0f, 0.0f, x_41));
+  int x_48 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  c = x_48;
+  {
+    while(true) {
+      int x_53 = c;
+      int x_55 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+      if ((x_53 < x_55)) {
+      } else {
+        break;
+      }
+      mat4 x_58 = m0;
+      m1 = x_58;
+      int x_59 = c;
+      int x_61 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+      int x_64 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+      float x_66 = v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+      m1[tint_mod_i32(x_59, x_61)][x_64] = x_66;
+      int x_68 = c;
+      int x_70 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+      int x_73 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+      float x_75 = v_1.tint_symbol_3.x_GLF_uniform_float_values[0].el;
+      m0[tint_mod_i32(x_68, x_70)][x_73] = x_75;
+      {
+        int x_77 = c;
+        c = (x_77 + 1);
+      }
+      continue;
+    }
+  }
+  mat4 x_79 = m0;
+  int x_81 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_84 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_87 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_90 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_93 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_96 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_99 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_102 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_105 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_108 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_111 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_114 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_117 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_120 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  int x_123 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  int x_126 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  float v_6 = float(x_81);
+  float v_7 = float(x_84);
+  float v_8 = float(x_87);
+  vec4 v_9 = vec4(v_6, v_7, v_8, float(x_90));
+  float v_10 = float(x_93);
+  float v_11 = float(x_96);
+  float v_12 = float(x_99);
+  vec4 v_13 = vec4(v_10, v_11, v_12, float(x_102));
+  float v_14 = float(x_105);
+  float v_15 = float(x_108);
+  float v_16 = float(x_111);
+  vec4 v_17 = vec4(v_14, v_15, v_16, float(x_114));
+  float v_18 = float(x_117);
+  float v_19 = float(x_120);
+  float v_20 = float(x_123);
+  mat4 x_132 = mat4(v_9, v_13, v_17, vec4(v_18, v_19, v_20, float(x_126)));
+  bool v_21 = all((x_79[0u] == x_132[0u]));
+  bool v_22 = (v_21 & all((x_79[1u] == x_132[1u])));
+  bool v_23 = (v_22 & all((x_79[2u] == x_132[2u])));
+  if ((v_23 & all((x_79[3u] == x_132[3u])))) {
+    int x_156 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_159 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_162 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    int x_165 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float v_24 = float(x_156);
+    float v_25 = float(x_159);
+    float v_26 = float(x_162);
+    x_GLF_color = vec4(v_24, v_25, v_26, float(x_165));
+  } else {
+    int x_169 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+    float x_170 = float(x_169);
+    x_GLF_color = vec4(x_170, x_170, x_170, x_170);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.spvasm.expected.ir.glsl
index f297654..938e78b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,80 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[4];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  a = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  i = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  {
+    while(true) {
+      if ((i < v.tint_symbol_1.x_GLF_uniform_int_values[0].el)) {
+      } else {
+        break;
+      }
+      int v_2 = tint_mod_i32(1, i);
+      if ((v_2 == v.tint_symbol_1.x_GLF_uniform_int_values[2].el)) {
+        {
+          i = (i + 1);
+        }
+        continue;
+      }
+      a = (a + 1);
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  if ((a == v.tint_symbol_1.x_GLF_uniform_int_values[1].el)) {
+    float v_3 = float(v.tint_symbol_1.x_GLF_uniform_int_values[3].el);
+    float v_4 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    float v_5 = float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el);
+    x_GLF_color = vec4(v_3, v_4, v_5, float(v.tint_symbol_1.x_GLF_uniform_int_values[3].el));
+  } else {
+    x_GLF_color = vec4(float(v.tint_symbol_1.x_GLF_uniform_int_values[2].el));
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl.expected.ir.glsl
index f297654..9fb6294 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,96 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct strided_arr {
+  int el;
+};
+
+struct buf0 {
+  strided_arr x_GLF_uniform_int_values[4];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  int a = 0;
+  int i = 0;
+  int x_27 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+  a = x_27;
+  int x_29 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+  i = x_29;
+  {
+    while(true) {
+      int x_34 = i;
+      int x_36 = v.tint_symbol_1.x_GLF_uniform_int_values[0].el;
+      if ((x_34 < x_36)) {
+      } else {
+        break;
+      }
+      int x_39 = i;
+      int x_42 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+      if ((tint_mod_i32(1, x_39) == x_42)) {
+        {
+          int x_48 = i;
+          i = (x_48 + 1);
+        }
+        continue;
+      }
+      int x_46 = a;
+      a = (x_46 + 1);
+      {
+        int x_48 = i;
+        i = (x_48 + 1);
+      }
+      continue;
+    }
+  }
+  int x_50 = a;
+  int x_52 = v.tint_symbol_1.x_GLF_uniform_int_values[1].el;
+  if ((x_50 == x_52)) {
+    int x_58 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+    int x_61 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_64 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    int x_67 = v.tint_symbol_1.x_GLF_uniform_int_values[3].el;
+    float v_2 = float(x_58);
+    float v_3 = float(x_61);
+    float v_4 = float(x_64);
+    x_GLF_color = vec4(v_2, v_3, v_4, float(x_67));
+  } else {
+    int x_71 = v.tint_symbol_1.x_GLF_uniform_int_values[2].el;
+    float x_72 = float(x_71);
+    x_GLF_color = vec4(x_72, x_72, x_72, x_72);
+  }
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.spvasm.expected.ir.glsl
index c4cd119..a98980c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float quarter;
@@ -9,19 +12,20 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_7;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 N = vec4(0.0f);
   vec4 I = vec4(0.0f);
   vec4 Nref = vec4(0.0f);
   vec4 v = vec4(0.0f);
   N = vec4(1.0f, 2.0f, 3.0f, 4.0f);
-  I = vec4(4.0f, 87.589996337890625f, x_7.quarter, 92.51000213623046875f);
+  I = vec4(4.0f, 87.589996337890625f, v_1.tint_symbol_1.quarter, 92.51000213623046875f);
   Nref = vec4(17.049999237060546875f, -6.09999990463256835938f, 4329.37060546875f, 2.70000004768371582031f);
   v = faceforward(N, I, Nref);
   if (all((v == vec4(-1.0f, -2.0f, -3.0f, -4.0f)))) {
@@ -30,13 +34,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:29: 'all' : no matching overloaded function found 
+ERROR: 0:29: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl.expected.ir.glsl
index 038b1ad..c76ea92 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   float quarter;
@@ -9,19 +12,20 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_7;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v_1;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec4 N = vec4(0.0f);
   vec4 I = vec4(0.0f);
   vec4 Nref = vec4(0.0f);
   vec4 v = vec4(0.0f);
   N = vec4(1.0f, 2.0f, 3.0f, 4.0f);
-  float x_44 = x_7.quarter;
+  float x_44 = v_1.tint_symbol_1.quarter;
   I = vec4(4.0f, 87.589996337890625f, x_44, 92.51000213623046875f);
   Nref = vec4(17.049999237060546875f, -6.09999990463256835938f, 4329.37060546875f, 2.70000004768371582031f);
   vec4 x_46 = N;
@@ -35,13 +39,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:34: 'all' : no matching overloaded function found 
+ERROR: 0:34: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.spvasm.expected.ir.glsl
index afb652a..b710ab4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   int zero;
@@ -9,17 +12,18 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec2 a = vec2(0.0f);
   vec2 b = vec2(0.0f);
   a = vec2(1.0f);
-  if ((x_6.zero == 1)) {
+  if ((v.tint_symbol_1.zero == 1)) {
     a[0u] = (a.x + 1.0f);
   }
   b = (vec2(a.y) + vec2(2.0f, 3.0f));
@@ -29,13 +33,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:8: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:8: '' : compilation terminated 
+ERROR: 0:28: 'all' : no matching overloaded function found 
+ERROR: 0:28: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl.expected.ir.glsl
index a07e398..2ed6c62 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   int zero;
@@ -9,17 +12,18 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   vec2 a = vec2(0.0f);
   vec2 b = vec2(0.0f);
   a = vec2(1.0f);
-  int x_38 = x_6.zero;
+  int x_38 = v.tint_symbol_1.zero;
   if ((x_38 == 1)) {
     float x_43 = a.x;
     a[0u] = (x_43 + 1.0f);
@@ -33,13 +37,16 @@
     x_GLF_color = vec4(0.0f);
   }
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:8: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:8: '' : compilation terminated 
+ERROR: 0:32: 'all' : no matching overloaded function found 
+ERROR: 0:32: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.spvasm.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.ir.glsl
index 591ee7e..b4cbea8 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 injectionSwitch;
@@ -9,12 +12,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int k = 0;
   int GLF_dead0j = 0;
@@ -30,7 +34,7 @@
       } else {
         break;
       }
-      if ((0.0f > x_6.injectionSwitch.y)) {
+      if ((0.0f > v.tint_symbol_1.injectionSwitch.y)) {
         GLF_dead0j = 1;
         {
           while(true) {
@@ -77,13 +81,16 @@
   }
   x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:48: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:48: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl.expected.ir.glsl
index cc065cf..858b049 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 injectionSwitch;
@@ -9,12 +12,13 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_6;
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
 void main_1() {
   int k = 0;
   int GLF_dead0j = 0;
@@ -31,7 +35,7 @@
       } else {
         break;
       }
-      float x_62 = x_6.injectionSwitch.y;
+      float x_62 = v.tint_symbol_1.injectionSwitch.y;
       if ((0.0f > x_62)) {
         GLF_dead0j = 1;
         {
@@ -88,13 +92,16 @@
   }
   x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
 }
-main_out main() {
+main_out tint_symbol_inner() {
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:53: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:53: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.ir.glsl
index f297654..0d81303 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.spvasm.expected.ir.glsl
@@ -1,11 +1,134 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i = 0;
+  int GLF_dead5cols = 0;
+  int GLF_dead5rows = 0;
+  int GLF_dead5c = 0;
+  int GLF_dead5r = 0;
+  int msb10 = 0;
+  float donor_replacementGLF_dead5sums[9] = float[9](0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
+  i = 0;
+  {
+    while(true) {
+      int v_1 = i;
+      if ((v_1 >= tint_f32_to_i32(v.tint_symbol_1.injectionSwitch.x))) {
+        break;
+      }
+      if ((0.0f > v.tint_symbol_1.injectionSwitch.y)) {
+        GLF_dead5cols = 2;
+        {
+          while(true) {
+            if ((GLF_dead5cols <= 4)) {
+            } else {
+              break;
+            }
+            GLF_dead5rows = 2;
+            {
+              while(true) {
+                if ((GLF_dead5rows <= 4)) {
+                } else {
+                  break;
+                }
+                GLF_dead5c = 0;
+                {
+                  while(true) {
+                    if ((GLF_dead5c < GLF_dead5cols)) {
+                    } else {
+                      break;
+                    }
+                    GLF_dead5r = 0;
+                    {
+                      while(true) {
+                        if ((GLF_dead5r < GLF_dead5rows)) {
+                        } else {
+                          break;
+                        }
+                        int x_87 = msb10;
+                        switch(x_87) {
+                          case 1:
+                          case 8:
+                          {
+                            int x_96 = ((((msb10 >= 0) & (msb10 < 9))) ? (msb10) : (0));
+                            donor_replacementGLF_dead5sums[x_96] = (donor_replacementGLF_dead5sums[x_96] + 1.0f);
+                            break;
+                          }
+                          default:
+                          {
+                            break;
+                          }
+                        }
+                        {
+                          GLF_dead5r = (GLF_dead5r + 1);
+                        }
+                        continue;
+                      }
+                    }
+                    {
+                      GLF_dead5c = (GLF_dead5c + 1);
+                    }
+                    continue;
+                  }
+                }
+                msb10 = (msb10 + 1);
+                {
+                  GLF_dead5rows = (GLF_dead5rows + 1);
+                }
+                continue;
+              }
+            }
+            {
+              GLF_dead5cols = (GLF_dead5cols + 1);
+            }
+            continue;
+          }
+        }
+      }
+      i = (i + 1);
+      {
+        int x_113 = i;
+        if (!((x_113 < 200))) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:72: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:72: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl.expected.ir.glsl
index f297654..3d799db 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl.expected.ir.glsl
@@ -1,11 +1,152 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_2_1_ubo {
+  buf0 tint_symbol_1;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i = 0;
+  int GLF_dead5cols = 0;
+  int GLF_dead5rows = 0;
+  int GLF_dead5c = 0;
+  int GLF_dead5r = 0;
+  int msb10 = 0;
+  float donor_replacementGLF_dead5sums[9] = float[9](0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
+  i = 0;
+  {
+    while(true) {
+      int x_45 = i;
+      float x_47 = v.tint_symbol_1.injectionSwitch.x;
+      if ((x_45 >= tint_f32_to_i32(x_47))) {
+        break;
+      }
+      float x_53 = v.tint_symbol_1.injectionSwitch.y;
+      if ((0.0f > x_53)) {
+        GLF_dead5cols = 2;
+        {
+          while(true) {
+            int x_61 = GLF_dead5cols;
+            if ((x_61 <= 4)) {
+            } else {
+              break;
+            }
+            GLF_dead5rows = 2;
+            {
+              while(true) {
+                int x_68 = GLF_dead5rows;
+                if ((x_68 <= 4)) {
+                } else {
+                  break;
+                }
+                GLF_dead5c = 0;
+                {
+                  while(true) {
+                    int x_75 = GLF_dead5c;
+                    int x_76 = GLF_dead5cols;
+                    if ((x_75 < x_76)) {
+                    } else {
+                      break;
+                    }
+                    GLF_dead5r = 0;
+                    {
+                      while(true) {
+                        int x_83 = GLF_dead5r;
+                        int x_84 = GLF_dead5rows;
+                        if ((x_83 < x_84)) {
+                        } else {
+                          break;
+                        }
+                        int x_87 = msb10;
+                        switch(x_87) {
+                          case 1:
+                          case 8:
+                          {
+                            int x_90 = msb10;
+                            int x_92 = msb10;
+                            int x_95 = msb10;
+                            int x_96 = ((((x_90 >= 0) & (x_92 < 9))) ? (x_95) : (0));
+                            float x_98 = donor_replacementGLF_dead5sums[x_96];
+                            donor_replacementGLF_dead5sums[x_96] = (x_98 + 1.0f);
+                            break;
+                          }
+                          default:
+                          {
+                            break;
+                          }
+                        }
+                        {
+                          int x_101 = GLF_dead5r;
+                          GLF_dead5r = (x_101 + 1);
+                        }
+                        continue;
+                      }
+                    }
+                    {
+                      int x_103 = GLF_dead5c;
+                      GLF_dead5c = (x_103 + 1);
+                    }
+                    continue;
+                  }
+                }
+                int x_105 = msb10;
+                msb10 = (x_105 + 1);
+                {
+                  int x_107 = GLF_dead5rows;
+                  GLF_dead5rows = (x_107 + 1);
+                }
+                continue;
+              }
+            }
+            {
+              int x_109 = GLF_dead5cols;
+              GLF_dead5cols = (x_109 + 1);
+            }
+            continue;
+          }
+        }
+      }
+      int x_111 = i;
+      i = (x_111 + 1);
+      {
+        int x_113 = i;
+        if (!((x_113 < 200))) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_inner() {
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_loc0_Output = tint_symbol_inner().x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:83: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:83: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.spvasm.expected.ir.glsl
index f297654..089f6ed 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,292 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  pos = (tint_symbol.xy / v_1.tint_symbol_3.resolution);
+  int v_3 = tint_f32_to_i32((pos.x * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((pos.y * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      if ((i < 256)) {
+      } else {
+        break;
+      }
+      int x_78 = i;
+      map[x_78] = 0;
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_102 = false;
+      bool x_103 = false;
+      bool x_122 = false;
+      bool x_123 = false;
+      bool x_142 = false;
+      bool x_143 = false;
+      bool x_162 = false;
+      bool x_163 = false;
+      v = (v + 1);
+      directions = 0;
+      bool x_90 = (p.x > 0);
+      x_103 = x_90;
+      if (x_90) {
+        x_102 = (map[((p.x - 2) + (p.y * 16))] == 0);
+        x_103 = x_102;
+      }
+      if (x_103) {
+        directions = (directions + 1);
+      }
+      bool x_110 = (p.y > 0);
+      x_123 = x_110;
+      if (x_110) {
+        x_122 = (map[(p.x + ((p.y - 2) * 16))] == 0);
+        x_123 = x_122;
+      }
+      if (x_123) {
+        directions = (directions + 1);
+      }
+      bool x_130 = (p.x < 14);
+      x_143 = x_130;
+      if (x_130) {
+        x_142 = (map[((p.x + 2) + (p.y * 16))] == 0);
+        x_143 = x_142;
+      }
+      if (x_143) {
+        directions = (directions + 1);
+      }
+      bool x_150 = (p.y < 14);
+      x_163 = x_150;
+      if (x_150) {
+        x_162 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+        x_163 = x_162;
+      }
+      if (x_163) {
+        directions = (directions + 1);
+      }
+      bool x_227 = false;
+      bool x_228 = false;
+      bool x_240 = false;
+      bool x_241 = false;
+      bool x_279 = false;
+      bool x_280 = false;
+      bool x_292 = false;
+      bool x_293 = false;
+      bool x_331 = false;
+      bool x_332 = false;
+      bool x_344 = false;
+      bool x_345 = false;
+      bool x_383 = false;
+      bool x_384 = false;
+      bool x_396 = false;
+      bool x_397 = false;
+      if ((directions == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            if ((i < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            {
+              while(true) {
+                if ((j < 8)) {
+                } else {
+                  break;
+                }
+                if ((map[((j * 2) + ((i * 2) * 16))] == 0)) {
+                  p[0u] = (j * 2);
+                  p[1u] = (i * 2);
+                  canwalk = true;
+                }
+                {
+                  j = (j + 1);
+                }
+                continue;
+              }
+            }
+            {
+              i = (i + 1);
+            }
+            continue;
+          }
+        }
+        int x_209 = p.x;
+        int x_211 = p.y;
+        map[(x_209 + (x_211 * 16))] = 1;
+      } else {
+        d = tint_mod_i32(v, directions);
+        v = (v + directions);
+        bool x_222 = (d >= 0);
+        x_228 = x_222;
+        if (x_222) {
+          x_227 = (p.x > 0);
+          x_228 = x_227;
+        }
+        x_241 = x_228;
+        if (x_228) {
+          x_240 = (map[((p.x - 2) + (p.y * 16))] == 0);
+          x_241 = x_240;
+        }
+        if (x_241) {
+          d = (d - 1);
+          int x_247 = p.x;
+          int x_249 = p.y;
+          map[(x_247 + (x_249 * 16))] = 1;
+          int x_254 = p.x;
+          int x_257 = p.y;
+          map[((x_254 - 1) + (x_257 * 16))] = 1;
+          int x_262 = p.x;
+          int x_265 = p.y;
+          map[((x_262 - 2) + (x_265 * 16))] = 1;
+          p[0u] = (p.x - 2);
+        }
+        bool x_274 = (d >= 0);
+        x_280 = x_274;
+        if (x_274) {
+          x_279 = (p.y > 0);
+          x_280 = x_279;
+        }
+        x_293 = x_280;
+        if (x_280) {
+          x_292 = (map[(p.x + ((p.y - 2) * 16))] == 0);
+          x_293 = x_292;
+        }
+        if (x_293) {
+          d = (d - 1);
+          int x_299 = p.x;
+          int x_301 = p.y;
+          map[(x_299 + (x_301 * 16))] = 1;
+          int x_306 = p.x;
+          int x_308 = p.y;
+          map[(x_306 + ((x_308 - 1) * 16))] = 1;
+          int x_314 = p.x;
+          int x_316 = p.y;
+          map[(x_314 + ((x_316 - 2) * 16))] = 1;
+          p[1u] = (p.y - 2);
+        }
+        bool x_326 = (d >= 0);
+        x_332 = x_326;
+        if (x_326) {
+          x_331 = (p.x < 14);
+          x_332 = x_331;
+        }
+        x_345 = x_332;
+        if (x_332) {
+          x_344 = (map[((p.x + 2) + (p.y * 16))] == 0);
+          x_345 = x_344;
+        }
+        if (x_345) {
+          d = (d - 1);
+          int x_351 = p.x;
+          int x_353 = p.y;
+          map[(x_351 + (x_353 * 16))] = 1;
+          int x_358 = p.x;
+          int x_361 = p.y;
+          map[((x_358 + 1) + (x_361 * 16))] = 1;
+          int x_366 = p.x;
+          int x_369 = p.y;
+          map[((x_366 + 2) + (x_369 * 16))] = 1;
+          p[0u] = (p.x + 2);
+        }
+        bool x_378 = (d >= 0);
+        x_384 = x_378;
+        if (x_378) {
+          x_383 = (p.y < 14);
+          x_384 = x_383;
+        }
+        x_397 = x_384;
+        if (x_384) {
+          x_396 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+          x_397 = x_396;
+        }
+        if (x_397) {
+          d = (d - 1);
+          int x_403 = p.x;
+          int x_405 = p.y;
+          map[(x_403 + (x_405 * 16))] = 1;
+          int x_410 = p.x;
+          int x_412 = p.y;
+          map[(x_410 + ((x_412 + 1) * 16))] = 1;
+          int x_418 = p.x;
+          int x_420 = p.y;
+          map[(x_418 + ((x_420 + 2) * 16))] = 1;
+          p[1u] = (p.y + 2);
+        }
+      }
+      if ((map[((ipos.y * 16) + ipos.x)] == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_440 = canwalk;
+        if (!(x_440)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl.expected.ir.glsl
index f297654..1ad8666 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,376 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  vec4 x_57 = tint_symbol;
+  vec2 x_60 = v_1.tint_symbol_3.resolution;
+  pos = (vec2(x_57[0u], x_57[1u]) / x_60);
+  float x_63 = pos.x;
+  float x_67 = pos.y;
+  int v_3 = tint_f32_to_i32((x_63 * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((x_67 * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      int x_75 = i;
+      if ((x_75 < 256)) {
+      } else {
+        break;
+      }
+      int x_78 = i;
+      map[x_78] = 0;
+      {
+        int x_80 = i;
+        i = (x_80 + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_102 = false;
+      bool x_122 = false;
+      bool x_142 = false;
+      bool x_162 = false;
+      bool x_103_phi = false;
+      bool x_123_phi = false;
+      bool x_143_phi = false;
+      bool x_163_phi = false;
+      int x_86 = v;
+      v = (x_86 + 1);
+      directions = 0;
+      int x_89 = p.x;
+      bool x_90 = (x_89 > 0);
+      x_103_phi = x_90;
+      if (x_90) {
+        int x_94 = p.x;
+        int x_97 = p.y;
+        int x_101 = map[((x_94 - 2) + (x_97 * 16))];
+        x_102 = (x_101 == 0);
+        x_103_phi = x_102;
+      }
+      bool x_103 = x_103_phi;
+      if (x_103) {
+        int x_106 = directions;
+        directions = (x_106 + 1);
+      }
+      int x_109 = p.y;
+      bool x_110 = (x_109 > 0);
+      x_123_phi = x_110;
+      if (x_110) {
+        int x_114 = p.x;
+        int x_116 = p.y;
+        int x_121 = map[(x_114 + ((x_116 - 2) * 16))];
+        x_122 = (x_121 == 0);
+        x_123_phi = x_122;
+      }
+      bool x_123 = x_123_phi;
+      if (x_123) {
+        int x_126 = directions;
+        directions = (x_126 + 1);
+      }
+      int x_129 = p.x;
+      bool x_130 = (x_129 < 14);
+      x_143_phi = x_130;
+      if (x_130) {
+        int x_134 = p.x;
+        int x_137 = p.y;
+        int x_141 = map[((x_134 + 2) + (x_137 * 16))];
+        x_142 = (x_141 == 0);
+        x_143_phi = x_142;
+      }
+      bool x_143 = x_143_phi;
+      if (x_143) {
+        int x_146 = directions;
+        directions = (x_146 + 1);
+      }
+      int x_149 = p.y;
+      bool x_150 = (x_149 < 14);
+      x_163_phi = x_150;
+      if (x_150) {
+        int x_154 = p.x;
+        int x_156 = p.y;
+        int x_161 = map[(x_154 + ((x_156 + 2) * 16))];
+        x_162 = (x_161 == 0);
+        x_163_phi = x_162;
+      }
+      bool x_163 = x_163_phi;
+      if (x_163) {
+        int x_166 = directions;
+        directions = (x_166 + 1);
+      }
+      bool x_227 = false;
+      bool x_240 = false;
+      bool x_279 = false;
+      bool x_292 = false;
+      bool x_331 = false;
+      bool x_344 = false;
+      bool x_383 = false;
+      bool x_396 = false;
+      bool x_228_phi = false;
+      bool x_241_phi = false;
+      bool x_280_phi = false;
+      bool x_293_phi = false;
+      bool x_332_phi = false;
+      bool x_345_phi = false;
+      bool x_384_phi = false;
+      bool x_397_phi = false;
+      int x_168 = directions;
+      if ((x_168 == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            int x_177 = i;
+            if ((x_177 < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            {
+              while(true) {
+                int x_184 = j;
+                if ((x_184 < 8)) {
+                } else {
+                  break;
+                }
+                int x_187 = j;
+                int x_189 = i;
+                int x_194 = map[((x_187 * 2) + ((x_189 * 2) * 16))];
+                if ((x_194 == 0)) {
+                  int x_198 = j;
+                  p[0u] = (x_198 * 2);
+                  int x_201 = i;
+                  p[1u] = (x_201 * 2);
+                  canwalk = true;
+                }
+                {
+                  int x_204 = j;
+                  j = (x_204 + 1);
+                }
+                continue;
+              }
+            }
+            {
+              int x_206 = i;
+              i = (x_206 + 1);
+            }
+            continue;
+          }
+        }
+        int x_209 = p.x;
+        int x_211 = p.y;
+        map[(x_209 + (x_211 * 16))] = 1;
+      } else {
+        int x_215 = v;
+        int x_216 = directions;
+        d = tint_mod_i32(x_215, x_216);
+        int x_218 = directions;
+        int x_219 = v;
+        v = (x_219 + x_218);
+        int x_221 = d;
+        bool x_222 = (x_221 >= 0);
+        x_228_phi = x_222;
+        if (x_222) {
+          int x_226 = p.x;
+          x_227 = (x_226 > 0);
+          x_228_phi = x_227;
+        }
+        bool x_228 = x_228_phi;
+        x_241_phi = x_228;
+        if (x_228) {
+          int x_232 = p.x;
+          int x_235 = p.y;
+          int x_239 = map[((x_232 - 2) + (x_235 * 16))];
+          x_240 = (x_239 == 0);
+          x_241_phi = x_240;
+        }
+        bool x_241 = x_241_phi;
+        if (x_241) {
+          int x_244 = d;
+          d = (x_244 - 1);
+          int x_247 = p.x;
+          int x_249 = p.y;
+          map[(x_247 + (x_249 * 16))] = 1;
+          int x_254 = p.x;
+          int x_257 = p.y;
+          map[((x_254 - 1) + (x_257 * 16))] = 1;
+          int x_262 = p.x;
+          int x_265 = p.y;
+          map[((x_262 - 2) + (x_265 * 16))] = 1;
+          int x_270 = p.x;
+          p[0u] = (x_270 - 2);
+        }
+        int x_273 = d;
+        bool x_274 = (x_273 >= 0);
+        x_280_phi = x_274;
+        if (x_274) {
+          int x_278 = p.y;
+          x_279 = (x_278 > 0);
+          x_280_phi = x_279;
+        }
+        bool x_280 = x_280_phi;
+        x_293_phi = x_280;
+        if (x_280) {
+          int x_284 = p.x;
+          int x_286 = p.y;
+          int x_291 = map[(x_284 + ((x_286 - 2) * 16))];
+          x_292 = (x_291 == 0);
+          x_293_phi = x_292;
+        }
+        bool x_293 = x_293_phi;
+        if (x_293) {
+          int x_296 = d;
+          d = (x_296 - 1);
+          int x_299 = p.x;
+          int x_301 = p.y;
+          map[(x_299 + (x_301 * 16))] = 1;
+          int x_306 = p.x;
+          int x_308 = p.y;
+          map[(x_306 + ((x_308 - 1) * 16))] = 1;
+          int x_314 = p.x;
+          int x_316 = p.y;
+          map[(x_314 + ((x_316 - 2) * 16))] = 1;
+          int x_322 = p.y;
+          p[1u] = (x_322 - 2);
+        }
+        int x_325 = d;
+        bool x_326 = (x_325 >= 0);
+        x_332_phi = x_326;
+        if (x_326) {
+          int x_330 = p.x;
+          x_331 = (x_330 < 14);
+          x_332_phi = x_331;
+        }
+        bool x_332 = x_332_phi;
+        x_345_phi = x_332;
+        if (x_332) {
+          int x_336 = p.x;
+          int x_339 = p.y;
+          int x_343 = map[((x_336 + 2) + (x_339 * 16))];
+          x_344 = (x_343 == 0);
+          x_345_phi = x_344;
+        }
+        bool x_345 = x_345_phi;
+        if (x_345) {
+          int x_348 = d;
+          d = (x_348 - 1);
+          int x_351 = p.x;
+          int x_353 = p.y;
+          map[(x_351 + (x_353 * 16))] = 1;
+          int x_358 = p.x;
+          int x_361 = p.y;
+          map[((x_358 + 1) + (x_361 * 16))] = 1;
+          int x_366 = p.x;
+          int x_369 = p.y;
+          map[((x_366 + 2) + (x_369 * 16))] = 1;
+          int x_374 = p.x;
+          p[0u] = (x_374 + 2);
+        }
+        int x_377 = d;
+        bool x_378 = (x_377 >= 0);
+        x_384_phi = x_378;
+        if (x_378) {
+          int x_382 = p.y;
+          x_383 = (x_382 < 14);
+          x_384_phi = x_383;
+        }
+        bool x_384 = x_384_phi;
+        x_397_phi = x_384;
+        if (x_384) {
+          int x_388 = p.x;
+          int x_390 = p.y;
+          int x_395 = map[(x_388 + ((x_390 + 2) * 16))];
+          x_396 = (x_395 == 0);
+          x_397_phi = x_396;
+        }
+        bool x_397 = x_397_phi;
+        if (x_397) {
+          int x_400 = d;
+          d = (x_400 - 1);
+          int x_403 = p.x;
+          int x_405 = p.y;
+          map[(x_403 + (x_405 * 16))] = 1;
+          int x_410 = p.x;
+          int x_412 = p.y;
+          map[(x_410 + ((x_412 + 1) * 16))] = 1;
+          int x_418 = p.x;
+          int x_420 = p.y;
+          map[(x_418 + ((x_420 + 2) * 16))] = 1;
+          int x_426 = p.y;
+          p[1u] = (x_426 + 2);
+        }
+      }
+      int x_430 = ipos.y;
+      int x_433 = ipos.x;
+      int x_436 = map[((x_430 * 16) + x_433)];
+      if ((x_436 == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_440 = canwalk;
+        if (!(x_440)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.spvasm.expected.ir.glsl
index f297654..b453a6f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.spvasm.expected.ir.glsl
@@ -1,11 +1,201 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_51 = 0.0f;
+  float x_55 = 0.0f;
+  int x_58 = 0;
+  float x_56 = 0.0f;
+  float x_81 = 0.0f;
+  float x_82 = 0.0f;
+  bool x_83 = false;
+  float x_85 = 0.0f;
+  float x_118 = 0.0f;
+  float x_119 = 0.0f;
+  float x_122 = 0.0f;
+  int x_129 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_49 = round((v.tint_symbol_3.resolution.x * 0.125f));
+  x_51 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_55 = -0.5f;
+      x_58 = 1;
+      {
+        while(true) {
+          float x_68 = 0.0f;
+          float x_76 = 0.0f;
+          int x_59 = 0;
+          x_81 = 0.0f;
+          x_82 = x_55;
+          x_83 = false;
+          if ((x_58 < 800)) {
+          } else {
+            break;
+          }
+          float x_75 = 0.0f;
+          if ((tint_mod_i32(x_58, 32) == 0)) {
+            x_68 = (x_55 + 0.40000000596046447754f);
+            x_56 = x_68;
+          } else {
+            x_76 = x_55;
+            float v_2 = float(x_58);
+            float v_3 = round(x_49);
+            float v_4 = float(x_58);
+            if (((v_2 - (v_3 * floor((v_4 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_75 = (x_55 + 100.0f);
+              x_76 = x_75;
+            }
+            x_56 = x_76;
+          }
+          float v_5 = float(x_58);
+          if ((v_5 >= x_51)) {
+            x_81 = x_56;
+            x_82 = x_56;
+            x_83 = true;
+            break;
+          }
+          {
+            x_59 = (x_58 + 1);
+            x_55 = x_56;
+            x_58 = x_59;
+          }
+          continue;
+        }
+      }
+      x_85 = x_81;
+      if (x_83) {
+        break;
+      }
+      x_85 = x_82;
+      break;
+    }
+  }
+  float x_88 = 0.0f;
+  float x_92 = 0.0f;
+  int x_95 = 0;
+  float x_93 = 0.0f;
+  bool x_120 = false;
+  c[0u] = x_85;
+  x_88 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      x_92 = -0.5f;
+      x_95 = 1;
+      {
+        while(true) {
+          float x_105 = 0.0f;
+          float x_113 = 0.0f;
+          int x_96 = 0;
+          x_118 = 0.0f;
+          x_119 = x_92;
+          x_120 = false;
+          if ((x_95 < 800)) {
+          } else {
+            break;
+          }
+          float x_112 = 0.0f;
+          if ((tint_mod_i32(x_95, 32) == 0)) {
+            x_105 = (x_92 + 0.40000000596046447754f);
+            x_93 = x_105;
+          } else {
+            x_113 = x_92;
+            float v_6 = float(x_95);
+            float v_7 = round(x_49);
+            float v_8 = float(x_95);
+            if (((v_6 - (v_7 * floor((v_8 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_112 = (x_92 + 100.0f);
+              x_113 = x_112;
+            }
+            x_93 = x_113;
+          }
+          float v_9 = float(x_95);
+          if ((v_9 >= x_88)) {
+            x_118 = x_93;
+            x_119 = x_93;
+            x_120 = true;
+            break;
+          }
+          {
+            x_96 = (x_95 + 1);
+            x_92 = x_93;
+            x_95 = x_96;
+          }
+          continue;
+        }
+      }
+      x_122 = x_118;
+      if (x_120) {
+        break;
+      }
+      x_122 = x_119;
+      break;
+    }
+  }
+  c[1u] = x_122;
+  c[2u] = (c.x + c.y);
+  x_129 = 0;
+  {
+    while(true) {
+      int x_130 = 0;
+      if ((x_129 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[x_129] >= 1.0f)) {
+        c[x_129] = (c[x_129] * c[x_129]);
+      }
+      {
+        x_130 = (x_129 + 1);
+        x_129 = x_130;
+      }
+      continue;
+    }
+  }
+  vec3 x_145 = normalize(abs(c));
+  x_GLF_color = vec4(x_145[0u], x_145[1u], x_145[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl.expected.ir.glsl
index f297654..a22176f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl.expected.ir.glsl
@@ -1,11 +1,235 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_51 = 0.0f;
+  float x_55 = 0.0f;
+  float x_56 = 0.0f;
+  float x_81 = 0.0f;
+  float x_82 = 0.0f;
+  float x_118 = 0.0f;
+  float x_119 = 0.0f;
+  float x_55_phi = 0.0f;
+  int x_58_phi = 0;
+  float x_81_phi = 0.0f;
+  float x_82_phi = 0.0f;
+  bool x_83_phi = false;
+  float x_85_phi = 0.0f;
+  float x_122_phi = 0.0f;
+  int x_129_phi = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_47 = v.tint_symbol_3.resolution.x;
+  float x_49 = round((x_47 * 0.125f));
+  x_51 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_55_phi = -0.5f;
+      x_58_phi = 1;
+      {
+        while(true) {
+          float x_68 = 0.0f;
+          float x_76 = 0.0f;
+          int x_59 = 0;
+          float x_56_phi = 0.0f;
+          x_55 = x_55_phi;
+          int x_58 = x_58_phi;
+          x_81_phi = 0.0f;
+          x_82_phi = x_55;
+          x_83_phi = false;
+          if ((x_58 < 800)) {
+          } else {
+            break;
+          }
+          float x_75 = 0.0f;
+          float x_76_phi = 0.0f;
+          if ((tint_mod_i32(x_58, 32) == 0)) {
+            x_68 = (x_55 + 0.40000000596046447754f);
+            x_56_phi = x_68;
+          } else {
+            x_76_phi = x_55;
+            float v_2 = float(x_58);
+            float v_3 = round(x_49);
+            float v_4 = float(x_58);
+            if (((v_2 - (v_3 * floor((v_4 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_75 = (x_55 + 100.0f);
+              x_76_phi = x_75;
+            }
+            x_76 = x_76_phi;
+            x_56_phi = x_76;
+          }
+          x_56 = x_56_phi;
+          float v_5 = float(x_58);
+          if ((v_5 >= x_51)) {
+            x_81_phi = x_56;
+            x_82_phi = x_56;
+            x_83_phi = true;
+            break;
+          }
+          {
+            x_59 = (x_58 + 1);
+            x_55_phi = x_56;
+            x_58_phi = x_59;
+          }
+          continue;
+        }
+      }
+      x_81 = x_81_phi;
+      x_82 = x_82_phi;
+      bool x_83 = x_83_phi;
+      x_85_phi = x_81;
+      if (x_83) {
+        break;
+      }
+      x_85_phi = x_82;
+      break;
+    }
+  }
+  float x_88 = 0.0f;
+  float x_92 = 0.0f;
+  float x_93 = 0.0f;
+  float x_92_phi = 0.0f;
+  int x_95_phi = 0;
+  float x_118_phi = 0.0f;
+  float x_119_phi = 0.0f;
+  bool x_120_phi = false;
+  float x_85 = x_85_phi;
+  c[0u] = x_85;
+  x_88 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      x_92_phi = -0.5f;
+      x_95_phi = 1;
+      {
+        while(true) {
+          float x_105 = 0.0f;
+          float x_113 = 0.0f;
+          int x_96 = 0;
+          float x_93_phi = 0.0f;
+          x_92 = x_92_phi;
+          int x_95 = x_95_phi;
+          x_118_phi = 0.0f;
+          x_119_phi = x_92;
+          x_120_phi = false;
+          if ((x_95 < 800)) {
+          } else {
+            break;
+          }
+          float x_112 = 0.0f;
+          float x_113_phi = 0.0f;
+          if ((tint_mod_i32(x_95, 32) == 0)) {
+            x_105 = (x_92 + 0.40000000596046447754f);
+            x_93_phi = x_105;
+          } else {
+            x_113_phi = x_92;
+            float v_6 = float(x_95);
+            float v_7 = round(x_49);
+            float v_8 = float(x_95);
+            if (((v_6 - (v_7 * floor((v_8 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_112 = (x_92 + 100.0f);
+              x_113_phi = x_112;
+            }
+            x_113 = x_113_phi;
+            x_93_phi = x_113;
+          }
+          x_93 = x_93_phi;
+          float v_9 = float(x_95);
+          if ((v_9 >= x_88)) {
+            x_118_phi = x_93;
+            x_119_phi = x_93;
+            x_120_phi = true;
+            break;
+          }
+          {
+            x_96 = (x_95 + 1);
+            x_92_phi = x_93;
+            x_95_phi = x_96;
+          }
+          continue;
+        }
+      }
+      x_118 = x_118_phi;
+      x_119 = x_119_phi;
+      bool x_120 = x_120_phi;
+      x_122_phi = x_118;
+      if (x_120) {
+        break;
+      }
+      x_122_phi = x_119;
+      break;
+    }
+  }
+  float x_122 = x_122_phi;
+  c[1u] = x_122;
+  float x_124 = c.x;
+  float x_125 = c.y;
+  c[2u] = (x_124 + x_125);
+  x_129_phi = 0;
+  {
+    while(true) {
+      int x_130 = 0;
+      int x_129 = x_129_phi;
+      if ((x_129 < 3)) {
+      } else {
+        break;
+      }
+      float x_136 = c[x_129];
+      if ((x_136 >= 1.0f)) {
+        float x_140 = c[x_129];
+        float x_141 = c[x_129];
+        c[x_129] = (x_140 * x_141);
+      }
+      {
+        x_130 = (x_129 + 1);
+        x_129_phi = x_130;
+      }
+      continue;
+    }
+  }
+  vec3 x_143 = c;
+  vec3 x_145 = normalize(abs(x_143));
+  x_GLF_color = vec4(x_145[0u], x_145[1u], x_145[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.spvasm.expected.ir.glsl
index f297654..6a9edbb 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.spvasm.expected.ir.glsl
@@ -1,11 +1,206 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_53 = 0.0f;
+  float x_57 = 0.0f;
+  int x_60 = 0;
+  float x_58 = 0.0f;
+  float x_83 = 0.0f;
+  float x_84 = 0.0f;
+  bool x_85 = false;
+  float x_87 = 0.0f;
+  float x_124 = 0.0f;
+  float x_125 = 0.0f;
+  float x_128 = 0.0f;
+  int x_135 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_47 = v.tint_symbol_3.resolution.x;
+  vec2 x_48 = vec2(1.0f, x_47);
+  float x_50 = round((x_47 * 0.125f));
+  vec2 x_51 = vec2(0.0f, -0.5f);
+  x_53 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_57 = -0.5f;
+      x_60 = 1;
+      {
+        while(true) {
+          float x_70 = 0.0f;
+          float x_78 = 0.0f;
+          int x_61 = 0;
+          x_83 = 0.0f;
+          x_84 = x_57;
+          x_85 = false;
+          if ((x_60 < 800)) {
+          } else {
+            break;
+          }
+          float x_77 = 0.0f;
+          if ((tint_mod_i32(x_60, 32) == 0)) {
+            x_70 = (x_57 + 0.40000000596046447754f);
+            x_58 = x_70;
+          } else {
+            x_78 = x_57;
+            float v_2 = float(x_60);
+            float v_3 = round(x_50);
+            float v_4 = float(x_60);
+            if (((v_2 - (v_3 * floor((v_4 / round(x_50))))) <= 0.00999999977648258209f)) {
+              x_77 = (x_57 + 100.0f);
+              x_78 = x_77;
+            }
+            x_58 = x_78;
+          }
+          float v_5 = float(x_60);
+          if ((v_5 >= x_53)) {
+            x_83 = x_58;
+            x_84 = x_58;
+            x_85 = true;
+            break;
+          }
+          {
+            x_61 = (x_60 + 1);
+            x_57 = x_58;
+            x_60 = x_61;
+          }
+          continue;
+        }
+      }
+      x_87 = x_83;
+      if (x_85) {
+        break;
+      }
+      x_87 = x_84;
+      break;
+    }
+  }
+  float x_92 = 0.0f;
+  float x_98 = 0.0f;
+  int x_101 = 0;
+  float x_99 = 0.0f;
+  bool x_126 = false;
+  vec4 x_89 = vec4(x_84, 0.40000000596046447754f, x_83, 0.40000000596046447754f);
+  c[0u] = x_87;
+  x_92 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      vec4 x_95 = vec4(x_51, 0.0f, x_57);
+      x_98 = vec3(x_48, -0.5f)[2u];
+      x_101 = 1;
+      {
+        while(true) {
+          float x_111 = 0.0f;
+          float x_119 = 0.0f;
+          int x_102 = 0;
+          x_124 = 0.0f;
+          x_125 = x_98;
+          x_126 = false;
+          if ((x_101 < 800)) {
+          } else {
+            break;
+          }
+          float x_118 = 0.0f;
+          if ((tint_mod_i32(x_101, 32) == 0)) {
+            x_111 = (x_98 + 0.40000000596046447754f);
+            x_99 = x_111;
+          } else {
+            x_119 = x_98;
+            float v_6 = float(x_101);
+            float v_7 = round(x_50);
+            float v_8 = float(x_101);
+            if (((v_6 - (v_7 * floor((v_8 / round(x_50))))) <= 0.00999999977648258209f)) {
+              x_118 = (x_98 + 100.0f);
+              x_119 = x_118;
+            }
+            x_99 = x_119;
+          }
+          float v_9 = float(x_101);
+          if ((v_9 >= x_92)) {
+            x_124 = x_99;
+            x_125 = x_99;
+            x_126 = true;
+            break;
+          }
+          {
+            x_102 = (x_101 + 1);
+            x_98 = x_99;
+            x_101 = x_102;
+          }
+          continue;
+        }
+      }
+      x_128 = x_124;
+      if (x_126) {
+        break;
+      }
+      x_128 = x_125;
+      break;
+    }
+  }
+  c[1u] = x_128;
+  c[2u] = (c.x + c.y);
+  x_135 = 0;
+  {
+    while(true) {
+      int x_136 = 0;
+      if ((x_135 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[x_135] >= 1.0f)) {
+        c[x_135] = (c[x_135] * c[x_135]);
+      }
+      {
+        x_136 = (x_135 + 1);
+        x_135 = x_136;
+      }
+      continue;
+    }
+  }
+  vec3 x_151 = normalize(abs(c));
+  x_GLF_color = vec4(x_151[0u], x_151[1u], x_151[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl.expected.ir.glsl
index f297654..6233cad 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl.expected.ir.glsl
@@ -1,11 +1,240 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_53 = 0.0f;
+  float x_57 = 0.0f;
+  float x_58 = 0.0f;
+  float x_83 = 0.0f;
+  float x_84 = 0.0f;
+  float x_124 = 0.0f;
+  float x_125 = 0.0f;
+  float x_57_phi = 0.0f;
+  int x_60_phi = 0;
+  float x_83_phi = 0.0f;
+  float x_84_phi = 0.0f;
+  bool x_85_phi = false;
+  float x_87_phi = 0.0f;
+  float x_128_phi = 0.0f;
+  int x_135_phi = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_47 = v.tint_symbol_3.resolution.x;
+  vec2 x_48 = vec2(1.0f, x_47);
+  float x_50 = round((x_47 * 0.125f));
+  vec2 x_51 = vec2(0.0f, -0.5f);
+  x_53 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_57_phi = -0.5f;
+      x_60_phi = 1;
+      {
+        while(true) {
+          float x_70 = 0.0f;
+          float x_78 = 0.0f;
+          int x_61 = 0;
+          float x_58_phi = 0.0f;
+          x_57 = x_57_phi;
+          int x_60 = x_60_phi;
+          x_83_phi = 0.0f;
+          x_84_phi = x_57;
+          x_85_phi = false;
+          if ((x_60 < 800)) {
+          } else {
+            break;
+          }
+          float x_77 = 0.0f;
+          float x_78_phi = 0.0f;
+          if ((tint_mod_i32(x_60, 32) == 0)) {
+            x_70 = (x_57 + 0.40000000596046447754f);
+            x_58_phi = x_70;
+          } else {
+            x_78_phi = x_57;
+            float v_2 = float(x_60);
+            float v_3 = round(x_50);
+            float v_4 = float(x_60);
+            if (((v_2 - (v_3 * floor((v_4 / round(x_50))))) <= 0.00999999977648258209f)) {
+              x_77 = (x_57 + 100.0f);
+              x_78_phi = x_77;
+            }
+            x_78 = x_78_phi;
+            x_58_phi = x_78;
+          }
+          x_58 = x_58_phi;
+          float v_5 = float(x_60);
+          if ((v_5 >= x_53)) {
+            x_83_phi = x_58;
+            x_84_phi = x_58;
+            x_85_phi = true;
+            break;
+          }
+          {
+            x_61 = (x_60 + 1);
+            x_57_phi = x_58;
+            x_60_phi = x_61;
+          }
+          continue;
+        }
+      }
+      x_83 = x_83_phi;
+      x_84 = x_84_phi;
+      bool x_85 = x_85_phi;
+      x_87_phi = x_83;
+      if (x_85) {
+        break;
+      }
+      x_87_phi = x_84;
+      break;
+    }
+  }
+  float x_92 = 0.0f;
+  float x_98 = 0.0f;
+  float x_99 = 0.0f;
+  float x_98_phi = 0.0f;
+  int x_101_phi = 0;
+  float x_124_phi = 0.0f;
+  float x_125_phi = 0.0f;
+  bool x_126_phi = false;
+  float x_87 = x_87_phi;
+  vec4 x_89 = vec4(x_84, 0.40000000596046447754f, x_83, 0.40000000596046447754f);
+  c[0u] = x_87;
+  x_92 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      vec4 x_95 = vec4(x_51, 0.0f, x_57);
+      float x_96 = vec3(x_48, -0.5f)[2u];
+      x_98_phi = x_96;
+      x_101_phi = 1;
+      {
+        while(true) {
+          float x_111 = 0.0f;
+          float x_119 = 0.0f;
+          int x_102 = 0;
+          float x_99_phi = 0.0f;
+          x_98 = x_98_phi;
+          int x_101 = x_101_phi;
+          x_124_phi = 0.0f;
+          x_125_phi = x_98;
+          x_126_phi = false;
+          if ((x_101 < 800)) {
+          } else {
+            break;
+          }
+          float x_118 = 0.0f;
+          float x_119_phi = 0.0f;
+          if ((tint_mod_i32(x_101, 32) == 0)) {
+            x_111 = (x_98 + 0.40000000596046447754f);
+            x_99_phi = x_111;
+          } else {
+            x_119_phi = x_98;
+            float v_6 = float(x_101);
+            float v_7 = round(x_50);
+            float v_8 = float(x_101);
+            if (((v_6 - (v_7 * floor((v_8 / round(x_50))))) <= 0.00999999977648258209f)) {
+              x_118 = (x_98 + 100.0f);
+              x_119_phi = x_118;
+            }
+            x_119 = x_119_phi;
+            x_99_phi = x_119;
+          }
+          x_99 = x_99_phi;
+          float v_9 = float(x_101);
+          if ((v_9 >= x_92)) {
+            x_124_phi = x_99;
+            x_125_phi = x_99;
+            x_126_phi = true;
+            break;
+          }
+          {
+            x_102 = (x_101 + 1);
+            x_98_phi = x_99;
+            x_101_phi = x_102;
+          }
+          continue;
+        }
+      }
+      x_124 = x_124_phi;
+      x_125 = x_125_phi;
+      bool x_126 = x_126_phi;
+      x_128_phi = x_124;
+      if (x_126) {
+        break;
+      }
+      x_128_phi = x_125;
+      break;
+    }
+  }
+  float x_128 = x_128_phi;
+  c[1u] = x_128;
+  float x_130 = c.x;
+  float x_131 = c.y;
+  c[2u] = (x_130 + x_131);
+  x_135_phi = 0;
+  {
+    while(true) {
+      int x_136 = 0;
+      int x_135 = x_135_phi;
+      if ((x_135 < 3)) {
+      } else {
+        break;
+      }
+      float x_142 = c[x_135];
+      if ((x_142 >= 1.0f)) {
+        float x_146 = c[x_135];
+        float x_147 = c[x_135];
+        c[x_135] = (x_146 * x_147);
+      }
+      {
+        x_136 = (x_135 + 1);
+        x_135_phi = x_136;
+      }
+      continue;
+    }
+  }
+  vec3 x_149 = c;
+  vec3 x_151 = normalize(abs(x_149));
+  x_GLF_color = vec4(x_151[0u], x_151[1u], x_151[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.spvasm.expected.ir.glsl
index f297654..b65f415 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.spvasm.expected.ir.glsl
@@ -1,11 +1,79 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int x_66 = 0;
+  int x_69 = 0;
+  vec2 x_56 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int v_2 = tint_f32_to_i32((x_56[0u] * 10.0f));
+  int x_64 = (v_2 + (tint_f32_to_i32((x_56[1u] * 10.0f)) * 10));
+  x_66 = 100;
+  x_69 = 0;
+  {
+    while(true) {
+      int x_67 = 0;
+      int x_70 = 0;
+      if ((x_69 < x_64)) {
+      } else {
+        break;
+      }
+      {
+        x_67 = tint_div_i32(((4 * x_66) * (1000 - x_66)), 1000);
+        x_70 = (x_69 + 1);
+        x_66 = x_67;
+        x_69 = x_70;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  x_GLF_color = indexable[tint_mod_i32(x_66, 16)];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.spvasm.expected.ir.glsl
index f297654..ee73e1c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.spvasm.expected.ir.glsl
@@ -1,11 +1,80 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int x_72 = 0;
+  int x_75 = 0;
+  vec2 x_55 = tint_symbol.xy;
+  vec2 x_59 = (x_55 / v.tint_symbol_3.resolution);
+  int v_2 = tint_f32_to_i32((x_59[0u] * vec4(vec4(0.0f, x_55, 0.5f)[3u], 10.0f, vec2(0.0f))[1u]));
+  int x_70 = (v_2 + (tint_f32_to_i32((x_59[1u] * 10.0f)) * 10));
+  x_72 = 100;
+  x_75 = 0;
+  {
+    while(true) {
+      int x_73 = 0;
+      int x_76 = 0;
+      if ((x_75 < x_70)) {
+      } else {
+        break;
+      }
+      {
+        x_73 = tint_div_i32(((4 * x_72) * (1000 - x_72)), 1000);
+        x_76 = (x_75 + 1);
+        x_72 = x_73;
+        x_75 = x_76;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  x_GLF_color = indexable[tint_mod_i32(x_72, 16)];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.spvasm.expected.ir.glsl
index f297654..af48b8f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.spvasm.expected.ir.glsl
@@ -1,11 +1,304 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+mat2x4 x_60 = mat2x4(vec4(0.0f), vec4(0.0f));
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  int x_68 = -242;
+  pos = (tint_symbol.xy / v_1.tint_symbol_3.resolution);
+  int v_3 = tint_f32_to_i32((pos.x * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((pos.y * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      if ((i < 256)) {
+      } else {
+        break;
+      }
+      int x_86 = i;
+      map[x_86] = 0;
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_110 = false;
+      bool x_111 = false;
+      bool x_130 = false;
+      bool x_131 = false;
+      bool x_150 = false;
+      bool x_151 = false;
+      bool x_171 = false;
+      bool x_172 = false;
+      v = (v + 1);
+      directions = 0;
+      bool x_98 = (p.x > 0);
+      x_111 = x_98;
+      if (x_98) {
+        x_110 = (map[((p.x - 2) + (p.y * 16))] == 0);
+        x_111 = x_110;
+      }
+      if (x_111) {
+        directions = (directions + 1);
+      }
+      bool x_118 = (p.y > 0);
+      x_131 = x_118;
+      if (x_118) {
+        x_130 = (map[(p.x + ((p.y - 2) * 16))] == 0);
+        x_131 = x_130;
+      }
+      if (x_131) {
+        directions = (directions + 1);
+      }
+      bool x_138 = (p.x < 14);
+      x_151 = x_138;
+      if (x_138) {
+        x_150 = (map[((p.x + 2) + (p.y * 16))] == 0);
+        x_151 = x_150;
+      }
+      if (x_151) {
+        directions = (directions + 1);
+      }
+      int x_156 = (256 - x_68);
+      bool x_159 = (p.y < 14);
+      x_172 = x_159;
+      if (x_159) {
+        x_171 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+        x_172 = x_171;
+      }
+      if (x_172) {
+        directions = (directions + 1);
+      }
+      bool x_237 = false;
+      bool x_238 = false;
+      bool x_250 = false;
+      bool x_251 = false;
+      bool x_289 = false;
+      bool x_290 = false;
+      bool x_302 = false;
+      bool x_303 = false;
+      bool x_341 = false;
+      bool x_342 = false;
+      bool x_354 = false;
+      bool x_355 = false;
+      bool x_393 = false;
+      bool x_394 = false;
+      bool x_406 = false;
+      bool x_407 = false;
+      if ((directions == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            int x_186 = i;
+            if ((i < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            int x_189 = (x_156 - x_186);
+            x_60 = mat2x4(vec4(0.0f), vec4(0.0f));
+            if (false) {
+              {
+                i = (i + 1);
+              }
+              continue;
+            }
+            {
+              while(true) {
+                if ((j < 8)) {
+                } else {
+                  break;
+                }
+                if ((map[((j * 2) + ((i * 2) * 16))] == 0)) {
+                  p[0u] = (j * 2);
+                  p[1u] = (i * 2);
+                  canwalk = true;
+                }
+                {
+                  j = (j + 1);
+                }
+                continue;
+              }
+            }
+            {
+              i = (i + 1);
+            }
+            continue;
+          }
+        }
+        int x_219 = p.x;
+        int x_221 = p.y;
+        map[(x_219 + (x_221 * 16))] = 1;
+      } else {
+        d = tint_mod_i32(v, directions);
+        v = (v + directions);
+        bool x_232 = (d >= 0);
+        x_238 = x_232;
+        if (x_232) {
+          x_237 = (p.x > 0);
+          x_238 = x_237;
+        }
+        x_251 = x_238;
+        if (x_238) {
+          x_250 = (map[((p.x - 2) + (p.y * 16))] == 0);
+          x_251 = x_250;
+        }
+        if (x_251) {
+          d = (d - 1);
+          int x_257 = p.x;
+          int x_259 = p.y;
+          map[(x_257 + (x_259 * 16))] = 1;
+          int x_264 = p.x;
+          int x_267 = p.y;
+          map[((x_264 - 1) + (x_267 * 16))] = 1;
+          int x_272 = p.x;
+          int x_275 = p.y;
+          map[((x_272 - 2) + (x_275 * 16))] = 1;
+          p[0u] = (p.x - 2);
+        }
+        bool x_284 = (d >= 0);
+        x_290 = x_284;
+        if (x_284) {
+          x_289 = (p.y > 0);
+          x_290 = x_289;
+        }
+        x_303 = x_290;
+        if (x_290) {
+          x_302 = (map[(p.x + ((p.y - 2) * 16))] == 0);
+          x_303 = x_302;
+        }
+        if (x_303) {
+          d = (d - 1);
+          int x_309 = p.x;
+          int x_311 = p.y;
+          map[(x_309 + (x_311 * 16))] = 1;
+          int x_316 = p.x;
+          int x_318 = p.y;
+          map[(x_316 + ((x_318 - 1) * 16))] = 1;
+          int x_324 = p.x;
+          int x_326 = p.y;
+          map[(x_324 + ((x_326 - 2) * 16))] = 1;
+          p[1u] = (p.y - 2);
+        }
+        bool x_336 = (d >= 0);
+        x_342 = x_336;
+        if (x_336) {
+          x_341 = (p.x < 14);
+          x_342 = x_341;
+        }
+        x_355 = x_342;
+        if (x_342) {
+          x_354 = (map[((p.x + 2) + (p.y * 16))] == 0);
+          x_355 = x_354;
+        }
+        if (x_355) {
+          d = (d - 1);
+          int x_361 = p.x;
+          int x_363 = p.y;
+          map[(x_361 + (x_363 * 16))] = 1;
+          int x_368 = p.x;
+          int x_371 = p.y;
+          map[((x_368 + 1) + (x_371 * 16))] = 1;
+          int x_376 = p.x;
+          int x_379 = p.y;
+          map[((x_376 + 2) + (x_379 * 16))] = 1;
+          p[0u] = (p.x + 2);
+        }
+        bool x_388 = (d >= 0);
+        x_394 = x_388;
+        if (x_388) {
+          x_393 = (p.y < 14);
+          x_394 = x_393;
+        }
+        x_407 = x_394;
+        if (x_394) {
+          x_406 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+          x_407 = x_406;
+        }
+        if (x_407) {
+          d = (d - 1);
+          int x_413 = p.x;
+          int x_415 = p.y;
+          map[(x_413 + (x_415 * 16))] = 1;
+          int x_420 = p.x;
+          int x_422 = p.y;
+          map[(x_420 + ((x_422 + 1) * 16))] = 1;
+          int x_428 = p.x;
+          int x_430 = p.y;
+          map[(x_428 + ((x_430 + 2) * 16))] = 1;
+          p[1u] = (p.y + 2);
+        }
+      }
+      if ((map[((ipos.y * 16) + ipos.x)] == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_450 = canwalk;
+        if (!(x_450)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:24: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:24: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:24: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl.expected.ir.glsl
index f297654..ac266b1 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl.expected.ir.glsl
@@ -1,11 +1,388 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+mat2x4 x_60 = mat2x4(vec4(0.0f), vec4(0.0f));
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  vec4 x_63 = tint_symbol;
+  vec2 x_67 = v_1.tint_symbol_3.resolution;
+  int x_68 = -242;
+  pos = (vec2(x_63[0u], x_63[1u]) / x_67);
+  float x_71 = pos.x;
+  float x_75 = pos.y;
+  int v_3 = tint_f32_to_i32((x_71 * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((x_75 * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      int x_83 = i;
+      if ((x_83 < 256)) {
+      } else {
+        break;
+      }
+      int x_86 = i;
+      map[x_86] = 0;
+      {
+        int x_88 = i;
+        i = (x_88 + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_110 = false;
+      bool x_130 = false;
+      bool x_150 = false;
+      bool x_171 = false;
+      bool x_111_phi = false;
+      bool x_131_phi = false;
+      bool x_151_phi = false;
+      bool x_172_phi = false;
+      int x_94 = v;
+      v = (x_94 + 1);
+      directions = 0;
+      int x_97 = p.x;
+      bool x_98 = (x_97 > 0);
+      x_111_phi = x_98;
+      if (x_98) {
+        int x_102 = p.x;
+        int x_105 = p.y;
+        int x_109 = map[((x_102 - 2) + (x_105 * 16))];
+        x_110 = (x_109 == 0);
+        x_111_phi = x_110;
+      }
+      bool x_111 = x_111_phi;
+      if (x_111) {
+        int x_114 = directions;
+        directions = (x_114 + 1);
+      }
+      int x_117 = p.y;
+      bool x_118 = (x_117 > 0);
+      x_131_phi = x_118;
+      if (x_118) {
+        int x_122 = p.x;
+        int x_124 = p.y;
+        int x_129 = map[(x_122 + ((x_124 - 2) * 16))];
+        x_130 = (x_129 == 0);
+        x_131_phi = x_130;
+      }
+      bool x_131 = x_131_phi;
+      if (x_131) {
+        int x_134 = directions;
+        directions = (x_134 + 1);
+      }
+      int x_137 = p.x;
+      bool x_138 = (x_137 < 14);
+      x_151_phi = x_138;
+      if (x_138) {
+        int x_142 = p.x;
+        int x_145 = p.y;
+        int x_149 = map[((x_142 + 2) + (x_145 * 16))];
+        x_150 = (x_149 == 0);
+        x_151_phi = x_150;
+      }
+      bool x_151 = x_151_phi;
+      if (x_151) {
+        int x_154 = directions;
+        directions = (x_154 + 1);
+      }
+      int x_156 = (256 - x_68);
+      int x_158 = p.y;
+      bool x_159 = (x_158 < 14);
+      x_172_phi = x_159;
+      if (x_159) {
+        int x_163 = p.x;
+        int x_165 = p.y;
+        int x_170 = map[(x_163 + ((x_165 + 2) * 16))];
+        x_171 = (x_170 == 0);
+        x_172_phi = x_171;
+      }
+      bool x_172 = x_172_phi;
+      if (x_172) {
+        int x_175 = directions;
+        directions = (x_175 + 1);
+      }
+      bool x_237 = false;
+      bool x_250 = false;
+      bool x_289 = false;
+      bool x_302 = false;
+      bool x_341 = false;
+      bool x_354 = false;
+      bool x_393 = false;
+      bool x_406 = false;
+      bool x_238_phi = false;
+      bool x_251_phi = false;
+      bool x_290_phi = false;
+      bool x_303_phi = false;
+      bool x_342_phi = false;
+      bool x_355_phi = false;
+      bool x_394_phi = false;
+      bool x_407_phi = false;
+      int x_177 = directions;
+      if ((x_177 == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            int x_186 = i;
+            if ((x_186 < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            int x_189 = (x_156 - x_186);
+            x_60 = mat2x4(vec4(0.0f), vec4(0.0f));
+            if (false) {
+              {
+                int x_216 = i;
+                i = (x_216 + 1);
+              }
+              continue;
+            }
+            {
+              while(true) {
+                int x_194 = j;
+                if ((x_194 < 8)) {
+                } else {
+                  break;
+                }
+                int x_197 = j;
+                int x_199 = i;
+                int x_204 = map[((x_197 * 2) + ((x_199 * 2) * 16))];
+                if ((x_204 == 0)) {
+                  int x_208 = j;
+                  p[0u] = (x_208 * 2);
+                  int x_211 = i;
+                  p[1u] = (x_211 * 2);
+                  canwalk = true;
+                }
+                {
+                  int x_214 = j;
+                  j = (x_214 + 1);
+                }
+                continue;
+              }
+            }
+            {
+              int x_216 = i;
+              i = (x_216 + 1);
+            }
+            continue;
+          }
+        }
+        int x_219 = p.x;
+        int x_221 = p.y;
+        map[(x_219 + (x_221 * 16))] = 1;
+      } else {
+        int x_225 = v;
+        int x_226 = directions;
+        d = tint_mod_i32(x_225, x_226);
+        int x_228 = directions;
+        int x_229 = v;
+        v = (x_229 + x_228);
+        int x_231 = d;
+        bool x_232 = (x_231 >= 0);
+        x_238_phi = x_232;
+        if (x_232) {
+          int x_236 = p.x;
+          x_237 = (x_236 > 0);
+          x_238_phi = x_237;
+        }
+        bool x_238 = x_238_phi;
+        x_251_phi = x_238;
+        if (x_238) {
+          int x_242 = p.x;
+          int x_245 = p.y;
+          int x_249 = map[((x_242 - 2) + (x_245 * 16))];
+          x_250 = (x_249 == 0);
+          x_251_phi = x_250;
+        }
+        bool x_251 = x_251_phi;
+        if (x_251) {
+          int x_254 = d;
+          d = (x_254 - 1);
+          int x_257 = p.x;
+          int x_259 = p.y;
+          map[(x_257 + (x_259 * 16))] = 1;
+          int x_264 = p.x;
+          int x_267 = p.y;
+          map[((x_264 - 1) + (x_267 * 16))] = 1;
+          int x_272 = p.x;
+          int x_275 = p.y;
+          map[((x_272 - 2) + (x_275 * 16))] = 1;
+          int x_280 = p.x;
+          p[0u] = (x_280 - 2);
+        }
+        int x_283 = d;
+        bool x_284 = (x_283 >= 0);
+        x_290_phi = x_284;
+        if (x_284) {
+          int x_288 = p.y;
+          x_289 = (x_288 > 0);
+          x_290_phi = x_289;
+        }
+        bool x_290 = x_290_phi;
+        x_303_phi = x_290;
+        if (x_290) {
+          int x_294 = p.x;
+          int x_296 = p.y;
+          int x_301 = map[(x_294 + ((x_296 - 2) * 16))];
+          x_302 = (x_301 == 0);
+          x_303_phi = x_302;
+        }
+        bool x_303 = x_303_phi;
+        if (x_303) {
+          int x_306 = d;
+          d = (x_306 - 1);
+          int x_309 = p.x;
+          int x_311 = p.y;
+          map[(x_309 + (x_311 * 16))] = 1;
+          int x_316 = p.x;
+          int x_318 = p.y;
+          map[(x_316 + ((x_318 - 1) * 16))] = 1;
+          int x_324 = p.x;
+          int x_326 = p.y;
+          map[(x_324 + ((x_326 - 2) * 16))] = 1;
+          int x_332 = p.y;
+          p[1u] = (x_332 - 2);
+        }
+        int x_335 = d;
+        bool x_336 = (x_335 >= 0);
+        x_342_phi = x_336;
+        if (x_336) {
+          int x_340 = p.x;
+          x_341 = (x_340 < 14);
+          x_342_phi = x_341;
+        }
+        bool x_342 = x_342_phi;
+        x_355_phi = x_342;
+        if (x_342) {
+          int x_346 = p.x;
+          int x_349 = p.y;
+          int x_353 = map[((x_346 + 2) + (x_349 * 16))];
+          x_354 = (x_353 == 0);
+          x_355_phi = x_354;
+        }
+        bool x_355 = x_355_phi;
+        if (x_355) {
+          int x_358 = d;
+          d = (x_358 - 1);
+          int x_361 = p.x;
+          int x_363 = p.y;
+          map[(x_361 + (x_363 * 16))] = 1;
+          int x_368 = p.x;
+          int x_371 = p.y;
+          map[((x_368 + 1) + (x_371 * 16))] = 1;
+          int x_376 = p.x;
+          int x_379 = p.y;
+          map[((x_376 + 2) + (x_379 * 16))] = 1;
+          int x_384 = p.x;
+          p[0u] = (x_384 + 2);
+        }
+        int x_387 = d;
+        bool x_388 = (x_387 >= 0);
+        x_394_phi = x_388;
+        if (x_388) {
+          int x_392 = p.y;
+          x_393 = (x_392 < 14);
+          x_394_phi = x_393;
+        }
+        bool x_394 = x_394_phi;
+        x_407_phi = x_394;
+        if (x_394) {
+          int x_398 = p.x;
+          int x_400 = p.y;
+          int x_405 = map[(x_398 + ((x_400 + 2) * 16))];
+          x_406 = (x_405 == 0);
+          x_407_phi = x_406;
+        }
+        bool x_407 = x_407_phi;
+        if (x_407) {
+          int x_410 = d;
+          d = (x_410 - 1);
+          int x_413 = p.x;
+          int x_415 = p.y;
+          map[(x_413 + (x_415 * 16))] = 1;
+          int x_420 = p.x;
+          int x_422 = p.y;
+          map[(x_420 + ((x_422 + 1) * 16))] = 1;
+          int x_428 = p.x;
+          int x_430 = p.y;
+          map[(x_428 + ((x_430 + 2) * 16))] = 1;
+          int x_436 = p.y;
+          p[1u] = (x_436 + 2);
+        }
+      }
+      int x_440 = ipos.y;
+      int x_443 = ipos.x;
+      int x_446 = map[((x_440 * 16) + x_443)];
+      if ((x_446 == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_450 = canwalk;
+        if (!(x_450)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:24: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:24: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:24: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.spvasm.expected.ir.glsl
index f297654..94f0b6c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,114 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+bool collision_vf2_vf4_(inout vec2 pos, inout vec4 quad) {
+  if ((pos.x < quad.x)) {
+    return false;
+  }
+  if ((pos.y < quad.y)) {
+    return false;
+  }
+  if ((pos.x > (quad.x + quad.z))) {
+    return false;
+  }
+  if ((pos.y > (quad.y + quad.w))) {
+    return false;
+  }
+  return true;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+vec4 match_vf2_(inout vec2 pos_1) {
+  vec4 res = vec4(0.0f);
+  int i = 0;
+  vec2 param = vec2(0.0f);
+  vec4 param_1 = vec4(0.0f);
+  vec4 indexable[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_1[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_2[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_3[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  res = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  i = 0;
+  {
+    while(true) {
+      if ((i < 8)) {
+      } else {
+        break;
+      }
+      int x_155 = i;
+      param = pos_1;
+      indexable = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      param_1 = indexable[x_155];
+      bool x_159 = collision_vf2_vf4_(param, param_1);
+      if (x_159) {
+        int x_162 = i;
+        indexable_1 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_164 = indexable_1[x_162].x;
+        int x_166 = i;
+        indexable_2 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_168 = indexable_2[x_166].y;
+        int x_171 = i;
+        indexable_3 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_164);
+        res = indexable_3[tint_mod_i32((((v_2 * tint_f32_to_i32(x_168)) + (x_171 * 9)) + 11), 16)];
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  vec4 x_180 = res;
+  return x_180;
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  lin = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  lin = floor((lin * 32.0f));
+  param_2 = lin;
+  vec4 x_111 = match_vf2_(param_2);
+  x_GLF_color = x_111;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl.expected.ir.glsl
index f297654..7ad5043 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,133 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+bool collision_vf2_vf4_(inout vec2 pos, inout vec4 quad) {
+  float x_114 = pos.x;
+  float x_116 = quad.x;
+  if ((x_114 < x_116)) {
+    return false;
+  }
+  float x_121 = pos.y;
+  float x_123 = quad.y;
+  if ((x_121 < x_123)) {
+    return false;
+  }
+  float x_128 = pos.x;
+  float x_130 = quad.x;
+  float x_132 = quad.z;
+  if ((x_128 > (x_130 + x_132))) {
+    return false;
+  }
+  float x_138 = pos.y;
+  float x_140 = quad.y;
+  float x_142 = quad.w;
+  if ((x_138 > (x_140 + x_142))) {
+    return false;
+  }
+  return true;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+vec4 match_vf2_(inout vec2 pos_1) {
+  vec4 res = vec4(0.0f);
+  int i = 0;
+  vec2 param = vec2(0.0f);
+  vec4 param_1 = vec4(0.0f);
+  vec4 indexable[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_1[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_2[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_3[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  res = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  i = 0;
+  {
+    while(true) {
+      int x_152 = i;
+      if ((x_152 < 8)) {
+      } else {
+        break;
+      }
+      int x_155 = i;
+      vec2 x_156 = pos_1;
+      param = x_156;
+      indexable = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      vec4 x_158 = indexable[x_155];
+      param_1 = x_158;
+      bool x_159 = collision_vf2_vf4_(param, param_1);
+      if (x_159) {
+        int x_162 = i;
+        indexable_1 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_164 = indexable_1[x_162].x;
+        int x_166 = i;
+        indexable_2 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_168 = indexable_2[x_166].y;
+        int x_171 = i;
+        indexable_3 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_164);
+        vec4 x_177 = indexable_3[tint_mod_i32((((v_2 * tint_f32_to_i32(x_168)) + (x_171 * 9)) + 11), 16)];
+        res = x_177;
+      }
+      {
+        int x_178 = i;
+        i = (x_178 + 1);
+      }
+      continue;
+    }
+  }
+  vec4 x_180 = res;
+  return x_180;
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  vec4 x_102 = tint_symbol;
+  vec2 x_105 = v.tint_symbol_3.resolution;
+  lin = (vec2(x_102[0u], x_102[1u]) / x_105);
+  vec2 x_107 = lin;
+  lin = floor((x_107 * 32.0f));
+  vec2 x_110 = lin;
+  param_2 = x_110;
+  vec4 x_111 = match_vf2_(param_2);
+  x_GLF_color = x_111;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:47: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:47: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:47: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.spvasm.expected.ir.glsl
index f297654..803652a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.spvasm.expected.ir.glsl
@@ -1,11 +1,115 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+bool collision_vf2_vf4_(inout vec2 pos, inout vec4 quad) {
+  bvec4 x_116 = bvec4(false);
+  if ((pos.x < quad.x)) {
+    return false;
+  }
+  if ((pos.y < quad.y)) {
+    return false;
+  }
+  if ((pos.x > (quad.x + quad.z))) {
+    return false;
+  }
+  if ((pos.y > (quad.y + quad.w))) {
+    return false;
+  }
+  return true;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+vec4 match_vf2_(inout vec2 pos_1) {
+  vec4 res = vec4(0.0f);
+  int i = 0;
+  vec2 param = vec2(0.0f);
+  vec4 param_1 = vec4(0.0f);
+  vec4 indexable[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_1[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_2[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_3[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  res = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  i = 0;
+  {
+    while(true) {
+      if ((i < 8)) {
+      } else {
+        break;
+      }
+      int x_159 = i;
+      param = pos_1;
+      indexable = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      param_1 = indexable[x_159];
+      bool x_163 = collision_vf2_vf4_(param, param_1);
+      if (x_163) {
+        int x_166 = i;
+        indexable_1 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_168 = indexable_1[x_166].x;
+        int x_170 = i;
+        indexable_2 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_172 = indexable_2[x_170].y;
+        int x_175 = i;
+        indexable_3 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_168);
+        res = indexable_3[tint_mod_i32((((v_2 * tint_f32_to_i32(x_172)) + (x_175 * 9)) + 11), 16)];
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  vec4 x_184 = res;
+  return x_184;
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  lin = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  lin = floor((lin * 32.0f));
+  param_2 = lin;
+  vec4 x_114 = match_vf2_(param_2);
+  x_GLF_color = x_114;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:38: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:38: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:38: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl.expected.ir.glsl
index f297654..dd1cacb 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl.expected.ir.glsl
@@ -1,11 +1,134 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+bool collision_vf2_vf4_(inout vec2 pos, inout vec4 quad) {
+  bvec4 x_116 = bvec4(false);
+  float x_118 = pos.x;
+  float x_120 = quad.x;
+  if ((x_118 < x_120)) {
+    return false;
+  }
+  float x_125 = pos.y;
+  float x_127 = quad.y;
+  if ((x_125 < x_127)) {
+    return false;
+  }
+  float x_132 = pos.x;
+  float x_134 = quad.x;
+  float x_136 = quad.z;
+  if ((x_132 > (x_134 + x_136))) {
+    return false;
+  }
+  float x_142 = pos.y;
+  float x_144 = quad.y;
+  float x_146 = quad.w;
+  if ((x_142 > (x_144 + x_146))) {
+    return false;
+  }
+  return true;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+vec4 match_vf2_(inout vec2 pos_1) {
+  vec4 res = vec4(0.0f);
+  int i = 0;
+  vec2 param = vec2(0.0f);
+  vec4 param_1 = vec4(0.0f);
+  vec4 indexable[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_1[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_2[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_3[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  res = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  i = 0;
+  {
+    while(true) {
+      int x_156 = i;
+      if ((x_156 < 8)) {
+      } else {
+        break;
+      }
+      int x_159 = i;
+      vec2 x_160 = pos_1;
+      param = x_160;
+      indexable = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      vec4 x_162 = indexable[x_159];
+      param_1 = x_162;
+      bool x_163 = collision_vf2_vf4_(param, param_1);
+      if (x_163) {
+        int x_166 = i;
+        indexable_1 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_168 = indexable_1[x_166].x;
+        int x_170 = i;
+        indexable_2 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_172 = indexable_2[x_170].y;
+        int x_175 = i;
+        indexable_3 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_168);
+        vec4 x_181 = indexable_3[tint_mod_i32((((v_2 * tint_f32_to_i32(x_172)) + (x_175 * 9)) + 11), 16)];
+        res = x_181;
+      }
+      {
+        int x_182 = i;
+        i = (x_182 + 1);
+      }
+      continue;
+    }
+  }
+  vec4 x_184 = res;
+  return x_184;
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  vec4 x_105 = tint_symbol;
+  vec2 x_108 = v.tint_symbol_3.resolution;
+  lin = (vec2(x_105[0u], x_105[1u]) / x_108);
+  vec2 x_110 = lin;
+  lin = floor((x_110 * 32.0f));
+  vec2 x_113 = lin;
+  param_2 = x_113;
+  vec4 x_114 = match_vf2_(param_2);
+  x_GLF_color = x_114;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:48: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:48: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:48: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.ir.glsl
index f297654..dcb631d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,298 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_280 = k;
+        k = (k + 1);
+        int x_282 = i;
+        i = (i + 1);
+        temp[x_280] = data[x_282];
+      } else {
+        int x_287 = k;
+        k = (k + 1);
+        int x_289 = j;
+        j = (j + 1);
+        temp[x_287] = data[x_289];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_305 = k;
+      k = (k + 1);
+      int x_307 = i;
+      i = (i + 1);
+      temp[x_305] = data[x_307];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_321 = i_1;
+      data[x_321] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      if ((m <= high)) {
+      } else {
+        break;
+      }
+      i_2 = low;
+      {
+        while(true) {
+          if ((i_2 < high)) {
+          } else {
+            break;
+          }
+          f_1 = i_2;
+          mid_1 = ((i_2 + m) - 1);
+          to_1 = min(((i_2 + (2 * m)) - 1), high);
+          param = f_1;
+          param_1 = mid_1;
+          param_2 = to_1;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            i_2 = (i_2 + (2 * m));
+          }
+          continue;
+        }
+      }
+      {
+        m = (2 * m);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_93 = i_3;
+      switch(x_93) {
+        case 9:
+        {
+          int x_123 = i_3;
+          data[x_123] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_121 = i_3;
+          data[x_121] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_119 = i_3;
+          data[x_119] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_117 = i_3;
+          data[x_117] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_115 = i_3;
+          data[x_115] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_113 = i_3;
+          data[x_113] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_111 = i_3;
+          data[x_111] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_109 = i_3;
+          data[x_109] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_107 = i_3;
+          data[x_107] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_105 = i_3;
+          data[x_105] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_127 = i_3;
+        if (!((x_127 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      if ((j_1 < 10)) {
+      } else {
+        break;
+      }
+      int x_136 = j_1;
+      temp[x_136] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            continue_execution = false;
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  if ((tint_f32_to_i32(tint_symbol.y) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_248 = vec3(grey);
+  x_GLF_color = vec4(x_248[0u], x_248[1u], x_248[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl.expected.ir.glsl
index f297654..6a3334e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,362 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_254 = f;
+  k = x_254;
+  int x_255 = f;
+  i = x_255;
+  int x_256 = mid;
+  j = (x_256 + 1);
+  {
+    while(true) {
+      int x_262 = i;
+      int x_263 = mid;
+      int x_265 = j;
+      int x_266 = to;
+      if (((x_262 <= x_263) & (x_265 <= x_266))) {
+      } else {
+        break;
+      }
+      int x_270 = i;
+      int x_272 = data[x_270];
+      int x_273 = j;
+      int x_275 = data[x_273];
+      if ((x_272 < x_275)) {
+        int x_280 = k;
+        k = (x_280 + 1);
+        int x_282 = i;
+        i = (x_282 + 1);
+        int x_285 = data[x_282];
+        temp[x_280] = x_285;
+      } else {
+        int x_287 = k;
+        k = (x_287 + 1);
+        int x_289 = j;
+        j = (x_289 + 1);
+        int x_292 = data[x_289];
+        temp[x_287] = x_292;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_298 = i;
+      int x_300 = i;
+      int x_301 = mid;
+      if (((x_298 < 10) & (x_300 <= x_301))) {
+      } else {
+        break;
+      }
+      int x_305 = k;
+      k = (x_305 + 1);
+      int x_307 = i;
+      i = (x_307 + 1);
+      int x_310 = data[x_307];
+      temp[x_305] = x_310;
+      {
+      }
+      continue;
+    }
+  }
+  int x_312 = f;
+  i_1 = x_312;
+  {
+    while(true) {
+      int x_317 = i_1;
+      int x_318 = to;
+      if ((x_317 <= x_318)) {
+      } else {
+        break;
+      }
+      int x_321 = i_1;
+      int x_322 = i_1;
+      int x_324 = temp[x_322];
+      data[x_321] = x_324;
+      {
+        int x_326 = i_1;
+        i_1 = (x_326 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_333 = m;
+      int x_334 = high;
+      if ((x_333 <= x_334)) {
+      } else {
+        break;
+      }
+      int x_337 = low;
+      i_2 = x_337;
+      {
+        while(true) {
+          int x_342 = i_2;
+          int x_343 = high;
+          if ((x_342 < x_343)) {
+          } else {
+            break;
+          }
+          int x_346 = i_2;
+          f_1 = x_346;
+          int x_347 = i_2;
+          int x_348 = m;
+          mid_1 = ((x_347 + x_348) - 1);
+          int x_351 = i_2;
+          int x_352 = m;
+          int x_356 = high;
+          to_1 = min(((x_351 + (2 * x_352)) - 1), x_356);
+          int x_358 = f_1;
+          param = x_358;
+          int x_359 = mid_1;
+          param_1 = x_359;
+          int x_360 = to_1;
+          param_2 = x_360;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_362 = m;
+            int x_364 = i_2;
+            i_2 = (x_364 + (2 * x_362));
+          }
+          continue;
+        }
+      }
+      {
+        int x_366 = m;
+        m = (2 * x_366);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_87 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_87);
+  {
+    while(true) {
+      int x_93 = i_3;
+      switch(x_93) {
+        case 9:
+        {
+          int x_123 = i_3;
+          data[x_123] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_121 = i_3;
+          data[x_121] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_119 = i_3;
+          data[x_119] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_117 = i_3;
+          data[x_117] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_115 = i_3;
+          data[x_115] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_113 = i_3;
+          data[x_113] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_111 = i_3;
+          data[x_111] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_109 = i_3;
+          data[x_109] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_107 = i_3;
+          data[x_107] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_105 = i_3;
+          data[x_105] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_125 = i_3;
+      i_3 = (x_125 + 1);
+      {
+        int x_127 = i_3;
+        if (!((x_127 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_133 = j_1;
+      if ((x_133 < 10)) {
+      } else {
+        break;
+      }
+      int x_136 = j_1;
+      int x_137 = j_1;
+      int x_139 = data[x_137];
+      temp[x_136] = x_139;
+      {
+        int x_141 = j_1;
+        j_1 = (x_141 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_145 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_145) < 30)) {
+    int x_152 = data[0];
+    grey = (0.5f + (float(x_152) / 10.0f));
+  } else {
+    float x_157 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_157) < 60)) {
+      int x_164 = data[1];
+      grey = (0.5f + (float(x_164) / 10.0f));
+    } else {
+      float x_169 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_169) < 90)) {
+        int x_176 = data[2];
+        grey = (0.5f + (float(x_176) / 10.0f));
+      } else {
+        float x_181 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_181) < 120)) {
+          int x_188 = data[3];
+          grey = (0.5f + (float(x_188) / 10.0f));
+        } else {
+          float x_193 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_193) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_200 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_200) < 180)) {
+              int x_207 = data[5];
+              grey = (0.5f + (float(x_207) / 10.0f));
+            } else {
+              float x_212 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_212) < 210)) {
+                int x_219 = data[6];
+                grey = (0.5f + (float(x_219) / 10.0f));
+              } else {
+                float x_224 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_224) < 240)) {
+                  int x_231 = data[7];
+                  grey = (0.5f + (float(x_231) / 10.0f));
+                } else {
+                  float x_236 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_236) < 270)) {
+                    int x_243 = data[8];
+                    grey = (0.5f + (float(x_243) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_247 = grey;
+  vec3 x_248 = vec3(x_247, x_247, x_247);
+  x_GLF_color = vec4(x_248[0u], x_248[1u], x_248[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.ir.glsl
index f297654..3f5a62d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.spvasm.expected.ir.glsl
@@ -1,11 +1,311 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_281 = k;
+        k = (k + 1);
+        int x_283 = i;
+        i = (i + 1);
+        temp[x_281] = data[x_283];
+      } else {
+        int x_288 = k;
+        k = (k + 1);
+        int x_290 = j;
+        j = (j + 1);
+        temp[x_288] = data[x_290];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_306 = k;
+      k = (k + 1);
+      int x_308 = i;
+      i = (i + 1);
+      temp[x_306] = data[x_308];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_322 = i_1;
+      data[x_322] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      if ((m <= high)) {
+      } else {
+        break;
+      }
+      i_2 = low;
+      {
+        while(true) {
+          if ((i_2 < high)) {
+          } else {
+            break;
+          }
+          f_1 = i_2;
+          mid_1 = ((i_2 + m) - 1);
+          to_1 = min(((i_2 + (2 * m)) - 1), high);
+          param = f_1;
+          param_1 = mid_1;
+          param_2 = to_1;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            i_2 = (i_2 + (2 * m));
+          }
+          continue;
+        }
+      }
+      {
+        m = (2 * m);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_94 = i_3;
+      bool tint_continue = false;
+      switch(x_94) {
+        case 9:
+        {
+          int x_124 = i_3;
+          data[x_124] = -5;
+          if (true) {
+          } else {
+            tint_continue = true;
+            break;
+          }
+          break;
+        }
+        case 8:
+        {
+          int x_122 = i_3;
+          data[x_122] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_120 = i_3;
+          data[x_120] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_118 = i_3;
+          data[x_118] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_116 = i_3;
+          data[x_116] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_114 = i_3;
+          data[x_114] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_112 = i_3;
+          data[x_112] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_110 = i_3;
+          data[x_110] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_108 = i_3;
+          data[x_108] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_106 = i_3;
+          data[x_106] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      if (tint_continue) {
+        {
+          int x_128 = i_3;
+          if (!((x_128 < 10))) { break; }
+        }
+        continue;
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_128 = i_3;
+        if (!((x_128 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      if ((j_1 < 10)) {
+      } else {
+        break;
+      }
+      int x_137 = j_1;
+      temp[x_137] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            continue_execution = false;
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  if ((tint_f32_to_i32(tint_symbol.y) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_249 = vec3(grey);
+  x_GLF_color = vec4(x_249[0u], x_249[1u], x_249[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl.expected.ir.glsl
index f297654..c2a0643 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl.expected.ir.glsl
@@ -1,11 +1,375 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_255 = f;
+  k = x_255;
+  int x_256 = f;
+  i = x_256;
+  int x_257 = mid;
+  j = (x_257 + 1);
+  {
+    while(true) {
+      int x_263 = i;
+      int x_264 = mid;
+      int x_266 = j;
+      int x_267 = to;
+      if (((x_263 <= x_264) & (x_266 <= x_267))) {
+      } else {
+        break;
+      }
+      int x_271 = i;
+      int x_273 = data[x_271];
+      int x_274 = j;
+      int x_276 = data[x_274];
+      if ((x_273 < x_276)) {
+        int x_281 = k;
+        k = (x_281 + 1);
+        int x_283 = i;
+        i = (x_283 + 1);
+        int x_286 = data[x_283];
+        temp[x_281] = x_286;
+      } else {
+        int x_288 = k;
+        k = (x_288 + 1);
+        int x_290 = j;
+        j = (x_290 + 1);
+        int x_293 = data[x_290];
+        temp[x_288] = x_293;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_299 = i;
+      int x_301 = i;
+      int x_302 = mid;
+      if (((x_299 < 10) & (x_301 <= x_302))) {
+      } else {
+        break;
+      }
+      int x_306 = k;
+      k = (x_306 + 1);
+      int x_308 = i;
+      i = (x_308 + 1);
+      int x_311 = data[x_308];
+      temp[x_306] = x_311;
+      {
+      }
+      continue;
+    }
+  }
+  int x_313 = f;
+  i_1 = x_313;
+  {
+    while(true) {
+      int x_318 = i_1;
+      int x_319 = to;
+      if ((x_318 <= x_319)) {
+      } else {
+        break;
+      }
+      int x_322 = i_1;
+      int x_323 = i_1;
+      int x_325 = temp[x_323];
+      data[x_322] = x_325;
+      {
+        int x_327 = i_1;
+        i_1 = (x_327 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_334 = m;
+      int x_335 = high;
+      if ((x_334 <= x_335)) {
+      } else {
+        break;
+      }
+      int x_338 = low;
+      i_2 = x_338;
+      {
+        while(true) {
+          int x_343 = i_2;
+          int x_344 = high;
+          if ((x_343 < x_344)) {
+          } else {
+            break;
+          }
+          int x_347 = i_2;
+          f_1 = x_347;
+          int x_348 = i_2;
+          int x_349 = m;
+          mid_1 = ((x_348 + x_349) - 1);
+          int x_352 = i_2;
+          int x_353 = m;
+          int x_357 = high;
+          to_1 = min(((x_352 + (2 * x_353)) - 1), x_357);
+          int x_359 = f_1;
+          param = x_359;
+          int x_360 = mid_1;
+          param_1 = x_360;
+          int x_361 = to_1;
+          param_2 = x_361;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_363 = m;
+            int x_365 = i_2;
+            i_2 = (x_365 + (2 * x_363));
+          }
+          continue;
+        }
+      }
+      {
+        int x_367 = m;
+        m = (2 * x_367);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_88 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_88);
+  {
+    while(true) {
+      int x_94 = i_3;
+      bool tint_continue = false;
+      switch(x_94) {
+        case 9:
+        {
+          int x_124 = i_3;
+          data[x_124] = -5;
+          if (true) {
+          } else {
+            tint_continue = true;
+            break;
+          }
+          break;
+        }
+        case 8:
+        {
+          int x_122 = i_3;
+          data[x_122] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_120 = i_3;
+          data[x_120] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_118 = i_3;
+          data[x_118] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_116 = i_3;
+          data[x_116] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_114 = i_3;
+          data[x_114] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_112 = i_3;
+          data[x_112] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_110 = i_3;
+          data[x_110] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_108 = i_3;
+          data[x_108] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_106 = i_3;
+          data[x_106] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      if (tint_continue) {
+        {
+          int x_128 = i_3;
+          if (!((x_128 < 10))) { break; }
+        }
+        continue;
+      }
+      int x_126 = i_3;
+      i_3 = (x_126 + 1);
+      {
+        int x_128 = i_3;
+        if (!((x_128 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_134 = j_1;
+      if ((x_134 < 10)) {
+      } else {
+        break;
+      }
+      int x_137 = j_1;
+      int x_138 = j_1;
+      int x_140 = data[x_138];
+      temp[x_137] = x_140;
+      {
+        int x_142 = j_1;
+        j_1 = (x_142 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_146 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_146) < 30)) {
+    int x_153 = data[0];
+    grey = (0.5f + (float(x_153) / 10.0f));
+  } else {
+    float x_158 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_158) < 60)) {
+      int x_165 = data[1];
+      grey = (0.5f + (float(x_165) / 10.0f));
+    } else {
+      float x_170 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_170) < 90)) {
+        int x_177 = data[2];
+        grey = (0.5f + (float(x_177) / 10.0f));
+      } else {
+        float x_182 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_182) < 120)) {
+          int x_189 = data[3];
+          grey = (0.5f + (float(x_189) / 10.0f));
+        } else {
+          float x_194 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_194) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_201 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_201) < 180)) {
+              int x_208 = data[5];
+              grey = (0.5f + (float(x_208) / 10.0f));
+            } else {
+              float x_213 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_213) < 210)) {
+                int x_220 = data[6];
+                grey = (0.5f + (float(x_220) / 10.0f));
+              } else {
+                float x_225 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_225) < 240)) {
+                  int x_232 = data[7];
+                  grey = (0.5f + (float(x_232) / 10.0f));
+                } else {
+                  float x_237 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_237) < 270)) {
+                    int x_244 = data[8];
+                    grey = (0.5f + (float(x_244) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_248 = grey;
+  vec3 x_249 = vec3(x_248, x_248, x_248);
+  x_GLF_color = vec4(x_249[0u], x_249[1u], x_249[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.ir.glsl
index f297654..6e24368 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.spvasm.expected.ir.glsl
@@ -1,11 +1,304 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_282 = k;
+        k = (k + 1);
+        int x_284 = i;
+        i = (i + 1);
+        temp[x_282] = data[x_284];
+      } else {
+        int x_289 = k;
+        k = (k + 1);
+        int x_291 = j;
+        j = (j + 1);
+        temp[x_289] = data[x_291];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (true) {
+      } else {
+        {
+        }
+        continue;
+      }
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_309 = k;
+      k = (k + 1);
+      int x_311 = i;
+      i = (i + 1);
+      temp[x_309] = data[x_311];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_325 = i_1;
+      data[x_325] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      if ((m <= high)) {
+      } else {
+        break;
+      }
+      i_2 = low;
+      {
+        while(true) {
+          if ((i_2 < high)) {
+          } else {
+            break;
+          }
+          f_1 = i_2;
+          mid_1 = ((i_2 + m) - 1);
+          to_1 = min(((i_2 + (2 * m)) - 1), high);
+          param = f_1;
+          param_1 = mid_1;
+          param_2 = to_1;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            i_2 = (i_2 + (2 * m));
+          }
+          continue;
+        }
+      }
+      {
+        m = (2 * m);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_95 = i_3;
+      switch(x_95) {
+        case 9:
+        {
+          int x_125 = i_3;
+          data[x_125] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_123 = i_3;
+          data[x_123] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_121 = i_3;
+          data[x_121] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_119 = i_3;
+          data[x_119] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_117 = i_3;
+          data[x_117] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_115 = i_3;
+          data[x_115] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_113 = i_3;
+          data[x_113] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_111 = i_3;
+          data[x_111] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_109 = i_3;
+          data[x_109] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_107 = i_3;
+          data[x_107] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_129 = i_3;
+        if (!((x_129 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      if ((j_1 < 10)) {
+      } else {
+        break;
+      }
+      int x_138 = j_1;
+      temp[x_138] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            continue_execution = false;
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  if ((tint_f32_to_i32(tint_symbol.y) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_250 = vec3(grey);
+  x_GLF_color = vec4(x_250[0u], x_250[1u], x_250[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl.expected.ir.glsl
index f297654..a9f19c8 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl.expected.ir.glsl
@@ -1,11 +1,368 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_256 = f;
+  k = x_256;
+  int x_257 = f;
+  i = x_257;
+  int x_258 = mid;
+  j = (x_258 + 1);
+  {
+    while(true) {
+      int x_264 = i;
+      int x_265 = mid;
+      int x_267 = j;
+      int x_268 = to;
+      if (((x_264 <= x_265) & (x_267 <= x_268))) {
+      } else {
+        break;
+      }
+      int x_272 = i;
+      int x_274 = data[x_272];
+      int x_275 = j;
+      int x_277 = data[x_275];
+      if ((x_274 < x_277)) {
+        int x_282 = k;
+        k = (x_282 + 1);
+        int x_284 = i;
+        i = (x_284 + 1);
+        int x_287 = data[x_284];
+        temp[x_282] = x_287;
+      } else {
+        int x_289 = k;
+        k = (x_289 + 1);
+        int x_291 = j;
+        j = (x_291 + 1);
+        int x_294 = data[x_291];
+        temp[x_289] = x_294;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (true) {
+      } else {
+        {
+        }
+        continue;
+      }
+      int x_301 = i;
+      int x_303 = i;
+      int x_304 = mid;
+      if (((x_301 < 10) & (x_303 <= x_304))) {
+      } else {
+        break;
+      }
+      int x_309 = k;
+      k = (x_309 + 1);
+      int x_311 = i;
+      i = (x_311 + 1);
+      int x_314 = data[x_311];
+      temp[x_309] = x_314;
+      {
+      }
+      continue;
+    }
+  }
+  int x_316 = f;
+  i_1 = x_316;
+  {
+    while(true) {
+      int x_321 = i_1;
+      int x_322 = to;
+      if ((x_321 <= x_322)) {
+      } else {
+        break;
+      }
+      int x_325 = i_1;
+      int x_326 = i_1;
+      int x_328 = temp[x_326];
+      data[x_325] = x_328;
+      {
+        int x_330 = i_1;
+        i_1 = (x_330 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_337 = m;
+      int x_338 = high;
+      if ((x_337 <= x_338)) {
+      } else {
+        break;
+      }
+      int x_341 = low;
+      i_2 = x_341;
+      {
+        while(true) {
+          int x_346 = i_2;
+          int x_347 = high;
+          if ((x_346 < x_347)) {
+          } else {
+            break;
+          }
+          int x_350 = i_2;
+          f_1 = x_350;
+          int x_351 = i_2;
+          int x_352 = m;
+          mid_1 = ((x_351 + x_352) - 1);
+          int x_355 = i_2;
+          int x_356 = m;
+          int x_360 = high;
+          to_1 = min(((x_355 + (2 * x_356)) - 1), x_360);
+          int x_362 = f_1;
+          param = x_362;
+          int x_363 = mid_1;
+          param_1 = x_363;
+          int x_364 = to_1;
+          param_2 = x_364;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_366 = m;
+            int x_368 = i_2;
+            i_2 = (x_368 + (2 * x_366));
+          }
+          continue;
+        }
+      }
+      {
+        int x_370 = m;
+        m = (2 * x_370);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_89 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_89);
+  {
+    while(true) {
+      int x_95 = i_3;
+      switch(x_95) {
+        case 9:
+        {
+          int x_125 = i_3;
+          data[x_125] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_123 = i_3;
+          data[x_123] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_121 = i_3;
+          data[x_121] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_119 = i_3;
+          data[x_119] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_117 = i_3;
+          data[x_117] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_115 = i_3;
+          data[x_115] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_113 = i_3;
+          data[x_113] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_111 = i_3;
+          data[x_111] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_109 = i_3;
+          data[x_109] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_107 = i_3;
+          data[x_107] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_127 = i_3;
+      i_3 = (x_127 + 1);
+      {
+        int x_129 = i_3;
+        if (!((x_129 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_135 = j_1;
+      if ((x_135 < 10)) {
+      } else {
+        break;
+      }
+      int x_138 = j_1;
+      int x_139 = j_1;
+      int x_141 = data[x_139];
+      temp[x_138] = x_141;
+      {
+        int x_143 = j_1;
+        j_1 = (x_143 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_147 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_147) < 30)) {
+    int x_154 = data[0];
+    grey = (0.5f + (float(x_154) / 10.0f));
+  } else {
+    float x_159 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_159) < 60)) {
+      int x_166 = data[1];
+      grey = (0.5f + (float(x_166) / 10.0f));
+    } else {
+      float x_171 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_171) < 90)) {
+        int x_178 = data[2];
+        grey = (0.5f + (float(x_178) / 10.0f));
+      } else {
+        float x_183 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_183) < 120)) {
+          int x_190 = data[3];
+          grey = (0.5f + (float(x_190) / 10.0f));
+        } else {
+          float x_195 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_195) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_202 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_202) < 180)) {
+              int x_209 = data[5];
+              grey = (0.5f + (float(x_209) / 10.0f));
+            } else {
+              float x_214 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_214) < 210)) {
+                int x_221 = data[6];
+                grey = (0.5f + (float(x_221) / 10.0f));
+              } else {
+                float x_226 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_226) < 240)) {
+                  int x_233 = data[7];
+                  grey = (0.5f + (float(x_233) / 10.0f));
+                } else {
+                  float x_238 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_238) < 270)) {
+                    int x_245 = data[8];
+                    grey = (0.5f + (float(x_245) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_249 = grey;
+  vec3 x_250 = vec3(x_249, x_249, x_249);
+  x_GLF_color = vec4(x_250[0u], x_250[1u], x_250[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.spvasm.expected.ir.glsl
index f297654..58c3131 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.spvasm.expected.ir.glsl
@@ -1,11 +1,119 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 x_77[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_78[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_79[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_80[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_89 = vec4(0.0f);
+  int x_92 = 0;
+  vec2 x_87 = floor(((tint_symbol.xy / v.tint_symbol_3.resolution) * 32.0f));
+  x_89 = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  x_92 = 0;
+  {
+    while(true) {
+      bool x_121 = false;
+      vec4 x_136 = vec4(0.0f);
+      vec4 x_90 = vec4(0.0f);
+      int x_93 = 0;
+      if ((x_92 < 8)) {
+      } else {
+        break;
+      }
+      vec4 x_98 = vec4(0.0f);
+      x_77 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      x_98 = x_77[x_92];
+      switch(0u) {
+        default:
+        {
+          float x_101 = x_87[0u];
+          float x_102 = x_98.x;
+          if ((x_101 < x_102)) {
+            x_121 = false;
+            break;
+          }
+          float x_106 = x_87[1u];
+          float x_107 = x_98.y;
+          if ((x_106 < x_107)) {
+            x_121 = false;
+            break;
+          }
+          if ((x_101 > (x_102 + x_98.z))) {
+            x_121 = false;
+            break;
+          }
+          if ((x_106 > (x_107 + x_98.w))) {
+            x_121 = false;
+            break;
+          }
+          x_121 = true;
+          break;
+        }
+      }
+      x_90 = x_89;
+      if (x_121) {
+        x_78 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_125 = x_78[x_92].x;
+        x_79 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_128 = x_79[x_92].y;
+        x_80 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_125);
+        int v_3 = (v_2 * tint_f32_to_i32(x_128));
+        x_136 = x_80[tint_mod_i32(((v_3 + (x_92 * 9)) + 11), 16)];
+        x_90 = x_136;
+      }
+      {
+        x_93 = (x_92 + 1);
+        x_89 = x_90;
+        x_92 = x_93;
+      }
+      continue;
+    }
+  }
+  x_GLF_color = x_89;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl.expected.ir.glsl
index f297654..0fd9ed0 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl.expected.ir.glsl
@@ -1,11 +1,125 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 x_77[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_78[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_79[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_80[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_89 = vec4(0.0f);
+  vec4 x_89_phi = vec4(0.0f);
+  int x_92_phi = 0;
+  vec4 x_81 = tint_symbol;
+  vec2 x_84 = v.tint_symbol_3.resolution;
+  vec2 x_87 = floor(((vec2(x_81[0u], x_81[1u]) / x_84) * 32.0f));
+  x_89_phi = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  x_92_phi = 0;
+  {
+    while(true) {
+      vec4 x_136 = vec4(0.0f);
+      int x_93 = 0;
+      bool x_121_phi = false;
+      vec4 x_90_phi = vec4(0.0f);
+      x_89 = x_89_phi;
+      int x_92 = x_92_phi;
+      if ((x_92 < 8)) {
+      } else {
+        break;
+      }
+      vec4 x_98 = vec4(0.0f);
+      x_77 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      x_98 = x_77[x_92];
+      switch(0u) {
+        default:
+        {
+          float x_101 = x_87[0u];
+          float x_102 = x_98.x;
+          if ((x_101 < x_102)) {
+            x_121_phi = false;
+            break;
+          }
+          float x_106 = x_87[1u];
+          float x_107 = x_98.y;
+          if ((x_106 < x_107)) {
+            x_121_phi = false;
+            break;
+          }
+          if ((x_101 > (x_102 + x_98.z))) {
+            x_121_phi = false;
+            break;
+          }
+          if ((x_106 > (x_107 + x_98.w))) {
+            x_121_phi = false;
+            break;
+          }
+          x_121_phi = true;
+          break;
+        }
+      }
+      bool x_121 = x_121_phi;
+      x_90_phi = x_89;
+      if (x_121) {
+        x_78 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_125 = x_78[x_92].x;
+        x_79 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_128 = x_79[x_92].y;
+        x_80 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_125);
+        x_136 = x_80[tint_mod_i32((((v_2 * tint_f32_to_i32(x_128)) + (x_92 * 9)) + 11), 16)];
+        x_90_phi = x_136;
+      }
+      vec4 x_90 = x_90_phi;
+      {
+        x_93 = (x_92 + 1);
+        x_89_phi = x_90;
+        x_92_phi = x_93;
+      }
+      continue;
+    }
+  }
+  x_GLF_color = x_89;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.spvasm.expected.ir.glsl
index f297654..a3ca880 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.spvasm.expected.ir.glsl
@@ -1,11 +1,83 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int x_69 = 0;
+  int x_72 = 0;
+  vec2 x_59 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int v_2 = tint_f32_to_i32((x_59[0u] * 10.0f));
+  int x_67 = (v_2 + (tint_f32_to_i32((x_59[1u] * 10.0f)) * 10));
+  x_69 = 100;
+  x_72 = 0;
+  {
+    while(true) {
+      int x_70 = 0;
+      int x_73 = 0;
+      if ((x_72 < x_67)) {
+      } else {
+        break;
+      }
+      {
+        x_70 = tint_div_i32(((4 * x_69) * (1000 - x_69)), 1000);
+        x_73 = (x_72 + 1);
+        x_69 = x_70;
+        x_72 = x_73;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  vec4 x_80[16] = indexable;
+  indexable = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  indexable = x_80;
+  vec2 x_81 = vec2(1.0f, 0.5f);
+  x_GLF_color = indexable[tint_mod_i32(x_69, 16)];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.spvasm.expected.ir.glsl
index f297654..8e2d8a4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.spvasm.expected.ir.glsl
@@ -1,11 +1,80 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int x_69 = 0;
+  int x_72 = 0;
+  vec2 x_59 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int v_2 = tint_f32_to_i32((x_59[0u] * 10.0f));
+  int x_67 = (v_2 + (tint_f32_to_i32((x_59[1u] * 10.0f)) * 10));
+  x_69 = 100;
+  x_72 = 0;
+  {
+    while(true) {
+      int x_70 = 0;
+      int x_73 = 0;
+      if ((x_72 < x_67)) {
+      } else {
+        break;
+      }
+      {
+        x_70 = tint_div_i32(((4 * x_69) * (1000 - x_69)), 1000);
+        x_73 = (x_72 + 1);
+        x_69 = x_70;
+        x_72 = x_73;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  vec2 x_80 = vec2(1.0f, 0.5f);
+  x_GLF_color = indexable[tint_mod_i32(x_69, 16)];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.spvasm.expected.ir.glsl
index f297654..9e753f2 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.spvasm.expected.ir.glsl
@@ -1,11 +1,85 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int x_65 = 0;
+  int x_68 = 0;
+  vec2 x_57 = floor(((tint_symbol.xy / v.tint_symbol_3.resolution) * 8.0f));
+  int v_2 = (tint_f32_to_i32(x_57[0u]) * 8);
+  int x_63 = (v_2 + tint_f32_to_i32(x_57[1u]));
+  x_65 = 0;
+  x_68 = x_63;
+  {
+    while(true) {
+      int x_79 = 0;
+      int x_80 = 0;
+      int x_69 = 0;
+      if ((x_68 > 1)) {
+      } else {
+        break;
+      }
+      if (((x_68 & 1) == 1)) {
+        x_79 = ((3 * x_68) + 1);
+        x_69 = x_79;
+      } else {
+        x_80 = tint_div_i32(x_68, 2);
+        x_69 = x_80;
+      }
+      {
+        x_65 = (x_65 + 1);
+        x_68 = x_69;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  x_GLF_color = indexable[tint_mod_i32(x_65, 16)];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.spvasm.expected.ir.glsl
index f297654..d5fd75f 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.spvasm.expected.ir.glsl
@@ -1,11 +1,94 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  int x_71 = 0;
+  int x_74 = 0;
+  vec4 x_54 = tint_symbol;
+  vec2 x_55 = tint_symbol.xy;
+  vec2 x_61 = ((x_55 / v.tint_symbol_3.resolution) * 8.0f);
+  vec2 x_62 = floor(x_61);
+  int v_2 = (tint_f32_to_i32(x_62[0u]) * 8);
+  int x_69 = (v_2 + tint_f32_to_i32(x_62[1u]));
+  x_71 = 0;
+  x_74 = x_69;
+  {
+    while(true) {
+      int x_85 = 0;
+      int x_86 = 0;
+      int x_75 = 0;
+      if ((x_74 > 1)) {
+      } else {
+        break;
+      }
+      if (((x_74 & 1) == 1)) {
+        x_85 = ((3 * x_74) + 1);
+        x_75 = x_85;
+      } else {
+        x_86 = tint_div_i32(x_74, 2);
+        x_75 = x_86;
+      }
+      {
+        x_71 = (x_71 + 1);
+        x_74 = x_75;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  vec4 x_88[16] = indexable;
+  indexable = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  indexable = x_88;
+  vec4 x_89 = vec4[16](vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), x_54, vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f))[1u];
+  vec4 v_3 = vec4(0.0f, 8.0f, x_55);
+  vec4 x_90[16] = vec4[16](vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), v_3, vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(x_61, 0.5f, 1.0f));
+  x_GLF_color = indexable[tint_mod_i32(x_71, 16)];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.spvasm.expected.ir.glsl
index f297654..1683196 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.spvasm.expected.ir.glsl
@@ -1,11 +1,201 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_51 = 0.0f;
+  float x_55 = 0.0f;
+  int x_58 = 0;
+  float x_56 = 0.0f;
+  float x_81 = 0.0f;
+  float x_82 = 0.0f;
+  bool x_83 = false;
+  float x_85 = 0.0f;
+  float x_118 = 0.0f;
+  float x_119 = 0.0f;
+  float x_122 = 0.0f;
+  int x_129 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_49 = round((v.tint_symbol_3.resolution.x * 0.125f));
+  x_51 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_55 = -0.5f;
+      x_58 = 1;
+      {
+        while(true) {
+          float x_68 = 0.0f;
+          float x_76 = 0.0f;
+          int x_59 = 0;
+          x_81 = 0.0f;
+          x_82 = x_55;
+          x_83 = false;
+          if ((x_58 < 800)) {
+          } else {
+            break;
+          }
+          float x_75 = 0.0f;
+          if ((tint_mod_i32(x_58, 32) == 0)) {
+            x_68 = (x_55 + 0.40000000596046447754f);
+            x_56 = x_68;
+          } else {
+            x_76 = x_55;
+            float v_2 = float(x_58);
+            float v_3 = round(x_49);
+            float v_4 = float(x_58);
+            if (((v_2 - (v_3 * floor((v_4 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_75 = (x_55 + 100.0f);
+              x_76 = x_75;
+            }
+            x_56 = x_76;
+          }
+          float v_5 = float(x_58);
+          if ((v_5 >= x_51)) {
+            x_81 = x_56;
+            x_82 = x_56;
+            x_83 = true;
+            break;
+          }
+          {
+            x_59 = (x_58 + 1);
+            x_55 = x_56;
+            x_58 = x_59;
+          }
+          continue;
+        }
+      }
+      x_85 = x_81;
+      if (x_83) {
+        break;
+      }
+      x_85 = x_82;
+      break;
+    }
+  }
+  float x_88 = 0.0f;
+  float x_92 = 0.0f;
+  int x_95 = 0;
+  float x_93 = 0.0f;
+  bool x_120 = false;
+  c[0u] = x_85;
+  x_88 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      x_92 = -0.5f;
+      x_95 = 1;
+      {
+        while(true) {
+          float x_113 = 0.0f;
+          float x_112 = 0.0f;
+          int x_96 = 0;
+          x_118 = 0.0f;
+          x_119 = x_92;
+          x_120 = false;
+          if ((x_95 < 800)) {
+          } else {
+            break;
+          }
+          float x_111 = 0.0f;
+          if ((tint_mod_i32(x_95, 32) == 0)) {
+            x_113 = (x_92 + 0.40000000596046447754f);
+            x_93 = x_113;
+          } else {
+            x_112 = x_92;
+            float v_6 = float(x_95);
+            float v_7 = round(x_49);
+            float v_8 = float(x_95);
+            if (((v_6 - (v_7 * floor((v_8 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_111 = (x_92 + 100.0f);
+              x_112 = x_111;
+            }
+            x_93 = x_112;
+          }
+          float v_9 = float(x_95);
+          if ((v_9 >= x_88)) {
+            x_118 = x_93;
+            x_119 = x_93;
+            x_120 = true;
+            break;
+          }
+          {
+            x_96 = (x_95 + 1);
+            x_92 = x_93;
+            x_95 = x_96;
+          }
+          continue;
+        }
+      }
+      x_122 = x_118;
+      if (x_120) {
+        break;
+      }
+      x_122 = x_119;
+      break;
+    }
+  }
+  c[1u] = x_122;
+  c[2u] = (c.x + c.y);
+  x_129 = 0;
+  {
+    while(true) {
+      int x_130 = 0;
+      if ((x_129 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[x_129] >= 1.0f)) {
+        c[x_129] = (c[x_129] * c[x_129]);
+      }
+      {
+        x_130 = (x_129 + 1);
+        x_129 = x_130;
+      }
+      continue;
+    }
+  }
+  vec3 x_145 = normalize(abs(c));
+  x_GLF_color = vec4(x_145[0u], x_145[1u], x_145[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl.expected.ir.glsl
index f297654..d4a8a27 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl.expected.ir.glsl
@@ -1,11 +1,235 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_51 = 0.0f;
+  float x_55 = 0.0f;
+  float x_56 = 0.0f;
+  float x_81 = 0.0f;
+  float x_82 = 0.0f;
+  float x_118 = 0.0f;
+  float x_119 = 0.0f;
+  float x_55_phi = 0.0f;
+  int x_58_phi = 0;
+  float x_81_phi = 0.0f;
+  float x_82_phi = 0.0f;
+  bool x_83_phi = false;
+  float x_85_phi = 0.0f;
+  float x_122_phi = 0.0f;
+  int x_129_phi = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_47 = v.tint_symbol_3.resolution.x;
+  float x_49 = round((x_47 * 0.125f));
+  x_51 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_55_phi = -0.5f;
+      x_58_phi = 1;
+      {
+        while(true) {
+          float x_68 = 0.0f;
+          float x_76 = 0.0f;
+          int x_59 = 0;
+          float x_56_phi = 0.0f;
+          x_55 = x_55_phi;
+          int x_58 = x_58_phi;
+          x_81_phi = 0.0f;
+          x_82_phi = x_55;
+          x_83_phi = false;
+          if ((x_58 < 800)) {
+          } else {
+            break;
+          }
+          float x_75 = 0.0f;
+          float x_76_phi = 0.0f;
+          if ((tint_mod_i32(x_58, 32) == 0)) {
+            x_68 = (x_55 + 0.40000000596046447754f);
+            x_56_phi = x_68;
+          } else {
+            x_76_phi = x_55;
+            float v_2 = float(x_58);
+            float v_3 = round(x_49);
+            float v_4 = float(x_58);
+            if (((v_2 - (v_3 * floor((v_4 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_75 = (x_55 + 100.0f);
+              x_76_phi = x_75;
+            }
+            x_76 = x_76_phi;
+            x_56_phi = x_76;
+          }
+          x_56 = x_56_phi;
+          float v_5 = float(x_58);
+          if ((v_5 >= x_51)) {
+            x_81_phi = x_56;
+            x_82_phi = x_56;
+            x_83_phi = true;
+            break;
+          }
+          {
+            x_59 = (x_58 + 1);
+            x_55_phi = x_56;
+            x_58_phi = x_59;
+          }
+          continue;
+        }
+      }
+      x_81 = x_81_phi;
+      x_82 = x_82_phi;
+      bool x_83 = x_83_phi;
+      x_85_phi = x_81;
+      if (x_83) {
+        break;
+      }
+      x_85_phi = x_82;
+      break;
+    }
+  }
+  float x_88 = 0.0f;
+  float x_92 = 0.0f;
+  float x_93 = 0.0f;
+  float x_92_phi = 0.0f;
+  int x_95_phi = 0;
+  float x_118_phi = 0.0f;
+  float x_119_phi = 0.0f;
+  bool x_120_phi = false;
+  float x_85 = x_85_phi;
+  c[0u] = x_85;
+  x_88 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      x_92_phi = -0.5f;
+      x_95_phi = 1;
+      {
+        while(true) {
+          float x_113 = 0.0f;
+          float x_112 = 0.0f;
+          int x_96 = 0;
+          float x_93_phi = 0.0f;
+          x_92 = x_92_phi;
+          int x_95 = x_95_phi;
+          x_118_phi = 0.0f;
+          x_119_phi = x_92;
+          x_120_phi = false;
+          if ((x_95 < 800)) {
+          } else {
+            break;
+          }
+          float x_111 = 0.0f;
+          float x_112_phi = 0.0f;
+          if ((tint_mod_i32(x_95, 32) == 0)) {
+            x_113 = (x_92 + 0.40000000596046447754f);
+            x_93_phi = x_113;
+          } else {
+            x_112_phi = x_92;
+            float v_6 = float(x_95);
+            float v_7 = round(x_49);
+            float v_8 = float(x_95);
+            if (((v_6 - (v_7 * floor((v_8 / round(x_49))))) <= 0.00999999977648258209f)) {
+              x_111 = (x_92 + 100.0f);
+              x_112_phi = x_111;
+            }
+            x_112 = x_112_phi;
+            x_93_phi = x_112;
+          }
+          x_93 = x_93_phi;
+          float v_9 = float(x_95);
+          if ((v_9 >= x_88)) {
+            x_118_phi = x_93;
+            x_119_phi = x_93;
+            x_120_phi = true;
+            break;
+          }
+          {
+            x_96 = (x_95 + 1);
+            x_92_phi = x_93;
+            x_95_phi = x_96;
+          }
+          continue;
+        }
+      }
+      x_118 = x_118_phi;
+      x_119 = x_119_phi;
+      bool x_120 = x_120_phi;
+      x_122_phi = x_118;
+      if (x_120) {
+        break;
+      }
+      x_122_phi = x_119;
+      break;
+    }
+  }
+  float x_122 = x_122_phi;
+  c[1u] = x_122;
+  float x_124 = c.x;
+  float x_125 = c.y;
+  c[2u] = (x_124 + x_125);
+  x_129_phi = 0;
+  {
+    while(true) {
+      int x_130 = 0;
+      int x_129 = x_129_phi;
+      if ((x_129 < 3)) {
+      } else {
+        break;
+      }
+      float x_136 = c[x_129];
+      if ((x_136 >= 1.0f)) {
+        float x_140 = c[x_129];
+        float x_141 = c[x_129];
+        c[x_129] = (x_140 * x_141);
+      }
+      {
+        x_130 = (x_129 + 1);
+        x_129_phi = x_130;
+      }
+      continue;
+    }
+  }
+  vec3 x_143 = c;
+  vec3 x_145 = normalize(abs(x_143));
+  x_GLF_color = vec4(x_145[0u], x_145[1u], x_145[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.ir.glsl
index f297654..30d99f2 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.spvasm.expected.ir.glsl
@@ -1,11 +1,335 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  pos = (tint_symbol.xy / v_1.tint_symbol_3.resolution);
+  int v_3 = tint_f32_to_i32((pos.x * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((pos.y * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      if ((i < 256)) {
+      } else {
+        break;
+      }
+      int x_80 = i;
+      map[x_80] = 0;
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_104 = false;
+      bool x_105 = false;
+      bool x_124 = false;
+      bool x_125 = false;
+      bool x_144 = false;
+      bool x_145 = false;
+      bool x_164 = false;
+      bool x_165 = false;
+      v = (v + 1);
+      directions = 0;
+      bool x_92 = (p.x > 0);
+      x_105 = x_92;
+      if (x_92) {
+        x_104 = (map[((p.x - 2) + (p.y * 16))] == 0);
+        x_105 = x_104;
+      }
+      if (x_105) {
+        directions = (directions + 1);
+      }
+      bool x_112 = (p.y > 0);
+      x_125 = x_112;
+      if (x_112) {
+        x_124 = (map[(p.x + ((p.y - 2) * 16))] == 0);
+        x_125 = x_124;
+      }
+      if (x_125) {
+        directions = (directions + 1);
+      }
+      bool x_132 = (p.x < 14);
+      x_145 = x_132;
+      if (x_132) {
+        x_144 = (map[((p.x + 2) + (p.y * 16))] == 0);
+        x_145 = x_144;
+      }
+      if (x_145) {
+        directions = (directions + 1);
+      }
+      bool x_152 = (p.y < 14);
+      x_165 = x_152;
+      if (x_152) {
+        x_164 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+        x_165 = x_164;
+      }
+      if (x_165) {
+        directions = (directions + 1);
+      }
+      bool x_229 = false;
+      bool x_230 = false;
+      bool x_242 = false;
+      bool x_243 = false;
+      bool x_281 = false;
+      bool x_282 = false;
+      int x_288 = 0;
+      int x_289 = 0;
+      int x_290 = 0;
+      int x_295 = 0;
+      int x_296 = 0;
+      int x_297 = 0;
+      int x_303[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+      int x_304[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+      int x_305[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+      int x_315 = 0;
+      int x_316 = 0;
+      int x_317 = 0;
+      bool x_359 = false;
+      bool x_360 = false;
+      bool x_372 = false;
+      bool x_373 = false;
+      bool x_411 = false;
+      bool x_412 = false;
+      bool x_424 = false;
+      bool x_425 = false;
+      if ((directions == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            if ((i < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            {
+              while(true) {
+                if ((j < 8)) {
+                } else {
+                  break;
+                }
+                if ((map[((j * 2) + ((i * 2) * 16))] == 0)) {
+                  p[0u] = (j * 2);
+                  p[1u] = (i * 2);
+                  canwalk = true;
+                }
+                {
+                  j = (j + 1);
+                }
+                continue;
+              }
+            }
+            {
+              i = (i + 1);
+            }
+            continue;
+          }
+        }
+        int x_211 = p.x;
+        int x_213 = p.y;
+        map[(x_211 + (x_213 * 16))] = 1;
+      } else {
+        d = tint_mod_i32(v, directions);
+        v = (v + directions);
+        bool x_224 = (d >= 0);
+        x_230 = x_224;
+        if (x_224) {
+          x_229 = (p.x > 0);
+          x_230 = x_229;
+        }
+        x_243 = x_230;
+        if (x_230) {
+          x_242 = (map[((p.x - 2) + (p.y * 16))] == 0);
+          x_243 = x_242;
+        }
+        if (x_243) {
+          d = (d - 1);
+          int x_249 = p.x;
+          int x_251 = p.y;
+          map[(x_249 + (x_251 * 16))] = 1;
+          int x_256 = p.x;
+          int x_259 = p.y;
+          map[((x_256 - 1) + (x_259 * 16))] = 1;
+          int x_264 = p.x;
+          int x_267 = p.y;
+          map[((x_264 - 2) + (x_267 * 16))] = 1;
+          p[0u] = (p.x - 2);
+        }
+        bool x_276 = (d >= 0);
+        x_282 = x_276;
+        if (x_276) {
+          x_281 = (p.y > 0);
+          x_282 = x_281;
+        }
+        if (x_282) {
+          x_288 = p.x;
+          x_290 = x_288;
+        } else {
+          x_289 = 0;
+          x_290 = x_289;
+        }
+        if (x_282) {
+          x_295 = p.y;
+          x_297 = x_295;
+        } else {
+          x_296 = 0;
+          x_297 = x_296;
+        }
+        int x_299 = ((x_297 - 2) * 16);
+        if (x_282) {
+          x_303 = map;
+          x_305 = x_303;
+        } else {
+          x_304 = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          x_305 = x_304;
+        }
+        if (x_282) {
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+        }
+        if (x_282) {
+          map = x_305;
+        }
+        if (x_282) {
+          x_315 = map[(x_290 + x_299)];
+          x_317 = x_315;
+        } else {
+          x_316 = 0;
+          x_317 = x_316;
+        }
+        if (((x_282) ? ((x_317 == 0)) : (x_282))) {
+          d = (d - 1);
+          int x_326 = p.x;
+          int x_328 = p.y;
+          map[(x_326 + (x_328 * 16))] = 1;
+          int x_333 = p.x;
+          int x_335 = p.y;
+          map[(x_333 + ((x_335 - 1) * 16))] = 1;
+          int x_341 = p.x;
+          int x_343 = p.y;
+          int x_345[256] = map;
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          map = x_345;
+          map[(x_341 + ((x_343 - 2) * 16))] = 1;
+          p[1u] = (p.y - 2);
+        }
+        bool x_354 = (d >= 0);
+        x_360 = x_354;
+        if (x_354) {
+          x_359 = (p.x < 14);
+          x_360 = x_359;
+        }
+        x_373 = x_360;
+        if (x_360) {
+          x_372 = (map[((p.x + 2) + (p.y * 16))] == 0);
+          x_373 = x_372;
+        }
+        if (x_373) {
+          d = (d - 1);
+          int x_379 = p.x;
+          int x_381 = p.y;
+          map[(x_379 + (x_381 * 16))] = 1;
+          int x_386 = p.x;
+          int x_389 = p.y;
+          map[((x_386 + 1) + (x_389 * 16))] = 1;
+          int x_394 = p.x;
+          int x_397 = p.y;
+          map[((x_394 + 2) + (x_397 * 16))] = 1;
+          p[0u] = (p.x + 2);
+        }
+        bool x_406 = (d >= 0);
+        x_412 = x_406;
+        if (x_406) {
+          x_411 = (p.y < 14);
+          x_412 = x_411;
+        }
+        x_425 = x_412;
+        if (x_412) {
+          x_424 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+          x_425 = x_424;
+        }
+        if (x_425) {
+          d = (d - 1);
+          int x_431 = p.x;
+          int x_433 = p.y;
+          map[(x_431 + (x_433 * 16))] = 1;
+          int x_438 = p.x;
+          int x_440 = p.y;
+          map[(x_438 + ((x_440 + 1) * 16))] = 1;
+          int x_446 = p.x;
+          int x_448 = p.y;
+          map[(x_446 + ((x_448 + 2) * 16))] = 1;
+          p[1u] = (p.y + 2);
+        }
+      }
+      if ((map[((ipos.y * 16) + ipos.x)] == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_468 = canwalk;
+        if (!(x_468)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.ir.glsl
index f297654..cfed6fb 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl.expected.ir.glsl
@@ -1,11 +1,420 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  vec4 x_59 = tint_symbol;
+  vec2 x_62 = v_1.tint_symbol_3.resolution;
+  pos = (vec2(x_59[0u], x_59[1u]) / x_62);
+  float x_65 = pos.x;
+  float x_69 = pos.y;
+  int v_3 = tint_f32_to_i32((x_65 * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((x_69 * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      int x_77 = i;
+      if ((x_77 < 256)) {
+      } else {
+        break;
+      }
+      int x_80 = i;
+      map[x_80] = 0;
+      {
+        int x_82 = i;
+        i = (x_82 + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_104 = false;
+      bool x_124 = false;
+      bool x_144 = false;
+      bool x_164 = false;
+      bool x_105_phi = false;
+      bool x_125_phi = false;
+      bool x_145_phi = false;
+      bool x_165_phi = false;
+      int x_88 = v;
+      v = (x_88 + 1);
+      directions = 0;
+      int x_91 = p.x;
+      bool x_92 = (x_91 > 0);
+      x_105_phi = x_92;
+      if (x_92) {
+        int x_96 = p.x;
+        int x_99 = p.y;
+        int x_103 = map[((x_96 - 2) + (x_99 * 16))];
+        x_104 = (x_103 == 0);
+        x_105_phi = x_104;
+      }
+      bool x_105 = x_105_phi;
+      if (x_105) {
+        int x_108 = directions;
+        directions = (x_108 + 1);
+      }
+      int x_111 = p.y;
+      bool x_112 = (x_111 > 0);
+      x_125_phi = x_112;
+      if (x_112) {
+        int x_116 = p.x;
+        int x_118 = p.y;
+        int x_123 = map[(x_116 + ((x_118 - 2) * 16))];
+        x_124 = (x_123 == 0);
+        x_125_phi = x_124;
+      }
+      bool x_125 = x_125_phi;
+      if (x_125) {
+        int x_128 = directions;
+        directions = (x_128 + 1);
+      }
+      int x_131 = p.x;
+      bool x_132 = (x_131 < 14);
+      x_145_phi = x_132;
+      if (x_132) {
+        int x_136 = p.x;
+        int x_139 = p.y;
+        int x_143 = map[((x_136 + 2) + (x_139 * 16))];
+        x_144 = (x_143 == 0);
+        x_145_phi = x_144;
+      }
+      bool x_145 = x_145_phi;
+      if (x_145) {
+        int x_148 = directions;
+        directions = (x_148 + 1);
+      }
+      int x_151 = p.y;
+      bool x_152 = (x_151 < 14);
+      x_165_phi = x_152;
+      if (x_152) {
+        int x_156 = p.x;
+        int x_158 = p.y;
+        int x_163 = map[(x_156 + ((x_158 + 2) * 16))];
+        x_164 = (x_163 == 0);
+        x_165_phi = x_164;
+      }
+      bool x_165 = x_165_phi;
+      if (x_165) {
+        int x_168 = directions;
+        directions = (x_168 + 1);
+      }
+      bool x_229 = false;
+      bool x_242 = false;
+      bool x_281 = false;
+      int x_288 = 0;
+      int x_289 = 0;
+      int x_295 = 0;
+      int x_296 = 0;
+      int x_303[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+      int x_304[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+      int x_315 = 0;
+      int x_316 = 0;
+      bool x_359 = false;
+      bool x_372 = false;
+      bool x_411 = false;
+      bool x_424 = false;
+      bool x_230_phi = false;
+      bool x_243_phi = false;
+      bool x_282_phi = false;
+      int x_290_phi = 0;
+      int x_297_phi = 0;
+      int x_305_phi[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+      int x_317_phi = 0;
+      bool x_360_phi = false;
+      bool x_373_phi = false;
+      bool x_412_phi = false;
+      bool x_425_phi = false;
+      int x_170 = directions;
+      if ((x_170 == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            int x_179 = i;
+            if ((x_179 < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            {
+              while(true) {
+                int x_186 = j;
+                if ((x_186 < 8)) {
+                } else {
+                  break;
+                }
+                int x_189 = j;
+                int x_191 = i;
+                int x_196 = map[((x_189 * 2) + ((x_191 * 2) * 16))];
+                if ((x_196 == 0)) {
+                  int x_200 = j;
+                  p[0u] = (x_200 * 2);
+                  int x_203 = i;
+                  p[1u] = (x_203 * 2);
+                  canwalk = true;
+                }
+                {
+                  int x_206 = j;
+                  j = (x_206 + 1);
+                }
+                continue;
+              }
+            }
+            {
+              int x_208 = i;
+              i = (x_208 + 1);
+            }
+            continue;
+          }
+        }
+        int x_211 = p.x;
+        int x_213 = p.y;
+        map[(x_211 + (x_213 * 16))] = 1;
+      } else {
+        int x_217 = v;
+        int x_218 = directions;
+        d = tint_mod_i32(x_217, x_218);
+        int x_220 = directions;
+        int x_221 = v;
+        v = (x_221 + x_220);
+        int x_223 = d;
+        bool x_224 = (x_223 >= 0);
+        x_230_phi = x_224;
+        if (x_224) {
+          int x_228 = p.x;
+          x_229 = (x_228 > 0);
+          x_230_phi = x_229;
+        }
+        bool x_230 = x_230_phi;
+        x_243_phi = x_230;
+        if (x_230) {
+          int x_234 = p.x;
+          int x_237 = p.y;
+          int x_241 = map[((x_234 - 2) + (x_237 * 16))];
+          x_242 = (x_241 == 0);
+          x_243_phi = x_242;
+        }
+        bool x_243 = x_243_phi;
+        if (x_243) {
+          int x_246 = d;
+          d = (x_246 - 1);
+          int x_249 = p.x;
+          int x_251 = p.y;
+          map[(x_249 + (x_251 * 16))] = 1;
+          int x_256 = p.x;
+          int x_259 = p.y;
+          map[((x_256 - 1) + (x_259 * 16))] = 1;
+          int x_264 = p.x;
+          int x_267 = p.y;
+          map[((x_264 - 2) + (x_267 * 16))] = 1;
+          int x_272 = p.x;
+          p[0u] = (x_272 - 2);
+        }
+        int x_275 = d;
+        bool x_276 = (x_275 >= 0);
+        x_282_phi = x_276;
+        if (x_276) {
+          int x_280 = p.y;
+          x_281 = (x_280 > 0);
+          x_282_phi = x_281;
+        }
+        bool x_282 = x_282_phi;
+        if (x_282) {
+          x_288 = p.x;
+          x_290_phi = x_288;
+        } else {
+          x_289 = 0;
+          x_290_phi = x_289;
+        }
+        int x_290 = x_290_phi;
+        if (x_282) {
+          x_295 = p.y;
+          x_297_phi = x_295;
+        } else {
+          x_296 = 0;
+          x_297_phi = x_296;
+        }
+        int x_297 = x_297_phi;
+        int x_299 = ((x_297 - 2) * 16);
+        if (x_282) {
+          x_303 = map;
+          x_305_phi = x_303;
+        } else {
+          x_304 = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          x_305_phi = x_304;
+        }
+        int x_305[256] = x_305_phi;
+        if (x_282) {
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+        }
+        if (x_282) {
+          map = x_305;
+        }
+        if (x_282) {
+          x_315 = map[(x_290 + x_299)];
+          x_317_phi = x_315;
+        } else {
+          x_316 = 0;
+          x_317_phi = x_316;
+        }
+        int x_317 = x_317_phi;
+        bool x_318 = (x_317 == 0);
+        if (((x_282) ? (x_318) : (x_282))) {
+          int x_323 = d;
+          d = (x_323 - 1);
+          int x_326 = p.x;
+          int x_328 = p.y;
+          map[(x_326 + (x_328 * 16))] = 1;
+          int x_333 = p.x;
+          int x_335 = p.y;
+          map[(x_333 + ((x_335 - 1) * 16))] = 1;
+          int x_341 = p.x;
+          int x_343 = p.y;
+          int x_345[256] = map;
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          map = x_345;
+          map[(x_341 + ((x_343 - 2) * 16))] = 1;
+          int x_350 = p.y;
+          p[1u] = (x_350 - 2);
+        }
+        int x_353 = d;
+        bool x_354 = (x_353 >= 0);
+        x_360_phi = x_354;
+        if (x_354) {
+          int x_358 = p.x;
+          x_359 = (x_358 < 14);
+          x_360_phi = x_359;
+        }
+        bool x_360 = x_360_phi;
+        x_373_phi = x_360;
+        if (x_360) {
+          int x_364 = p.x;
+          int x_367 = p.y;
+          int x_371 = map[((x_364 + 2) + (x_367 * 16))];
+          x_372 = (x_371 == 0);
+          x_373_phi = x_372;
+        }
+        bool x_373 = x_373_phi;
+        if (x_373) {
+          int x_376 = d;
+          d = (x_376 - 1);
+          int x_379 = p.x;
+          int x_381 = p.y;
+          map[(x_379 + (x_381 * 16))] = 1;
+          int x_386 = p.x;
+          int x_389 = p.y;
+          map[((x_386 + 1) + (x_389 * 16))] = 1;
+          int x_394 = p.x;
+          int x_397 = p.y;
+          map[((x_394 + 2) + (x_397 * 16))] = 1;
+          int x_402 = p.x;
+          p[0u] = (x_402 + 2);
+        }
+        int x_405 = d;
+        bool x_406 = (x_405 >= 0);
+        x_412_phi = x_406;
+        if (x_406) {
+          int x_410 = p.y;
+          x_411 = (x_410 < 14);
+          x_412_phi = x_411;
+        }
+        bool x_412 = x_412_phi;
+        x_425_phi = x_412;
+        if (x_412) {
+          int x_416 = p.x;
+          int x_418 = p.y;
+          int x_423 = map[(x_416 + ((x_418 + 2) * 16))];
+          x_424 = (x_423 == 0);
+          x_425_phi = x_424;
+        }
+        bool x_425 = x_425_phi;
+        if (x_425) {
+          int x_428 = d;
+          d = (x_428 - 1);
+          int x_431 = p.x;
+          int x_433 = p.y;
+          map[(x_431 + (x_433 * 16))] = 1;
+          int x_438 = p.x;
+          int x_440 = p.y;
+          map[(x_438 + ((x_440 + 1) * 16))] = 1;
+          int x_446 = p.x;
+          int x_448 = p.y;
+          map[(x_446 + ((x_448 + 2) * 16))] = 1;
+          int x_454 = p.y;
+          p[1u] = (x_454 + 2);
+        }
+      }
+      int x_458 = ipos.y;
+      int x_461 = ipos.x;
+      int x_464 = map[((x_458 * 16) + x_461)];
+      if ((x_464 == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_468 = canwalk;
+        if (!(x_468)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.spvasm.expected.ir.glsl
index f297654..22c8487 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.spvasm.expected.ir.glsl
@@ -1,11 +1,300 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  pos = (tint_symbol.xy / v_1.tint_symbol_3.resolution);
+  int v_3 = tint_f32_to_i32((pos.x * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((pos.y * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      if ((i < 256)) {
+      } else {
+        break;
+      }
+      int x_80 = i;
+      map[x_80] = 0;
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_104 = false;
+      bool x_105 = false;
+      bool x_124 = false;
+      bool x_125 = false;
+      bool x_144 = false;
+      bool x_145 = false;
+      bool x_164 = false;
+      bool x_165 = false;
+      v = (v + 1);
+      directions = 0;
+      bool x_92 = (p.x > 0);
+      x_105 = x_92;
+      if (x_92) {
+        x_104 = (map[((p.x - 2) + (p.y * 16))] == 0);
+        x_105 = x_104;
+      }
+      if (x_105) {
+        directions = (directions + 1);
+      }
+      bool x_112 = (p.y > 0);
+      x_125 = x_112;
+      if (x_112) {
+        x_124 = (map[(p.x + ((p.y - 2) * 16))] == 0);
+        x_125 = x_124;
+      }
+      if (x_125) {
+        directions = (directions + 1);
+      }
+      bool x_132 = (p.x < 14);
+      x_145 = x_132;
+      if (x_132) {
+        x_144 = (map[((p.x + 2) + (p.y * 16))] == 0);
+        x_145 = x_144;
+      }
+      if (x_145) {
+        directions = (directions + 1);
+      }
+      bool x_152 = (p.y < 14);
+      x_165 = x_152;
+      if (x_152) {
+        x_164 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+        x_165 = x_164;
+      }
+      if (x_165) {
+        directions = (directions + 1);
+      }
+      bool x_229 = false;
+      bool x_230 = false;
+      bool x_242 = false;
+      bool x_243 = false;
+      bool x_281 = false;
+      bool x_282 = false;
+      bool x_295 = false;
+      bool x_296 = false;
+      bool x_335 = false;
+      bool x_336 = false;
+      bool x_348 = false;
+      bool x_349 = false;
+      bool x_387 = false;
+      bool x_388 = false;
+      bool x_400 = false;
+      bool x_401 = false;
+      if ((directions == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            if ((i < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            {
+              while(true) {
+                if ((j < 8)) {
+                } else {
+                  break;
+                }
+                if ((map[((j * 2) + ((i * 2) * 16))] == 0)) {
+                  p[0u] = (j * 2);
+                  p[1u] = (i * 2);
+                  canwalk = true;
+                }
+                {
+                  j = (j + 1);
+                }
+                continue;
+              }
+            }
+            {
+              i = (i + 1);
+            }
+            continue;
+          }
+        }
+        int x_211 = p.x;
+        int x_213 = p.y;
+        map[(x_211 + (x_213 * 16))] = 1;
+      } else {
+        d = tint_mod_i32(v, directions);
+        v = (v + directions);
+        bool x_224 = (d >= 0);
+        x_230 = x_224;
+        if (x_224) {
+          x_229 = (p.x > 0);
+          x_230 = x_229;
+        }
+        x_243 = x_230;
+        if (x_230) {
+          x_242 = (map[((p.x - 2) + (p.y * 16))] == 0);
+          x_243 = x_242;
+        }
+        if (x_243) {
+          d = (d - 1);
+          int x_249 = p.x;
+          int x_251 = p.y;
+          map[(x_249 + (x_251 * 16))] = 1;
+          int x_256 = p.x;
+          int x_259 = p.y;
+          map[((x_256 - 1) + (x_259 * 16))] = 1;
+          int x_264 = p.x;
+          int x_267 = p.y;
+          map[((x_264 - 2) + (x_267 * 16))] = 1;
+          p[0u] = (p.x - 2);
+        }
+        bool x_276 = (d >= 0);
+        x_282 = x_276;
+        if (x_276) {
+          x_281 = (p.y > 0);
+          x_282 = x_281;
+        }
+        x_296 = x_282;
+        if (x_282) {
+          int x_286 = p.x;
+          int x_288 = p.y;
+          int x_291[256] = map;
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          map = x_291;
+          x_295 = (map[(x_286 + ((x_288 - 2) * 16))] == 0);
+          x_296 = x_295;
+        }
+        if (x_296) {
+          d = (d - 1);
+          int x_302 = p.x;
+          int x_304 = p.y;
+          map[(x_302 + (x_304 * 16))] = 1;
+          int x_309 = p.x;
+          int x_311 = p.y;
+          map[(x_309 + ((x_311 - 1) * 16))] = 1;
+          int x_317 = p.x;
+          int x_319 = p.y;
+          int x_321[256] = map;
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          map = x_321;
+          map[(x_317 + ((x_319 - 2) * 16))] = 1;
+          p[1u] = (p.y - 2);
+        }
+        bool x_330 = (d >= 0);
+        x_336 = x_330;
+        if (x_330) {
+          x_335 = (p.x < 14);
+          x_336 = x_335;
+        }
+        x_349 = x_336;
+        if (x_336) {
+          x_348 = (map[((p.x + 2) + (p.y * 16))] == 0);
+          x_349 = x_348;
+        }
+        if (x_349) {
+          d = (d - 1);
+          int x_355 = p.x;
+          int x_357 = p.y;
+          map[(x_355 + (x_357 * 16))] = 1;
+          int x_362 = p.x;
+          int x_365 = p.y;
+          map[((x_362 + 1) + (x_365 * 16))] = 1;
+          int x_370 = p.x;
+          int x_373 = p.y;
+          map[((x_370 + 2) + (x_373 * 16))] = 1;
+          p[0u] = (p.x + 2);
+        }
+        bool x_382 = (d >= 0);
+        x_388 = x_382;
+        if (x_382) {
+          x_387 = (p.y < 14);
+          x_388 = x_387;
+        }
+        x_401 = x_388;
+        if (x_388) {
+          x_400 = (map[(p.x + ((p.y + 2) * 16))] == 0);
+          x_401 = x_400;
+        }
+        if (x_401) {
+          d = (d - 1);
+          int x_407 = p.x;
+          int x_409 = p.y;
+          map[(x_407 + (x_409 * 16))] = 1;
+          int x_414 = p.x;
+          int x_416 = p.y;
+          map[(x_414 + ((x_416 + 1) * 16))] = 1;
+          int x_422 = p.x;
+          int x_424 = p.y;
+          map[(x_422 + ((x_424 + 2) * 16))] = 1;
+          p[1u] = (p.y + 2);
+        }
+      }
+      if ((map[((ipos.y * 16) + ipos.x)] == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_444 = canwalk;
+        if (!(x_444)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl.expected.ir.glsl
index f297654..4493c6b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl.expected.ir.glsl
@@ -1,11 +1,382 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+int map[256] = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 pos = vec2(0.0f);
+  ivec2 ipos = ivec2(0);
+  int i = 0;
+  ivec2 p = ivec2(0);
+  bool canwalk = false;
+  int v = 0;
+  int directions = 0;
+  int j = 0;
+  int d = 0;
+  vec4 x_59 = tint_symbol;
+  vec2 x_62 = v_1.tint_symbol_3.resolution;
+  pos = (vec2(x_59[0u], x_59[1u]) / x_62);
+  float x_65 = pos.x;
+  float x_69 = pos.y;
+  int v_3 = tint_f32_to_i32((x_65 * 16.0f));
+  ipos = ivec2(v_3, tint_f32_to_i32((x_69 * 16.0f)));
+  i = 0;
+  {
+    while(true) {
+      int x_77 = i;
+      if ((x_77 < 256)) {
+      } else {
+        break;
+      }
+      int x_80 = i;
+      map[x_80] = 0;
+      {
+        int x_82 = i;
+        i = (x_82 + 1);
+      }
+      continue;
+    }
+  }
+  p = ivec2(0);
+  canwalk = true;
+  v = 0;
+  {
+    while(true) {
+      bool x_104 = false;
+      bool x_124 = false;
+      bool x_144 = false;
+      bool x_164 = false;
+      bool x_105_phi = false;
+      bool x_125_phi = false;
+      bool x_145_phi = false;
+      bool x_165_phi = false;
+      int x_88 = v;
+      v = (x_88 + 1);
+      directions = 0;
+      int x_91 = p.x;
+      bool x_92 = (x_91 > 0);
+      x_105_phi = x_92;
+      if (x_92) {
+        int x_96 = p.x;
+        int x_99 = p.y;
+        int x_103 = map[((x_96 - 2) + (x_99 * 16))];
+        x_104 = (x_103 == 0);
+        x_105_phi = x_104;
+      }
+      bool x_105 = x_105_phi;
+      if (x_105) {
+        int x_108 = directions;
+        directions = (x_108 + 1);
+      }
+      int x_111 = p.y;
+      bool x_112 = (x_111 > 0);
+      x_125_phi = x_112;
+      if (x_112) {
+        int x_116 = p.x;
+        int x_118 = p.y;
+        int x_123 = map[(x_116 + ((x_118 - 2) * 16))];
+        x_124 = (x_123 == 0);
+        x_125_phi = x_124;
+      }
+      bool x_125 = x_125_phi;
+      if (x_125) {
+        int x_128 = directions;
+        directions = (x_128 + 1);
+      }
+      int x_131 = p.x;
+      bool x_132 = (x_131 < 14);
+      x_145_phi = x_132;
+      if (x_132) {
+        int x_136 = p.x;
+        int x_139 = p.y;
+        int x_143 = map[((x_136 + 2) + (x_139 * 16))];
+        x_144 = (x_143 == 0);
+        x_145_phi = x_144;
+      }
+      bool x_145 = x_145_phi;
+      if (x_145) {
+        int x_148 = directions;
+        directions = (x_148 + 1);
+      }
+      int x_151 = p.y;
+      bool x_152 = (x_151 < 14);
+      x_165_phi = x_152;
+      if (x_152) {
+        int x_156 = p.x;
+        int x_158 = p.y;
+        int x_163 = map[(x_156 + ((x_158 + 2) * 16))];
+        x_164 = (x_163 == 0);
+        x_165_phi = x_164;
+      }
+      bool x_165 = x_165_phi;
+      if (x_165) {
+        int x_168 = directions;
+        directions = (x_168 + 1);
+      }
+      bool x_229 = false;
+      bool x_242 = false;
+      bool x_281 = false;
+      bool x_295 = false;
+      bool x_335 = false;
+      bool x_348 = false;
+      bool x_387 = false;
+      bool x_400 = false;
+      bool x_230_phi = false;
+      bool x_243_phi = false;
+      bool x_282_phi = false;
+      bool x_296_phi = false;
+      bool x_336_phi = false;
+      bool x_349_phi = false;
+      bool x_388_phi = false;
+      bool x_401_phi = false;
+      int x_170 = directions;
+      if ((x_170 == 0)) {
+        canwalk = false;
+        i = 0;
+        {
+          while(true) {
+            int x_179 = i;
+            if ((x_179 < 8)) {
+            } else {
+              break;
+            }
+            j = 0;
+            {
+              while(true) {
+                int x_186 = j;
+                if ((x_186 < 8)) {
+                } else {
+                  break;
+                }
+                int x_189 = j;
+                int x_191 = i;
+                int x_196 = map[((x_189 * 2) + ((x_191 * 2) * 16))];
+                if ((x_196 == 0)) {
+                  int x_200 = j;
+                  p[0u] = (x_200 * 2);
+                  int x_203 = i;
+                  p[1u] = (x_203 * 2);
+                  canwalk = true;
+                }
+                {
+                  int x_206 = j;
+                  j = (x_206 + 1);
+                }
+                continue;
+              }
+            }
+            {
+              int x_208 = i;
+              i = (x_208 + 1);
+            }
+            continue;
+          }
+        }
+        int x_211 = p.x;
+        int x_213 = p.y;
+        map[(x_211 + (x_213 * 16))] = 1;
+      } else {
+        int x_217 = v;
+        int x_218 = directions;
+        d = tint_mod_i32(x_217, x_218);
+        int x_220 = directions;
+        int x_221 = v;
+        v = (x_221 + x_220);
+        int x_223 = d;
+        bool x_224 = (x_223 >= 0);
+        x_230_phi = x_224;
+        if (x_224) {
+          int x_228 = p.x;
+          x_229 = (x_228 > 0);
+          x_230_phi = x_229;
+        }
+        bool x_230 = x_230_phi;
+        x_243_phi = x_230;
+        if (x_230) {
+          int x_234 = p.x;
+          int x_237 = p.y;
+          int x_241 = map[((x_234 - 2) + (x_237 * 16))];
+          x_242 = (x_241 == 0);
+          x_243_phi = x_242;
+        }
+        bool x_243 = x_243_phi;
+        if (x_243) {
+          int x_246 = d;
+          d = (x_246 - 1);
+          int x_249 = p.x;
+          int x_251 = p.y;
+          map[(x_249 + (x_251 * 16))] = 1;
+          int x_256 = p.x;
+          int x_259 = p.y;
+          map[((x_256 - 1) + (x_259 * 16))] = 1;
+          int x_264 = p.x;
+          int x_267 = p.y;
+          map[((x_264 - 2) + (x_267 * 16))] = 1;
+          int x_272 = p.x;
+          p[0u] = (x_272 - 2);
+        }
+        int x_275 = d;
+        bool x_276 = (x_275 >= 0);
+        x_282_phi = x_276;
+        if (x_276) {
+          int x_280 = p.y;
+          x_281 = (x_280 > 0);
+          x_282_phi = x_281;
+        }
+        bool x_282 = x_282_phi;
+        x_296_phi = x_282;
+        if (x_282) {
+          int x_286 = p.x;
+          int x_288 = p.y;
+          int x_291[256] = map;
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          map = x_291;
+          int x_294 = map[(x_286 + ((x_288 - 2) * 16))];
+          x_295 = (x_294 == 0);
+          x_296_phi = x_295;
+        }
+        bool x_296 = x_296_phi;
+        if (x_296) {
+          int x_299 = d;
+          d = (x_299 - 1);
+          int x_302 = p.x;
+          int x_304 = p.y;
+          map[(x_302 + (x_304 * 16))] = 1;
+          int x_309 = p.x;
+          int x_311 = p.y;
+          map[(x_309 + ((x_311 - 1) * 16))] = 1;
+          int x_317 = p.x;
+          int x_319 = p.y;
+          int x_321[256] = map;
+          map = int[256](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          map = x_321;
+          map[(x_317 + ((x_319 - 2) * 16))] = 1;
+          int x_326 = p.y;
+          p[1u] = (x_326 - 2);
+        }
+        int x_329 = d;
+        bool x_330 = (x_329 >= 0);
+        x_336_phi = x_330;
+        if (x_330) {
+          int x_334 = p.x;
+          x_335 = (x_334 < 14);
+          x_336_phi = x_335;
+        }
+        bool x_336 = x_336_phi;
+        x_349_phi = x_336;
+        if (x_336) {
+          int x_340 = p.x;
+          int x_343 = p.y;
+          int x_347 = map[((x_340 + 2) + (x_343 * 16))];
+          x_348 = (x_347 == 0);
+          x_349_phi = x_348;
+        }
+        bool x_349 = x_349_phi;
+        if (x_349) {
+          int x_352 = d;
+          d = (x_352 - 1);
+          int x_355 = p.x;
+          int x_357 = p.y;
+          map[(x_355 + (x_357 * 16))] = 1;
+          int x_362 = p.x;
+          int x_365 = p.y;
+          map[((x_362 + 1) + (x_365 * 16))] = 1;
+          int x_370 = p.x;
+          int x_373 = p.y;
+          map[((x_370 + 2) + (x_373 * 16))] = 1;
+          int x_378 = p.x;
+          p[0u] = (x_378 + 2);
+        }
+        int x_381 = d;
+        bool x_382 = (x_381 >= 0);
+        x_388_phi = x_382;
+        if (x_382) {
+          int x_386 = p.y;
+          x_387 = (x_386 < 14);
+          x_388_phi = x_387;
+        }
+        bool x_388 = x_388_phi;
+        x_401_phi = x_388;
+        if (x_388) {
+          int x_392 = p.x;
+          int x_394 = p.y;
+          int x_399 = map[(x_392 + ((x_394 + 2) * 16))];
+          x_400 = (x_399 == 0);
+          x_401_phi = x_400;
+        }
+        bool x_401 = x_401_phi;
+        if (x_401) {
+          int x_404 = d;
+          d = (x_404 - 1);
+          int x_407 = p.x;
+          int x_409 = p.y;
+          map[(x_407 + (x_409 * 16))] = 1;
+          int x_414 = p.x;
+          int x_416 = p.y;
+          map[(x_414 + ((x_416 + 1) * 16))] = 1;
+          int x_422 = p.x;
+          int x_424 = p.y;
+          map[(x_422 + ((x_424 + 2) * 16))] = 1;
+          int x_430 = p.y;
+          p[1u] = (x_430 + 2);
+        }
+      }
+      int x_434 = ipos.y;
+      int x_437 = ipos.x;
+      int x_440 = map[((x_434 * 16) + x_437)];
+      if ((x_440 == 1)) {
+        x_GLF_color = vec4(1.0f);
+        return;
+      }
+      {
+        bool x_444 = canwalk;
+        if (!(x_444)) { break; }
+      }
+      continue;
+    }
+  }
+  x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:23: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:23: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.ir.glsl
index f297654..a8d347b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.spvasm.expected.ir.glsl
@@ -1,11 +1,350 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int x_63 = 0;
+  int x_103 = 0;
+  int x_112 = 0;
+  float x_190 = 0.0f;
+  float x_262 = 0.0f;
+  float x_263 = 0.0f;
+  x_63 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_100 = 0;
+      int x_98 = 0;
+      int x_96 = 0;
+      int x_94 = 0;
+      int x_92 = 0;
+      int x_90 = 0;
+      int x_88 = 0;
+      int x_86 = 0;
+      int x_84 = 0;
+      int x_82 = 0;
+      int x_64 = 0;
+      int x_68[10] = data;
+      data = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+      data = x_68;
+      x_64 = (x_63 + 1);
+      switch(x_63) {
+        case 9:
+        {
+          data[x_63] = -5;
+          x_100 = (x_63 + 1);
+          x_64 = x_100;
+          break;
+        }
+        case 8:
+        {
+          data[x_63] = -4;
+          x_98 = (x_63 + 1);
+          x_64 = x_98;
+          break;
+        }
+        case 7:
+        {
+          data[x_63] = -3;
+          x_96 = (x_63 + 1);
+          x_64 = x_96;
+          break;
+        }
+        case 6:
+        {
+          data[x_63] = -2;
+          x_94 = (x_63 + 1);
+          x_64 = x_94;
+          break;
+        }
+        case 5:
+        {
+          data[x_63] = -1;
+          x_92 = (x_63 + 1);
+          x_64 = x_92;
+          break;
+        }
+        case 4:
+        {
+          data[x_63] = 0;
+          x_90 = (x_63 + 1);
+          x_64 = x_90;
+          break;
+        }
+        case 3:
+        {
+          data[x_63] = 1;
+          x_88 = (x_63 + 1);
+          x_64 = x_88;
+          break;
+        }
+        case 2:
+        {
+          data[x_63] = 2;
+          x_86 = (x_63 + 1);
+          x_64 = x_86;
+          break;
+        }
+        case 1:
+        {
+          data[x_63] = 3;
+          x_84 = (x_63 + 1);
+          x_64 = x_84;
+          break;
+        }
+        case 0:
+        {
+          data[x_63] = 4;
+          x_82 = (x_63 + 1);
+          x_64 = x_82;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      {
+        x_63 = x_64;
+        if (!((x_64 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  x_103 = 0;
+  {
+    while(true) {
+      int x_104 = 0;
+      if ((x_103 < 10)) {
+      } else {
+        break;
+      }
+      {
+        temp[x_103] = data[x_103];
+        x_104 = (x_103 + 1);
+        x_103 = x_104;
+      }
+      continue;
+    }
+  }
+  x_112 = 1;
+  {
+    while(true) {
+      int x_119 = 0;
+      int x_113 = 0;
+      if ((x_112 <= 9)) {
+      } else {
+        break;
+      }
+      x_119 = 0;
+      {
+        while(true) {
+          int x_131 = 0;
+          int x_134 = 0;
+          int x_136 = 0;
+          int x_158 = 0;
+          int x_161 = 0;
+          int x_171 = 0;
+          if ((x_119 < 9)) {
+          } else {
+            break;
+          }
+          int x_125 = (x_119 + x_112);
+          int x_126 = (x_125 - 1);
+          int x_120 = (x_119 + (2 * x_112));
+          int x_129 = min((x_120 - 1), 9);
+          x_131 = x_119;
+          x_134 = x_125;
+          x_136 = x_119;
+          {
+            while(true) {
+              int x_151 = 0;
+              int x_154 = 0;
+              int x_135 = 0;
+              int x_137 = 0;
+              if (((x_136 <= x_126) & (x_134 <= x_129))) {
+              } else {
+                break;
+              }
+              int x_143_save = x_136;
+              int x_145_save = x_134;
+              int x_132 = (x_131 + 1);
+              if ((data[x_136] < data[x_134])) {
+                x_151 = (x_136 + 1);
+                temp[x_131] = data[x_143_save];
+                x_135 = x_134;
+                x_137 = x_151;
+              } else {
+                x_154 = (x_134 + 1);
+                temp[x_131] = data[x_145_save];
+                x_135 = x_154;
+                x_137 = x_136;
+              }
+              {
+                x_131 = x_132;
+                x_134 = x_135;
+                x_136 = x_137;
+              }
+              continue;
+            }
+          }
+          x_158 = x_131;
+          x_161 = x_136;
+          {
+            while(true) {
+              int x_159 = 0;
+              int x_162 = 0;
+              if (((x_161 < 10) & (x_161 <= x_126))) {
+              } else {
+                break;
+              }
+              {
+                x_159 = (x_158 + 1);
+                x_162 = (x_161 + 1);
+                temp[x_158] = data[x_161];
+                x_158 = x_159;
+                x_161 = x_162;
+              }
+              continue;
+            }
+          }
+          x_171 = x_119;
+          {
+            while(true) {
+              int x_172 = 0;
+              if ((x_171 <= x_129)) {
+              } else {
+                break;
+              }
+              {
+                data[x_171] = temp[x_171];
+                x_172 = (x_171 + 1);
+                x_171 = x_172;
+              }
+              continue;
+            }
+          }
+          {
+            x_119 = x_120;
+          }
+          continue;
+        }
+      }
+      {
+        x_113 = (2 * x_112);
+        x_112 = x_113;
+      }
+      continue;
+    }
+  }
+  int x_181 = 0;
+  float x_199 = 0.0f;
+  float x_261 = 0.0f;
+  x_181 = tint_f32_to_i32(tint_symbol.y);
+  if ((x_181 < 30)) {
+    x_190 = (0.5f + (float(data[0]) * 0.10000000149011611938f));
+    x_263 = x_190;
+  } else {
+    float x_208 = 0.0f;
+    float x_260 = 0.0f;
+    if ((x_181 < 60)) {
+      x_199 = (0.5f + (float(data[1]) * 0.10000000149011611938f));
+      x_262 = x_199;
+    } else {
+      float x_217 = 0.0f;
+      float x_259 = 0.0f;
+      if ((x_181 < 90)) {
+        x_208 = (0.5f + (float(data[2]) * 0.10000000149011611938f));
+        x_261 = x_208;
+      } else {
+        if ((x_181 < 120)) {
+          x_217 = (0.5f + (float(data[3]) * 0.10000000149011611938f));
+          x_260 = x_217;
+        } else {
+          float x_230 = 0.0f;
+          float x_258 = 0.0f;
+          if ((x_181 < 150)) {
+            continue_execution = false;
+          } else {
+            float x_239 = 0.0f;
+            float x_257 = 0.0f;
+            if ((x_181 < 180)) {
+              x_230 = (0.5f + (float(data[5]) * 0.10000000149011611938f));
+              x_259 = x_230;
+            } else {
+              float x_248 = 0.0f;
+              float x_256 = 0.0f;
+              if ((x_181 < 210)) {
+                x_239 = (0.5f + (float(data[6]) * 0.10000000149011611938f));
+                x_258 = x_239;
+              } else {
+                if ((x_181 < 240)) {
+                  x_248 = (0.5f + (float(data[7]) * 0.10000000149011611938f));
+                  x_257 = x_248;
+                } else {
+                  if ((x_181 < 270)) {
+                  } else {
+                    continue_execution = false;
+                  }
+                  x_256 = (0.5f + (float(data[8]) * 0.10000000149011611938f));
+                  x_257 = x_256;
+                }
+                x_258 = x_257;
+              }
+              x_259 = x_258;
+            }
+          }
+          x_260 = x_259;
+        }
+        x_261 = x_260;
+      }
+      x_262 = x_261;
+    }
+    x_263 = x_262;
+  }
+  x_GLF_color = vec4(x_263, x_263, x_263, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:186: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:186: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.ir.glsl
index f297654..7c221b4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.spvasm.expected.ir.glsl
@@ -1,11 +1,347 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int x_63 = 0;
+  int x_102 = 0;
+  int x_111 = 0;
+  float x_189 = 0.0f;
+  float x_261 = 0.0f;
+  float x_262 = 0.0f;
+  x_63 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_99 = 0;
+      int x_97 = 0;
+      int x_95 = 0;
+      int x_93 = 0;
+      int x_91 = 0;
+      int x_89 = 0;
+      int x_87 = 0;
+      int x_85 = 0;
+      int x_83 = 0;
+      int x_81 = 0;
+      int x_64 = 0;
+      x_64 = (x_63 + 1);
+      switch(x_63) {
+        case 9:
+        {
+          data[x_63] = -5;
+          x_99 = (x_63 + 1);
+          x_64 = x_99;
+          break;
+        }
+        case 8:
+        {
+          data[x_63] = -4;
+          x_97 = (x_63 + 1);
+          x_64 = x_97;
+          break;
+        }
+        case 7:
+        {
+          data[x_63] = -3;
+          x_95 = (x_63 + 1);
+          x_64 = x_95;
+          break;
+        }
+        case 6:
+        {
+          data[x_63] = -2;
+          x_93 = (x_63 + 1);
+          x_64 = x_93;
+          break;
+        }
+        case 5:
+        {
+          data[x_63] = -1;
+          x_91 = (x_63 + 1);
+          x_64 = x_91;
+          break;
+        }
+        case 4:
+        {
+          data[x_63] = 0;
+          x_89 = (x_63 + 1);
+          x_64 = x_89;
+          break;
+        }
+        case 3:
+        {
+          data[x_63] = 1;
+          x_87 = (x_63 + 1);
+          x_64 = x_87;
+          break;
+        }
+        case 2:
+        {
+          data[x_63] = 2;
+          x_85 = (x_63 + 1);
+          x_64 = x_85;
+          break;
+        }
+        case 1:
+        {
+          data[x_63] = 3;
+          x_83 = (x_63 + 1);
+          x_64 = x_83;
+          break;
+        }
+        case 0:
+        {
+          data[x_63] = 4;
+          x_81 = (x_63 + 1);
+          x_64 = x_81;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      {
+        x_63 = x_64;
+        if (!((x_64 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  x_102 = 0;
+  {
+    while(true) {
+      int x_103 = 0;
+      if ((x_102 < 10)) {
+      } else {
+        break;
+      }
+      {
+        temp[x_102] = data[x_102];
+        x_103 = (x_102 + 1);
+        x_102 = x_103;
+      }
+      continue;
+    }
+  }
+  x_111 = 1;
+  {
+    while(true) {
+      int x_118 = 0;
+      int x_112 = 0;
+      if ((x_111 <= 9)) {
+      } else {
+        break;
+      }
+      x_118 = 0;
+      {
+        while(true) {
+          int x_130 = 0;
+          int x_133 = 0;
+          int x_135 = 0;
+          int x_157 = 0;
+          int x_160 = 0;
+          int x_170 = 0;
+          if ((x_118 < 9)) {
+          } else {
+            break;
+          }
+          int x_124 = (x_118 + x_111);
+          int x_125 = (x_124 - 1);
+          int x_119 = (x_118 + (2 * x_111));
+          int x_128 = min((x_119 - 1), 9);
+          x_130 = x_118;
+          x_133 = x_124;
+          x_135 = x_118;
+          {
+            while(true) {
+              int x_150 = 0;
+              int x_153 = 0;
+              int x_134 = 0;
+              int x_136 = 0;
+              if (((x_135 <= x_125) & (x_133 <= x_128))) {
+              } else {
+                break;
+              }
+              int x_142_save = x_135;
+              int x_144_save = x_133;
+              int x_131 = (x_130 + 1);
+              if ((data[x_135] < data[x_133])) {
+                x_150 = (x_135 + 1);
+                temp[x_130] = data[x_142_save];
+                x_134 = x_133;
+                x_136 = x_150;
+              } else {
+                x_153 = (x_133 + 1);
+                temp[x_130] = data[x_144_save];
+                x_134 = x_153;
+                x_136 = x_135;
+              }
+              {
+                x_130 = x_131;
+                x_133 = x_134;
+                x_135 = x_136;
+              }
+              continue;
+            }
+          }
+          x_157 = x_130;
+          x_160 = x_135;
+          {
+            while(true) {
+              int x_158 = 0;
+              int x_161 = 0;
+              if (((x_160 < 10) & (x_160 <= x_125))) {
+              } else {
+                break;
+              }
+              {
+                x_158 = (x_157 + 1);
+                x_161 = (x_160 + 1);
+                temp[x_157] = data[x_160];
+                x_157 = x_158;
+                x_160 = x_161;
+              }
+              continue;
+            }
+          }
+          x_170 = x_118;
+          {
+            while(true) {
+              int x_171 = 0;
+              if ((x_170 <= x_128)) {
+              } else {
+                break;
+              }
+              {
+                data[x_170] = temp[x_170];
+                x_171 = (x_170 + 1);
+                x_170 = x_171;
+              }
+              continue;
+            }
+          }
+          {
+            x_118 = x_119;
+          }
+          continue;
+        }
+      }
+      {
+        x_112 = (2 * x_111);
+        x_111 = x_112;
+      }
+      continue;
+    }
+  }
+  int x_180 = 0;
+  float x_198 = 0.0f;
+  float x_260 = 0.0f;
+  x_180 = tint_f32_to_i32(tint_symbol.y);
+  if ((x_180 < 30)) {
+    x_189 = (0.5f + (float(data[0]) * 0.10000000149011611938f));
+    x_262 = x_189;
+  } else {
+    float x_207 = 0.0f;
+    float x_259 = 0.0f;
+    if ((x_180 < 60)) {
+      x_198 = (0.5f + (float(data[1]) * 0.10000000149011611938f));
+      x_261 = x_198;
+    } else {
+      float x_216 = 0.0f;
+      float x_258 = 0.0f;
+      if ((x_180 < 90)) {
+        x_207 = (0.5f + (float(data[2]) * 0.10000000149011611938f));
+        x_260 = x_207;
+      } else {
+        if ((x_180 < 120)) {
+          x_216 = (0.5f + (float(data[3]) * 0.10000000149011611938f));
+          x_259 = x_216;
+        } else {
+          float x_229 = 0.0f;
+          float x_257 = 0.0f;
+          if ((x_180 < 150)) {
+            continue_execution = false;
+          } else {
+            float x_238 = 0.0f;
+            float x_256 = 0.0f;
+            if ((x_180 < 180)) {
+              x_229 = (0.5f + (float(data[5]) * 0.10000000149011611938f));
+              x_258 = x_229;
+            } else {
+              float x_247 = 0.0f;
+              float x_255 = 0.0f;
+              if ((x_180 < 210)) {
+                x_238 = (0.5f + (float(data[6]) * 0.10000000149011611938f));
+                x_257 = x_238;
+              } else {
+                if ((x_180 < 240)) {
+                  x_247 = (0.5f + (float(data[7]) * 0.10000000149011611938f));
+                  x_256 = x_247;
+                } else {
+                  if ((x_180 < 270)) {
+                  } else {
+                    continue_execution = false;
+                  }
+                  x_255 = (0.5f + (float(data[8]) * 0.10000000149011611938f));
+                  x_256 = x_255;
+                }
+                x_257 = x_256;
+              }
+              x_258 = x_257;
+            }
+          }
+          x_259 = x_258;
+        }
+        x_260 = x_259;
+      }
+      x_261 = x_260;
+    }
+    x_262 = x_261;
+  }
+  x_GLF_color = vec4(x_262, x_262, x_262, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:183: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:183: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.ir.glsl
index f297654..627a0ad 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.spvasm.expected.ir.glsl
@@ -1,11 +1,298 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_277 = k;
+        k = (k + 1);
+        int x_279 = i;
+        i = (i + 1);
+        temp[x_277] = data[x_279];
+      } else {
+        int x_284 = k;
+        k = (k + 1);
+        int x_286 = j;
+        j = (j + 1);
+        temp[x_284] = data[x_286];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_302 = k;
+      k = (k + 1);
+      int x_304 = i;
+      i = (i + 1);
+      temp[x_302] = data[x_304];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_318 = i_1;
+      data[x_318] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      if ((m <= high)) {
+      } else {
+        break;
+      }
+      i_2 = low;
+      {
+        while(true) {
+          if ((i_2 < high)) {
+          } else {
+            break;
+          }
+          f_1 = i_2;
+          mid_1 = ((i_2 + m) - 1);
+          to_1 = min(((i_2 + (2 * m)) - 1), high);
+          param = f_1;
+          param_1 = mid_1;
+          param_2 = to_1;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            i_2 = (i_2 + (2 * m));
+          }
+          continue;
+        }
+      }
+      {
+        m = (2 * m);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_90 = i_3;
+      switch(x_90) {
+        case 9:
+        {
+          int x_120 = i_3;
+          data[x_120] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_118 = i_3;
+          data[x_118] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_116 = i_3;
+          data[x_116] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_114 = i_3;
+          data[x_114] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_112 = i_3;
+          data[x_112] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_110 = i_3;
+          data[x_110] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_108 = i_3;
+          data[x_108] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_106 = i_3;
+          data[x_106] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_104 = i_3;
+          data[x_104] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_102 = i_3;
+          data[x_102] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_124 = i_3;
+        if (!((x_124 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      if ((j_1 < 10)) {
+      } else {
+        break;
+      }
+      int x_133 = j_1;
+      temp[x_133] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            continue_execution = false;
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  if ((tint_f32_to_i32(tint_symbol.y) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_245 = vec3(grey);
+  x_GLF_color = vec4(x_245[0u], x_245[1u], x_245[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl.expected.ir.glsl
index f297654..543c040 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl.expected.ir.glsl
@@ -1,11 +1,362 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_251 = f;
+  k = x_251;
+  int x_252 = f;
+  i = x_252;
+  int x_253 = mid;
+  j = (x_253 + 1);
+  {
+    while(true) {
+      int x_259 = i;
+      int x_260 = mid;
+      int x_262 = j;
+      int x_263 = to;
+      if (((x_259 <= x_260) & (x_262 <= x_263))) {
+      } else {
+        break;
+      }
+      int x_267 = i;
+      int x_269 = data[x_267];
+      int x_270 = j;
+      int x_272 = data[x_270];
+      if ((x_269 < x_272)) {
+        int x_277 = k;
+        k = (x_277 + 1);
+        int x_279 = i;
+        i = (x_279 + 1);
+        int x_282 = data[x_279];
+        temp[x_277] = x_282;
+      } else {
+        int x_284 = k;
+        k = (x_284 + 1);
+        int x_286 = j;
+        j = (x_286 + 1);
+        int x_289 = data[x_286];
+        temp[x_284] = x_289;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_295 = i;
+      int x_297 = i;
+      int x_298 = mid;
+      if (((x_295 < 10) & (x_297 <= x_298))) {
+      } else {
+        break;
+      }
+      int x_302 = k;
+      k = (x_302 + 1);
+      int x_304 = i;
+      i = (x_304 + 1);
+      int x_307 = data[x_304];
+      temp[x_302] = x_307;
+      {
+      }
+      continue;
+    }
+  }
+  int x_309 = f;
+  i_1 = x_309;
+  {
+    while(true) {
+      int x_314 = i_1;
+      int x_315 = to;
+      if ((x_314 <= x_315)) {
+      } else {
+        break;
+      }
+      int x_318 = i_1;
+      int x_319 = i_1;
+      int x_321 = temp[x_319];
+      data[x_318] = x_321;
+      {
+        int x_323 = i_1;
+        i_1 = (x_323 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_330 = m;
+      int x_331 = high;
+      if ((x_330 <= x_331)) {
+      } else {
+        break;
+      }
+      int x_334 = low;
+      i_2 = x_334;
+      {
+        while(true) {
+          int x_339 = i_2;
+          int x_340 = high;
+          if ((x_339 < x_340)) {
+          } else {
+            break;
+          }
+          int x_343 = i_2;
+          f_1 = x_343;
+          int x_344 = i_2;
+          int x_345 = m;
+          mid_1 = ((x_344 + x_345) - 1);
+          int x_348 = i_2;
+          int x_349 = m;
+          int x_353 = high;
+          to_1 = min(((x_348 + (2 * x_349)) - 1), x_353);
+          int x_355 = f_1;
+          param = x_355;
+          int x_356 = mid_1;
+          param_1 = x_356;
+          int x_357 = to_1;
+          param_2 = x_357;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_359 = m;
+            int x_361 = i_2;
+            i_2 = (x_361 + (2 * x_359));
+          }
+          continue;
+        }
+      }
+      {
+        int x_363 = m;
+        m = (2 * x_363);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_84 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_84);
+  {
+    while(true) {
+      int x_90 = i_3;
+      switch(x_90) {
+        case 9:
+        {
+          int x_120 = i_3;
+          data[x_120] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_118 = i_3;
+          data[x_118] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_116 = i_3;
+          data[x_116] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_114 = i_3;
+          data[x_114] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_112 = i_3;
+          data[x_112] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_110 = i_3;
+          data[x_110] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_108 = i_3;
+          data[x_108] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_106 = i_3;
+          data[x_106] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_104 = i_3;
+          data[x_104] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_102 = i_3;
+          data[x_102] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_122 = i_3;
+      i_3 = (x_122 + 1);
+      {
+        int x_124 = i_3;
+        if (!((x_124 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_130 = j_1;
+      if ((x_130 < 10)) {
+      } else {
+        break;
+      }
+      int x_133 = j_1;
+      int x_134 = j_1;
+      int x_136 = data[x_134];
+      temp[x_133] = x_136;
+      {
+        int x_138 = j_1;
+        j_1 = (x_138 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_142 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_142) < 30)) {
+    int x_149 = data[0];
+    grey = (0.5f + (float(x_149) / 10.0f));
+  } else {
+    float x_154 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_154) < 60)) {
+      int x_161 = data[1];
+      grey = (0.5f + (float(x_161) / 10.0f));
+    } else {
+      float x_166 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_166) < 90)) {
+        int x_173 = data[2];
+        grey = (0.5f + (float(x_173) / 10.0f));
+      } else {
+        float x_178 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_178) < 120)) {
+          int x_185 = data[3];
+          grey = (0.5f + (float(x_185) / 10.0f));
+        } else {
+          float x_190 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_190) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_197 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_197) < 180)) {
+              int x_204 = data[5];
+              grey = (0.5f + (float(x_204) / 10.0f));
+            } else {
+              float x_209 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_209) < 210)) {
+                int x_216 = data[6];
+                grey = (0.5f + (float(x_216) / 10.0f));
+              } else {
+                float x_221 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_221) < 240)) {
+                  int x_228 = data[7];
+                  grey = (0.5f + (float(x_228) / 10.0f));
+                } else {
+                  float x_233 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_233) < 270)) {
+                    int x_240 = data[8];
+                    grey = (0.5f + (float(x_240) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_244 = grey;
+  vec3 x_245 = vec3(x_244, x_244, x_244);
+  x_GLF_color = vec4(x_245[0u], x_245[1u], x_245[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.ir.glsl
index f297654..e3ac986 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.spvasm.expected.ir.glsl
@@ -1,11 +1,312 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_288 = k;
+        k = (k + 1);
+        int x_290 = i;
+        i = (i + 1);
+        temp[x_288] = data[x_290];
+      } else {
+        int x_295 = k;
+        k = (k + 1);
+        int x_297 = j;
+        j = (j + 1);
+        temp[x_295] = data[x_297];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_313 = k;
+      k = (k + 1);
+      int x_315 = i;
+      i = (i + 1);
+      temp[x_313] = data[x_315];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_329 = i_1;
+      data[x_329] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      if ((m <= high)) {
+      } else {
+        break;
+      }
+      i_2 = low;
+      {
+        while(true) {
+          if ((i_2 < high)) {
+          } else {
+            break;
+          }
+          f_1 = i_2;
+          mid_1 = ((i_2 + m) - 1);
+          to_1 = min(((i_2 + (2 * m)) - 1), high);
+          param = f_1;
+          param_1 = mid_1;
+          param_2 = to_1;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            i_2 = (i_2 + (2 * m));
+          }
+          continue;
+        }
+      }
+      {
+        m = (2 * m);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_92 = i_3;
+      switch(x_92) {
+        case 9:
+        {
+          int x_122 = i_3;
+          data[x_122] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_120 = i_3;
+          data[x_120] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_118 = i_3;
+          data[x_118] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_116 = i_3;
+          data[x_116] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_114 = i_3;
+          data[x_114] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_112 = i_3;
+          data[x_112] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_110 = i_3;
+          data[x_110] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_108 = i_3;
+          data[x_108] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_106 = i_3;
+          data[x_106] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_104 = i_3;
+          data[x_104] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_126 = i_3;
+        if (!((x_126 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      bool x_133 = (j_1 < 10);
+      if (!((v.tint_symbol_3.injectionSwitch.x <= 1.0f))) {
+        grey = 1.0f;
+      }
+      if (x_133) {
+      } else {
+        break;
+      }
+      int x_140 = j_1;
+      temp[x_140] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            continue_execution = false;
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  float x_240 = tint_symbol.y;
+                  bool guard233 = true;
+                  if ((tint_f32_to_i32(x_240) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                    guard233 = false;
+                  } else {
+                    if (guard233) {
+                      if (!((0.0f < v.tint_symbol_3.injectionSwitch.y))) {
+                        guard233 = false;
+                      }
+                      if (guard233) {
+                        continue_execution = false;
+                      }
+                    }
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_256 = vec3(grey);
+  x_GLF_color = vec4(x_256[0u], x_256[1u], x_256[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl.expected.ir.glsl
index f297654..1ff0032 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl.expected.ir.glsl
@@ -1,11 +1,377 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_262 = f;
+  k = x_262;
+  int x_263 = f;
+  i = x_263;
+  int x_264 = mid;
+  j = (x_264 + 1);
+  {
+    while(true) {
+      int x_270 = i;
+      int x_271 = mid;
+      int x_273 = j;
+      int x_274 = to;
+      if (((x_270 <= x_271) & (x_273 <= x_274))) {
+      } else {
+        break;
+      }
+      int x_278 = i;
+      int x_280 = data[x_278];
+      int x_281 = j;
+      int x_283 = data[x_281];
+      if ((x_280 < x_283)) {
+        int x_288 = k;
+        k = (x_288 + 1);
+        int x_290 = i;
+        i = (x_290 + 1);
+        int x_293 = data[x_290];
+        temp[x_288] = x_293;
+      } else {
+        int x_295 = k;
+        k = (x_295 + 1);
+        int x_297 = j;
+        j = (x_297 + 1);
+        int x_300 = data[x_297];
+        temp[x_295] = x_300;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_306 = i;
+      int x_308 = i;
+      int x_309 = mid;
+      if (((x_306 < 10) & (x_308 <= x_309))) {
+      } else {
+        break;
+      }
+      int x_313 = k;
+      k = (x_313 + 1);
+      int x_315 = i;
+      i = (x_315 + 1);
+      int x_318 = data[x_315];
+      temp[x_313] = x_318;
+      {
+      }
+      continue;
+    }
+  }
+  int x_320 = f;
+  i_1 = x_320;
+  {
+    while(true) {
+      int x_325 = i_1;
+      int x_326 = to;
+      if ((x_325 <= x_326)) {
+      } else {
+        break;
+      }
+      int x_329 = i_1;
+      int x_330 = i_1;
+      int x_332 = temp[x_330];
+      data[x_329] = x_332;
+      {
+        int x_334 = i_1;
+        i_1 = (x_334 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_341 = m;
+      int x_342 = high;
+      if ((x_341 <= x_342)) {
+      } else {
+        break;
+      }
+      int x_345 = low;
+      i_2 = x_345;
+      {
+        while(true) {
+          int x_350 = i_2;
+          int x_351 = high;
+          if ((x_350 < x_351)) {
+          } else {
+            break;
+          }
+          int x_354 = i_2;
+          f_1 = x_354;
+          int x_355 = i_2;
+          int x_356 = m;
+          mid_1 = ((x_355 + x_356) - 1);
+          int x_359 = i_2;
+          int x_360 = m;
+          int x_364 = high;
+          to_1 = min(((x_359 + (2 * x_360)) - 1), x_364);
+          int x_366 = f_1;
+          param = x_366;
+          int x_367 = mid_1;
+          param_1 = x_367;
+          int x_368 = to_1;
+          param_2 = x_368;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_370 = m;
+            int x_372 = i_2;
+            i_2 = (x_372 + (2 * x_370));
+          }
+          continue;
+        }
+      }
+      {
+        int x_374 = m;
+        m = (2 * x_374);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_86 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_86);
+  {
+    while(true) {
+      int x_92 = i_3;
+      switch(x_92) {
+        case 9:
+        {
+          int x_122 = i_3;
+          data[x_122] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_120 = i_3;
+          data[x_120] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_118 = i_3;
+          data[x_118] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_116 = i_3;
+          data[x_116] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_114 = i_3;
+          data[x_114] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_112 = i_3;
+          data[x_112] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_110 = i_3;
+          data[x_110] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_108 = i_3;
+          data[x_108] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_106 = i_3;
+          data[x_106] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_104 = i_3;
+          data[x_104] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_124 = i_3;
+      i_3 = (x_124 + 1);
+      {
+        int x_126 = i_3;
+        if (!((x_126 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_132 = j_1;
+      bool x_133 = (x_132 < 10);
+      float x_135 = v.tint_symbol_3.injectionSwitch.x;
+      if (!((x_135 <= 1.0f))) {
+        grey = 1.0f;
+      }
+      if (x_133) {
+      } else {
+        break;
+      }
+      int x_140 = j_1;
+      int x_141 = j_1;
+      int x_143 = data[x_141];
+      temp[x_140] = x_143;
+      {
+        int x_145 = j_1;
+        j_1 = (x_145 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_149 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_149) < 30)) {
+    int x_156 = data[0];
+    grey = (0.5f + (float(x_156) / 10.0f));
+  } else {
+    float x_161 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_161) < 60)) {
+      int x_168 = data[1];
+      grey = (0.5f + (float(x_168) / 10.0f));
+    } else {
+      float x_173 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_173) < 90)) {
+        int x_180 = data[2];
+        grey = (0.5f + (float(x_180) / 10.0f));
+      } else {
+        float x_185 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_185) < 120)) {
+          int x_192 = data[3];
+          grey = (0.5f + (float(x_192) / 10.0f));
+        } else {
+          float x_197 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_197) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_204 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_204) < 180)) {
+              int x_211 = data[5];
+              grey = (0.5f + (float(x_211) / 10.0f));
+            } else {
+              float x_216 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_216) < 210)) {
+                int x_223 = data[6];
+                grey = (0.5f + (float(x_223) / 10.0f));
+              } else {
+                float x_228 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_228) < 240)) {
+                  int x_235 = data[7];
+                  grey = (0.5f + (float(x_235) / 10.0f));
+                } else {
+                  float x_240 = tint_symbol.y;
+                  bool guard233 = true;
+                  if ((tint_f32_to_i32(x_240) < 270)) {
+                    int x_247 = data[8];
+                    grey = (0.5f + (float(x_247) / 10.0f));
+                    guard233 = false;
+                  } else {
+                    if (guard233) {
+                      float x_252 = v.tint_symbol_3.injectionSwitch.y;
+                      if (!((0.0f < x_252))) {
+                        guard233 = false;
+                      }
+                      if (guard233) {
+                        continue_execution = false;
+                      }
+                    }
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_255 = grey;
+  vec3 x_256 = vec3(x_255, x_255, x_255);
+  x_GLF_color = vec4(x_256[0u], x_256[1u], x_256[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl.expected.ir.glsl
index f297654..3eca4f5 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl.expected.ir.glsl
@@ -1,11 +1,482 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_255 = f;
+  k = x_255;
+  int x_256 = f;
+  i = x_256;
+  int x_257 = mid;
+  j = (x_257 + 1);
+  {
+    while(true) {
+      int x_285 = 0;
+      int x_286 = 0;
+      int x_305 = 0;
+      int x_306 = 0;
+      int x_320 = 0;
+      int x_324 = 0;
+      int x_339 = 0;
+      int x_338 = 0;
+      int x_352 = 0;
+      int x_351 = 0;
+      int x_366 = 0;
+      int x_365 = 0;
+      int x_287_phi = 0;
+      int x_307_phi = 0;
+      int x_328_phi = 0;
+      int x_340_phi = 0;
+      int x_353_phi = 0;
+      int x_367_phi = 0;
+      float x_261 = v.tint_symbol_3.injectionSwitch.x;
+      if ((1.0f >= x_261)) {
+      } else {
+        {
+        }
+        continue;
+      }
+      int x_266 = i;
+      int x_267 = mid;
+      int x_269 = j;
+      int x_270 = to;
+      if (((x_266 <= x_267) & (x_269 <= x_270))) {
+      } else {
+        break;
+      }
+      int x_274 = i;
+      int x_276 = data[x_274];
+      int x_277 = j;
+      int x_279 = data[x_277];
+      bool x_280 = (x_276 < x_279);
+      if (x_280) {
+        x_285 = k;
+        x_287_phi = x_285;
+      } else {
+        x_286 = 0;
+        x_287_phi = x_286;
+      }
+      int x_287 = x_287_phi;
+      int x_288 = (x_287 + 1);
+      if (x_280) {
+        k = x_288;
+        float x_293 = v.tint_symbol_3.injectionSwitch.x;
+        if (!((1.0f <= x_293))) {
+        } else {
+          {
+          }
+          continue;
+        }
+      }
+      float x_297 = v.tint_symbol_3.injectionSwitch.y;
+      if ((x_297 >= 0.0f)) {
+      } else {
+        {
+        }
+        continue;
+      }
+      int x_300 = 0;
+      if (x_280) {
+        x_305 = i;
+        x_307_phi = x_305;
+      } else {
+        x_306 = 0;
+        x_307_phi = x_306;
+      }
+      int x_307 = x_307_phi;
+      int x_309 = ((x_280) ? (x_307) : (x_300));
+      if (x_280) {
+        i = (x_309 + 1);
+      }
+      int x_315 = 0;
+      if (x_280) {
+        x_320 = data[x_309];
+        float x_322 = v.tint_symbol_3.injectionSwitch.y;
+        x_328_phi = x_320;
+        if (!((0.0f <= x_322))) {
+          {
+          }
+          continue;
+        }
+      } else {
+        x_324 = 0;
+        float x_326 = v.tint_symbol_3.injectionSwitch.y;
+        x_328_phi = x_324;
+        if (!((x_326 < 0.0f))) {
+        } else {
+          {
+          }
+          continue;
+        }
+      }
+      int x_328 = x_328_phi;
+      if (x_280) {
+        temp[x_287] = ((x_280) ? (x_328) : (x_315));
+      }
+      if (x_280) {
+        x_339 = 0;
+        x_340_phi = x_339;
+      } else {
+        x_338 = k;
+        x_340_phi = x_338;
+      }
+      int x_340 = x_340_phi;
+      if (x_280) {
+      } else {
+        k = (x_340 + 1);
+      }
+      float x_345 = v.tint_symbol_3.injectionSwitch.x;
+      if (!((1.0f <= x_345))) {
+      } else {
+        {
+        }
+        continue;
+      }
+      if (x_280) {
+        x_352 = 0;
+        x_353_phi = x_352;
+      } else {
+        x_351 = j;
+        x_353_phi = x_351;
+      }
+      int x_353 = x_353_phi;
+      int x_355 = 0;
+      int x_357 = ((x_280) ? (x_355) : (x_353));
+      if (x_280) {
+      } else {
+        j = (x_357 + 1);
+      }
+      if (x_280) {
+        x_366 = 0;
+        x_367_phi = x_366;
+      } else {
+        x_365 = data[x_357];
+        x_367_phi = x_365;
+      }
+      int x_367 = x_367_phi;
+      if (x_280) {
+      } else {
+        temp[x_340] = x_367;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_376 = i;
+      int x_378 = i;
+      int x_379 = mid;
+      if (((x_376 < 10) & (x_378 <= x_379))) {
+      } else {
+        break;
+      }
+      int x_383 = k;
+      k = (x_383 + 1);
+      int x_385 = i;
+      i = (x_385 + 1);
+      int x_388 = data[x_385];
+      temp[x_383] = x_388;
+      {
+      }
+      continue;
+    }
+  }
+  int x_390 = f;
+  i_1 = x_390;
+  {
+    while(true) {
+      int x_395 = i_1;
+      int x_396 = to;
+      if ((x_395 <= x_396)) {
+      } else {
+        break;
+      }
+      int x_399 = i_1;
+      int x_400 = i_1;
+      int x_402 = temp[x_400];
+      data[x_399] = x_402;
+      {
+        int x_404 = i_1;
+        i_1 = (x_404 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_411 = m;
+      int x_412 = high;
+      if ((x_411 <= x_412)) {
+      } else {
+        break;
+      }
+      int x_415 = low;
+      i_2 = x_415;
+      {
+        while(true) {
+          int x_420 = i_2;
+          int x_421 = high;
+          if ((x_420 < x_421)) {
+          } else {
+            break;
+          }
+          int x_424 = i_2;
+          f_1 = x_424;
+          int x_425 = i_2;
+          int x_426 = m;
+          mid_1 = ((x_425 + x_426) - 1);
+          int x_429 = i_2;
+          int x_430 = m;
+          int x_434 = high;
+          to_1 = min(((x_429 + (2 * x_430)) - 1), x_434);
+          int x_436 = f_1;
+          param = x_436;
+          int x_437 = mid_1;
+          param_1 = x_437;
+          int x_438 = to_1;
+          param_2 = x_438;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_440 = m;
+            int x_442 = i_2;
+            i_2 = (x_442 + (2 * x_440));
+          }
+          continue;
+        }
+      }
+      {
+        int x_444 = m;
+        m = (2 * x_444);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_88 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_88);
+  {
+    while(true) {
+      int x_94 = i_3;
+      switch(x_94) {
+        case 9:
+        {
+          int x_124 = i_3;
+          data[x_124] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_122 = i_3;
+          data[x_122] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_120 = i_3;
+          data[x_120] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_118 = i_3;
+          data[x_118] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_116 = i_3;
+          data[x_116] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_114 = i_3;
+          data[x_114] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_112 = i_3;
+          data[x_112] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_110 = i_3;
+          data[x_110] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_108 = i_3;
+          data[x_108] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_106 = i_3;
+          data[x_106] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_126 = i_3;
+      i_3 = (x_126 + 1);
+      {
+        int x_128 = i_3;
+        if (!((x_128 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_134 = j_1;
+      if ((x_134 < 10)) {
+      } else {
+        break;
+      }
+      int x_137 = j_1;
+      int x_138 = j_1;
+      int x_140 = data[x_138];
+      temp[x_137] = x_140;
+      {
+        int x_142 = j_1;
+        j_1 = (x_142 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_146 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_146) < 30)) {
+    int x_153 = data[0];
+    grey = (0.5f + (float(x_153) / 10.0f));
+  } else {
+    float x_158 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_158) < 60)) {
+      int x_165 = data[1];
+      grey = (0.5f + (float(x_165) / 10.0f));
+    } else {
+      float x_170 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_170) < 90)) {
+        int x_177 = data[2];
+        grey = (0.5f + (float(x_177) / 10.0f));
+      } else {
+        float x_182 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_182) < 120)) {
+          int x_189 = data[3];
+          grey = (0.5f + (float(x_189) / 10.0f));
+        } else {
+          float x_194 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_194) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_201 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_201) < 180)) {
+              int x_208 = data[5];
+              grey = (0.5f + (float(x_208) / 10.0f));
+            } else {
+              float x_213 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_213) < 210)) {
+                int x_220 = data[6];
+                grey = (0.5f + (float(x_220) / 10.0f));
+              } else {
+                float x_225 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_225) < 240)) {
+                  int x_232 = data[7];
+                  grey = (0.5f + (float(x_232) / 10.0f));
+                } else {
+                  float x_237 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_237) < 270)) {
+                    int x_244 = data[8];
+                    grey = (0.5f + (float(x_244) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_248 = grey;
+  vec3 x_249 = vec3(x_248, x_248, x_248);
+  x_GLF_color = vec4(x_249[0u], x_249[1u], x_249[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:66: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:66: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl.expected.ir.glsl
index f297654..053275c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,481 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_255 = f;
+  k = x_255;
+  int x_256 = f;
+  i = x_256;
+  int x_257 = mid;
+  j = (x_257 + 1);
+  {
+    while(true) {
+      int x_283 = 0;
+      int x_284 = 0;
+      int x_303 = 0;
+      int x_304 = 0;
+      int x_318 = 0;
+      int x_322 = 0;
+      int x_337 = 0;
+      int x_336 = 0;
+      int x_350 = 0;
+      int x_349 = 0;
+      int x_364 = 0;
+      int x_363 = 0;
+      int x_285_phi = 0;
+      int x_305_phi = 0;
+      int x_326_phi = 0;
+      int x_338_phi = 0;
+      int x_351_phi = 0;
+      int x_365_phi = 0;
+      if (true) {
+      } else {
+        {
+        }
+        continue;
+      }
+      int x_264 = i;
+      int x_265 = mid;
+      int x_267 = j;
+      int x_268 = to;
+      if (((x_264 <= x_265) & (x_267 <= x_268))) {
+      } else {
+        break;
+      }
+      int x_272 = i;
+      int x_274 = data[x_272];
+      int x_275 = j;
+      int x_277 = data[x_275];
+      bool x_278 = (x_274 < x_277);
+      if (x_278) {
+        x_283 = k;
+        x_285_phi = x_283;
+      } else {
+        x_284 = 0;
+        x_285_phi = x_284;
+      }
+      int x_285 = x_285_phi;
+      int x_286 = (x_285 + 1);
+      if (x_278) {
+        k = x_286;
+        float x_291 = v.tint_symbol_3.injectionSwitch.x;
+        if (!((1.0f <= x_291))) {
+        } else {
+          {
+          }
+          continue;
+        }
+      }
+      float x_295 = v.tint_symbol_3.injectionSwitch.y;
+      if ((x_295 >= 0.0f)) {
+      } else {
+        {
+        }
+        continue;
+      }
+      int x_298 = 0;
+      if (x_278) {
+        x_303 = i;
+        x_305_phi = x_303;
+      } else {
+        x_304 = 0;
+        x_305_phi = x_304;
+      }
+      int x_305 = x_305_phi;
+      int x_307 = ((x_278) ? (x_305) : (x_298));
+      if (x_278) {
+        i = (x_307 + 1);
+      }
+      int x_313 = 0;
+      if (x_278) {
+        x_318 = data[x_307];
+        float x_320 = v.tint_symbol_3.injectionSwitch.y;
+        x_326_phi = x_318;
+        if (!((0.0f <= x_320))) {
+          {
+          }
+          continue;
+        }
+      } else {
+        x_322 = 0;
+        float x_324 = v.tint_symbol_3.injectionSwitch.y;
+        x_326_phi = x_322;
+        if (!((x_324 < 0.0f))) {
+        } else {
+          {
+          }
+          continue;
+        }
+      }
+      int x_326 = x_326_phi;
+      if (x_278) {
+        temp[x_285] = ((x_278) ? (x_326) : (x_313));
+      }
+      if (x_278) {
+        x_337 = 0;
+        x_338_phi = x_337;
+      } else {
+        x_336 = k;
+        x_338_phi = x_336;
+      }
+      int x_338 = x_338_phi;
+      if (x_278) {
+      } else {
+        k = (x_338 + 1);
+      }
+      float x_343 = v.tint_symbol_3.injectionSwitch.x;
+      if (!((1.0f <= x_343))) {
+      } else {
+        {
+        }
+        continue;
+      }
+      if (x_278) {
+        x_350 = 0;
+        x_351_phi = x_350;
+      } else {
+        x_349 = j;
+        x_351_phi = x_349;
+      }
+      int x_351 = x_351_phi;
+      int x_353 = 0;
+      int x_355 = ((x_278) ? (x_353) : (x_351));
+      if (x_278) {
+      } else {
+        j = (x_355 + 1);
+      }
+      if (x_278) {
+        x_364 = 0;
+        x_365_phi = x_364;
+      } else {
+        x_363 = data[x_355];
+        x_365_phi = x_363;
+      }
+      int x_365 = x_365_phi;
+      if (x_278) {
+      } else {
+        temp[x_338] = x_365;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_374 = i;
+      int x_376 = i;
+      int x_377 = mid;
+      if (((x_374 < 10) & (x_376 <= x_377))) {
+      } else {
+        break;
+      }
+      int x_381 = k;
+      k = (x_381 + 1);
+      int x_383 = i;
+      i = (x_383 + 1);
+      int x_386 = data[x_383];
+      temp[x_381] = x_386;
+      {
+      }
+      continue;
+    }
+  }
+  int x_388 = f;
+  i_1 = x_388;
+  {
+    while(true) {
+      int x_393 = i_1;
+      int x_394 = to;
+      if ((x_393 <= x_394)) {
+      } else {
+        break;
+      }
+      int x_397 = i_1;
+      int x_398 = i_1;
+      int x_400 = temp[x_398];
+      data[x_397] = x_400;
+      {
+        int x_402 = i_1;
+        i_1 = (x_402 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_409 = m;
+      int x_410 = high;
+      if ((x_409 <= x_410)) {
+      } else {
+        break;
+      }
+      int x_413 = low;
+      i_2 = x_413;
+      {
+        while(true) {
+          int x_418 = i_2;
+          int x_419 = high;
+          if ((x_418 < x_419)) {
+          } else {
+            break;
+          }
+          int x_422 = i_2;
+          f_1 = x_422;
+          int x_423 = i_2;
+          int x_424 = m;
+          mid_1 = ((x_423 + x_424) - 1);
+          int x_427 = i_2;
+          int x_428 = m;
+          int x_432 = high;
+          to_1 = min(((x_427 + (2 * x_428)) - 1), x_432);
+          int x_434 = f_1;
+          param = x_434;
+          int x_435 = mid_1;
+          param_1 = x_435;
+          int x_436 = to_1;
+          param_2 = x_436;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_438 = m;
+            int x_440 = i_2;
+            i_2 = (x_440 + (2 * x_438));
+          }
+          continue;
+        }
+      }
+      {
+        int x_442 = m;
+        m = (2 * x_442);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_88 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_88);
+  {
+    while(true) {
+      int x_94 = i_3;
+      switch(x_94) {
+        case 9:
+        {
+          int x_124 = i_3;
+          data[x_124] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_122 = i_3;
+          data[x_122] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_120 = i_3;
+          data[x_120] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_118 = i_3;
+          data[x_118] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_116 = i_3;
+          data[x_116] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_114 = i_3;
+          data[x_114] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_112 = i_3;
+          data[x_112] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_110 = i_3;
+          data[x_110] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_108 = i_3;
+          data[x_108] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_106 = i_3;
+          data[x_106] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_126 = i_3;
+      i_3 = (x_126 + 1);
+      {
+        int x_128 = i_3;
+        if (!((x_128 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_134 = j_1;
+      if ((x_134 < 10)) {
+      } else {
+        break;
+      }
+      int x_137 = j_1;
+      int x_138 = j_1;
+      int x_140 = data[x_138];
+      temp[x_137] = x_140;
+      {
+        int x_142 = j_1;
+        j_1 = (x_142 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_146 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_146) < 30)) {
+    int x_153 = data[0];
+    grey = (0.5f + (float(x_153) / 10.0f));
+  } else {
+    float x_158 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_158) < 60)) {
+      int x_165 = data[1];
+      grey = (0.5f + (float(x_165) / 10.0f));
+    } else {
+      float x_170 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_170) < 90)) {
+        int x_177 = data[2];
+        grey = (0.5f + (float(x_177) / 10.0f));
+      } else {
+        float x_182 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_182) < 120)) {
+          int x_189 = data[3];
+          grey = (0.5f + (float(x_189) / 10.0f));
+        } else {
+          float x_194 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_194) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_201 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_201) < 180)) {
+              int x_208 = data[5];
+              grey = (0.5f + (float(x_208) / 10.0f));
+            } else {
+              float x_213 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_213) < 210)) {
+                int x_220 = data[6];
+                grey = (0.5f + (float(x_220) / 10.0f));
+              } else {
+                float x_225 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_225) < 240)) {
+                  int x_232 = data[7];
+                  grey = (0.5f + (float(x_232) / 10.0f));
+                } else {
+                  float x_237 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_237) < 270)) {
+                    int x_244 = data[8];
+                    grey = (0.5f + (float(x_244) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_248 = grey;
+  vec3 x_249 = vec3(x_248, x_248, x_248);
+  x_GLF_color = vec4(x_249[0u], x_249[1u], x_249[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:65: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:65: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.ir.glsl
index f297654..8f936a0 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.spvasm.expected.ir.glsl
@@ -1,11 +1,300 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_329 = k;
+        k = (k + 1);
+        int x_331 = i;
+        i = (i + 1);
+        temp[x_329] = data[x_331];
+      } else {
+        int x_336 = k;
+        k = (k + 1);
+        int x_338 = j;
+        j = (j + 1);
+        temp[x_336] = data[x_338];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_354 = k;
+      k = (k + 1);
+      int x_356 = i;
+      i = (i + 1);
+      temp[x_354] = data[x_356];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_370 = i_1;
+      data[x_370] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int x_85 = 0;
+  int x_86 = 0;
+  int x_87 = 0;
+  int x_88 = 0;
+  int x_89 = 0;
+  int x_90 = 0;
+  int x_91 = 0;
+  int x_92 = 0;
+  int x_93 = 0;
+  int x_94 = 0;
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_102 = i_3;
+      switch(x_102) {
+        case 9:
+        {
+          int x_132 = i_3;
+          data[x_132] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_130 = i_3;
+          data[x_130] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_128 = i_3;
+          data[x_128] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_126 = i_3;
+          data[x_126] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_124 = i_3;
+          data[x_124] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_122 = i_3;
+          data[x_122] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_120 = i_3;
+          data[x_120] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_118 = i_3;
+          data[x_118] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_116 = i_3;
+          data[x_116] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_114 = i_3;
+          data[x_114] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_136 = i_3;
+        if (!((x_136 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      if ((j_1 < 10)) {
+      } else {
+        break;
+      }
+      int x_145 = j_1;
+      temp[x_145] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  x_94 = 0;
+  x_93 = 9;
+  x_92 = 1;
+  {
+    while(true) {
+      if ((x_92 <= x_93)) {
+      } else {
+        break;
+      }
+      x_91 = x_94;
+      {
+        while(true) {
+          if ((x_91 < x_93)) {
+          } else {
+            break;
+          }
+          x_90 = x_91;
+          int x_170 = x_91;
+          int x_171 = x_92;
+          int x_173[10] = data;
+          data = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          data = x_173;
+          x_89 = ((x_170 + x_171) - 1);
+          x_88 = min(((x_91 + (2 * x_92)) - 1), x_93);
+          x_87 = x_90;
+          x_86 = x_89;
+          x_85 = x_88;
+          merge_i1_i1_i1_(x_87, x_86, x_85);
+          {
+            x_91 = (x_91 + (2 * x_92));
+          }
+          continue;
+        }
+      }
+      {
+        x_92 = (2 * x_92);
+      }
+      continue;
+    }
+  }
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            continue_execution = false;
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  if ((tint_f32_to_i32(tint_symbol.y) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_297 = vec3(grey);
+  x_GLF_color = vec4(x_297[0u], x_297[1u], x_297[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl.expected.ir.glsl
index f297654..87474e5 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl.expected.ir.glsl
@@ -1,11 +1,362 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_303 = f;
+  k = x_303;
+  int x_304 = f;
+  i = x_304;
+  int x_305 = mid;
+  j = (x_305 + 1);
+  {
+    while(true) {
+      int x_311 = i;
+      int x_312 = mid;
+      int x_314 = j;
+      int x_315 = to;
+      if (((x_311 <= x_312) & (x_314 <= x_315))) {
+      } else {
+        break;
+      }
+      int x_319 = i;
+      int x_321 = data[x_319];
+      int x_322 = j;
+      int x_324 = data[x_322];
+      if ((x_321 < x_324)) {
+        int x_329 = k;
+        k = (x_329 + 1);
+        int x_331 = i;
+        i = (x_331 + 1);
+        int x_334 = data[x_331];
+        temp[x_329] = x_334;
+      } else {
+        int x_336 = k;
+        k = (x_336 + 1);
+        int x_338 = j;
+        j = (x_338 + 1);
+        int x_341 = data[x_338];
+        temp[x_336] = x_341;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_347 = i;
+      int x_349 = i;
+      int x_350 = mid;
+      if (((x_347 < 10) & (x_349 <= x_350))) {
+      } else {
+        break;
+      }
+      int x_354 = k;
+      k = (x_354 + 1);
+      int x_356 = i;
+      i = (x_356 + 1);
+      int x_359 = data[x_356];
+      temp[x_354] = x_359;
+      {
+      }
+      continue;
+    }
+  }
+  int x_361 = f;
+  i_1 = x_361;
+  {
+    while(true) {
+      int x_366 = i_1;
+      int x_367 = to;
+      if ((x_366 <= x_367)) {
+      } else {
+        break;
+      }
+      int x_370 = i_1;
+      int x_371 = i_1;
+      int x_373 = temp[x_371];
+      data[x_370] = x_373;
+      {
+        int x_375 = i_1;
+        i_1 = (x_375 + 1);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int x_85 = 0;
+  int x_86 = 0;
+  int x_87 = 0;
+  int x_88 = 0;
+  int x_89 = 0;
+  int x_90 = 0;
+  int x_91 = 0;
+  int x_92 = 0;
+  int x_93 = 0;
+  int x_94 = 0;
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_96 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_96);
+  {
+    while(true) {
+      int x_102 = i_3;
+      switch(x_102) {
+        case 9:
+        {
+          int x_132 = i_3;
+          data[x_132] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_130 = i_3;
+          data[x_130] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_128 = i_3;
+          data[x_128] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_126 = i_3;
+          data[x_126] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_124 = i_3;
+          data[x_124] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_122 = i_3;
+          data[x_122] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_120 = i_3;
+          data[x_120] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_118 = i_3;
+          data[x_118] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_116 = i_3;
+          data[x_116] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_114 = i_3;
+          data[x_114] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_134 = i_3;
+      i_3 = (x_134 + 1);
+      {
+        int x_136 = i_3;
+        if (!((x_136 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_142 = j_1;
+      if ((x_142 < 10)) {
+      } else {
+        break;
+      }
+      int x_145 = j_1;
+      int x_146 = j_1;
+      int x_148 = data[x_146];
+      temp[x_145] = x_148;
+      {
+        int x_150 = j_1;
+        j_1 = (x_150 + 1);
+      }
+      continue;
+    }
+  }
+  x_94 = 0;
+  x_93 = 9;
+  x_92 = 1;
+  {
+    while(true) {
+      int x_156 = x_92;
+      int x_157 = x_93;
+      if ((x_156 <= x_157)) {
+      } else {
+        break;
+      }
+      int x_160 = x_94;
+      x_91 = x_160;
+      {
+        while(true) {
+          int x_165 = x_91;
+          int x_166 = x_93;
+          if ((x_165 < x_166)) {
+          } else {
+            break;
+          }
+          int x_169 = x_91;
+          x_90 = x_169;
+          int x_170 = x_91;
+          int x_171 = x_92;
+          int x_173[10] = data;
+          data = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+          data = x_173;
+          x_89 = ((x_170 + x_171) - 1);
+          int x_175 = x_91;
+          int x_176 = x_92;
+          int x_180 = x_93;
+          x_88 = min(((x_175 + (2 * x_176)) - 1), x_180);
+          int x_182 = x_90;
+          x_87 = x_182;
+          int x_183 = x_89;
+          x_86 = x_183;
+          int x_184 = x_88;
+          x_85 = x_184;
+          merge_i1_i1_i1_(x_87, x_86, x_85);
+          {
+            int x_186 = x_92;
+            int x_188 = x_91;
+            x_91 = (x_188 + (2 * x_186));
+          }
+          continue;
+        }
+      }
+      {
+        int x_190 = x_92;
+        x_92 = (2 * x_190);
+      }
+      continue;
+    }
+  }
+  float x_194 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_194) < 30)) {
+    int x_201 = data[0];
+    grey = (0.5f + (float(x_201) / 10.0f));
+  } else {
+    float x_206 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_206) < 60)) {
+      int x_213 = data[1];
+      grey = (0.5f + (float(x_213) / 10.0f));
+    } else {
+      float x_218 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_218) < 90)) {
+        int x_225 = data[2];
+        grey = (0.5f + (float(x_225) / 10.0f));
+      } else {
+        float x_230 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_230) < 120)) {
+          int x_237 = data[3];
+          grey = (0.5f + (float(x_237) / 10.0f));
+        } else {
+          float x_242 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_242) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_249 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_249) < 180)) {
+              int x_256 = data[5];
+              grey = (0.5f + (float(x_256) / 10.0f));
+            } else {
+              float x_261 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_261) < 210)) {
+                int x_268 = data[6];
+                grey = (0.5f + (float(x_268) / 10.0f));
+              } else {
+                float x_273 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_273) < 240)) {
+                  int x_280 = data[7];
+                  grey = (0.5f + (float(x_280) / 10.0f));
+                } else {
+                  float x_285 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_285) < 270)) {
+                    int x_292 = data[8];
+                    grey = (0.5f + (float(x_292) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_296 = grey;
+  vec3 x_297 = vec3(x_296, x_296, x_296);
+  x_GLF_color = vec4(x_297[0u], x_297[1u], x_297[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.ir.glsl
index f297654..0c149f9 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.spvasm.expected.ir.glsl
@@ -1,11 +1,295 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_328 = k;
+        k = (k + 1);
+        int x_330 = i;
+        i = (i + 1);
+        temp[x_328] = data[x_330];
+      } else {
+        int x_335 = k;
+        k = (k + 1);
+        int x_337 = j;
+        j = (j + 1);
+        temp[x_335] = data[x_337];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_353 = k;
+      k = (k + 1);
+      int x_355 = i;
+      i = (i + 1);
+      temp[x_353] = data[x_355];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_369 = i_1;
+      data[x_369] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int x_85 = 0;
+  int x_86 = 0;
+  int x_87 = 0;
+  int x_88 = 0;
+  int x_89 = 0;
+  int x_90 = 0;
+  int x_91 = 0;
+  int x_92 = 0;
+  int x_93 = 0;
+  int x_94 = 0;
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_102 = i_3;
+      switch(x_102) {
+        case 9:
+        {
+          int x_132 = i_3;
+          data[x_132] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_130 = i_3;
+          data[x_130] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_128 = i_3;
+          data[x_128] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_126 = i_3;
+          data[x_126] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_124 = i_3;
+          data[x_124] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_122 = i_3;
+          data[x_122] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_120 = i_3;
+          data[x_120] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_118 = i_3;
+          data[x_118] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_116 = i_3;
+          data[x_116] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_114 = i_3;
+          data[x_114] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_136 = i_3;
+        if (!((x_136 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      if ((j_1 < 10)) {
+      } else {
+        break;
+      }
+      int x_145 = j_1;
+      temp[x_145] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  x_94 = 0;
+  x_93 = 9;
+  x_92 = 1;
+  {
+    while(true) {
+      if ((x_92 <= x_93)) {
+      } else {
+        break;
+      }
+      x_91 = x_94;
+      {
+        while(true) {
+          if ((x_91 < x_93)) {
+          } else {
+            break;
+          }
+          x_90 = x_91;
+          x_89 = ((x_91 + x_92) - 1);
+          x_88 = min(((x_91 + (2 * x_92)) - 1), x_93);
+          x_87 = x_90;
+          x_86 = x_89;
+          x_85 = x_88;
+          merge_i1_i1_i1_(x_87, x_86, x_85);
+          {
+            x_91 = (x_91 + (2 * x_92));
+          }
+          continue;
+        }
+      }
+      {
+        x_92 = (2 * x_92);
+      }
+      continue;
+    }
+  }
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            continue_execution = false;
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  if ((tint_f32_to_i32(tint_symbol.y) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_296 = vec3(grey);
+  x_GLF_color = vec4(x_296[0u], x_296[1u], x_296[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl.expected.ir.glsl
index f297654..5c84a36 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl.expected.ir.glsl
@@ -1,11 +1,359 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_302 = f;
+  k = x_302;
+  int x_303 = f;
+  i = x_303;
+  int x_304 = mid;
+  j = (x_304 + 1);
+  {
+    while(true) {
+      int x_310 = i;
+      int x_311 = mid;
+      int x_313 = j;
+      int x_314 = to;
+      if (((x_310 <= x_311) & (x_313 <= x_314))) {
+      } else {
+        break;
+      }
+      int x_318 = i;
+      int x_320 = data[x_318];
+      int x_321 = j;
+      int x_323 = data[x_321];
+      if ((x_320 < x_323)) {
+        int x_328 = k;
+        k = (x_328 + 1);
+        int x_330 = i;
+        i = (x_330 + 1);
+        int x_333 = data[x_330];
+        temp[x_328] = x_333;
+      } else {
+        int x_335 = k;
+        k = (x_335 + 1);
+        int x_337 = j;
+        j = (x_337 + 1);
+        int x_340 = data[x_337];
+        temp[x_335] = x_340;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_346 = i;
+      int x_348 = i;
+      int x_349 = mid;
+      if (((x_346 < 10) & (x_348 <= x_349))) {
+      } else {
+        break;
+      }
+      int x_353 = k;
+      k = (x_353 + 1);
+      int x_355 = i;
+      i = (x_355 + 1);
+      int x_358 = data[x_355];
+      temp[x_353] = x_358;
+      {
+      }
+      continue;
+    }
+  }
+  int x_360 = f;
+  i_1 = x_360;
+  {
+    while(true) {
+      int x_365 = i_1;
+      int x_366 = to;
+      if ((x_365 <= x_366)) {
+      } else {
+        break;
+      }
+      int x_369 = i_1;
+      int x_370 = i_1;
+      int x_372 = temp[x_370];
+      data[x_369] = x_372;
+      {
+        int x_374 = i_1;
+        i_1 = (x_374 + 1);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int x_85 = 0;
+  int x_86 = 0;
+  int x_87 = 0;
+  int x_88 = 0;
+  int x_89 = 0;
+  int x_90 = 0;
+  int x_91 = 0;
+  int x_92 = 0;
+  int x_93 = 0;
+  int x_94 = 0;
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  float x_96 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_96);
+  {
+    while(true) {
+      int x_102 = i_3;
+      switch(x_102) {
+        case 9:
+        {
+          int x_132 = i_3;
+          data[x_132] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_130 = i_3;
+          data[x_130] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_128 = i_3;
+          data[x_128] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_126 = i_3;
+          data[x_126] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_124 = i_3;
+          data[x_124] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_122 = i_3;
+          data[x_122] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_120 = i_3;
+          data[x_120] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_118 = i_3;
+          data[x_118] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_116 = i_3;
+          data[x_116] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_114 = i_3;
+          data[x_114] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_134 = i_3;
+      i_3 = (x_134 + 1);
+      {
+        int x_136 = i_3;
+        if (!((x_136 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_142 = j_1;
+      if ((x_142 < 10)) {
+      } else {
+        break;
+      }
+      int x_145 = j_1;
+      int x_146 = j_1;
+      int x_148 = data[x_146];
+      temp[x_145] = x_148;
+      {
+        int x_150 = j_1;
+        j_1 = (x_150 + 1);
+      }
+      continue;
+    }
+  }
+  x_94 = 0;
+  x_93 = 9;
+  x_92 = 1;
+  {
+    while(true) {
+      int x_156 = x_92;
+      int x_157 = x_93;
+      if ((x_156 <= x_157)) {
+      } else {
+        break;
+      }
+      int x_160 = x_94;
+      x_91 = x_160;
+      {
+        while(true) {
+          int x_165 = x_91;
+          int x_166 = x_93;
+          if ((x_165 < x_166)) {
+          } else {
+            break;
+          }
+          int x_169 = x_91;
+          x_90 = x_169;
+          int x_170 = x_91;
+          int x_171 = x_92;
+          x_89 = ((x_170 + x_171) - 1);
+          int x_174 = x_91;
+          int x_175 = x_92;
+          int x_179 = x_93;
+          x_88 = min(((x_174 + (2 * x_175)) - 1), x_179);
+          int x_181 = x_90;
+          x_87 = x_181;
+          int x_182 = x_89;
+          x_86 = x_182;
+          int x_183 = x_88;
+          x_85 = x_183;
+          merge_i1_i1_i1_(x_87, x_86, x_85);
+          {
+            int x_185 = x_92;
+            int x_187 = x_91;
+            x_91 = (x_187 + (2 * x_185));
+          }
+          continue;
+        }
+      }
+      {
+        int x_189 = x_92;
+        x_92 = (2 * x_189);
+      }
+      continue;
+    }
+  }
+  float x_193 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_193) < 30)) {
+    int x_200 = data[0];
+    grey = (0.5f + (float(x_200) / 10.0f));
+  } else {
+    float x_205 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_205) < 60)) {
+      int x_212 = data[1];
+      grey = (0.5f + (float(x_212) / 10.0f));
+    } else {
+      float x_217 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_217) < 90)) {
+        int x_224 = data[2];
+        grey = (0.5f + (float(x_224) / 10.0f));
+      } else {
+        float x_229 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_229) < 120)) {
+          int x_236 = data[3];
+          grey = (0.5f + (float(x_236) / 10.0f));
+        } else {
+          float x_241 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_241) < 150)) {
+            continue_execution = false;
+          } else {
+            float x_248 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_248) < 180)) {
+              int x_255 = data[5];
+              grey = (0.5f + (float(x_255) / 10.0f));
+            } else {
+              float x_260 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_260) < 210)) {
+                int x_267 = data[6];
+                grey = (0.5f + (float(x_267) / 10.0f));
+              } else {
+                float x_272 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_272) < 240)) {
+                  int x_279 = data[7];
+                  grey = (0.5f + (float(x_279) / 10.0f));
+                } else {
+                  float x_284 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_284) < 270)) {
+                    int x_291 = data[8];
+                    grey = (0.5f + (float(x_291) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_295 = grey;
+  vec3 x_296 = vec3(x_295, x_295, x_295);
+  x_GLF_color = vec4(x_296[0u], x_296[1u], x_296[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.spvasm.expected.ir.glsl
index f297654..3aad054 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.spvasm.expected.ir.glsl
@@ -1,11 +1,121 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  ivec2 x_77 = ivec2(0);
+  int x_80 = 0;
+  ivec2 x_110 = ivec2(0);
+  ivec2 x_111 = ivec2(0);
+  ivec2 x_113 = ivec2(0);
+  int x_116 = 0;
+  vec2 x_60 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int x_63 = tint_f32_to_i32((x_60[0u] * 8.0f));
+  int x_66 = tint_f32_to_i32((x_60[1u] * 8.0f));
+  x_77 = ivec2(((((x_63 & 5) | (x_66 & 10)) * 8) + ((x_66 & 5) | (x_63 & 10))), 0);
+  x_80 = 0;
+  {
+    while(true) {
+      ivec2 x_91 = ivec2(0);
+      ivec2 x_92 = ivec2(0);
+      ivec2 x_99 = ivec2(0);
+      ivec2 x_100 = ivec2(0);
+      int x_81 = 0;
+      if ((x_80 < 100)) {
+      } else {
+        break;
+      }
+      x_92 = x_77;
+      if ((x_77.x > 0)) {
+        x_91 = x_77;
+        x_91[1u] = (x_77.y - 1);
+        x_92 = x_91;
+      }
+      x_100 = x_92;
+      if ((x_92.x < 0)) {
+        x_99 = x_92;
+        x_99[1u] = (x_92.y + 1);
+        x_100 = x_99;
+      }
+      ivec2 x_78_1 = x_100;
+      int v_1 = x_100.x;
+      x_78_1[0u] = (v_1 + tint_div_i32(x_100.y, 2));
+      ivec2 x_78 = x_78_1;
+      {
+        x_81 = (x_80 + 1);
+        x_77 = x_78;
+        x_80 = x_81;
+      }
+      continue;
+    }
+  }
+  int x_105 = x_77.x;
+  x_111 = x_77;
+  if ((x_105 < 0)) {
+    x_110 = ivec2(0);
+    x_110[0u] = -(x_105);
+    x_111 = x_110;
+  }
+  x_113 = x_111;
+  {
+    while(true) {
+      ivec2 x_114 = ivec2(0);
+      x_116 = x_113.x;
+      if ((x_116 > 15)) {
+      } else {
+        break;
+      }
+      {
+        x_114 = ivec2(0);
+        x_114[0u] = (x_116 - 16);
+        x_113 = x_114;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  x_GLF_color = indexable[x_116];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.spvasm.expected.ir.glsl
index f297654..c81f791 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.spvasm.expected.ir.glsl
@@ -1,11 +1,124 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  ivec2 x_80 = ivec2(0);
+  int x_83 = 0;
+  ivec2 x_113 = ivec2(0);
+  ivec2 x_114 = ivec2(0);
+  ivec2 x_116 = ivec2(0);
+  int x_119 = 0;
+  vec2 x_63 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int x_66 = tint_f32_to_i32((x_63[0u] * 8.0f));
+  int x_69 = tint_f32_to_i32((x_63[1u] * 8.0f));
+  x_80 = ivec2(((((x_66 & 5) | (x_69 & 10)) * 8) + ((x_69 & 5) | (x_66 & 10))), 0);
+  x_83 = 0;
+  {
+    while(true) {
+      ivec2 x_94 = ivec2(0);
+      ivec2 x_95 = ivec2(0);
+      ivec2 x_102 = ivec2(0);
+      ivec2 x_103 = ivec2(0);
+      int x_84 = 0;
+      if ((x_83 < 100)) {
+      } else {
+        break;
+      }
+      x_95 = x_80;
+      if ((x_80.x > 0)) {
+        x_94 = x_80;
+        x_94[1u] = (x_80.y - 1);
+        x_95 = x_94;
+      }
+      x_103 = x_95;
+      if ((x_95.x < 0)) {
+        x_102 = x_95;
+        x_102[1u] = (x_95.y + 1);
+        x_103 = x_102;
+      }
+      ivec2 x_81_1 = x_103;
+      int v_1 = x_103.x;
+      x_81_1[0u] = (v_1 + tint_div_i32(x_103.y, 2));
+      ivec2 x_81 = x_81_1;
+      {
+        x_84 = (x_83 + 1);
+        x_80 = x_81;
+        x_83 = x_84;
+      }
+      continue;
+    }
+  }
+  int x_108 = x_80.x;
+  x_114 = x_80;
+  if ((x_108 < 0)) {
+    x_113 = ivec2(0);
+    x_113[0u] = -(x_108);
+    x_114 = x_113;
+  }
+  x_116 = x_114;
+  {
+    while(true) {
+      ivec2 x_117 = ivec2(0);
+      x_119 = x_116.x;
+      if ((x_119 > 15)) {
+      } else {
+        break;
+      }
+      {
+        x_117 = ivec2(0);
+        x_117[0u] = (x_119 - 16);
+        x_116 = x_117;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  vec4 x_123[16] = indexable;
+  indexable = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  indexable = x_123;
+  x_GLF_color = indexable[x_119];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.spvasm.expected.ir.glsl
index f297654..72022e7 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.spvasm.expected.ir.glsl
@@ -1,11 +1,121 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  ivec2 x_76 = ivec2(0);
+  int x_79 = 0;
+  ivec2 x_109 = ivec2(0);
+  ivec2 x_110 = ivec2(0);
+  ivec2 x_112 = ivec2(0);
+  int x_115 = 0;
+  vec2 x_59 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int x_62 = tint_f32_to_i32((x_59[0u] * 8.0f));
+  int x_65 = tint_f32_to_i32((x_59[1u] * 8.0f));
+  x_76 = ivec2(((((x_62 & 5) | (x_65 & 10)) * 8) + ((x_65 & 5) | (x_62 & 10))), 0);
+  x_79 = 0;
+  {
+    while(true) {
+      ivec2 x_90 = ivec2(0);
+      ivec2 x_91 = ivec2(0);
+      ivec2 x_98 = ivec2(0);
+      ivec2 x_99 = ivec2(0);
+      int x_80 = 0;
+      if ((x_79 < 100)) {
+      } else {
+        break;
+      }
+      x_91 = x_76;
+      if ((x_76.x > 0)) {
+        x_90 = x_76;
+        x_90[1u] = (x_76.y - 1);
+        x_91 = x_90;
+      }
+      x_99 = x_91;
+      if ((x_91.x < 0)) {
+        x_98 = x_91;
+        x_98[1u] = (x_91.y + 1);
+        x_99 = x_98;
+      }
+      ivec2 x_77_1 = x_99;
+      int v_1 = x_99.x;
+      x_77_1[0u] = (v_1 + tint_div_i32(x_99.y, 2));
+      ivec2 x_77 = x_77_1;
+      {
+        x_80 = (x_79 + 1);
+        x_76 = x_77;
+        x_79 = x_80;
+      }
+      continue;
+    }
+  }
+  int x_104 = x_76.x;
+  x_110 = x_76;
+  if ((x_104 < 0)) {
+    x_109 = x_76;
+    x_109[0u] = -(x_104);
+    x_110 = x_109;
+  }
+  x_112 = x_110;
+  {
+    while(true) {
+      ivec2 x_113 = ivec2(0);
+      x_115 = x_112.x;
+      if ((x_115 > 15)) {
+      } else {
+        break;
+      }
+      {
+        x_113 = x_112;
+        x_113[0u] = (x_115 - 16);
+        x_112 = x_113;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  x_GLF_color = indexable[x_115];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.spvasm.expected.ir.glsl
index f297654..d0a044e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.spvasm.expected.ir.glsl
@@ -1,11 +1,124 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  ivec2 x_80 = ivec2(0);
+  int x_83 = 0;
+  ivec2 x_113 = ivec2(0);
+  ivec2 x_114 = ivec2(0);
+  ivec2 x_116 = ivec2(0);
+  int x_119 = 0;
+  vec2 x_62 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int x_65 = tint_f32_to_i32((x_62[0u] * 8.0f));
+  int x_69 = tint_f32_to_i32((x_62[1u] * 8.0f));
+  x_80 = ivec2(((((x_65 & 5) | (x_69 & 10)) * 8) + ((x_69 & 5) | (x_65 & 10))), 0);
+  x_83 = 0;
+  {
+    while(true) {
+      ivec2 x_94 = ivec2(0);
+      ivec2 x_95 = ivec2(0);
+      ivec2 x_102 = ivec2(0);
+      ivec2 x_103 = ivec2(0);
+      int x_84 = 0;
+      if ((x_83 < 100)) {
+      } else {
+        break;
+      }
+      x_95 = x_80;
+      if ((x_80.x > 0)) {
+        x_94 = x_80;
+        x_94[1u] = (x_80.y - 1);
+        x_95 = x_94;
+      }
+      x_103 = x_95;
+      if ((x_95.x < 0)) {
+        x_102 = x_95;
+        x_102[1u] = (x_95.y + 1);
+        x_103 = x_102;
+      }
+      ivec2 x_81_1 = x_103;
+      int v_1 = x_103.x;
+      x_81_1[0u] = (v_1 + tint_div_i32(x_103.y, 2));
+      ivec2 x_81 = x_81_1;
+      {
+        x_84 = (x_83 + 1);
+        x_80 = x_81;
+        x_83 = x_84;
+      }
+      continue;
+    }
+  }
+  int x_108 = x_80.x;
+  x_114 = x_80;
+  if ((x_108 < 0)) {
+    x_113 = x_80;
+    x_113[0u] = -(x_108);
+    x_114 = x_113;
+  }
+  x_116 = x_114;
+  {
+    while(true) {
+      ivec2 x_117 = ivec2(0);
+      x_119 = x_116.x;
+      if ((x_119 > 15)) {
+      } else {
+        break;
+      }
+      {
+        x_117 = x_116;
+        x_117[0u] = (x_119 - 16);
+        x_116 = x_117;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  vec4 x_124[16] = indexable;
+  indexable = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  indexable = x_124;
+  x_GLF_color = indexable[x_119];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.spvasm.expected.ir.glsl
index f297654..fac3129 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.spvasm.expected.ir.glsl
@@ -1,11 +1,121 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  ivec2 x_80 = ivec2(0);
+  int x_83 = 0;
+  ivec2 x_113 = ivec2(0);
+  ivec2 x_114 = ivec2(0);
+  ivec2 x_116 = ivec2(0);
+  int x_119 = 0;
+  vec2 x_62 = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  int x_65 = tint_f32_to_i32((x_62[0u] * 8.0f));
+  int x_69 = tint_f32_to_i32((x_62[1u] * 8.0f));
+  x_80 = ivec2(((((x_65 & 5) | (x_69 & 10)) * 8) + ((x_69 & 5) | (x_65 & 10))), 0);
+  x_83 = 0;
+  {
+    while(true) {
+      ivec2 x_94 = ivec2(0);
+      ivec2 x_95 = ivec2(0);
+      ivec2 x_102 = ivec2(0);
+      ivec2 x_103 = ivec2(0);
+      int x_84 = 0;
+      if ((x_83 < 100)) {
+      } else {
+        break;
+      }
+      x_95 = x_80;
+      if ((x_80.x > 0)) {
+        x_94 = x_80;
+        x_94[1u] = (x_80.y - 1);
+        x_95 = x_94;
+      }
+      x_103 = x_95;
+      if ((x_95.x < 0)) {
+        x_102 = x_95;
+        x_102[1u] = (x_95.y + 1);
+        x_103 = x_102;
+      }
+      ivec2 x_81_1 = x_103;
+      int v_1 = x_103.x;
+      x_81_1[0u] = (v_1 + tint_div_i32(x_103.y, 2));
+      ivec2 x_81 = x_81_1;
+      {
+        x_84 = (x_83 + 1);
+        x_80 = x_81;
+        x_83 = x_84;
+      }
+      continue;
+    }
+  }
+  int x_108 = x_80.x;
+  x_114 = x_80;
+  if ((x_108 < 0)) {
+    x_113 = x_80;
+    x_113[0u] = -(x_108);
+    x_114 = x_113;
+  }
+  x_116 = x_114;
+  {
+    while(true) {
+      ivec2 x_117 = ivec2(0);
+      x_119 = x_116.x;
+      if ((x_119 > 15)) {
+      } else {
+        break;
+      }
+      {
+        x_117 = x_116;
+        x_117[0u] = (x_119 - 16);
+        x_116 = x_117;
+      }
+      continue;
+    }
+  }
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  x_GLF_color = indexable[x_119];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.spvasm.expected.ir.glsl
index f297654..cfcc356 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.spvasm.expected.ir.glsl
@@ -1,11 +1,125 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 x_81[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_82[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_83[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_84[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_85[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_95 = vec4(0.0f);
+  int x_98 = 0;
+  x_81 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+  vec4 x_86[8] = x_81;
+  vec2 x_93 = floor(((tint_symbol.xy / v.tint_symbol_3.resolution) * 32.0f));
+  x_95 = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  x_98 = 0;
+  {
+    while(true) {
+      bool x_127 = false;
+      vec4 x_143 = vec4(0.0f);
+      vec4 x_96 = vec4(0.0f);
+      int x_99 = 0;
+      if ((x_98 < 8)) {
+      } else {
+        break;
+      }
+      vec4 x_104 = vec4(0.0f);
+      x_82 = x_86;
+      x_104 = x_82[x_98];
+      switch(0u) {
+        default:
+        {
+          float x_107 = x_93[0u];
+          float x_108 = x_104.x;
+          if ((x_107 < x_108)) {
+            x_127 = false;
+            break;
+          }
+          float x_112 = x_93[1u];
+          float x_113 = x_104.y;
+          if ((x_112 < x_113)) {
+            x_127 = false;
+            break;
+          }
+          if ((x_107 > (x_108 + x_104.z))) {
+            x_127 = false;
+            break;
+          }
+          if ((x_112 > (x_113 + x_104.w))) {
+            x_127 = false;
+            break;
+          }
+          x_127 = true;
+          break;
+        }
+      }
+      x_96 = x_95;
+      if (x_127) {
+        x_83 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_131 = x_83[x_98].x;
+        x_84 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_134 = x_84[x_98].y;
+        vec4 x_135[8] = x_81;
+        x_81 = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+        x_81 = x_135;
+        x_85 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_131);
+        int v_3 = (v_2 * tint_f32_to_i32(x_134));
+        x_143 = x_85[tint_mod_i32(((v_3 + (x_98 * 9)) + 11), 16)];
+        x_96 = x_143;
+      }
+      {
+        x_99 = (x_98 + 1);
+        x_95 = x_96;
+        x_98 = x_99;
+      }
+      continue;
+    }
+  }
+  x_GLF_color = x_95;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl.expected.ir.glsl
index f297654..a21ee5a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl.expected.ir.glsl
@@ -1,11 +1,131 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 x_81[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_82[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_83[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_84[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_85[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_95 = vec4(0.0f);
+  vec4 x_95_phi = vec4(0.0f);
+  int x_98_phi = 0;
+  x_81 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+  vec4 x_86[8] = x_81;
+  vec4 x_87 = tint_symbol;
+  vec2 x_90 = v.tint_symbol_3.resolution;
+  vec2 x_93 = floor(((vec2(x_87[0u], x_87[1u]) / x_90) * 32.0f));
+  x_95_phi = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  x_98_phi = 0;
+  {
+    while(true) {
+      vec4 x_143 = vec4(0.0f);
+      int x_99 = 0;
+      bool x_127_phi = false;
+      vec4 x_96_phi = vec4(0.0f);
+      x_95 = x_95_phi;
+      int x_98 = x_98_phi;
+      if ((x_98 < 8)) {
+      } else {
+        break;
+      }
+      vec4 x_104 = vec4(0.0f);
+      x_82 = x_86;
+      x_104 = x_82[x_98];
+      switch(0u) {
+        default:
+        {
+          float x_107 = x_93[0u];
+          float x_108 = x_104.x;
+          if ((x_107 < x_108)) {
+            x_127_phi = false;
+            break;
+          }
+          float x_112 = x_93[1u];
+          float x_113 = x_104.y;
+          if ((x_112 < x_113)) {
+            x_127_phi = false;
+            break;
+          }
+          if ((x_107 > (x_108 + x_104.z))) {
+            x_127_phi = false;
+            break;
+          }
+          if ((x_112 > (x_113 + x_104.w))) {
+            x_127_phi = false;
+            break;
+          }
+          x_127_phi = true;
+          break;
+        }
+      }
+      bool x_127 = x_127_phi;
+      x_96_phi = x_95;
+      if (x_127) {
+        x_83 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_131 = x_83[x_98].x;
+        x_84 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_134 = x_84[x_98].y;
+        vec4 x_135[8] = x_81;
+        x_81 = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+        x_81 = x_135;
+        x_85 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_131);
+        x_143 = x_85[tint_mod_i32((((v_2 * tint_f32_to_i32(x_134)) + (x_98 * 9)) + 11), 16)];
+        x_96_phi = x_143;
+      }
+      vec4 x_96 = x_96_phi;
+      {
+        x_99 = (x_98 + 1);
+        x_95_phi = x_96;
+        x_98_phi = x_99;
+      }
+      continue;
+    }
+  }
+  x_GLF_color = x_95;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.spvasm.expected.ir.glsl
index f297654..58706d3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.spvasm.expected.ir.glsl
@@ -1,11 +1,122 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 x_81[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_82[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_83[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_84[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_85[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_95 = vec4(0.0f);
+  int x_98 = 0;
+  x_81 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+  vec4 x_86[8] = x_81;
+  vec2 x_93 = floor(((tint_symbol.xy / v.tint_symbol_3.resolution) * 32.0f));
+  x_95 = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  x_98 = 0;
+  {
+    while(true) {
+      bool x_127 = false;
+      vec4 x_142 = vec4(0.0f);
+      vec4 x_96 = vec4(0.0f);
+      int x_99 = 0;
+      if ((x_98 < 8)) {
+      } else {
+        break;
+      }
+      vec4 x_104 = vec4(0.0f);
+      x_82 = x_86;
+      x_104 = x_82[x_98];
+      switch(0u) {
+        default:
+        {
+          float x_107 = x_93[0u];
+          float x_108 = x_104.x;
+          if ((x_107 < x_108)) {
+            x_127 = false;
+            break;
+          }
+          float x_112 = x_93[1u];
+          float x_113 = x_104.y;
+          if ((x_112 < x_113)) {
+            x_127 = false;
+            break;
+          }
+          if ((x_107 > (x_108 + x_104.z))) {
+            x_127 = false;
+            break;
+          }
+          if ((x_112 > (x_113 + x_104.w))) {
+            x_127 = false;
+            break;
+          }
+          x_127 = true;
+          break;
+        }
+      }
+      x_96 = x_95;
+      if (x_127) {
+        x_83 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_131 = x_83[x_98].x;
+        x_84 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_134 = x_84[x_98].y;
+        x_85 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_131);
+        int v_3 = (v_2 * tint_f32_to_i32(x_134));
+        x_142 = x_85[tint_mod_i32(((v_3 + (x_98 * 9)) + 11), 16)];
+        x_96 = x_142;
+      }
+      {
+        x_99 = (x_98 + 1);
+        x_95 = x_96;
+        x_98 = x_99;
+      }
+      continue;
+    }
+  }
+  x_GLF_color = x_95;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl.expected.ir.glsl
index f297654..18b2b05 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl.expected.ir.glsl
@@ -1,11 +1,128 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec4 x_81[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_82[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_83[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_84[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_85[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_95 = vec4(0.0f);
+  vec4 x_95_phi = vec4(0.0f);
+  int x_98_phi = 0;
+  x_81 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+  vec4 x_86[8] = x_81;
+  vec4 x_87 = tint_symbol;
+  vec2 x_90 = v.tint_symbol_3.resolution;
+  vec2 x_93 = floor(((vec2(x_87[0u], x_87[1u]) / x_90) * 32.0f));
+  x_95_phi = vec4(0.5f, 0.5f, 1.0f, 1.0f);
+  x_98_phi = 0;
+  {
+    while(true) {
+      vec4 x_142 = vec4(0.0f);
+      int x_99 = 0;
+      bool x_127_phi = false;
+      vec4 x_96_phi = vec4(0.0f);
+      x_95 = x_95_phi;
+      int x_98 = x_98_phi;
+      if ((x_98 < 8)) {
+      } else {
+        break;
+      }
+      vec4 x_104 = vec4(0.0f);
+      x_82 = x_86;
+      x_104 = x_82[x_98];
+      switch(0u) {
+        default:
+        {
+          float x_107 = x_93[0u];
+          float x_108 = x_104.x;
+          if ((x_107 < x_108)) {
+            x_127_phi = false;
+            break;
+          }
+          float x_112 = x_93[1u];
+          float x_113 = x_104.y;
+          if ((x_112 < x_113)) {
+            x_127_phi = false;
+            break;
+          }
+          if ((x_107 > (x_108 + x_104.z))) {
+            x_127_phi = false;
+            break;
+          }
+          if ((x_112 > (x_113 + x_104.w))) {
+            x_127_phi = false;
+            break;
+          }
+          x_127_phi = true;
+          break;
+        }
+      }
+      bool x_127 = x_127_phi;
+      x_96_phi = x_95;
+      if (x_127) {
+        x_83 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_131 = x_83[x_98].x;
+        x_84 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_134 = x_84[x_98].y;
+        x_85 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_131);
+        x_142 = x_85[tint_mod_i32((((v_2 * tint_f32_to_i32(x_134)) + (x_98 * 9)) + 11), 16)];
+        x_96_phi = x_142;
+      }
+      vec4 x_96 = x_96_phi;
+      {
+        x_99 = (x_98 + 1);
+        x_95_phi = x_96;
+        x_98_phi = x_99;
+      }
+      continue;
+    }
+  }
+  x_GLF_color = x_95;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.spvasm.expected.ir.glsl
index f297654..fd8c60b 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.spvasm.expected.ir.glsl
@@ -1,11 +1,87 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_2;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int collatz_i1_(inout int v) {
+  int count = 0;
+  count = 0;
+  {
+    while(true) {
+      if ((v > 1)) {
+      } else {
+        break;
+      }
+      if (((v & 1) == 1)) {
+        v = ((3 * v) + 1);
+      } else {
+        v = tint_div_i32(v, 2);
+      }
+      count = (count + 1);
+      {
+      }
+      continue;
+    }
+  }
+  int x_105 = count;
+  return x_105;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_3 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_3) * v_3));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  int v_1 = 0;
+  int param = 0;
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  lin = (tint_symbol.xy / v_2.tint_symbol_3.resolution);
+  lin = floor((lin * 8.0f));
+  int v_4 = (tint_f32_to_i32(lin.x) * 8);
+  v_1 = (v_4 + tint_f32_to_i32(lin.y));
+  param = v_1;
+  int x_80 = collatz_i1_(param);
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  x_GLF_color = indexable[tint_mod_i32(x_80, 16)];
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl.expected.ir.glsl
index f297654..07ddd95 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl.expected.ir.glsl
@@ -1,11 +1,99 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_2;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+int collatz_i1_(inout int v) {
+  int count = 0;
+  count = 0;
+  {
+    while(true) {
+      int x_89 = v;
+      if ((x_89 > 1)) {
+      } else {
+        break;
+      }
+      int x_92 = v;
+      if (((x_92 & 1) == 1)) {
+        int x_98 = v;
+        v = ((3 * x_98) + 1);
+      } else {
+        int x_101 = v;
+        v = tint_div_i32(x_101, 2);
+      }
+      int x_103 = count;
+      count = (x_103 + 1);
+      {
+      }
+      continue;
+    }
+  }
+  int x_105 = count;
+  return x_105;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_3 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_3) * v_3));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  int v_1 = 0;
+  int param = 0;
+  vec4 indexable[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 x_63 = tint_symbol;
+  vec2 x_66 = v_2.tint_symbol_3.resolution;
+  lin = (vec2(x_63[0u], x_63[1u]) / x_66);
+  vec2 x_68 = lin;
+  lin = floor((x_68 * 8.0f));
+  float x_72 = lin.x;
+  float x_76 = lin.y;
+  int v_4 = (tint_f32_to_i32(x_72) * 8);
+  v_1 = (v_4 + tint_f32_to_i32(x_76));
+  int x_79 = v_1;
+  param = x_79;
+  int x_80 = collatz_i1_(param);
+  indexable = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+  vec4 x_83 = indexable[tint_mod_i32(x_80, 16)];
+  x_GLF_color = x_83;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.spvasm.expected.ir.glsl
index f297654..12bcc90 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.spvasm.expected.ir.glsl
@@ -1,11 +1,223 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_54 = 0.0f;
+  float x_58 = 0.0f;
+  int x_61 = 0;
+  float x_59 = 0.0f;
+  float x_91 = 0.0f;
+  float x_92 = 0.0f;
+  bool x_93 = false;
+  float x_95 = 0.0f;
+  float x_135 = 0.0f;
+  float x_136 = 0.0f;
+  float x_139 = 0.0f;
+  int x_146 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_52 = round((v_1.tint_symbol_5.resolution.x * 0.125f));
+  x_54 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_58 = -0.5f;
+      x_61 = 1;
+      {
+        while(true) {
+          float x_71 = 0.0f;
+          float x_79 = 0.0f;
+          int x_62 = 0;
+          x_91 = 0.0f;
+          x_92 = x_58;
+          x_93 = false;
+          if ((x_61 < 800)) {
+          } else {
+            break;
+          }
+          float x_78 = 0.0f;
+          if ((tint_mod_i32(x_61, 32) == 0)) {
+            x_71 = (x_58 + 0.40000000596046447754f);
+            x_59 = x_71;
+          } else {
+            x_79 = x_58;
+            float v_3 = float(x_61);
+            float v_4 = round(x_52);
+            float v_5 = float(x_61);
+            if (((v_3 - (v_4 * floor((v_5 / round(x_52))))) <= 0.00999999977648258209f)) {
+              x_78 = (x_58 + 100.0f);
+              x_79 = x_78;
+            }
+            if ((v.tint_symbol_3.injectionSwitch.x > v.tint_symbol_3.injectionSwitch.y)) {
+              continue_execution = false;
+            }
+            x_59 = x_79;
+          }
+          float v_6 = float(x_61);
+          if ((v_6 >= x_54)) {
+            x_91 = x_59;
+            x_92 = x_59;
+            x_93 = true;
+            break;
+          }
+          {
+            x_62 = (x_61 + 1);
+            x_58 = x_59;
+            x_61 = x_62;
+          }
+          continue;
+        }
+      }
+      x_95 = x_91;
+      if (x_93) {
+        break;
+      }
+      x_95 = x_92;
+      break;
+    }
+  }
+  float x_98 = 0.0f;
+  float x_102 = 0.0f;
+  int x_105 = 0;
+  float x_103 = 0.0f;
+  bool x_137 = false;
+  c[0u] = x_95;
+  x_98 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      x_102 = -0.5f;
+      x_105 = 1;
+      {
+        while(true) {
+          float x_115 = 0.0f;
+          float x_123 = 0.0f;
+          int x_106 = 0;
+          x_135 = 0.0f;
+          x_136 = x_102;
+          x_137 = false;
+          if ((x_105 < 800)) {
+          } else {
+            break;
+          }
+          float x_122 = 0.0f;
+          if ((tint_mod_i32(x_105, 32) == 0)) {
+            x_115 = (x_102 + 0.40000000596046447754f);
+            x_103 = x_115;
+          } else {
+            x_123 = x_102;
+            float v_7 = float(x_105);
+            float v_8 = round(x_52);
+            float v_9 = float(x_105);
+            if (((v_7 - (v_8 * floor((v_9 / round(x_52))))) <= 0.00999999977648258209f)) {
+              x_122 = (x_102 + 100.0f);
+              x_123 = x_122;
+            }
+            if ((v.tint_symbol_3.injectionSwitch.x > v.tint_symbol_3.injectionSwitch.y)) {
+              continue_execution = false;
+            }
+            x_103 = x_123;
+          }
+          float v_10 = float(x_105);
+          if ((v_10 >= x_98)) {
+            x_135 = x_103;
+            x_136 = x_103;
+            x_137 = true;
+            break;
+          }
+          {
+            x_106 = (x_105 + 1);
+            x_102 = x_103;
+            x_105 = x_106;
+          }
+          continue;
+        }
+      }
+      x_139 = x_135;
+      if (x_137) {
+        break;
+      }
+      x_139 = x_136;
+      break;
+    }
+  }
+  c[1u] = x_139;
+  c[2u] = (c.x + c.y);
+  x_146 = 0;
+  {
+    while(true) {
+      int x_147 = 0;
+      if ((x_146 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[x_146] >= 1.0f)) {
+        c[x_146] = (c[x_146] * c[x_146]);
+        if ((v.tint_symbol_3.injectionSwitch.x > v.tint_symbol_3.injectionSwitch.y)) {
+          continue_execution = false;
+        }
+      }
+      {
+        x_147 = (x_146 + 1);
+        x_146 = x_147;
+      }
+      continue;
+    }
+  }
+  vec3 x_169 = normalize(abs(c));
+  x_GLF_color = vec4(x_169[0u], x_169[1u], x_169[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_11 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_11;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:31: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl.expected.ir.glsl
index f297654..b238585 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl.expected.ir.glsl
@@ -1,11 +1,263 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float x_54 = 0.0f;
+  float x_58 = 0.0f;
+  float x_59 = 0.0f;
+  float x_91 = 0.0f;
+  float x_92 = 0.0f;
+  float x_135 = 0.0f;
+  float x_136 = 0.0f;
+  float x_58_phi = 0.0f;
+  int x_61_phi = 0;
+  float x_91_phi = 0.0f;
+  float x_92_phi = 0.0f;
+  bool x_93_phi = false;
+  float x_95_phi = 0.0f;
+  float x_139_phi = 0.0f;
+  int x_146_phi = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_50 = v_1.tint_symbol_5.resolution.x;
+  float x_52 = round((x_50 * 0.125f));
+  x_54 = tint_symbol.x;
+  switch(0u) {
+    default:
+    {
+      x_58_phi = -0.5f;
+      x_61_phi = 1;
+      {
+        while(true) {
+          float x_71 = 0.0f;
+          float x_79 = 0.0f;
+          int x_62 = 0;
+          float x_59_phi = 0.0f;
+          x_58 = x_58_phi;
+          int x_61 = x_61_phi;
+          x_91_phi = 0.0f;
+          x_92_phi = x_58;
+          x_93_phi = false;
+          if ((x_61 < 800)) {
+          } else {
+            break;
+          }
+          float x_78 = 0.0f;
+          float x_79_phi = 0.0f;
+          if ((tint_mod_i32(x_61, 32) == 0)) {
+            x_71 = (x_58 + 0.40000000596046447754f);
+            x_59_phi = x_71;
+          } else {
+            x_79_phi = x_58;
+            float v_3 = float(x_61);
+            float v_4 = round(x_52);
+            float v_5 = float(x_61);
+            if (((v_3 - (v_4 * floor((v_5 / round(x_52))))) <= 0.00999999977648258209f)) {
+              x_78 = (x_58 + 100.0f);
+              x_79_phi = x_78;
+            }
+            x_79 = x_79_phi;
+            float x_81 = v.tint_symbol_3.injectionSwitch.x;
+            float x_83 = v.tint_symbol_3.injectionSwitch.y;
+            if ((x_81 > x_83)) {
+              continue_execution = false;
+            }
+            x_59_phi = x_79;
+          }
+          x_59 = x_59_phi;
+          float v_6 = float(x_61);
+          if ((v_6 >= x_54)) {
+            x_91_phi = x_59;
+            x_92_phi = x_59;
+            x_93_phi = true;
+            break;
+          }
+          {
+            x_62 = (x_61 + 1);
+            x_58_phi = x_59;
+            x_61_phi = x_62;
+          }
+          continue;
+        }
+      }
+      x_91 = x_91_phi;
+      x_92 = x_92_phi;
+      bool x_93 = x_93_phi;
+      x_95_phi = x_91;
+      if (x_93) {
+        break;
+      }
+      x_95_phi = x_92;
+      break;
+    }
+  }
+  float x_98 = 0.0f;
+  float x_102 = 0.0f;
+  float x_103 = 0.0f;
+  float x_102_phi = 0.0f;
+  int x_105_phi = 0;
+  float x_135_phi = 0.0f;
+  float x_136_phi = 0.0f;
+  bool x_137_phi = false;
+  float x_95 = x_95_phi;
+  c[0u] = x_95;
+  x_98 = tint_symbol.y;
+  switch(0u) {
+    default:
+    {
+      x_102_phi = -0.5f;
+      x_105_phi = 1;
+      {
+        while(true) {
+          float x_115 = 0.0f;
+          float x_123 = 0.0f;
+          int x_106 = 0;
+          float x_103_phi = 0.0f;
+          x_102 = x_102_phi;
+          int x_105 = x_105_phi;
+          x_135_phi = 0.0f;
+          x_136_phi = x_102;
+          x_137_phi = false;
+          if ((x_105 < 800)) {
+          } else {
+            break;
+          }
+          float x_122 = 0.0f;
+          float x_123_phi = 0.0f;
+          if ((tint_mod_i32(x_105, 32) == 0)) {
+            x_115 = (x_102 + 0.40000000596046447754f);
+            x_103_phi = x_115;
+          } else {
+            x_123_phi = x_102;
+            float v_7 = float(x_105);
+            float v_8 = round(x_52);
+            float v_9 = float(x_105);
+            if (((v_7 - (v_8 * floor((v_9 / round(x_52))))) <= 0.00999999977648258209f)) {
+              x_122 = (x_102 + 100.0f);
+              x_123_phi = x_122;
+            }
+            x_123 = x_123_phi;
+            float x_125 = v.tint_symbol_3.injectionSwitch.x;
+            float x_127 = v.tint_symbol_3.injectionSwitch.y;
+            if ((x_125 > x_127)) {
+              continue_execution = false;
+            }
+            x_103_phi = x_123;
+          }
+          x_103 = x_103_phi;
+          float v_10 = float(x_105);
+          if ((v_10 >= x_98)) {
+            x_135_phi = x_103;
+            x_136_phi = x_103;
+            x_137_phi = true;
+            break;
+          }
+          {
+            x_106 = (x_105 + 1);
+            x_102_phi = x_103;
+            x_105_phi = x_106;
+          }
+          continue;
+        }
+      }
+      x_135 = x_135_phi;
+      x_136 = x_136_phi;
+      bool x_137 = x_137_phi;
+      x_139_phi = x_135;
+      if (x_137) {
+        break;
+      }
+      x_139_phi = x_136;
+      break;
+    }
+  }
+  float x_139 = x_139_phi;
+  c[1u] = x_139;
+  float x_141 = c.x;
+  float x_142 = c.y;
+  c[2u] = (x_141 + x_142);
+  x_146_phi = 0;
+  {
+    while(true) {
+      int x_147 = 0;
+      int x_146 = x_146_phi;
+      if ((x_146 < 3)) {
+      } else {
+        break;
+      }
+      float x_153 = c[x_146];
+      if ((x_153 >= 1.0f)) {
+        float x_157 = c[x_146];
+        float x_158 = c[x_146];
+        c[x_146] = (x_157 * x_158);
+        float x_161 = v.tint_symbol_3.injectionSwitch.x;
+        float x_163 = v.tint_symbol_3.injectionSwitch.y;
+        if ((x_161 > x_163)) {
+          continue_execution = false;
+        }
+      }
+      {
+        x_147 = (x_146 + 1);
+        x_146_phi = x_147;
+      }
+      continue;
+    }
+  }
+  vec3 x_167 = c;
+  vec3 x_169 = normalize(abs(x_167));
+  x_GLF_color = vec4(x_169[0u], x_169[1u], x_169[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_11 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_11;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:31: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.spvasm.expected.ir.glsl
index f297654..03592ba 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.spvasm.expected.ir.glsl
@@ -1,11 +1,119 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      if ((i < 800)) {
+      } else {
+        break;
+      }
+      if ((tint_mod_i32(i, 32) == 0)) {
+        result = (result + 0.40000000596046447754f);
+      } else {
+        float x_124 = thirty_two;
+        float v_2 = float(i);
+        float v_3 = round(x_124);
+        float v_4 = float(i);
+        if (((v_2 - (v_3 * floor((v_4 / round(x_124))))) <= 0.00999999977648258209f)) {
+          result = (result + 100.0f);
+        }
+      }
+      float v_5 = float(i);
+      if ((v_5 >= limit)) {
+        float x_138 = result;
+        return x_138;
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  float x_141 = result;
+  return x_141;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int i_1 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  thirty_two_1 = round((v.tint_symbol_3.resolution.x / 8.0f));
+  param = tint_symbol.x;
+  param_1 = thirty_two_1;
+  float x_62 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_62;
+  param_2 = tint_symbol.y;
+  param_3 = thirty_two_1;
+  float x_67 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_67;
+  c[2u] = (c.x + c.y);
+  i_1 = 0;
+  {
+    while(true) {
+      if ((i_1 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[i_1] >= 1.0f)) {
+        int x_88 = i_1;
+        c[x_88] = (c[i_1] * c[i_1]);
+      }
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+  vec3 x_101 = normalize(abs(c));
+  x_GLF_color = vec4(x_101[0u], x_101[1u], x_101[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.ir.glsl
index f297654..5db33d8 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl.expected.ir.glsl
@@ -1,11 +1,142 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      int x_111 = i;
+      if ((x_111 < 800)) {
+      } else {
+        break;
+      }
+      int x_114 = i;
+      if ((tint_mod_i32(x_114, 32) == 0)) {
+        float x_120 = result;
+        result = (x_120 + 0.40000000596046447754f);
+      } else {
+        int x_122 = i;
+        float x_124 = thirty_two;
+        float v_2 = float(x_122);
+        float v_3 = round(x_124);
+        float v_4 = float(x_122);
+        if (((v_2 - (v_3 * floor((v_4 / round(x_124))))) <= 0.00999999977648258209f)) {
+          float x_130 = result;
+          result = (x_130 + 100.0f);
+        }
+      }
+      int x_132 = i;
+      float x_134 = limit;
+      if ((float(x_132) >= x_134)) {
+        float x_138 = result;
+        return x_138;
+      }
+      {
+        int x_139 = i;
+        i = (x_139 + 1);
+      }
+      continue;
+    }
+  }
+  float x_141 = result;
+  return x_141;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int i_1 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_56 = v.tint_symbol_3.resolution.x;
+  thirty_two_1 = round((x_56 / 8.0f));
+  float x_60 = tint_symbol.x;
+  param = x_60;
+  float x_61 = thirty_two_1;
+  param_1 = x_61;
+  float x_62 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_62;
+  float x_65 = tint_symbol.y;
+  param_2 = x_65;
+  float x_66 = thirty_two_1;
+  param_3 = x_66;
+  float x_67 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_67;
+  float x_70 = c.x;
+  float x_72 = c.y;
+  c[2u] = (x_70 + x_72);
+  i_1 = 0;
+  {
+    while(true) {
+      int x_79 = i_1;
+      if ((x_79 < 3)) {
+      } else {
+        break;
+      }
+      int x_82 = i_1;
+      float x_84 = c[x_82];
+      if ((x_84 >= 1.0f)) {
+        int x_88 = i_1;
+        int x_89 = i_1;
+        float x_91 = c[x_89];
+        int x_92 = i_1;
+        float x_94 = c[x_92];
+        c[x_88] = (x_91 * x_94);
+      }
+      {
+        int x_97 = i_1;
+        i_1 = (x_97 + 1);
+      }
+      continue;
+    }
+  }
+  vec3 x_99 = c;
+  vec3 x_101 = normalize(abs(x_99));
+  x_GLF_color = vec4(x_101[0u], x_101[1u], x_101[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.spvasm.expected.ir.glsl
index f297654..215d4ae 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.spvasm.expected.ir.glsl
@@ -1,11 +1,133 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_6_1_ubo {
+  buf1 tint_symbol_5;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      if ((i < 800)) {
+      } else {
+        break;
+      }
+      if ((tint_mod_i32(i, 32) == 0)) {
+        result = (result + 0.40000000596046447754f);
+      } else {
+        float x_138 = thirty_two;
+        float v_3 = float(i);
+        float v_4 = round(x_138);
+        float v_5 = float(i);
+        if (((v_3 - (v_4 * floor((v_5 / round(x_138))))) <= 0.00999999977648258209f)) {
+          result = (result + 100.0f);
+        }
+      }
+      float v_6 = float(i);
+      if ((v_6 >= limit)) {
+        float x_152 = result;
+        return x_152;
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  float x_155 = result;
+  return x_155;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int i_1 = 0;
+  vec3 x_58 = vec3(0.0f);
+  c = vec3(7.0f, 8.0f, 9.0f);
+  thirty_two_1 = round((v.tint_symbol_3.resolution.x / 8.0f));
+  param = tint_symbol.x;
+  param_1 = thirty_two_1;
+  float x_66 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_66;
+  param_2 = tint_symbol.y;
+  param_3 = thirty_two_1;
+  float x_71 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_71;
+  c[2u] = (c.x + c.y);
+  i_1 = 0;
+  {
+    while(true) {
+      if ((i_1 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[i_1] >= 1.0f)) {
+        int x_92 = i_1;
+        c[x_92] = (c[i_1] * c[i_1]);
+      }
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+  if ((v_1.tint_symbol_5.injectionSwitch.x < v_1.tint_symbol_5.injectionSwitch.y)) {
+    x_58 = abs(c);
+  } else {
+    x_58 = c;
+  }
+  vec3 x_115 = normalize(x_58);
+  x_GLF_color = vec4(x_115[0u], x_115[1u], x_115[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:30: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.ir.glsl
index f297654..dc00d09 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl.expected.ir.glsl
@@ -1,11 +1,160 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_6_1_ubo {
+  buf1 tint_symbol_5;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      int x_125 = i;
+      if ((x_125 < 800)) {
+      } else {
+        break;
+      }
+      int x_128 = i;
+      if ((tint_mod_i32(x_128, 32) == 0)) {
+        float x_134 = result;
+        result = (x_134 + 0.40000000596046447754f);
+      } else {
+        int x_136 = i;
+        float x_138 = thirty_two;
+        float v_3 = float(x_136);
+        float v_4 = round(x_138);
+        float v_5 = float(x_136);
+        if (((v_3 - (v_4 * floor((v_5 / round(x_138))))) <= 0.00999999977648258209f)) {
+          float x_144 = result;
+          result = (x_144 + 100.0f);
+        }
+      }
+      int x_146 = i;
+      float x_148 = limit;
+      if ((float(x_146) >= x_148)) {
+        float x_152 = result;
+        return x_152;
+      }
+      {
+        int x_153 = i;
+        i = (x_153 + 1);
+      }
+      continue;
+    }
+  }
+  float x_155 = result;
+  return x_155;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int i_1 = 0;
+  vec3 x_58 = vec3(0.0f);
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_60 = v.tint_symbol_3.resolution.x;
+  thirty_two_1 = round((x_60 / 8.0f));
+  float x_64 = tint_symbol.x;
+  param = x_64;
+  float x_65 = thirty_two_1;
+  param_1 = x_65;
+  float x_66 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_66;
+  float x_69 = tint_symbol.y;
+  param_2 = x_69;
+  float x_70 = thirty_two_1;
+  param_3 = x_70;
+  float x_71 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_71;
+  float x_74 = c.x;
+  float x_76 = c.y;
+  c[2u] = (x_74 + x_76);
+  i_1 = 0;
+  {
+    while(true) {
+      int x_83 = i_1;
+      if ((x_83 < 3)) {
+      } else {
+        break;
+      }
+      int x_86 = i_1;
+      float x_88 = c[x_86];
+      if ((x_88 >= 1.0f)) {
+        int x_92 = i_1;
+        int x_93 = i_1;
+        float x_95 = c[x_93];
+        int x_96 = i_1;
+        float x_98 = c[x_96];
+        c[x_92] = (x_95 * x_98);
+      }
+      {
+        int x_101 = i_1;
+        i_1 = (x_101 + 1);
+      }
+      continue;
+    }
+  }
+  float x_104 = v_1.tint_symbol_5.injectionSwitch.x;
+  float x_106 = v_1.tint_symbol_5.injectionSwitch.y;
+  if ((x_104 < x_106)) {
+    vec3 x_111 = c;
+    x_58 = abs(x_111);
+  } else {
+    vec3 x_113 = c;
+    x_58 = x_113;
+  }
+  vec3 x_114 = x_58;
+  vec3 x_115 = normalize(x_114);
+  x_GLF_color = vec4(x_115[0u], x_115[1u], x_115[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:30: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.spvasm.expected.ir.glsl
index f297654..67ad5d5 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,128 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float x_91 = 0.0f;
+  int x_94 = 0;
+  x_91 = -0.5f;
+  x_94 = 1;
+  {
+    while(true) {
+      float x_104 = 0.0f;
+      float x_113 = 0.0f;
+      float x_92 = 0.0f;
+      int x_95 = 0;
+      if ((x_94 < 800)) {
+      } else {
+        break;
+      }
+      float x_112 = 0.0f;
+      if ((tint_mod_i32(x_94, 32) == 0)) {
+        x_104 = (x_91 + 0.40000000596046447754f);
+        x_92 = x_104;
+      } else {
+        float x_106 = thirty_two;
+        x_113 = x_91;
+        float v_2 = float(x_94);
+        float v_3 = round(x_106);
+        float v_4 = float(x_94);
+        if (((v_2 - (v_3 * floor((v_4 / round(x_106))))) <= 0.00999999977648258209f)) {
+          x_112 = (x_91 + 100.0f);
+          x_113 = x_112;
+        }
+        x_92 = x_113;
+      }
+      float v_5 = float(x_94);
+      if ((v_5 >= limit)) {
+        return x_92;
+      }
+      {
+        x_95 = (x_94 + 1);
+        x_91 = x_92;
+        x_94 = x_95;
+      }
+      continue;
+    }
+  }
+  return x_91;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int x_68 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_54 = round((v.tint_symbol_3.resolution.x * 0.125f));
+  param = tint_symbol.x;
+  param_1 = x_54;
+  float x_57 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_57;
+  param_2 = tint_symbol.y;
+  param_3 = x_54;
+  float x_61 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_61;
+  c[2u] = (c.x + c.y);
+  x_68 = 0;
+  {
+    while(true) {
+      int x_69 = 0;
+      if ((x_68 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[x_68] >= 1.0f)) {
+        c[x_68] = (c[x_68] * c[x_68]);
+      }
+      {
+        x_69 = (x_68 + 1);
+        x_68 = x_69;
+      }
+      continue;
+    }
+  }
+  vec3 x_84 = normalize(abs(c));
+  x_GLF_color = vec4(x_84[0u], x_84[1u], x_84[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl.expected.ir.glsl
index f297654..f0050a5 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,145 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float x_91 = 0.0f;
+  float x_91_phi = 0.0f;
+  int x_94_phi = 0;
+  x_91_phi = -0.5f;
+  x_94_phi = 1;
+  {
+    while(true) {
+      float x_104 = 0.0f;
+      float x_113 = 0.0f;
+      int x_95 = 0;
+      float x_92_phi = 0.0f;
+      x_91 = x_91_phi;
+      int x_94 = x_94_phi;
+      if ((x_94 < 800)) {
+      } else {
+        break;
+      }
+      float x_112 = 0.0f;
+      float x_113_phi = 0.0f;
+      if ((tint_mod_i32(x_94, 32) == 0)) {
+        x_104 = (x_91 + 0.40000000596046447754f);
+        x_92_phi = x_104;
+      } else {
+        float x_106 = thirty_two;
+        x_113_phi = x_91;
+        float v_2 = float(x_94);
+        float v_3 = round(x_106);
+        float v_4 = float(x_94);
+        if (((v_2 - (v_3 * floor((v_4 / round(x_106))))) <= 0.00999999977648258209f)) {
+          x_112 = (x_91 + 100.0f);
+          x_113_phi = x_112;
+        }
+        x_113 = x_113_phi;
+        x_92_phi = x_113;
+      }
+      float x_92 = 0.0f;
+      x_92 = x_92_phi;
+      float x_115 = limit;
+      if ((float(x_94) >= x_115)) {
+        return x_92;
+      }
+      {
+        x_95 = (x_94 + 1);
+        x_91_phi = x_92;
+        x_94_phi = x_95;
+      }
+      continue;
+    }
+  }
+  return x_91;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int x_68_phi = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_52 = v.tint_symbol_3.resolution.x;
+  float x_54 = round((x_52 * 0.125f));
+  float x_56 = tint_symbol.x;
+  param = x_56;
+  param_1 = x_54;
+  float x_57 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_57;
+  float x_60 = tint_symbol.y;
+  param_2 = x_60;
+  param_3 = x_54;
+  float x_61 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_61;
+  float x_63 = c.x;
+  float x_64 = c.y;
+  c[2u] = (x_63 + x_64);
+  x_68_phi = 0;
+  {
+    while(true) {
+      int x_69 = 0;
+      int x_68 = x_68_phi;
+      if ((x_68 < 3)) {
+      } else {
+        break;
+      }
+      float x_75 = c[x_68];
+      if ((x_75 >= 1.0f)) {
+        float x_79 = c[x_68];
+        float x_80 = c[x_68];
+        c[x_68] = (x_79 * x_80);
+      }
+      {
+        x_69 = (x_68 + 1);
+        x_68_phi = x_69;
+      }
+      continue;
+    }
+  }
+  vec3 x_82 = c;
+  vec3 x_84 = normalize(abs(x_82));
+  x_GLF_color = vec4(x_84[0u], x_84[1u], x_84[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.spvasm.expected.ir.glsl
index f297654..fe50311 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.spvasm.expected.ir.glsl
@@ -1,11 +1,147 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_6_1_ubo {
+  buf1 tint_symbol_5;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float x_104 = 0.0f;
+  int x_107 = 0;
+  x_104 = -0.5f;
+  x_107 = 1;
+  {
+    while(true) {
+      float x_126 = 0.0f;
+      float x_125 = 0.0f;
+      float x_105 = 0.0f;
+      int x_108 = 0;
+      if ((x_107 < 800)) {
+      } else {
+        break;
+      }
+      float x_124 = 0.0f;
+      if ((tint_mod_i32(x_107, 32) == 0)) {
+        x_126 = (x_104 + 0.40000000596046447754f);
+        x_105 = x_126;
+      } else {
+        float x_118 = thirty_two;
+        x_125 = x_104;
+        float v_3 = float(x_107);
+        float v_4 = round(x_118);
+        float v_5 = float(x_107);
+        if (((v_3 - (v_4 * floor((v_5 / round(x_118))))) <= 0.00999999977648258209f)) {
+          x_124 = (x_104 + 100.0f);
+          x_125 = x_124;
+        }
+        x_105 = x_125;
+      }
+      float v_6 = float(x_107);
+      if ((v_6 >= limit)) {
+        return x_105;
+      }
+      {
+        x_108 = (x_107 + 1);
+        x_104 = x_105;
+        x_107 = x_108;
+      }
+      continue;
+    }
+  }
+  return x_104;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  vec3 x_54 = vec3(0.0f);
+  int x_74 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_58 = round((v.tint_symbol_3.resolution.x * 0.125f));
+  param = tint_symbol.x;
+  param_1 = x_58;
+  float x_61 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_61;
+  param_2 = tint_symbol.y;
+  param_3 = x_58;
+  float x_65 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_65;
+  float x_67 = c.x;
+  x_54 = c;
+  c[2u] = (x_67 + x_54.y);
+  x_74 = 0;
+  {
+    while(true) {
+      int x_75 = 0;
+      if ((x_74 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[x_74] >= 1.0f)) {
+        if ((v_1.tint_symbol_5.injectionSwitch.x > v_1.tint_symbol_5.injectionSwitch.y)) {
+          continue_execution = false;
+        }
+        c[x_74] = (c[x_74] * c[x_74]);
+      }
+      {
+        x_75 = (x_74 + 1);
+        x_74 = x_75;
+      }
+      continue;
+    }
+  }
+  vec3 x_97 = normalize(abs(c));
+  x_GLF_color = vec4(x_97[0u], x_97[1u], x_97[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_7 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_7;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:31: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl.expected.ir.glsl
index f297654..6fa9032 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl.expected.ir.glsl
@@ -1,11 +1,166 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_6_1_ubo {
+  buf1 tint_symbol_5;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float x_104 = 0.0f;
+  float x_104_phi = 0.0f;
+  int x_107_phi = 0;
+  x_104_phi = -0.5f;
+  x_107_phi = 1;
+  {
+    while(true) {
+      float x_126 = 0.0f;
+      float x_125 = 0.0f;
+      int x_108 = 0;
+      float x_105_phi = 0.0f;
+      x_104 = x_104_phi;
+      int x_107 = x_107_phi;
+      if ((x_107 < 800)) {
+      } else {
+        break;
+      }
+      float x_124 = 0.0f;
+      float x_125_phi = 0.0f;
+      if ((tint_mod_i32(x_107, 32) == 0)) {
+        x_126 = (x_104 + 0.40000000596046447754f);
+        x_105_phi = x_126;
+      } else {
+        float x_118 = thirty_two;
+        x_125_phi = x_104;
+        float v_3 = float(x_107);
+        float v_4 = round(x_118);
+        float v_5 = float(x_107);
+        if (((v_3 - (v_4 * floor((v_5 / round(x_118))))) <= 0.00999999977648258209f)) {
+          x_124 = (x_104 + 100.0f);
+          x_125_phi = x_124;
+        }
+        x_125 = x_125_phi;
+        x_105_phi = x_125;
+      }
+      float x_105 = 0.0f;
+      x_105 = x_105_phi;
+      float x_128 = limit;
+      if ((float(x_107) >= x_128)) {
+        return x_105;
+      }
+      {
+        x_108 = (x_107 + 1);
+        x_104_phi = x_105;
+        x_107_phi = x_108;
+      }
+      continue;
+    }
+  }
+  return x_104;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  vec3 x_54 = vec3(0.0f);
+  int x_74_phi = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_56 = v.tint_symbol_3.resolution.x;
+  float x_58 = round((x_56 * 0.125f));
+  float x_60 = tint_symbol.x;
+  param = x_60;
+  param_1 = x_58;
+  float x_61 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_61;
+  float x_64 = tint_symbol.y;
+  param_2 = x_64;
+  param_3 = x_58;
+  float x_65 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_65;
+  float x_67 = c.x;
+  vec3 x_68 = c;
+  x_54 = x_68;
+  float x_70 = x_54.y;
+  c[2u] = (x_67 + x_70);
+  x_74_phi = 0;
+  {
+    while(true) {
+      int x_75 = 0;
+      int x_74 = x_74_phi;
+      if ((x_74 < 3)) {
+      } else {
+        break;
+      }
+      float x_81 = c[x_74];
+      if ((x_81 >= 1.0f)) {
+        float x_86 = v_1.tint_symbol_5.injectionSwitch.x;
+        float x_88 = v_1.tint_symbol_5.injectionSwitch.y;
+        if ((x_86 > x_88)) {
+          continue_execution = false;
+        }
+        float x_92 = c[x_74];
+        float x_93 = c[x_74];
+        c[x_74] = (x_92 * x_93);
+      }
+      {
+        x_75 = (x_74 + 1);
+        x_74_phi = x_75;
+      }
+      continue;
+    }
+  }
+  vec3 x_95 = c;
+  vec3 x_97 = normalize(abs(x_95));
+  x_GLF_color = vec4(x_97[0u], x_97[1u], x_97[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_6 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_6;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:31: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:31: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.spvasm.expected.ir.glsl
index f297654..72804f9 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.spvasm.expected.ir.glsl
@@ -1,11 +1,151 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_6_1_ubo {
+  buf1 tint_symbol_5;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      if ((i < 800)) {
+      } else {
+        break;
+      }
+      if ((tint_mod_i32(i, 32) == 0)) {
+        result = (result + 0.40000000596046447754f);
+      } else {
+        float x_157 = thirty_two;
+        float v_3 = float(i);
+        float v_4 = round(x_157);
+        float v_5 = float(i);
+        if (((v_3 - (v_4 * floor((v_5 / round(x_157))))) <= 0.00999999977648258209f)) {
+          result = (result + 100.0f);
+        }
+      }
+      float v_6 = float(i);
+      if ((v_6 >= limit)) {
+        float x_171 = result;
+        return x_171;
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  float x_174 = result;
+  return x_174;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  vec3 x_61 = vec3(0.0f);
+  int i_1 = 0;
+  float j = 0.0f;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  thirty_two_1 = round((v.tint_symbol_3.resolution.x / 8.0f));
+  param = tint_symbol.x;
+  param_1 = thirty_two_1;
+  float x_69 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_69;
+  param_2 = tint_symbol.y;
+  param_3 = thirty_two_1;
+  float x_74 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_74;
+  float x_77 = c.x;
+  if (true) {
+    x_61 = c;
+  } else {
+    x_61 = (c * v_1.tint_symbol_5.injectionSwitch.x);
+  }
+  c[2u] = (x_77 + x_61.y);
+  i_1 = 0;
+  {
+    while(true) {
+      if ((i_1 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[i_1] >= 1.0f)) {
+        int x_103 = i_1;
+        c[x_103] = (c[i_1] * c[i_1]);
+      }
+      j = 0.0f;
+      {
+        while(true) {
+          if ((v_1.tint_symbol_5.injectionSwitch.x > v_1.tint_symbol_5.injectionSwitch.y)) {
+          } else {
+            break;
+          }
+          if ((j >= v_1.tint_symbol_5.injectionSwitch.x)) {
+            break;
+          }
+          j = (j + 1.0f);
+          {
+          }
+          continue;
+        }
+      }
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+  vec3 x_134 = normalize(abs(c));
+  x_GLF_color = vec4(x_134[0u], x_134[1u], x_134[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:30: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.ir.glsl
index f297654..ad34daa 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl.expected.ir.glsl
@@ -1,11 +1,181 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 1, std140)
+uniform tint_symbol_6_1_ubo {
+  buf1 tint_symbol_5;
+} v_1;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_2 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_2) * v_2));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      int x_144 = i;
+      if ((x_144 < 800)) {
+      } else {
+        break;
+      }
+      int x_147 = i;
+      if ((tint_mod_i32(x_147, 32) == 0)) {
+        float x_153 = result;
+        result = (x_153 + 0.40000000596046447754f);
+      } else {
+        int x_155 = i;
+        float x_157 = thirty_two;
+        float v_3 = float(x_155);
+        float v_4 = round(x_157);
+        float v_5 = float(x_155);
+        if (((v_3 - (v_4 * floor((v_5 / round(x_157))))) <= 0.00999999977648258209f)) {
+          float x_163 = result;
+          result = (x_163 + 100.0f);
+        }
+      }
+      int x_165 = i;
+      float x_167 = limit;
+      if ((float(x_165) >= x_167)) {
+        float x_171 = result;
+        return x_171;
+      }
+      {
+        int x_172 = i;
+        i = (x_172 + 1);
+      }
+      continue;
+    }
+  }
+  float x_174 = result;
+  return x_174;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  vec3 x_61 = vec3(0.0f);
+  int i_1 = 0;
+  float j = 0.0f;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_63 = v.tint_symbol_3.resolution.x;
+  thirty_two_1 = round((x_63 / 8.0f));
+  float x_67 = tint_symbol.x;
+  param = x_67;
+  float x_68 = thirty_two_1;
+  param_1 = x_68;
+  float x_69 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_69;
+  float x_72 = tint_symbol.y;
+  param_2 = x_72;
+  float x_73 = thirty_two_1;
+  param_3 = x_73;
+  float x_74 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_74;
+  float x_77 = c.x;
+  if (true) {
+    vec3 x_81 = c;
+    x_61 = x_81;
+  } else {
+    vec3 x_82 = c;
+    float x_84 = v_1.tint_symbol_5.injectionSwitch.x;
+    x_61 = (x_82 * x_84);
+  }
+  float x_87 = x_61.y;
+  c[2u] = (x_77 + x_87);
+  i_1 = 0;
+  {
+    while(true) {
+      int x_94 = i_1;
+      if ((x_94 < 3)) {
+      } else {
+        break;
+      }
+      int x_97 = i_1;
+      float x_99 = c[x_97];
+      if ((x_99 >= 1.0f)) {
+        int x_103 = i_1;
+        int x_104 = i_1;
+        float x_106 = c[x_104];
+        int x_107 = i_1;
+        float x_109 = c[x_107];
+        c[x_103] = (x_106 * x_109);
+      }
+      j = 0.0f;
+      {
+        while(true) {
+          float x_117 = v_1.tint_symbol_5.injectionSwitch.x;
+          float x_119 = v_1.tint_symbol_5.injectionSwitch.y;
+          if ((x_117 > x_119)) {
+          } else {
+            break;
+          }
+          float x_122 = j;
+          float x_124 = v_1.tint_symbol_5.injectionSwitch.x;
+          if ((x_122 >= x_124)) {
+            break;
+          }
+          float x_128 = j;
+          j = (x_128 + 1.0f);
+          {
+          }
+          continue;
+        }
+      }
+      {
+        int x_130 = i_1;
+        i_1 = (x_130 + 1);
+      }
+      continue;
+    }
+  }
+  vec3 x_132 = c;
+  vec3 x_134 = normalize(abs(x_132));
+  x_GLF_color = vec4(x_134[0u], x_134[1u], x_134[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:30: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:30: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.glsl
index f297654..f580d9e 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.spvasm.expected.ir.glsl
@@ -1,11 +1,125 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      if ((i < 800)) {
+      } else {
+        break;
+      }
+      if ((tint_mod_i32(i, 32) == 0)) {
+        result = (result + 0.40000000596046447754f);
+      } else {
+        float x_149 = thirty_two;
+        float v_2 = float(i);
+        float v_3 = round(x_149);
+        float v_4 = float(i);
+        if (((v_2 - (v_3 * floor((v_4 / round(x_149))))) <= 0.00999999977648258209f)) {
+          result = (result + 100.0f);
+        }
+      }
+      float v_5 = float(i);
+      if ((v_5 >= limit)) {
+        float x_163 = result;
+        return x_163;
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  float x_166 = result;
+  return x_166;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int i_1 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  thirty_two_1 = round((v.tint_symbol_3.resolution.x / 8.0f));
+  param = tint_symbol.x;
+  param_1 = thirty_two_1;
+  float x_69 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_69;
+  param_2 = tint_symbol.y;
+  param_3 = thirty_two_1;
+  float x_74 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_74;
+  vec2 v_6 = vec2(c.x, c.y);
+  mat4x2 x_87 = mat4x2(v_6, vec2(c.z, 1.0f), vec2(1.0f, 0.0f), vec2(1.0f, 0.0f));
+  float v_7 = (c * mat3(vec3(1.0f, 0.0f, 0.0f), vec3(0.0f, 1.0f, 0.0f), vec3(0.0f, 0.0f, 1.0f)))[0u];
+  c[2u] = (v_7 + vec3(x_87[0u][0u], x_87[0u][1u], x_87[1u][0u])[1u]);
+  i_1 = 0;
+  {
+    while(true) {
+      if ((i_1 < 3)) {
+      } else {
+        break;
+      }
+      if ((c[i_1] >= 1.0f)) {
+        int x_108 = i_1;
+        c[x_108] = (c[i_1] * c[i_1]);
+        if ((tint_symbol.y < 0.0f)) {
+          break;
+        }
+      }
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+  vec3 x_126 = normalize(abs(c));
+  x_GLF_color = vec4(x_126[0u], x_126[1u], x_126[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.glsl
index f297654..5cc32e4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl.expected.ir.glsl
@@ -1,11 +1,148 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+float compute_value_f1_f1_(inout float limit, inout float thirty_two) {
+  float result = 0.0f;
+  int i = 0;
+  result = -0.5f;
+  i = 1;
+  {
+    while(true) {
+      int x_136 = i;
+      if ((x_136 < 800)) {
+      } else {
+        break;
+      }
+      int x_139 = i;
+      if ((tint_mod_i32(x_139, 32) == 0)) {
+        float x_145 = result;
+        result = (x_145 + 0.40000000596046447754f);
+      } else {
+        int x_147 = i;
+        float x_149 = thirty_two;
+        float v_2 = float(x_147);
+        float v_3 = round(x_149);
+        float v_4 = float(x_147);
+        if (((v_2 - (v_3 * floor((v_4 / round(x_149))))) <= 0.00999999977648258209f)) {
+          float x_155 = result;
+          result = (x_155 + 100.0f);
+        }
+      }
+      int x_157 = i;
+      float x_159 = limit;
+      if ((float(x_157) >= x_159)) {
+        float x_163 = result;
+        return x_163;
+      }
+      {
+        int x_164 = i;
+        i = (x_164 + 1);
+      }
+      continue;
+    }
+  }
+  float x_166 = result;
+  return x_166;
+}
+void main_1() {
+  vec3 c = vec3(0.0f);
+  float thirty_two_1 = 0.0f;
+  float param = 0.0f;
+  float param_1 = 0.0f;
+  float param_2 = 0.0f;
+  float param_3 = 0.0f;
+  int i_1 = 0;
+  c = vec3(7.0f, 8.0f, 9.0f);
+  float x_63 = v.tint_symbol_3.resolution.x;
+  thirty_two_1 = round((x_63 / 8.0f));
+  float x_67 = tint_symbol.x;
+  param = x_67;
+  float x_68 = thirty_two_1;
+  param_1 = x_68;
+  float x_69 = compute_value_f1_f1_(param, param_1);
+  c[0u] = x_69;
+  float x_72 = tint_symbol.y;
+  param_2 = x_72;
+  float x_73 = thirty_two_1;
+  param_3 = x_73;
+  float x_74 = compute_value_f1_f1_(param_2, param_3);
+  c[1u] = x_74;
+  vec3 x_76 = c;
+  vec3 x_79 = c;
+  vec2 v_5 = vec2(x_79[0u], x_79[1u]);
+  mat4x2 x_87 = mat4x2(v_5, vec2(x_79[2u], 1.0f), vec2(1.0f, 0.0f), vec2(1.0f, 0.0f));
+  c[2u] = ((x_76 * mat3(vec3(1.0f, 0.0f, 0.0f), vec3(0.0f, 1.0f, 0.0f), vec3(0.0f, 0.0f, 1.0f)))[0u] + vec3(x_87[0u][0u], x_87[0u][1u], x_87[1u][0u])[1u]);
+  i_1 = 0;
+  {
+    while(true) {
+      int x_99 = i_1;
+      if ((x_99 < 3)) {
+      } else {
+        break;
+      }
+      int x_102 = i_1;
+      float x_104 = c[x_102];
+      if ((x_104 >= 1.0f)) {
+        int x_108 = i_1;
+        int x_109 = i_1;
+        float x_111 = c[x_109];
+        int x_112 = i_1;
+        float x_114 = c[x_112];
+        c[x_108] = (x_111 * x_114);
+        float x_118 = tint_symbol.y;
+        if ((x_118 < 0.0f)) {
+          break;
+        }
+      }
+      {
+        int x_122 = i_1;
+        i_1 = (x_122 + 1);
+      }
+      continue;
+    }
+  }
+  vec3 x_124 = c;
+  vec3 x_126 = normalize(abs(x_124));
+  x_GLF_color = vec4(x_126[0u], x_126[1u], x_126[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:22: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:22: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.ir.glsl
index f297654..5afe190 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.spvasm.expected.ir.glsl
@@ -1,11 +1,355 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int x_65 = 0;
+  int x_93 = 0;
+  int x_102 = 0;
+  float x_180 = 0.0f;
+  float x_279 = 0.0f;
+  float x_280 = 0.0f;
+  float x_62 = v.tint_symbol_3.injectionSwitch.x;
+  x_65 = tint_f32_to_i32(x_62);
+  {
+    while(true) {
+      int x_66 = 0;
+      switch(x_65) {
+        case 9:
+        {
+          data[x_65] = -5;
+          break;
+        }
+        case 8:
+        {
+          data[x_65] = -4;
+          break;
+        }
+        case 7:
+        {
+          data[x_65] = -3;
+          break;
+        }
+        case 6:
+        {
+          data[x_65] = -2;
+          break;
+        }
+        case 5:
+        {
+          data[x_65] = -1;
+          break;
+        }
+        case 4:
+        {
+          data[x_65] = 0;
+          break;
+        }
+        case 3:
+        {
+          data[x_65] = 1;
+          break;
+        }
+        case 2:
+        {
+          data[x_65] = 2;
+          break;
+        }
+        case 1:
+        {
+          data[x_65] = 3;
+          break;
+        }
+        case 0:
+        {
+          data[x_65] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      x_66 = (x_65 + 1);
+      {
+        x_65 = x_66;
+        if (!((x_66 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  x_93 = 0;
+  {
+    while(true) {
+      int x_94 = 0;
+      if ((x_93 < 10)) {
+      } else {
+        break;
+      }
+      {
+        temp[x_93] = data[x_93];
+        x_94 = (x_93 + 1);
+        x_93 = x_94;
+      }
+      continue;
+    }
+  }
+  x_102 = 1;
+  {
+    while(true) {
+      int x_109 = 0;
+      int x_103 = 0;
+      if ((x_102 <= 9)) {
+      } else {
+        break;
+      }
+      x_109 = 0;
+      {
+        while(true) {
+          int x_121 = 0;
+          int x_124 = 0;
+          int x_126 = 0;
+          int x_148 = 0;
+          int x_151 = 0;
+          int x_161 = 0;
+          if ((x_109 < 9)) {
+          } else {
+            break;
+          }
+          int x_115 = (x_109 + x_102);
+          int x_116 = (x_115 - 1);
+          int x_110 = (x_109 + (2 * x_102));
+          int x_119 = min((x_110 - 1), 9);
+          x_121 = x_109;
+          x_124 = x_115;
+          x_126 = x_109;
+          {
+            while(true) {
+              int x_141 = 0;
+              int x_144 = 0;
+              int x_125 = 0;
+              int x_127 = 0;
+              if (((x_126 <= x_116) & (x_124 <= x_119))) {
+              } else {
+                break;
+              }
+              int x_133_save = x_126;
+              int x_135_save = x_124;
+              int x_122 = (x_121 + 1);
+              if ((data[x_126] < data[x_124])) {
+                x_141 = (x_126 + 1);
+                temp[x_121] = data[x_133_save];
+                x_125 = x_124;
+                x_127 = x_141;
+              } else {
+                x_144 = (x_124 + 1);
+                temp[x_121] = data[x_135_save];
+                x_125 = x_144;
+                x_127 = x_126;
+              }
+              {
+                x_121 = x_122;
+                x_124 = x_125;
+                x_126 = x_127;
+              }
+              continue;
+            }
+          }
+          x_148 = x_121;
+          x_151 = x_126;
+          {
+            while(true) {
+              int x_149 = 0;
+              int x_152 = 0;
+              if (((x_151 < 10) & (x_151 <= x_116))) {
+              } else {
+                break;
+              }
+              {
+                x_149 = (x_148 + 1);
+                x_152 = (x_151 + 1);
+                temp[x_148] = data[x_151];
+                x_148 = x_149;
+                x_151 = x_152;
+              }
+              continue;
+            }
+          }
+          x_161 = x_109;
+          {
+            while(true) {
+              int x_162 = 0;
+              if ((x_161 <= x_119)) {
+              } else {
+                break;
+              }
+              {
+                data[x_161] = temp[x_161];
+                x_162 = (x_161 + 1);
+                x_161 = x_162;
+              }
+              continue;
+            }
+          }
+          {
+            x_109 = x_110;
+          }
+          continue;
+        }
+      }
+      {
+        x_103 = (2 * x_102);
+        x_102 = x_103;
+      }
+      continue;
+    }
+  }
+  int x_171 = 0;
+  float x_189 = 0.0f;
+  float x_278 = 0.0f;
+  x_171 = tint_f32_to_i32(tint_symbol.y);
+  if ((x_171 < 30)) {
+    x_180 = (0.5f + (float(data[0]) * 0.10000000149011611938f));
+    x_280 = x_180;
+  } else {
+    float x_198 = 0.0f;
+    float x_277 = 0.0f;
+    if ((x_171 < 60)) {
+      x_189 = (0.5f + (float(data[1]) * 0.10000000149011611938f));
+      x_279 = x_189;
+    } else {
+      float x_207 = 0.0f;
+      float x_249 = 0.0f;
+      if ((x_171 < 90)) {
+        x_198 = (0.5f + (float(data[2]) * 0.10000000149011611938f));
+        x_278 = x_198;
+      } else {
+        if ((x_171 < 120)) {
+          x_207 = (0.5f + (float(data[3]) * 0.10000000149011611938f));
+          x_277 = x_207;
+        } else {
+          float x_220 = 0.0f;
+          float x_248 = 0.0f;
+          vec2 x_256 = vec2(0.0f);
+          int x_259 = 0;
+          if ((x_171 < 150)) {
+            continue_execution = false;
+          } else {
+            float x_229 = 0.0f;
+            float x_247 = 0.0f;
+            if ((x_171 < 180)) {
+              x_220 = (0.5f + (float(data[5]) * 0.10000000149011611938f));
+              x_249 = x_220;
+            } else {
+              float x_238 = 0.0f;
+              float x_246 = 0.0f;
+              if ((x_171 < 210)) {
+                x_229 = (0.5f + (float(data[6]) * 0.10000000149011611938f));
+                x_248 = x_229;
+              } else {
+                if ((x_171 < 240)) {
+                  x_238 = (0.5f + (float(data[7]) * 0.10000000149011611938f));
+                  x_247 = x_238;
+                } else {
+                  if ((x_171 < 270)) {
+                  } else {
+                    continue_execution = false;
+                  }
+                  x_246 = (0.5f + (float(data[8]) * 0.10000000149011611938f));
+                  x_247 = x_246;
+                }
+                x_248 = x_247;
+              }
+              x_249 = x_248;
+            }
+            bool x_252 = (x_62 > v.tint_symbol_3.injectionSwitch.y);
+            if (x_252) {
+              x_GLF_color = vec4(1.0f);
+            }
+            x_256 = vec2(1.0f);
+            x_259 = 0;
+            {
+              while(true) {
+                vec2 x_272 = vec2(0.0f);
+                vec2 x_273 = vec2(0.0f);
+                int x_260 = 0;
+                if ((x_259 <= 32)) {
+                } else {
+                  break;
+                }
+                x_273 = x_256;
+                if ((x_256.x < 0.0f)) {
+                  if (x_252) {
+                    continue_execution = false;
+                  }
+                  x_272 = x_256;
+                  x_272[1u] = (x_256.y + 1.0f);
+                  x_273 = x_272;
+                }
+                vec2 x_257_1 = x_273;
+                x_257_1[0u] = (x_273.x + x_273.y);
+                vec2 x_257 = x_257_1;
+                {
+                  x_260 = (x_259 + 1);
+                  x_256 = x_257;
+                  x_259 = x_260;
+                }
+                continue;
+              }
+            }
+          }
+          x_277 = x_249;
+        }
+        x_278 = x_277;
+      }
+      x_279 = x_278;
+    }
+    x_280 = x_279;
+  }
+  x_GLF_color = vec4(x_280, x_280, x_280, 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:154: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:154: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.ir.glsl
index f297654..c5c6657 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.spvasm.expected.ir.glsl
@@ -1,11 +1,312 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  k = f;
+  i = f;
+  j = (mid + 1);
+  {
+    while(true) {
+      if (((i <= mid) & (j <= to))) {
+      } else {
+        break;
+      }
+      if ((data[i] < data[j])) {
+        int x_288 = k;
+        k = (k + 1);
+        int x_290 = i;
+        i = (i + 1);
+        temp[x_288] = data[x_290];
+      } else {
+        int x_295 = k;
+        k = (k + 1);
+        int x_297 = j;
+        j = (j + 1);
+        temp[x_295] = data[x_297];
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      if (((i < 10) & (i <= mid))) {
+      } else {
+        break;
+      }
+      int x_313 = k;
+      k = (k + 1);
+      int x_315 = i;
+      i = (i + 1);
+      temp[x_313] = data[x_315];
+      {
+      }
+      continue;
+    }
+  }
+  i_1 = f;
+  {
+    while(true) {
+      if ((i_1 <= to)) {
+      } else {
+        break;
+      }
+      int x_329 = i_1;
+      data[x_329] = temp[i_1];
+      {
+        i_1 = (i_1 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      if ((m <= high)) {
+      } else {
+        break;
+      }
+      i_2 = low;
+      {
+        while(true) {
+          if ((i_2 < high)) {
+          } else {
+            break;
+          }
+          f_1 = i_2;
+          mid_1 = ((i_2 + m) - 1);
+          to_1 = min(((i_2 + (2 * m)) - 1), high);
+          param = f_1;
+          param_1 = mid_1;
+          param_2 = to_1;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            i_2 = (i_2 + (2 * m));
+          }
+          continue;
+        }
+      }
+      {
+        m = (2 * m);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  int int_i = 0;
+  i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x);
+  {
+    while(true) {
+      int x_91 = i_3;
+      switch(x_91) {
+        case 9:
+        {
+          int x_121 = i_3;
+          data[x_121] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_119 = i_3;
+          data[x_119] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_117 = i_3;
+          data[x_117] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_115 = i_3;
+          data[x_115] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_113 = i_3;
+          data[x_113] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_111 = i_3;
+          data[x_111] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_109 = i_3;
+          data[x_109] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_107 = i_3;
+          data[x_107] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_105 = i_3;
+          data[x_105] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_103 = i_3;
+          data[x_103] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      i_3 = (i_3 + 1);
+      {
+        int x_125 = i_3;
+        if (!((x_125 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      if ((j_1 < 10)) {
+      } else {
+        break;
+      }
+      int x_134 = j_1;
+      temp[x_134] = data[j_1];
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  if ((tint_f32_to_i32(tint_symbol.y) < 30)) {
+    grey = (0.5f + (float(data[0]) / 10.0f));
+  } else {
+    if ((tint_f32_to_i32(tint_symbol.y) < 60)) {
+      grey = (0.5f + (float(data[1]) / 10.0f));
+    } else {
+      if ((tint_f32_to_i32(tint_symbol.y) < 90)) {
+        grey = (0.5f + (float(data[2]) / 10.0f));
+      } else {
+        if ((tint_f32_to_i32(tint_symbol.y) < 120)) {
+          grey = (0.5f + (float(data[3]) / 10.0f));
+        } else {
+          if ((tint_f32_to_i32(tint_symbol.y) < 150)) {
+            int_i = 1;
+            {
+              while(true) {
+                int v_1 = int_i;
+                if ((v_1 > tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x))) {
+                } else {
+                  break;
+                }
+                continue_execution = false;
+                {
+                }
+                continue;
+              }
+            }
+          } else {
+            if ((tint_f32_to_i32(tint_symbol.y) < 180)) {
+              grey = (0.5f + (float(data[5]) / 10.0f));
+            } else {
+              if ((tint_f32_to_i32(tint_symbol.y) < 210)) {
+                grey = (0.5f + (float(data[6]) / 10.0f));
+              } else {
+                if ((tint_f32_to_i32(tint_symbol.y) < 240)) {
+                  grey = (0.5f + (float(data[7]) / 10.0f));
+                } else {
+                  if ((tint_f32_to_i32(tint_symbol.y) < 270)) {
+                    grey = (0.5f + (float(data[8]) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  vec3 x_256 = vec3(grey);
+  x_GLF_color = vec4(x_256[0u], x_256[1u], x_256[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_2 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_2;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:34: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:34: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl.expected.ir.glsl
index f297654..1649345 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl.expected.ir.glsl
@@ -1,11 +1,377 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+bool continue_execution = true;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) {
+  int k = 0;
+  int i = 0;
+  int j = 0;
+  int i_1 = 0;
+  int x_262 = f;
+  k = x_262;
+  int x_263 = f;
+  i = x_263;
+  int x_264 = mid;
+  j = (x_264 + 1);
+  {
+    while(true) {
+      int x_270 = i;
+      int x_271 = mid;
+      int x_273 = j;
+      int x_274 = to;
+      if (((x_270 <= x_271) & (x_273 <= x_274))) {
+      } else {
+        break;
+      }
+      int x_278 = i;
+      int x_280 = data[x_278];
+      int x_281 = j;
+      int x_283 = data[x_281];
+      if ((x_280 < x_283)) {
+        int x_288 = k;
+        k = (x_288 + 1);
+        int x_290 = i;
+        i = (x_290 + 1);
+        int x_293 = data[x_290];
+        temp[x_288] = x_293;
+      } else {
+        int x_295 = k;
+        k = (x_295 + 1);
+        int x_297 = j;
+        j = (x_297 + 1);
+        int x_300 = data[x_297];
+        temp[x_295] = x_300;
+      }
+      {
+      }
+      continue;
+    }
+  }
+  {
+    while(true) {
+      int x_306 = i;
+      int x_308 = i;
+      int x_309 = mid;
+      if (((x_306 < 10) & (x_308 <= x_309))) {
+      } else {
+        break;
+      }
+      int x_313 = k;
+      k = (x_313 + 1);
+      int x_315 = i;
+      i = (x_315 + 1);
+      int x_318 = data[x_315];
+      temp[x_313] = x_318;
+      {
+      }
+      continue;
+    }
+  }
+  int x_320 = f;
+  i_1 = x_320;
+  {
+    while(true) {
+      int x_325 = i_1;
+      int x_326 = to;
+      if ((x_325 <= x_326)) {
+      } else {
+        break;
+      }
+      int x_329 = i_1;
+      int x_330 = i_1;
+      int x_332 = temp[x_330];
+      data[x_329] = x_332;
+      {
+        int x_334 = i_1;
+        i_1 = (x_334 + 1);
+      }
+      continue;
+    }
+  }
+}
+void mergeSort_() {
+  int low = 0;
+  int high = 0;
+  int m = 0;
+  int i_2 = 0;
+  int f_1 = 0;
+  int mid_1 = 0;
+  int to_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  low = 0;
+  high = 9;
+  m = 1;
+  {
+    while(true) {
+      int x_341 = m;
+      int x_342 = high;
+      if ((x_341 <= x_342)) {
+      } else {
+        break;
+      }
+      int x_345 = low;
+      i_2 = x_345;
+      {
+        while(true) {
+          int x_350 = i_2;
+          int x_351 = high;
+          if ((x_350 < x_351)) {
+          } else {
+            break;
+          }
+          int x_354 = i_2;
+          f_1 = x_354;
+          int x_355 = i_2;
+          int x_356 = m;
+          mid_1 = ((x_355 + x_356) - 1);
+          int x_359 = i_2;
+          int x_360 = m;
+          int x_364 = high;
+          to_1 = min(((x_359 + (2 * x_360)) - 1), x_364);
+          int x_366 = f_1;
+          param = x_366;
+          int x_367 = mid_1;
+          param_1 = x_367;
+          int x_368 = to_1;
+          param_2 = x_368;
+          merge_i1_i1_i1_(param, param_1, param_2);
+          {
+            int x_370 = m;
+            int x_372 = i_2;
+            i_2 = (x_372 + (2 * x_370));
+          }
+          continue;
+        }
+      }
+      {
+        int x_374 = m;
+        m = (2 * x_374);
+      }
+      continue;
+    }
+  }
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  int i_3 = 0;
+  int j_1 = 0;
+  float grey = 0.0f;
+  int int_i = 0;
+  float x_85 = v.tint_symbol_3.injectionSwitch.x;
+  i_3 = tint_f32_to_i32(x_85);
+  {
+    while(true) {
+      int x_91 = i_3;
+      switch(x_91) {
+        case 9:
+        {
+          int x_121 = i_3;
+          data[x_121] = -5;
+          break;
+        }
+        case 8:
+        {
+          int x_119 = i_3;
+          data[x_119] = -4;
+          break;
+        }
+        case 7:
+        {
+          int x_117 = i_3;
+          data[x_117] = -3;
+          break;
+        }
+        case 6:
+        {
+          int x_115 = i_3;
+          data[x_115] = -2;
+          break;
+        }
+        case 5:
+        {
+          int x_113 = i_3;
+          data[x_113] = -1;
+          break;
+        }
+        case 4:
+        {
+          int x_111 = i_3;
+          data[x_111] = 0;
+          break;
+        }
+        case 3:
+        {
+          int x_109 = i_3;
+          data[x_109] = 1;
+          break;
+        }
+        case 2:
+        {
+          int x_107 = i_3;
+          data[x_107] = 2;
+          break;
+        }
+        case 1:
+        {
+          int x_105 = i_3;
+          data[x_105] = 3;
+          break;
+        }
+        case 0:
+        {
+          int x_103 = i_3;
+          data[x_103] = 4;
+          break;
+        }
+        default:
+        {
+          break;
+        }
+      }
+      int x_123 = i_3;
+      i_3 = (x_123 + 1);
+      {
+        int x_125 = i_3;
+        if (!((x_125 < 10))) { break; }
+      }
+      continue;
+    }
+  }
+  j_1 = 0;
+  {
+    while(true) {
+      int x_131 = j_1;
+      if ((x_131 < 10)) {
+      } else {
+        break;
+      }
+      int x_134 = j_1;
+      int x_135 = j_1;
+      int x_137 = data[x_135];
+      temp[x_134] = x_137;
+      {
+        int x_139 = j_1;
+        j_1 = (x_139 + 1);
+      }
+      continue;
+    }
+  }
+  mergeSort_();
+  float x_143 = tint_symbol.y;
+  if ((tint_f32_to_i32(x_143) < 30)) {
+    int x_150 = data[0];
+    grey = (0.5f + (float(x_150) / 10.0f));
+  } else {
+    float x_155 = tint_symbol.y;
+    if ((tint_f32_to_i32(x_155) < 60)) {
+      int x_162 = data[1];
+      grey = (0.5f + (float(x_162) / 10.0f));
+    } else {
+      float x_167 = tint_symbol.y;
+      if ((tint_f32_to_i32(x_167) < 90)) {
+        int x_174 = data[2];
+        grey = (0.5f + (float(x_174) / 10.0f));
+      } else {
+        float x_179 = tint_symbol.y;
+        if ((tint_f32_to_i32(x_179) < 120)) {
+          int x_186 = data[3];
+          grey = (0.5f + (float(x_186) / 10.0f));
+        } else {
+          float x_191 = tint_symbol.y;
+          if ((tint_f32_to_i32(x_191) < 150)) {
+            int_i = 1;
+            {
+              while(true) {
+                int x_201 = int_i;
+                float x_203 = v.tint_symbol_3.injectionSwitch.x;
+                if ((x_201 > tint_f32_to_i32(x_203))) {
+                } else {
+                  break;
+                }
+                continue_execution = false;
+                {
+                }
+                continue;
+              }
+            }
+          } else {
+            float x_208 = tint_symbol.y;
+            if ((tint_f32_to_i32(x_208) < 180)) {
+              int x_215 = data[5];
+              grey = (0.5f + (float(x_215) / 10.0f));
+            } else {
+              float x_220 = tint_symbol.y;
+              if ((tint_f32_to_i32(x_220) < 210)) {
+                int x_227 = data[6];
+                grey = (0.5f + (float(x_227) / 10.0f));
+              } else {
+                float x_232 = tint_symbol.y;
+                if ((tint_f32_to_i32(x_232) < 240)) {
+                  int x_239 = data[7];
+                  grey = (0.5f + (float(x_239) / 10.0f));
+                } else {
+                  float x_244 = tint_symbol.y;
+                  if ((tint_f32_to_i32(x_244) < 270)) {
+                    int x_251 = data[8];
+                    grey = (0.5f + (float(x_251) / 10.0f));
+                  } else {
+                    continue_execution = false;
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+  float x_255 = grey;
+  vec3 x_256 = vec3(x_255, x_255, x_255);
+  x_GLF_color = vec4(x_256[0u], x_256[1u], x_256[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  main_out v_1 = main_out(x_GLF_color);
+  if (!(continue_execution)) {
+    discard;
+  }
+  return v_1;
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:41: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:41: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.glsl
index f297654..728f4b2 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.spvasm.expected.ir.glsl
@@ -1,11 +1,226 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct QuicksortObject {
+  int numbers[10];
+};
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+QuicksortObject obj = QuicksortObject(int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void swap_i1_i1_(inout int i, inout int j) {
+  int temp = 0;
+  temp = obj.numbers[i];
+  int x_233 = i;
+  obj.numbers[x_233] = obj.numbers[j];
+  int x_238 = j;
+  obj.numbers[x_238] = temp;
+}
+int performPartition_i1_i1_(inout int l, inout int h) {
+  int pivot = 0;
+  int i_1 = 0;
+  int j_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  int param_3 = 0;
+  pivot = obj.numbers[h];
+  i_1 = (l - 1);
+  j_1 = l;
+  {
+    while(true) {
+      if ((j_1 <= (h - 1))) {
+      } else {
+        break;
+      }
+      if ((obj.numbers[j_1] <= pivot)) {
+        i_1 = (i_1 + 1);
+        param = i_1;
+        param_1 = j_1;
+        swap_i1_i1_(param, param_1);
+      }
+      {
+        j_1 = (j_1 + 1);
+      }
+      continue;
+    }
+  }
+  i_1 = (i_1 + 1);
+  param_2 = i_1;
+  param_3 = h;
+  swap_i1_i1_(param_2, param_3);
+  int x_276 = i_1;
+  return x_276;
+}
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void quicksort_() {
+  int l_1 = 0;
+  int h_1 = 0;
+  int top = 0;
+  int stack[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int int_a = 0;
+  int x_278 = 0;
+  int x_279 = 0;
+  int clamp_a = 0;
+  int p = 0;
+  int param_4 = 0;
+  int param_5 = 0;
+  l_1 = 0;
+  h_1 = 9;
+  top = -1;
+  int x_281 = (top + 1);
+  top = x_281;
+  stack[x_281] = l_1;
+  if ((tint_symbol.y >= 0.0f)) {
+    int x_290 = h_1;
+    if (false) {
+      x_279 = 1;
+    } else {
+      x_279 = (h_1 << (0u & 31u));
+    }
+    x_278 = (x_290 | x_279);
+  } else {
+    x_278 = 1;
+  }
+  int_a = x_278;
+  int v_1 = int_a;
+  clamp_a = min(max(h_1, h_1), v_1);
+  int x_304 = (top + 1);
+  top = x_304;
+  stack[x_304] = tint_div_i32(clamp_a, 1);
+  {
+    while(true) {
+      if ((top >= 0)) {
+      } else {
+        break;
+      }
+      int x_315 = top;
+      top = (top - 1);
+      h_1 = stack[x_315];
+      int x_319 = top;
+      top = (top - 1);
+      l_1 = stack[x_319];
+      param_4 = l_1;
+      param_5 = h_1;
+      int x_325 = performPartition_i1_i1_(param_4, param_5);
+      p = x_325;
+      if (((p - 1) > l_1)) {
+        int x_333 = (top + 1);
+        top = x_333;
+        stack[x_333] = l_1;
+        int x_337 = (top + 1);
+        top = x_337;
+        stack[x_337] = (p - 1);
+      }
+      if (((p + 1) < h_1)) {
+        int x_348 = (top + 1);
+        top = x_348;
+        stack[x_348] = (p + 1);
+        int x_353 = (top + 1);
+        top = x_353;
+        stack[x_353] = h_1;
+      }
+      {
+      }
+      continue;
+    }
+  }
+}
+void main_1() {
+  int i_2 = 0;
+  vec2 uv = vec2(0.0f);
+  vec3 color = vec3(0.0f);
+  i_2 = 0;
+  {
+    while(true) {
+      if ((i_2 < 10)) {
+      } else {
+        break;
+      }
+      int x_93 = i_2;
+      obj.numbers[x_93] = (10 - i_2);
+      int x_97 = i_2;
+      obj.numbers[x_97] = (obj.numbers[i_2] * obj.numbers[i_2]);
+      {
+        i_2 = (i_2 + 1);
+      }
+      continue;
+    }
+  }
+  quicksort_();
+  uv = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  color = vec3(1.0f, 2.0f, 3.0f);
+  float v_2 = color.x;
+  color[0u] = (v_2 + float(obj.numbers[0]));
+  if ((uv.x > 0.25f)) {
+    float v_3 = color.x;
+    color[0u] = (v_3 + float(obj.numbers[1]));
+  }
+  if ((uv.x > 0.5f)) {
+    float v_4 = color.y;
+    color[1u] = (v_4 + float(obj.numbers[2]));
+  }
+  if ((uv.x > 0.75f)) {
+    float v_5 = color.z;
+    color[2u] = (v_5 + float(obj.numbers[3]));
+  }
+  float v_6 = color.y;
+  color[1u] = (v_6 + float(obj.numbers[4]));
+  if ((uv.y > 0.25f)) {
+    float v_7 = color.x;
+    color[0u] = (v_7 + float(obj.numbers[5]));
+  }
+  if ((uv.y > 0.5f)) {
+    float v_8 = color.y;
+    color[1u] = (v_8 + float(obj.numbers[6]));
+  }
+  if ((uv.y > 0.75f)) {
+    float v_9 = color.z;
+    color[2u] = (v_9 + float(obj.numbers[7]));
+  }
+  float v_10 = color.z;
+  color[2u] = (v_10 + float(obj.numbers[8]));
+  if ((abs((uv.x - uv.y)) < 0.25f)) {
+    float v_11 = color.x;
+    color[0u] = (v_11 + float(obj.numbers[9]));
+  }
+  vec3 x_224 = normalize(color);
+  x_GLF_color = vec4(x_224[0u], x_224[1u], x_224[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:71: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:71: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:71: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.glsl
index f297654..f9b1395 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl.expected.ir.glsl
@@ -1,11 +1,302 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct QuicksortObject {
+  int numbers[10];
+};
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+QuicksortObject obj = QuicksortObject(int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void swap_i1_i1_(inout int i, inout int j) {
+  int temp = 0;
+  int x_230 = i;
+  int x_232 = obj.numbers[x_230];
+  temp = x_232;
+  int x_233 = i;
+  int x_234 = j;
+  int x_236 = obj.numbers[x_234];
+  obj.numbers[x_233] = x_236;
+  int x_238 = j;
+  int x_239 = temp;
+  obj.numbers[x_238] = x_239;
+}
+int performPartition_i1_i1_(inout int l, inout int h) {
+  int pivot = 0;
+  int i_1 = 0;
+  int j_1 = 0;
+  int param = 0;
+  int param_1 = 0;
+  int param_2 = 0;
+  int param_3 = 0;
+  int x_242 = h;
+  int x_244 = obj.numbers[x_242];
+  pivot = x_244;
+  int x_245 = l;
+  i_1 = (x_245 - 1);
+  int x_247 = l;
+  j_1 = x_247;
+  {
+    while(true) {
+      int x_252 = j_1;
+      int x_253 = h;
+      if ((x_252 <= (x_253 - 1))) {
+      } else {
+        break;
+      }
+      int x_257 = j_1;
+      int x_259 = obj.numbers[x_257];
+      int x_260 = pivot;
+      if ((x_259 <= x_260)) {
+        int x_264 = i_1;
+        i_1 = (x_264 + 1);
+        int x_266 = i_1;
+        param = x_266;
+        int x_267 = j_1;
+        param_1 = x_267;
+        swap_i1_i1_(param, param_1);
+      }
+      {
+        int x_269 = j_1;
+        j_1 = (x_269 + 1);
+      }
+      continue;
+    }
+  }
+  int x_271 = i_1;
+  i_1 = (x_271 + 1);
+  int x_273 = i_1;
+  param_2 = x_273;
+  int x_274 = h;
+  param_3 = x_274;
+  swap_i1_i1_(param_2, param_3);
+  int x_276 = i_1;
+  return x_276;
+}
+int tint_div_i32(int lhs, int rhs) {
+  return (lhs / ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs)));
+}
+void quicksort_() {
+  int l_1 = 0;
+  int h_1 = 0;
+  int top = 0;
+  int stack[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+  int int_a = 0;
+  int x_278 = 0;
+  int x_279 = 0;
+  int clamp_a = 0;
+  int p = 0;
+  int param_4 = 0;
+  int param_5 = 0;
+  l_1 = 0;
+  h_1 = 9;
+  top = -1;
+  int x_280 = top;
+  int x_281 = (x_280 + 1);
+  top = x_281;
+  int x_282 = l_1;
+  stack[x_281] = x_282;
+  float x_285 = tint_symbol.y;
+  if ((x_285 >= 0.0f)) {
+    int x_290 = h_1;
+    if (false) {
+      x_279 = 1;
+    } else {
+      int x_294 = h_1;
+      x_279 = (x_294 << (0u & 31u));
+    }
+    int x_296 = x_279;
+    x_278 = (x_290 | x_296);
+  } else {
+    x_278 = 1;
+  }
+  int x_298 = x_278;
+  int_a = x_298;
+  int x_299 = h_1;
+  int x_300 = h_1;
+  int x_301 = int_a;
+  clamp_a = min(max(x_299, x_300), x_301);
+  int x_303 = top;
+  int x_304 = (x_303 + 1);
+  top = x_304;
+  int x_305 = clamp_a;
+  stack[x_304] = tint_div_i32(x_305, 1);
+  {
+    while(true) {
+      int x_312 = top;
+      if ((x_312 >= 0)) {
+      } else {
+        break;
+      }
+      int x_315 = top;
+      top = (x_315 - 1);
+      int x_318 = stack[x_315];
+      h_1 = x_318;
+      int x_319 = top;
+      top = (x_319 - 1);
+      int x_322 = stack[x_319];
+      l_1 = x_322;
+      int x_323 = l_1;
+      param_4 = x_323;
+      int x_324 = h_1;
+      param_5 = x_324;
+      int x_325 = performPartition_i1_i1_(param_4, param_5);
+      p = x_325;
+      int x_326 = p;
+      int x_328 = l_1;
+      if (((x_326 - 1) > x_328)) {
+        int x_332 = top;
+        int x_333 = (x_332 + 1);
+        top = x_333;
+        int x_334 = l_1;
+        stack[x_333] = x_334;
+        int x_336 = top;
+        int x_337 = (x_336 + 1);
+        top = x_337;
+        int x_338 = p;
+        stack[x_337] = (x_338 - 1);
+      }
+      int x_341 = p;
+      int x_343 = h_1;
+      if (((x_341 + 1) < x_343)) {
+        int x_347 = top;
+        int x_348 = (x_347 + 1);
+        top = x_348;
+        int x_349 = p;
+        stack[x_348] = (x_349 + 1);
+        int x_352 = top;
+        int x_353 = (x_352 + 1);
+        top = x_353;
+        int x_354 = h_1;
+        stack[x_353] = x_354;
+      }
+      {
+      }
+      continue;
+    }
+  }
+}
+void main_1() {
+  int i_2 = 0;
+  vec2 uv = vec2(0.0f);
+  vec3 color = vec3(0.0f);
+  i_2 = 0;
+  {
+    while(true) {
+      int x_90 = i_2;
+      if ((x_90 < 10)) {
+      } else {
+        break;
+      }
+      int x_93 = i_2;
+      int x_94 = i_2;
+      obj.numbers[x_93] = (10 - x_94);
+      int x_97 = i_2;
+      int x_98 = i_2;
+      int x_100 = obj.numbers[x_98];
+      int x_101 = i_2;
+      int x_103 = obj.numbers[x_101];
+      obj.numbers[x_97] = (x_100 * x_103);
+      {
+        int x_106 = i_2;
+        i_2 = (x_106 + 1);
+      }
+      continue;
+    }
+  }
+  quicksort_();
+  vec4 x_109 = tint_symbol;
+  vec2 x_112 = v.tint_symbol_3.resolution;
+  uv = (vec2(x_109[0u], x_109[1u]) / x_112);
+  color = vec3(1.0f, 2.0f, 3.0f);
+  int x_115 = obj.numbers[0];
+  float x_118 = color.x;
+  color[0u] = (x_118 + float(x_115));
+  float x_122 = uv.x;
+  if ((x_122 > 0.25f)) {
+    int x_127 = obj.numbers[1];
+    float x_130 = color.x;
+    color[0u] = (x_130 + float(x_127));
+  }
+  float x_134 = uv.x;
+  if ((x_134 > 0.5f)) {
+    int x_139 = obj.numbers[2];
+    float x_142 = color.y;
+    color[1u] = (x_142 + float(x_139));
+  }
+  float x_146 = uv.x;
+  if ((x_146 > 0.75f)) {
+    int x_151 = obj.numbers[3];
+    float x_154 = color.z;
+    color[2u] = (x_154 + float(x_151));
+  }
+  int x_158 = obj.numbers[4];
+  float x_161 = color.y;
+  color[1u] = (x_161 + float(x_158));
+  float x_165 = uv.y;
+  if ((x_165 > 0.25f)) {
+    int x_170 = obj.numbers[5];
+    float x_173 = color.x;
+    color[0u] = (x_173 + float(x_170));
+  }
+  float x_177 = uv.y;
+  if ((x_177 > 0.5f)) {
+    int x_182 = obj.numbers[6];
+    float x_185 = color.y;
+    color[1u] = (x_185 + float(x_182));
+  }
+  float x_189 = uv.y;
+  if ((x_189 > 0.75f)) {
+    int x_194 = obj.numbers[7];
+    float x_197 = color.z;
+    color[2u] = (x_197 + float(x_194));
+  }
+  int x_201 = obj.numbers[8];
+  float x_204 = color.z;
+  color[2u] = (x_204 + float(x_201));
+  float x_208 = uv.x;
+  float x_210 = uv.y;
+  if ((abs((x_208 - x_210)) < 0.25f)) {
+    int x_217 = obj.numbers[9];
+    float x_220 = color.x;
+    color[0u] = (x_220 + float(x_217));
+  }
+  vec3 x_223 = color;
+  vec3 x_224 = normalize(x_223);
+  x_GLF_color = vec4(x_224[0u], x_224[1u], x_224[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:92: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:92: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:92: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.spvasm.expected.ir.glsl
index f297654..516a7db 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.spvasm.expected.ir.glsl
@@ -1,11 +1,126 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+bool collision_vf2_vf4_(inout vec2 pos, inout vec4 quad) {
+  if ((pos.x < quad.x)) {
+    return false;
+  }
+  if ((pos.y < quad.y)) {
+    return false;
+  }
+  if ((pos.x > (quad.x + quad.z))) {
+    return false;
+  }
+  if ((pos.y > (quad.y + quad.w))) {
+    return false;
+  }
+  return true;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+vec4 match_vf2_(inout vec2 pos_1) {
+  vec4 res = vec4(0.0f);
+  float x_144 = 0.0f;
+  float x_145 = 0.0f;
+  int i = 0;
+  vec2 param = vec2(0.0f);
+  vec4 param_1 = vec4(0.0f);
+  vec4 indexable[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_1[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_2[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_3[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  if ((tint_symbol.x < 0.0f)) {
+    x_144 = -1.0f;
+  } else {
+    if ((tint_symbol.x >= 0.0f)) {
+      x_145 = (((tint_symbol.x >= 0.0f)) ? (0.5f) : (1.0f));
+    } else {
+      x_145 = 1.0f;
+    }
+    x_144 = min(x_145, 0.5f);
+  }
+  res = vec4(clamp(0.5f, 0.5f, x_144), 0.5f, 1.0f, 1.0f);
+  i = 0;
+  {
+    while(true) {
+      if ((i < 8)) {
+      } else {
+        break;
+      }
+      int x_174 = i;
+      param = pos_1;
+      indexable = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      param_1 = indexable[x_174];
+      bool x_178 = collision_vf2_vf4_(param, param_1);
+      if (x_178) {
+        int x_181 = i;
+        indexable_1 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_183 = indexable_1[x_181].x;
+        int x_185 = i;
+        indexable_2 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_187 = indexable_2[x_185].y;
+        int x_190 = i;
+        indexable_3 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_183);
+        res = indexable_3[tint_mod_i32((((v_2 * tint_f32_to_i32(x_187)) + (x_190 * 9)) + 11), 16)];
+      }
+      {
+        i = (i + 1);
+      }
+      continue;
+    }
+  }
+  vec4 x_199 = res;
+  return x_199;
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  lin = (tint_symbol.xy / v.tint_symbol_3.resolution);
+  lin = floor((lin * 32.0f));
+  param_2 = lin;
+  vec4 x_107 = match_vf2_(param_2);
+  x_GLF_color = x_107;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:37: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:37: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl.expected.ir.glsl
index f297654..fc1e3cc 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl.expected.ir.glsl
@@ -1,11 +1,150 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+bool collision_vf2_vf4_(inout vec2 pos, inout vec4 quad) {
+  float x_110 = pos.x;
+  float x_112 = quad.x;
+  if ((x_110 < x_112)) {
+    return false;
+  }
+  float x_117 = pos.y;
+  float x_119 = quad.y;
+  if ((x_117 < x_119)) {
+    return false;
+  }
+  float x_124 = pos.x;
+  float x_126 = quad.x;
+  float x_128 = quad.z;
+  if ((x_124 > (x_126 + x_128))) {
+    return false;
+  }
+  float x_134 = pos.y;
+  float x_136 = quad.y;
+  float x_138 = quad.w;
+  if ((x_134 > (x_136 + x_138))) {
+    return false;
+  }
+  return true;
+}
+int tint_mod_i32(int lhs, int rhs) {
+  int v_1 = ((((rhs == 0) | ((lhs == (-2147483647 - 1)) & (rhs == -1)))) ? (1) : (rhs));
+  return (lhs - ((lhs / v_1) * v_1));
+}
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+vec4 match_vf2_(inout vec2 pos_1) {
+  vec4 res = vec4(0.0f);
+  float x_144 = 0.0f;
+  float x_145 = 0.0f;
+  int i = 0;
+  vec2 param = vec2(0.0f);
+  vec4 param_1 = vec4(0.0f);
+  vec4 indexable[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_1[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_2[8] = vec4[8](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  vec4 indexable_3[16] = vec4[16](vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
+  float x_147 = tint_symbol.x;
+  if ((x_147 < 0.0f)) {
+    x_144 = -1.0f;
+  } else {
+    float x_153 = tint_symbol.x;
+    if ((x_153 >= 0.0f)) {
+      float x_159 = tint_symbol.x;
+      x_145 = (((x_159 >= 0.0f)) ? (0.5f) : (1.0f));
+    } else {
+      x_145 = 1.0f;
+    }
+    float x_162 = x_145;
+    x_144 = min(x_162, 0.5f);
+  }
+  float x_164 = x_144;
+  res = vec4(clamp(0.5f, 0.5f, x_164), 0.5f, 1.0f, 1.0f);
+  i = 0;
+  {
+    while(true) {
+      int x_171 = i;
+      if ((x_171 < 8)) {
+      } else {
+        break;
+      }
+      int x_174 = i;
+      vec2 x_175 = pos_1;
+      param = x_175;
+      indexable = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+      vec4 x_177 = indexable[x_174];
+      param_1 = x_177;
+      bool x_178 = collision_vf2_vf4_(param, param_1);
+      if (x_178) {
+        int x_181 = i;
+        indexable_1 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_183 = indexable_1[x_181].x;
+        int x_185 = i;
+        indexable_2 = vec4[8](vec4(4.0f, 4.0f, 20.0f, 4.0f), vec4(4.0f, 4.0f, 4.0f, 20.0f), vec4(4.0f, 20.0f, 20.0f, 4.0f), vec4(20.0f, 4.0f, 4.0f, 8.0f), vec4(8.0f, 6.0f, 4.0f, 2.0f), vec4(2.0f, 12.0f, 2.0f, 4.0f), vec4(16.0f, 2.0f, 4.0f, 4.0f), vec4(12.0f, 22.0f, 4.0f, 4.0f));
+        float x_187 = indexable_2[x_185].y;
+        int x_190 = i;
+        indexable_3 = vec4[16](vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(0.5f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 0.5f, 0.0f, 1.0f), vec4(0.5f, 0.5f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 0.5f, 1.0f), vec4(0.5f, 0.0f, 0.5f, 1.0f), vec4(0.0f, 0.5f, 0.5f, 1.0f), vec4(0.5f, 0.5f, 0.5f, 1.0f), vec4(0.0f, 0.0f, 0.0f, 1.0f), vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(1.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 0.0f, 1.0f, 1.0f), vec4(0.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f));
+        int v_2 = tint_f32_to_i32(x_183);
+        vec4 x_196 = indexable_3[tint_mod_i32((((v_2 * tint_f32_to_i32(x_187)) + (x_190 * 9)) + 11), 16)];
+        res = x_196;
+      }
+      {
+        int x_197 = i;
+        i = (x_197 + 1);
+      }
+      continue;
+    }
+  }
+  vec4 x_199 = res;
+  return x_199;
+}
+void main_1() {
+  vec2 lin = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  vec4 x_98 = tint_symbol;
+  vec2 x_101 = v.tint_symbol_3.resolution;
+  lin = (vec2(x_98[0u], x_98[1u]) / x_101);
+  vec2 x_103 = lin;
+  lin = floor((x_103 * 32.0f));
+  vec2 x_106 = lin;
+  param_2 = x_106;
+  vec4 x_107 = match_vf2_(param_2);
+  x_GLF_color = x_107;
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:47: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:47: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:47: '' : compilation terminated 
+ERROR: 3 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.ir.glsl
index 6500e9a..60ae143 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_24;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_79 = a.x;
   float x_81 = b.y;
@@ -105,7 +109,7 @@
   vec2 param_7 = vec2(0.0f);
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
-  vec2 x_71 = (tint_symbol.xy / x_24.resolution);
+  vec2 x_71 = (tint_symbol.xy / v.tint_symbol_3.resolution);
   pos = x_71;
   param_6 = x_71;
   param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
@@ -118,14 +122,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:64: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:64: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.ir.glsl
index 2fd0b03..d03b7e5 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_24;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_79 = a.x;
   float x_81 = b.y;
@@ -121,7 +125,7 @@
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
   vec4 x_67 = tint_symbol;
-  vec2 x_70 = x_24.resolution;
+  vec2 x_70 = v.tint_symbol_3.resolution;
   vec2 x_71 = (vec2(x_67[0u], x_67[1u]) / x_70);
   pos = x_71;
   param_6 = x_71;
@@ -135,14 +139,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:72: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:72: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.ir.glsl
index 81cb4f5..ce87b5c 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_24;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_76 = a.x;
   float x_78 = b.y;
@@ -87,7 +91,7 @@
   vec2 param_7 = vec2(0.0f);
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
-  pos = (tint_symbol.xy / x_24.resolution);
+  pos = (tint_symbol.xy / v.tint_symbol_3.resolution);
   param_6 = pos;
   param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
   param_8 = vec2(0.5f, 0.89999997615814208984f);
@@ -99,14 +103,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:58: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:58: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.ir.glsl
index aae0350..c3e51e4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_24;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_76 = a.x;
   float x_78 = b.y;
@@ -110,7 +114,7 @@
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
   vec4 x_63 = tint_symbol;
-  vec2 x_66 = x_24.resolution;
+  vec2 x_66 = v.tint_symbol_3.resolution;
   pos = (vec2(x_63[0u], x_63[1u]) / x_66);
   vec2 x_68 = pos;
   param_6 = x_68;
@@ -124,14 +128,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:68: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:68: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.ir.glsl
index 8ce43b8..cc7bc93 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_15;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_85 = a.x;
   float x_87 = b.y;
@@ -41,7 +45,7 @@
   bool x_174 = false;
   bool x_205 = false;
   bool x_206 = false;
-  if ((x_15.resolution.x == x_15.resolution.y)) {
+  if ((v.tint_symbol_3.resolution.x == v.tint_symbol_3.resolution.y)) {
     float x_107 = c.y;
     vec2 x_108 = vec2(0.0f, x_107);
     if (true) {
@@ -107,7 +111,7 @@
   vec2 param_7 = vec2(0.0f);
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
-  pos = (tint_symbol.xy / x_15.resolution);
+  pos = (tint_symbol.xy / v.tint_symbol_3.resolution);
   param_6 = pos;
   param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
   param_8 = vec2(0.5f, 0.89999997615814208984f);
@@ -119,14 +123,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:78: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:78: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.ir.glsl
index 79f37d7..d2474e9 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
 
-
-uniform buf0 x_15;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 tint_symbol = vec4(0.0f);
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_85 = a.x;
   float x_87 = b.y;
@@ -41,8 +45,8 @@
   bool x_205 = false;
   bool x_174_phi = false;
   bool x_206_phi = false;
-  float x_99 = x_15.resolution.x;
-  float x_101 = x_15.resolution.y;
+  float x_99 = v.tint_symbol_3.resolution.x;
+  float x_101 = v.tint_symbol_3.resolution.y;
   if ((x_99 == x_101)) {
     float x_107 = c.y;
     vec2 x_108 = vec2(0.0f, x_107);
@@ -139,7 +143,7 @@
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
   vec4 x_72 = tint_symbol;
-  vec2 x_75 = x_15.resolution;
+  vec2 x_75 = v.tint_symbol_3.resolution;
   pos = (vec2(x_72[0u], x_72[1u]) / x_75);
   vec2 x_77 = pos;
   param_6 = x_77;
@@ -153,14 +157,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:97: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:97: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.ir.glsl
index 1213025..0ad7ae6 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_24;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_76 = a.x;
   float x_78 = b.y;
@@ -87,7 +91,7 @@
   vec2 param_7 = vec2(0.0f);
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
-  pos = (tint_symbol.xy / x_24.resolution);
+  pos = (tint_symbol.xy / v.tint_symbol_3.resolution);
   param_6 = pos;
   param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
   param_8 = vec2(0.5f, 0.89999997615814208984f);
@@ -99,14 +103,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:58: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:58: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl.expected.ir.glsl
index f75c0b3..2bce3fa 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_24;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 float cross2d_vf2_vf2_(inout vec2 a, inout vec2 b) {
   float x_76 = a.x;
   float x_78 = b.y;
@@ -110,7 +114,7 @@
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
   vec4 x_63 = tint_symbol;
-  vec2 x_66 = x_24.resolution;
+  vec2 x_66 = v.tint_symbol_3.resolution;
   pos = (vec2(x_63[0u], x_63[1u]) / x_66);
   vec2 x_68 = pos;
   param_6 = x_68;
@@ -124,14 +128,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:68: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:68: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.ir.glsl
index c318a5b..b1a52fe 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.spvasm.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_17;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 int pointInTriangle_vf2_vf2_vf2_vf2_(inout vec2 p, inout vec2 a, inout vec2 b, inout vec2 c) {
   float x_66 = 0.0f;
   float x_67 = 0.0f;
@@ -80,7 +84,7 @@
   vec2 param_7 = vec2(0.0f);
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
-  param_6 = (tint_symbol.xy / x_17.resolution);
+  param_6 = (tint_symbol.xy / v.tint_symbol_3.resolution);
   param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
   param_8 = vec2(0.5f, 0.89999997615814208984f);
   param_9 = vec2(0.10000000149011611938f, 0.40000000596046447754f);
@@ -91,14 +95,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:52: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:52: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.ir.glsl
index ef27b50..8651cc6 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl.expected.ir.glsl
@@ -1,6 +1,9 @@
 SKIP: FAILED
 
 #version 310 es
+precision highp float;
+precision highp int;
+
 
 struct buf0 {
   vec2 resolution;
@@ -9,13 +12,14 @@
 struct main_out {
   vec4 x_GLF_color_1;
 };
-precision highp float;
-precision highp int;
-
 
 vec4 tint_symbol = vec4(0.0f);
-uniform buf0 x_17;
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v;
 vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
 int pointInTriangle_vf2_vf2_vf2_vf2_(inout vec2 p, inout vec2 a, inout vec2 b, inout vec2 c) {
   float x_66 = 0.0f;
   float x_67 = 0.0f;
@@ -107,7 +111,7 @@
   vec2 param_8 = vec2(0.0f);
   vec2 param_9 = vec2(0.0f);
   vec4 x_55 = tint_symbol;
-  vec2 x_58 = x_17.resolution;
+  vec2 x_58 = v.tint_symbol_3.resolution;
   param_6 = (vec2(x_55[0u], x_55[1u]) / x_58);
   param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
   param_8 = vec2(0.5f, 0.89999997615814208984f);
@@ -119,14 +123,17 @@
     x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
   }
 }
-main_out main(vec4 tint_symbol_2) {
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
   tint_symbol = tint_symbol_2;
   main_1();
   return main_out(x_GLF_color);
 }
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
 error: Error parsing GLSL shader:
-ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
-ERROR: 0:4: '' : compilation terminated 
+ERROR: 0:68: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:68: '' : compilation terminated 
 ERROR: 2 compilation errors.  No code generated.
 
 
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.ir.glsl
index f297654..1887db4 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.spvasm.expected.ir.glsl
@@ -1,11 +1,162 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+int pointInTriangle_vf2_vf2_vf2_vf2_(inout vec2 p, inout vec2 a, inout vec2 b, inout vec2 c) {
+  float x_78 = 0.0f;
+  float x_79 = 0.0f;
+  float x_80 = 0.0f;
+  vec2 param = vec2(0.0f);
+  vec2 param_1 = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  vec2 param_3 = vec2(0.0f);
+  vec2 param_4 = vec2(0.0f);
+  vec2 param_5 = vec2(0.0f);
+  bool x_147 = false;
+  bool x_148 = false;
+  bool x_203 = false;
+  bool x_204 = false;
+  float x_93 = b.x;
+  float x_94 = a.x;
+  float x_97 = b.y;
+  float x_98 = a.y;
+  param = vec2((p.x - a.x), (p.y - a.y));
+  param_1 = vec2((x_93 - x_94), (x_97 - x_98));
+  float x_111 = ((param.x * param_1.y) - (param_1.x * param.y));
+  x_80 = x_111;
+  float x_120 = c.x;
+  float x_121 = b.x;
+  float x_124 = c.y;
+  float x_125 = b.y;
+  param_2 = vec2((p.x - b.x), (p.y - b.y));
+  param_3 = vec2((x_120 - x_121), (x_124 - x_125));
+  float x_138 = ((param_2.x * param_3.y) - (param_3.x * param_2.y));
+  x_79 = x_138;
+  bool x_139 = (x_111 < 0.0f);
+  bool x_141 = (x_139 & (x_138 < 0.0f));
+  x_148 = x_141;
+  if (!(x_141)) {
+    x_147 = ((x_111 >= 0.0f) & (x_138 >= 0.0f));
+    x_148 = x_147;
+  }
+  int x_153 = 0;
+  if (!(x_148)) {
+    x_153 = 0;
+    {
+      while(true) {
+        int x_164 = 0;
+        int x_154 = 0;
+        int x_160 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.y);
+        if ((x_153 < x_160)) {
+        } else {
+          break;
+        }
+        x_GLF_color = vec4(1.0f);
+        x_164 = 0;
+        {
+          while(true) {
+            int x_165 = 0;
+            if ((x_164 < x_160)) {
+            } else {
+              break;
+            }
+            x_GLF_color = vec4(1.0f);
+            {
+              x_165 = (x_164 + 1);
+              x_164 = x_165;
+            }
+            continue;
+          }
+        }
+        {
+          x_154 = (x_153 + 1);
+          x_153 = x_154;
+        }
+        continue;
+      }
+    }
+    return 0;
+  }
+  float x_178 = a.x;
+  float x_179 = c.x;
+  float x_181 = a.y;
+  float x_182 = c.y;
+  param_4 = vec2((p.x - c.x), (p.y - c.y));
+  param_5 = vec2((x_178 - x_179), (x_181 - x_182));
+  float x_195 = ((param_4.x * param_5.y) - (param_5.x * param_4.y));
+  x_78 = x_195;
+  bool x_197 = (x_139 & (x_195 < 0.0f));
+  x_204 = x_197;
+  if (!(x_197)) {
+    x_203 = ((x_111 >= 0.0f) & (x_195 >= 0.0f));
+    x_204 = x_203;
+  }
+  if (!(x_204)) {
+    return 0;
+  }
+  return 1;
+}
+void main_1() {
+  vec2 param_6 = vec2(0.0f);
+  vec2 param_7 = vec2(0.0f);
+  vec2 param_8 = vec2(0.0f);
+  vec2 param_9 = vec2(0.0f);
+  param_6 = (tint_symbol.xy / v_1.tint_symbol_5.resolution);
+  param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
+  param_8 = vec2(0.5f, 0.89999997615814208984f);
+  param_9 = vec2(0.10000000149011611938f, 0.40000000596046447754f);
+  int x_65 = pointInTriangle_vf2_vf2_vf2_vf2_(param_6, param_7, param_8, param_9);
+  if ((x_65 == 1)) {
+    if ((v.tint_symbol_3.injectionSwitch.y >= v.tint_symbol_3.injectionSwitch.x)) {
+      x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+    }
+  } else {
+    x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:63: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:63: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.ir.glsl
index f297654..15bb9c3d 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl.expected.ir.glsl
@@ -1,11 +1,195 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct buf1 {
+  vec2 injectionSwitch;
+};
+
+struct buf0 {
+  vec2 resolution;
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+layout(binding = 1, std140)
+uniform tint_symbol_4_1_ubo {
+  buf1 tint_symbol_3;
+} v;
+vec4 x_GLF_color = vec4(0.0f);
+vec4 tint_symbol = vec4(0.0f);
+layout(binding = 0, std140)
+uniform tint_symbol_6_1_ubo {
+  buf0 tint_symbol_5;
+} v_1;
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+int pointInTriangle_vf2_vf2_vf2_vf2_(inout vec2 p, inout vec2 a, inout vec2 b, inout vec2 c) {
+  float x_78 = 0.0f;
+  float x_79 = 0.0f;
+  float x_80 = 0.0f;
+  vec2 param = vec2(0.0f);
+  vec2 param_1 = vec2(0.0f);
+  vec2 param_2 = vec2(0.0f);
+  vec2 param_3 = vec2(0.0f);
+  vec2 param_4 = vec2(0.0f);
+  vec2 param_5 = vec2(0.0f);
+  bool x_147 = false;
+  bool x_203 = false;
+  bool x_148_phi = false;
+  bool x_204_phi = false;
+  float x_82 = p.x;
+  float x_84 = a.x;
+  float x_87 = p.y;
+  float x_89 = a.y;
+  float x_93 = b.x;
+  float x_94 = a.x;
+  float x_97 = b.y;
+  float x_98 = a.y;
+  param = vec2((x_82 - x_84), (x_87 - x_89));
+  param_1 = vec2((x_93 - x_94), (x_97 - x_98));
+  float x_102 = param.x;
+  float x_104 = param_1.y;
+  float x_107 = param_1.x;
+  float x_109 = param.y;
+  float x_111 = ((x_102 * x_104) - (x_107 * x_109));
+  x_80 = x_111;
+  float x_112 = p.x;
+  float x_113 = b.x;
+  float x_115 = p.y;
+  float x_116 = b.y;
+  float x_120 = c.x;
+  float x_121 = b.x;
+  float x_124 = c.y;
+  float x_125 = b.y;
+  param_2 = vec2((x_112 - x_113), (x_115 - x_116));
+  param_3 = vec2((x_120 - x_121), (x_124 - x_125));
+  float x_129 = param_2.x;
+  float x_131 = param_3.y;
+  float x_134 = param_3.x;
+  float x_136 = param_2.y;
+  float x_138 = ((x_129 * x_131) - (x_134 * x_136));
+  x_79 = x_138;
+  bool x_139 = (x_111 < 0.0f);
+  bool x_141 = (x_139 & (x_138 < 0.0f));
+  x_148_phi = x_141;
+  if (!(x_141)) {
+    x_147 = ((x_111 >= 0.0f) & (x_138 >= 0.0f));
+    x_148_phi = x_147;
+  }
+  int x_153_phi = 0;
+  bool x_148 = x_148_phi;
+  if (!(x_148)) {
+    x_153_phi = 0;
+    {
+      while(true) {
+        int x_154 = 0;
+        int x_164_phi = 0;
+        int x_153 = x_153_phi;
+        float x_159 = v.tint_symbol_3.injectionSwitch.y;
+        int x_160 = tint_f32_to_i32(x_159);
+        if ((x_153 < x_160)) {
+        } else {
+          break;
+        }
+        x_GLF_color = vec4(1.0f);
+        x_164_phi = 0;
+        {
+          while(true) {
+            int x_165 = 0;
+            int x_164 = x_164_phi;
+            if ((x_164 < x_160)) {
+            } else {
+              break;
+            }
+            x_GLF_color = vec4(1.0f);
+            {
+              x_165 = (x_164 + 1);
+              x_164_phi = x_165;
+            }
+            continue;
+          }
+        }
+        {
+          x_154 = (x_153 + 1);
+          x_153_phi = x_154;
+        }
+        continue;
+      }
+    }
+    return 0;
+  }
+  float x_171 = p.x;
+  float x_172 = c.x;
+  float x_174 = p.y;
+  float x_175 = c.y;
+  float x_178 = a.x;
+  float x_179 = c.x;
+  float x_181 = a.y;
+  float x_182 = c.y;
+  param_4 = vec2((x_171 - x_172), (x_174 - x_175));
+  param_5 = vec2((x_178 - x_179), (x_181 - x_182));
+  float x_186 = param_4.x;
+  float x_188 = param_5.y;
+  float x_191 = param_5.x;
+  float x_193 = param_4.y;
+  float x_195 = ((x_186 * x_188) - (x_191 * x_193));
+  x_78 = x_195;
+  bool x_197 = (x_139 & (x_195 < 0.0f));
+  x_204_phi = x_197;
+  if (!(x_197)) {
+    x_203 = ((x_111 >= 0.0f) & (x_195 >= 0.0f));
+    x_204_phi = x_203;
+  }
+  bool x_204 = x_204_phi;
+  if (!(x_204)) {
+    return 0;
+  }
+  return 1;
+}
+void main_1() {
+  vec2 param_6 = vec2(0.0f);
+  vec2 param_7 = vec2(0.0f);
+  vec2 param_8 = vec2(0.0f);
+  vec2 param_9 = vec2(0.0f);
+  vec4 x_60 = tint_symbol;
+  vec2 x_63 = v_1.tint_symbol_5.resolution;
+  param_6 = (vec2(x_60[0u], x_60[1u]) / x_63);
+  param_7 = vec2(0.69999998807907104492f, 0.30000001192092895508f);
+  param_8 = vec2(0.5f, 0.89999997615814208984f);
+  param_9 = vec2(0.10000000149011611938f, 0.40000000596046447754f);
+  int x_65 = pointInTriangle_vf2_vf2_vf2_vf2_(param_6, param_7, param_8, param_9);
+  if ((x_65 == 1)) {
+    float x_71 = v.tint_symbol_3.injectionSwitch.y;
+    float x_73 = v.tint_symbol_3.injectionSwitch.x;
+    if ((x_71 >= x_73)) {
+      x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
+    }
+  } else {
+    x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+  }
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:79: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:79: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.ir.glsl
index f297654..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.ir.glsl
index f297654..70cbaaa 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,449 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct BST {
+  int data;
+  int leftIndex;
+  int rightIndex;
+};
+
+struct buf0 {
+  vec2 injectionSwitch;
+};
+
+struct Obj {
+  float odd_numbers[10];
+  float even_numbers[10];
+};
+
+struct main_out {
+  vec4 x_GLF_color_1;
+};
+
+BST tree_1[10] = BST[10](BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0), BST(0, 0, 0));
+layout(binding = 0, std140)
+uniform tint_symbol_4_1_ubo {
+  buf0 tint_symbol_3;
+} v_1;
+vec4 tint_symbol = vec4(0.0f);
+vec4 x_GLF_color = vec4(0.0f);
+layout(location = 0) out vec4 tint_symbol_1_loc0_Output;
+void makeTreeNode_struct_BST_i1_i1_i11_i1_(inout BST tree, inout int data) {
+  int x_74 = data;
+  tree.data = x_74;
+  tree.leftIndex = -1;
+  tree.rightIndex = -1;
+}
+void insert_i1_i1_(inout int treeIndex, inout int data_1) {
+  int baseIndex = 0;
+  BST param = BST(0, 0, 0);
+  int param_1 = 0;
+  BST param_2 = BST(0, 0, 0);
+  int param_3 = 0;
+  int GLF_live8i = 0;
+  float GLF_live8A[50] = float[50](0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
+  baseIndex = 0;
+  {
+    while(true) {
+      int x_75 = baseIndex;
+      int x_76 = treeIndex;
+      if ((x_75 <= x_76)) {
+      } else {
+        break;
+      }
+      int x_77 = data_1;
+      int x_78 = baseIndex;
+      int x_79 = tree_1[x_78].data;
+      if ((x_77 <= x_79)) {
+        int x_80 = baseIndex;
+        int x_81 = tree_1[x_80].leftIndex;
+        if ((x_81 == -1)) {
+          int x_82 = baseIndex;
+          int x_83 = treeIndex;
+          tree_1[x_82].leftIndex = x_83;
+          int x_84 = treeIndex;
+          BST x_350 = tree_1[x_84];
+          param = x_350;
+          int x_85 = data_1;
+          param_1 = x_85;
+          makeTreeNode_struct_BST_i1_i1_i11_i1_(param, param_1);
+          BST x_352 = param;
+          tree_1[x_84] = x_352;
+          return;
+        } else {
+          int x_86 = baseIndex;
+          int x_87 = tree_1[x_86].leftIndex;
+          baseIndex = x_87;
+          {
+          }
+          continue;
+        }
+      } else {
+        int x_88 = baseIndex;
+        int x_89 = tree_1[x_88].rightIndex;
+        if ((x_89 == -1)) {
+          int x_90 = baseIndex;
+          int x_91 = treeIndex;
+          tree_1[x_90].rightIndex = x_91;
+          int x_92 = treeIndex;
+          BST x_362 = tree_1[x_92];
+          param_2 = x_362;
+          int x_93 = data_1;
+          param_3 = x_93;
+          makeTreeNode_struct_BST_i1_i1_i11_i1_(param_2, param_3);
+          BST x_364 = param_2;
+          tree_1[x_92] = x_364;
+          return;
+        } else {
+          GLF_live8i = 1;
+          int x_94 = GLF_live8i;
+          int x_95 = GLF_live8i;
+          int x_96 = GLF_live8i;
+          int x_369 = ((((x_94 >= 0) & (x_95 < 50))) ? (x_96) : (0));
+          float x_371 = GLF_live8A[0];
+          float x_373 = GLF_live8A[x_369];
+          GLF_live8A[x_369] = (x_373 + x_371);
+          {
+            while(true) {
+              int x_97 = baseIndex;
+              int x_98 = tree_1[x_97].rightIndex;
+              baseIndex = x_98;
+              {
+                float x_382 = v_1.tint_symbol_3.injectionSwitch.x;
+                float x_384 = v_1.tint_symbol_3.injectionSwitch.y;
+                if (!((x_382 > x_384))) { break; }
+              }
+              continue;
+            }
+          }
+          {
+          }
+          continue;
+        }
+      }
+      /* unreachable */
+    }
+  }
+}
+int search_i1_(inout int t) {
+  int index = 0;
+  BST currentNode = BST(0, 0, 0);
+  int x_387 = 0;
+  index = 0;
+  {
+    while(true) {
+      int x_99 = index;
+      if ((x_99 != -1)) {
+      } else {
+        break;
+      }
+      int x_100 = index;
+      BST x_395 = tree_1[x_100];
+      currentNode = x_395;
+      int x_101 = currentNode.data;
+      int x_102 = t;
+      if ((x_101 == x_102)) {
+        int x_103 = t;
+        return x_103;
+      }
+      int x_104 = t;
+      int x_105 = currentNode.data;
+      if ((x_104 > x_105)) {
+        int x_106 = currentNode.rightIndex;
+        x_387 = x_106;
+      } else {
+        int x_107 = currentNode.leftIndex;
+        x_387 = x_107;
+      }
+      int x_108 = x_387;
+      index = x_108;
+      {
+      }
+      continue;
+    }
+  }
+  return -1;
+}
+float makeFrame_f1_(inout float v) {
+  int param_5 = 0;
+  int param_6 = 0;
+  int param_7 = 0;
+  float x_418 = v;
+  v = (x_418 * 6.5f);
+  float x_420 = v;
+  if ((x_420 < 1.5f)) {
+    param_5 = 100;
+    int x_110 = search_i1_(param_5);
+    return float(x_110);
+  }
+  float x_425 = v;
+  if ((x_425 < 4.0f)) {
+    return 0.0f;
+  }
+  float x_429 = v;
+  param_6 = 6;
+  int x_111 = search_i1_(param_6);
+  if ((x_429 < float(x_111))) {
+    return 1.0f;
+  }
+  param_7 = 30;
+  int x_112 = search_i1_(param_7);
+  return (10.0f + float(x_112));
+}
+vec3 hueColor_f1_(inout float angle) {
+  float nodeData = 0.0f;
+  int param_4 = 0;
+  param_4 = 15;
+  int x_109 = search_i1_(param_4);
+  nodeData = float(x_109);
+  float x_409 = angle;
+  float x_410 = nodeData;
+  return ((vec3(30.0f) + (vec3(1.0f, 5.0f, x_410) * x_409)) / vec3(50.0f));
+}
+void main_1() {
+  int treeIndex_1 = 0;
+  BST param_8 = BST(0, 0, 0);
+  int param_9 = 0;
+  int param_10 = 0;
+  int param_11 = 0;
+  int GLF_live1_looplimiter2 = 0;
+  int GLF_live1i = 0;
+  int param_12 = 0;
+  int param_13 = 0;
+  int param_14 = 0;
+  int param_15 = 0;
+  int param_16 = 0;
+  int param_17 = 0;
+  int param_18 = 0;
+  int param_19 = 0;
+  int param_20 = 0;
+  int param_21 = 0;
+  int param_22 = 0;
+  int param_23 = 0;
+  int GLF_live4_looplimiter3 = 0;
+  int GLF_live4i = 0;
+  int GLF_live4index = 0;
+  Obj GLF_live4obj = Obj(float[10](0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f), float[10](0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
+  int param_24 = 0;
+  int param_25 = 0;
+  int param_26 = 0;
+  int param_27 = 0;
+  vec2 z = vec2(0.0f);
+  float x = 0.0f;
+  float param_28 = 0.0f;
+  float y = 0.0f;
+  float param_29 = 0.0f;
+  int sum = 0;
+  int t_1 = 0;
+  int result = 0;
+  int param_30 = 0;
+  float a = 0.0f;
+  vec3 x_235 = vec3(0.0f);
+  float param_31 = 0.0f;
+  treeIndex_1 = 0;
+  BST x_237 = tree_1[0];
+  param_8 = x_237;
+  param_9 = 9;
+  makeTreeNode_struct_BST_i1_i1_i11_i1_(param_8, param_9);
+  BST x_239 = param_8;
+  tree_1[0] = x_239;
+  int x_113 = treeIndex_1;
+  treeIndex_1 = (x_113 + 1);
+  int x_115 = treeIndex_1;
+  param_10 = x_115;
+  param_11 = 5;
+  insert_i1_i1_(param_10, param_11);
+  int x_116 = treeIndex_1;
+  treeIndex_1 = (x_116 + 1);
+  GLF_live1_looplimiter2 = 0;
+  GLF_live1i = 0;
+  {
+    while(true) {
+      if (true) {
+      } else {
+        break;
+      }
+      int x_118 = GLF_live1_looplimiter2;
+      if ((x_118 >= 7)) {
+        break;
+      }
+      int x_119 = GLF_live1_looplimiter2;
+      GLF_live1_looplimiter2 = (x_119 + 1);
+      {
+        int x_121 = GLF_live1i;
+        GLF_live1i = (x_121 + 1);
+      }
+      continue;
+    }
+  }
+  int x_123 = treeIndex_1;
+  param_12 = x_123;
+  param_13 = 12;
+  insert_i1_i1_(param_12, param_13);
+  int x_124 = treeIndex_1;
+  treeIndex_1 = (x_124 + 1);
+  int x_126 = treeIndex_1;
+  param_14 = x_126;
+  param_15 = 15;
+  insert_i1_i1_(param_14, param_15);
+  int x_127 = treeIndex_1;
+  treeIndex_1 = (x_127 + 1);
+  int x_129 = treeIndex_1;
+  param_16 = x_129;
+  param_17 = 7;
+  insert_i1_i1_(param_16, param_17);
+  int x_130 = treeIndex_1;
+  treeIndex_1 = (x_130 + 1);
+  int x_132 = treeIndex_1;
+  param_18 = x_132;
+  param_19 = 8;
+  insert_i1_i1_(param_18, param_19);
+  int x_133 = treeIndex_1;
+  treeIndex_1 = (x_133 + 1);
+  int x_135 = treeIndex_1;
+  param_20 = x_135;
+  param_21 = 2;
+  insert_i1_i1_(param_20, param_21);
+  int x_136 = treeIndex_1;
+  treeIndex_1 = (x_136 + 1);
+  int x_138 = treeIndex_1;
+  param_22 = x_138;
+  param_23 = 6;
+  insert_i1_i1_(param_22, param_23);
+  int x_139 = treeIndex_1;
+  treeIndex_1 = (x_139 + 1);
+  GLF_live4_looplimiter3 = 0;
+  GLF_live4i = 0;
+  {
+    while(true) {
+      if (true) {
+      } else {
+        break;
+      }
+      int x_141 = GLF_live4_looplimiter3;
+      if ((x_141 >= 3)) {
+        break;
+      }
+      int x_142 = GLF_live4_looplimiter3;
+      GLF_live4_looplimiter3 = (x_142 + 1);
+      GLF_live4index = 1;
+      int x_144 = GLF_live4index;
+      int x_145 = GLF_live4index;
+      int x_146 = GLF_live4index;
+      float x_269 = GLF_live4obj.even_numbers[1];
+      GLF_live4obj.even_numbers[((((x_144 >= 0) & (x_145 < 10))) ? (x_146) : (0))] = x_269;
+      int x_147 = GLF_live4i;
+      int x_148 = GLF_live4i;
+      int x_149 = GLF_live4i;
+      GLF_live4obj.even_numbers[((((x_147 >= 0) & (x_148 < 10))) ? (x_149) : (0))] = 1.0f;
+      {
+        int x_150 = GLF_live4i;
+        GLF_live4i = (x_150 + 1);
+      }
+      continue;
+    }
+  }
+  int x_152 = treeIndex_1;
+  param_24 = x_152;
+  param_25 = 17;
+  insert_i1_i1_(param_24, param_25);
+  float x_278 = v_1.tint_symbol_3.injectionSwitch.x;
+  float x_280 = v_1.tint_symbol_3.injectionSwitch.y;
+  if ((x_278 > x_280)) {
+    return;
+  }
+  int x_153 = treeIndex_1;
+  treeIndex_1 = (x_153 + 1);
+  int x_155 = treeIndex_1;
+  param_26 = x_155;
+  param_27 = 13;
+  insert_i1_i1_(param_26, param_27);
+  vec4 x_285 = tint_symbol;
+  z = (vec2(x_285[1u], x_285[0u]) / vec2(256.0f));
+  float x_289 = z.x;
+  param_28 = x_289;
+  float x_290 = makeFrame_f1_(param_28);
+  x = x_290;
+  float x_292 = z.y;
+  param_29 = x_292;
+  float x_293 = makeFrame_f1_(param_29);
+  y = x_293;
+  sum = -100;
+  t_1 = 0;
+  {
+    while(true) {
+      int x_156 = t_1;
+      if ((x_156 < 20)) {
+      } else {
+        break;
+      }
+      int x_157 = t_1;
+      param_30 = x_157;
+      int x_158 = search_i1_(param_30);
+      result = x_158;
+      int x_159 = result;
+      if ((x_159 > 0)) {
+      } else {
+        int x_160 = result;
+        switch(x_160) {
+          case 0:
+          {
+            return;
+          }
+          case -1:
+          {
+            int x_161 = sum;
+            sum = (x_161 + 1);
+            break;
+          }
+          default:
+          {
+            break;
+          }
+        }
+      }
+      {
+        int x_163 = t_1;
+        t_1 = (x_163 + 1);
+      }
+      continue;
+    }
+  }
+  float x_307 = x;
+  float x_308 = y;
+  int x_165 = sum;
+  a = (x_307 + (x_308 * float(x_165)));
+  float x_313 = v_1.tint_symbol_3.injectionSwitch.x;
+  float x_315 = v_1.tint_symbol_3.injectionSwitch.y;
+  if ((x_313 < x_315)) {
+    x_235 = vec3(1.0f, 0.0f, 0.0f);
+  } else {
+    float x_320 = a;
+    param_31 = x_320;
+    vec3 x_321 = hueColor_f1_(param_31);
+    x_235 = x_321;
+  }
+  vec3 x_322 = x_235;
+  x_GLF_color = vec4(x_322[0u], x_322[1u], x_322[2u], 1.0f);
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(x_GLF_color);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:104: '&' :  wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:104: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl.expected.ir.glsl
index 4687334..1c00ea3 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:521 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.spvasm.expected.ir.glsl
index 4687334..5cf8186 100644
--- a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.spvasm.expected.ir.glsl
index 4687334..5cf8186 100644
--- a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:489 internal compiler error: TINT_ASSERT(!l->Result(0)->Type()->Is<core::type::Pointer>())
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.spvasm.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl.expected.ir.glsl
index f297654..c42d861 100644
--- a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureLoad
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.ir.glsl
index 1ea6360..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:819 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.spvasm.expected.ir.glsl
index f297654..daed05e 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl.expected.ir.glsl
index f297654..daed05e 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1423 internal compiler error: TINT_UNREACHABLE unhandled core builtin: textureStore
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.ir.glsl
index f297654..9041752 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.spvasm.expected.ir.glsl
@@ -1,11 +1,41 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct main_out {
+  int out_data_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+int out_data = 0;
+layout(location = 0) out int tint_symbol_1_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  bool x_is_odd = false;
+  bool y_is_odd = false;
+  x_is_odd = ((tint_f32_to_i32(tint_symbol.x) & 1) == 1);
+  y_is_odd = ((tint_f32_to_i32(tint_symbol.y) & 1) == 1);
+  out_data = (((x_is_odd | y_is_odd)) ? (1) : (0));
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(out_data);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).out_data_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:21: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:21: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl.expected.ir.glsl
index f297654..b401a77 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl.expected.ir.glsl
@@ -1,11 +1,45 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+#version 310 es
+precision highp float;
+precision highp int;
 
-tint executable returned error: signal: trace/BPT trap
+
+struct main_out {
+  int out_data_1;
+};
+
+vec4 tint_symbol = vec4(0.0f);
+int out_data = 0;
+layout(location = 0) out int tint_symbol_1_loc0_Output;
+int tint_f32_to_i32(float value) {
+  return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
+}
+void main_1() {
+  bool x_is_odd = false;
+  bool y_is_odd = false;
+  float x_24 = tint_symbol.x;
+  x_is_odd = ((tint_f32_to_i32(x_24) & 1) == 1);
+  float x_29 = tint_symbol.y;
+  y_is_odd = ((tint_f32_to_i32(x_29) & 1) == 1);
+  bool x_33 = x_is_odd;
+  bool x_34 = y_is_odd;
+  out_data = (((x_33 | x_34)) ? (1) : (0));
+}
+main_out tint_symbol_1_inner(vec4 tint_symbol_2) {
+  tint_symbol = tint_symbol_2;
+  main_1();
+  return main_out(out_data);
+}
+void main() {
+  tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).out_data_1;
+}
+error: Error parsing GLSL shader:
+ERROR: 0:25: '|' :  wrong operand types: no operation '|' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion)
+ERROR: 0:25: '' : compilation terminated 
+ERROR: 2 compilation errors.  No code generated.
+
+
+
+
+tint executable returned error: exit status 1
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.spvasm.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.spvasm.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.spvasm.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.spvasm.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *
diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl.expected.ir.glsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl.expected.ir.glsl
index f297654..5cf8186 100644
--- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl.expected.ir.glsl
+++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl.expected.ir.glsl
@@ -1,6 +1,6 @@
 SKIP: FAILED
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1116 internal compiler error: TINT_UNREACHABLE unhandled core builtin: select
+<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1106 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
 ********************************************************************
 *  The tint shader compiler has encountered an unexpected error.   *
 *                                                                  *