[glsl][ir] Convert `any` and `all` of a scalar to a no-op

The GLSL `any` and `all` functions do not support scalar values. This Cl
just replaces the call with the value.

Bug: 42251044
Change-Id: I7ae4767890bea37f40eb2db6d85fa1242d3c6cc3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/207756
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/src/tint/lang/glsl/writer/builtin_test.cc b/src/tint/lang/glsl/writer/builtin_test.cc
index c637844..50df14a 100644
--- a/src/tint/lang/glsl/writer/builtin_test.cc
+++ b/src/tint/lang/glsl/writer/builtin_test.cc
@@ -1452,5 +1452,39 @@
 )");
 }
 
+TEST_F(GlslWriterTest, AnyScalar) {
+    auto* func = b.Function("foo", ty.void_(), core::ir::Function::PipelineStage::kFragment);
+    b.Append(func->Block(), [&] {
+        b.Let("x", b.Call(ty.bool_(), core::BuiltinFn::kAny, true));
+        b.Return(func);
+    });
+
+    ASSERT_TRUE(Generate()) << err_ << output_.glsl;
+    EXPECT_EQ(output_.glsl, GlslHeader() + R"(precision highp float;
+precision highp int;
+
+void main() {
+  bool x = true;
+}
+)");
+}
+
+TEST_F(GlslWriterTest, AllScalar) {
+    auto* func = b.Function("foo", ty.void_(), core::ir::Function::PipelineStage::kFragment);
+    b.Append(func->Block(), [&] {
+        b.Let("x", b.Call(ty.bool_(), core::BuiltinFn::kAll, false));
+        b.Return(func);
+    });
+
+    ASSERT_TRUE(Generate()) << err_ << output_.glsl;
+    EXPECT_EQ(output_.glsl, GlslHeader() + R"(precision highp float;
+precision highp int;
+
+void main() {
+  bool x = false;
+}
+)");
+}
+
 }  // namespace
 }  // namespace tint::glsl::writer
diff --git a/src/tint/lang/glsl/writer/raise/builtin_polyfill.cc b/src/tint/lang/glsl/writer/raise/builtin_polyfill.cc
index 841168e..26c3d22 100644
--- a/src/tint/lang/glsl/writer/raise/builtin_polyfill.cc
+++ b/src/tint/lang/glsl/writer/raise/builtin_polyfill.cc
@@ -68,6 +68,12 @@
         for (auto* inst : ir.Instructions()) {
             if (auto* call = inst->As<core::ir::CoreBuiltinCall>()) {
                 switch (call->Func()) {
+                    case core::BuiltinFn::kAll:
+                    case core::BuiltinFn::kAny:
+                        if (call->Args()[0]->Type()->Is<core::type::Scalar>()) {
+                            call_worklist.Push(call);
+                        }
+                        break;
                     case core::BuiltinFn::kArrayLength:
                     case core::BuiltinFn::kAtomicCompareExchangeWeak:
                     case core::BuiltinFn::kAtomicSub:
@@ -96,6 +102,10 @@
         // Replace the builtin calls that we found
         for (auto* call : call_worklist) {
             switch (call->Func()) {
+                case core::BuiltinFn::kAll:
+                case core::BuiltinFn::kAny:
+                    ConvertToNop(call);
+                    break;
                 case core::BuiltinFn::kArrayLength:
                     ArrayLength(call);
                     break;
@@ -146,6 +156,11 @@
         }
     }
 
+    void ConvertToNop(core::ir::Call* call) {
+        call->Result(0)->ReplaceAllUsesWith(call->Args()[0]);
+        call->Destroy();
+    }
+
     void ArrayLength(core::ir::Call* call) {
         b.InsertBefore(call, [&] {
             auto* len = b.MemberCall<glsl::ir::MemberBuiltinCall>(ty.i32(), BuiltinFn::kLength,
diff --git a/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc b/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc
index b91402c..dfb30ed 100644
--- a/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc
+++ b/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc
@@ -1454,5 +1454,67 @@
     EXPECT_EQ(expect, str());
 }
 
+TEST_F(GlslWriter_BuiltinPolyfillTest, AnyScalar) {
+    auto* func = b.Function("foo", ty.void_(), core::ir::Function::PipelineStage::kFragment);
+    b.Append(func->Block(), [&] {
+        b.Let("x", b.Call(ty.bool_(), core::BuiltinFn::kAny, true));
+        b.Return(func);
+    });
+
+    auto* src = R"(
+%foo = @fragment func():void {
+  $B1: {
+    %2:bool = any true
+    %x:bool = let %2
+    ret
+  }
+}
+)";
+    ASSERT_EQ(src, str());
+
+    auto* expect = R"(
+%foo = @fragment func():void {
+  $B1: {
+    %x:bool = let true
+    ret
+  }
+}
+)";
+
+    Run(BuiltinPolyfill);
+    EXPECT_EQ(expect, str());
+}
+
+TEST_F(GlslWriter_BuiltinPolyfillTest, AllScalar) {
+    auto* func = b.Function("foo", ty.void_(), core::ir::Function::PipelineStage::kFragment);
+    b.Append(func->Block(), [&] {
+        b.Let("x", b.Call(ty.bool_(), core::BuiltinFn::kAll, false));
+        b.Return(func);
+    });
+
+    auto* src = R"(
+%foo = @fragment func():void {
+  $B1: {
+    %2:bool = all false
+    %x:bool = let %2
+    ret
+  }
+}
+)";
+    ASSERT_EQ(src, str());
+
+    auto* expect = R"(
+%foo = @fragment func():void {
+  $B1: {
+    %x:bool = let false
+    ret
+  }
+}
+)";
+
+    Run(BuiltinPolyfill);
+    EXPECT_EQ(expect, str());
+}
+
 }  // namespace
 }  // namespace tint::glsl::writer::raise
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 fdf6153..6f4ca6c 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int all_353d6a() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int all_353d6a() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int all_353d6a() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 e8336b2..9ebc101 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int all_986c7b() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int all_986c7b() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int all_986c7b() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 41df512..2a57521 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int all_bd2dba() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int all_bd2dba() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int all_bd2dba() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 48d471d..3f80215 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int all_f46790() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int all_f46790() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int all_f46790() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 2989640..e8891fa 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int any_083428() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int any_083428() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int any_083428() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 5ca4ec3..075d96e 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int any_0e3e58() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int any_0e3e58() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int any_0e3e58() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 8d55d80..2b84aa8 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int any_2ab91a() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int any_2ab91a() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int any_2ab91a() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 7a61dc0..c6565d9 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int any_e755c1() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int any_e755c1() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int any_e755c1() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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 6eb44af..5fedd41 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,18 +8,11 @@
 } v;
 int select_c31f9e() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -30,19 +21,12 @@
 } v;
 int select_c31f9e() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -54,7 +38,7 @@
 layout(location = 0) flat out int vertex_main_loc0_Output;
 int select_c31f9e() {
   bool res = true;
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -70,12 +54,3 @@
   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/var/all/353d6a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.ir.glsl
index 9b70abe..7a0d2b4 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,20 +8,12 @@
 } v;
 int all_353d6a() {
   bool arg_0 = true;
-  bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  bool res = arg_0;
+  return (((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)
@@ -32,21 +22,13 @@
 } v;
 int all_353d6a() {
   bool arg_0 = true;
-  bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  bool res = arg_0;
+  return (((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
 
 
@@ -58,8 +40,8 @@
 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));
+  bool res = arg_0;
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -75,13 +57,3 @@
   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 dde08ce..2310f75 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -11,18 +9,11 @@
 int all_986c7b() {
   bvec4 arg_0 = bvec4(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -32,19 +23,12 @@
 int all_986c7b() {
   bvec4 arg_0 = bvec4(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -57,7 +41,7 @@
 int all_986c7b() {
   bvec4 arg_0 = bvec4(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -73,12 +57,3 @@
   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 421b009..2fcfd76 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -11,18 +9,11 @@
 int all_bd2dba() {
   bvec3 arg_0 = bvec3(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -32,19 +23,12 @@
 int all_bd2dba() {
   bvec3 arg_0 = bvec3(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -57,7 +41,7 @@
 int all_bd2dba() {
   bvec3 arg_0 = bvec3(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -73,12 +57,3 @@
   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 67312dc..6e9845c2 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -11,18 +9,11 @@
 int all_f46790() {
   bvec2 arg_0 = bvec2(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -32,19 +23,12 @@
 int all_f46790() {
   bvec2 arg_0 = bvec2(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -57,7 +41,7 @@
 int all_f46790() {
   bvec2 arg_0 = bvec2(true);
   bool res = all(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -73,12 +57,3 @@
   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 a4b3f04..2810133 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -11,18 +9,11 @@
 int any_083428() {
   bvec4 arg_0 = bvec4(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -32,19 +23,12 @@
 int any_083428() {
   bvec4 arg_0 = bvec4(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -57,7 +41,7 @@
 int any_083428() {
   bvec4 arg_0 = bvec4(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -73,12 +57,3 @@
   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 ddb33a5..bb41a92 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -11,18 +9,11 @@
 int any_0e3e58() {
   bvec2 arg_0 = bvec2(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -32,19 +23,12 @@
 int any_0e3e58() {
   bvec2 arg_0 = bvec2(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -57,7 +41,7 @@
 int any_0e3e58() {
   bvec2 arg_0 = bvec2(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -73,12 +57,3 @@
   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 31b7425..cb7d977 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -10,20 +8,12 @@
 } v;
 int any_2ab91a() {
   bool arg_0 = true;
-  bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  bool res = arg_0;
+  return (((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)
@@ -32,21 +22,13 @@
 } v;
 int any_2ab91a() {
   bool arg_0 = true;
-  bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  bool res = arg_0;
+  return (((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
 
 
@@ -58,8 +40,8 @@
 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));
+  bool res = arg_0;
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -75,13 +57,3 @@
   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 63b5ef4..bba4173 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -11,18 +9,11 @@
 int any_e755c1() {
   bvec3 arg_0 = bvec3(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -32,19 +23,12 @@
 int any_e755c1() {
   bvec3 arg_0 = bvec3(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -57,7 +41,7 @@
 int any_e755c1() {
   bvec3 arg_0 = bvec3(true);
   bool res = any(arg_0);
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -73,12 +57,3 @@
   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/select/c31f9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.ir.glsl
index 76ffea0..d9a48b1 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,5 +1,3 @@
-SKIP: FAILED
-
 #version 310 es
 precision highp float;
 precision highp int;
@@ -13,18 +11,11 @@
   bool arg_1 = true;
   bool arg_2 = true;
   bool res = ((arg_2) ? (arg_1) : (arg_0));
-  return ((all((res == false))) ? (1) : (0));
+  return (((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)
@@ -36,19 +27,12 @@
   bool arg_1 = true;
   bool arg_2 = true;
   bool res = ((arg_2) ? (arg_1) : (arg_0));
-  return ((all((res == false))) ? (1) : (0));
+  return (((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
 
 
@@ -63,7 +47,7 @@
   bool arg_1 = true;
   bool arg_2 = true;
   bool res = ((arg_2) ? (arg_1) : (arg_0));
-  return ((all((res == false))) ? (1) : (0));
+  return (((res == false)) ? (1) : (0));
 }
 VertexOutput vertex_main_inner() {
   VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0);
@@ -79,12 +63,3 @@
   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