[glsl][ir] Emit `degrees` and `radians`

The `degree` and `radians` calls both exist in GLSL, emit them directly
instead of doing a polyfill.

Bug: 42251044
Change-Id: I8e1bd0687da587a7f1b5fabd17733ba6df538afc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/207734
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
diff --git a/src/tint/lang/glsl/writer/printer/printer.cc b/src/tint/lang/glsl/writer/printer/printer.cc
index 89e37f9..deb1f61 100644
--- a/src/tint/lang/glsl/writer/printer/printer.cc
+++ b/src/tint/lang/glsl/writer/printer/printer.cc
@@ -1323,6 +1323,7 @@
             case core::BuiltinFn::kCos:
             case core::BuiltinFn::kCosh:
             case core::BuiltinFn::kCross:
+            case core::BuiltinFn::kDegrees:
             case core::BuiltinFn::kDeterminant:
             case core::BuiltinFn::kDistance:
             case core::BuiltinFn::kDot:
@@ -1339,6 +1340,7 @@
             case core::BuiltinFn::kModf:
             case core::BuiltinFn::kNormalize:
             case core::BuiltinFn::kPow:
+            case core::BuiltinFn::kRadians:
             case core::BuiltinFn::kReflect:
             case core::BuiltinFn::kRefract:
             case core::BuiltinFn::kRound:
diff --git a/test/tint/builtins/degrees.spvasm.expected.ir.glsl b/test/tint/builtins/degrees.spvasm.expected.ir.glsl
index 2d32649..a3619d3 100644
--- a/test/tint/builtins/degrees.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/degrees.spvasm.expected.ir.glsl
@@ -1,11 +1,12 @@
-SKIP: FAILED
+#version 310 es
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
-
-tint executable returned error: signal: trace/BPT trap
+void main_1() {
+  float a = 0.0f;
+  float b = 0.0f;
+  a = 42.0f;
+  b = degrees(a);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  main_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 2d32649..28d311f 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+vec4 degrees_0d170c() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_0d170c();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+vec4 degrees_0d170c() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_0d170c();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 degrees_0d170c() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 res = degrees(arg_0);
+  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 = degrees_0d170c();
+  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;
+}
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 2d32649..0c3e0f0 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
+vec2 degrees_1ad5df() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_1ad5df();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
+vec2 degrees_1ad5df() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_1ad5df();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec2 prevent_dce;
+};
+
+layout(location = 0) flat out vec2 vertex_main_loc0_Output;
+vec2 degrees_1ad5df() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 res = degrees(arg_0);
+  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 = degrees_1ad5df();
+  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;
+}
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 2d32649..31e59c6 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
+vec3 degrees_2af623() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_2af623();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
+vec3 degrees_2af623() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_2af623();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec3 prevent_dce;
+};
+
+layout(location = 0) flat out vec3 vertex_main_loc0_Output;
+vec3 degrees_2af623() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 res = degrees(arg_0);
+  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 = degrees_2af623();
+  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;
+}
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 2d32649..fbf47ed 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
+f16vec4 degrees_3055d3() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_3055d3();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
+f16vec4 degrees_3055d3() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_3055d3();
+}
+#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 degrees_3055d3() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 res = degrees(arg_0);
+  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 = degrees_3055d3();
+  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;
+}
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 2d32649..2985aa6 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float tint_symbol;
+} v;
+float degrees_51f705() {
+  float arg_0 = 1.0f;
+  float res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_51f705();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float tint_symbol;
+} v;
+float degrees_51f705() {
+  float arg_0 = 1.0f;
+  float res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_51f705();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  float prevent_dce;
+};
+
+layout(location = 0) flat out float vertex_main_loc0_Output;
+float degrees_51f705() {
+  float arg_0 = 1.0f;
+  float res = degrees(arg_0);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0f);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = degrees_51f705();
+  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;
+}
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 2d32649..6f98fa5 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float16_t tint_symbol;
+} v;
+float16_t degrees_5e9805() {
+  float16_t arg_0 = 1.0hf;
+  float16_t res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_5e9805();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float16_t tint_symbol;
+} v;
+float16_t degrees_5e9805() {
+  float16_t arg_0 = 1.0hf;
+  float16_t res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_5e9805();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+
+struct VertexOutput {
+  vec4 pos;
+  float16_t prevent_dce;
+};
+
+layout(location = 0) flat out float16_t vertex_main_loc0_Output;
+float16_t degrees_5e9805() {
+  float16_t arg_0 = 1.0hf;
+  float16_t res = degrees(arg_0);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0hf);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = degrees_5e9805();
+  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;
+}
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 2d32649..37cac19 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
+f16vec3 degrees_dfe8f4() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_dfe8f4();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
+f16vec3 degrees_dfe8f4() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_dfe8f4();
+}
+#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 degrees_dfe8f4() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 res = degrees(arg_0);
+  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 = degrees_dfe8f4();
+  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;
+}
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 2d32649..8a40aff 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
+f16vec2 degrees_f59715() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 res = degrees(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = degrees_f59715();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
+f16vec2 degrees_f59715() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 res = degrees(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = degrees_f59715();
+}
+#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 degrees_f59715() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 res = degrees(arg_0);
+  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 = degrees_f59715();
+  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;
+}
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 4ead8e6..448028b 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+vec4 radians_09b7fc() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_09b7fc();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+vec4 radians_09b7fc() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_09b7fc();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 radians_09b7fc() {
+  vec4 arg_0 = vec4(1.0f);
+  vec4 res = radians(arg_0);
+  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 = radians_09b7fc();
+  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;
+}
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 4ead8e6..e3e1e35 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float16_t tint_symbol;
+} v;
+float16_t radians_208fd9() {
+  float16_t arg_0 = 1.0hf;
+  float16_t res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_208fd9();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float16_t tint_symbol;
+} v;
+float16_t radians_208fd9() {
+  float16_t arg_0 = 1.0hf;
+  float16_t res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_208fd9();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+
+
+struct VertexOutput {
+  vec4 pos;
+  float16_t prevent_dce;
+};
+
+layout(location = 0) flat out float16_t vertex_main_loc0_Output;
+float16_t radians_208fd9() {
+  float16_t arg_0 = 1.0hf;
+  float16_t res = radians(arg_0);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0hf);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = radians_208fd9();
+  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;
+}
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 4ead8e6..eac944b 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
+f16vec4 radians_44f20b() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_44f20b();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec4 tint_symbol;
+} v;
+f16vec4 radians_44f20b() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_44f20b();
+}
+#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 radians_44f20b() {
+  f16vec4 arg_0 = f16vec4(1.0hf);
+  f16vec4 res = radians(arg_0);
+  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 = radians_44f20b();
+  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;
+}
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 4ead8e6..68c563b 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
+vec2 radians_61687a() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_61687a();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec2 tint_symbol;
+} v;
+vec2 radians_61687a() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_61687a();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec2 prevent_dce;
+};
+
+layout(location = 0) flat out vec2 vertex_main_loc0_Output;
+vec2 radians_61687a() {
+  vec2 arg_0 = vec2(1.0f);
+  vec2 res = radians(arg_0);
+  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 = radians_61687a();
+  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;
+}
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 4ead8e6..da842ca 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float tint_symbol;
+} v;
+float radians_6b0ff2() {
+  float arg_0 = 1.0f;
+  float res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_6b0ff2();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  float tint_symbol;
+} v;
+float radians_6b0ff2() {
+  float arg_0 = 1.0f;
+  float res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_6b0ff2();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  float prevent_dce;
+};
+
+layout(location = 0) flat out float vertex_main_loc0_Output;
+float radians_6b0ff2() {
+  float arg_0 = 1.0f;
+  float res = radians(arg_0);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0.0f);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = radians_6b0ff2();
+  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;
+}
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 4ead8e6..e245251 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
+f16vec3 radians_7ea4c7() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_7ea4c7();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec3 tint_symbol;
+} v;
+f16vec3 radians_7ea4c7() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_7ea4c7();
+}
+#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 radians_7ea4c7() {
+  f16vec3 arg_0 = f16vec3(1.0hf);
+  f16vec3 res = radians(arg_0);
+  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 = radians_7ea4c7();
+  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;
+}
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 4ead8e6..a981b70 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,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
+vec3 radians_f96258() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_f96258();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec3 tint_symbol;
+} v;
+vec3 radians_f96258() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_f96258();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec3 prevent_dce;
+};
+
+layout(location = 0) flat out vec3 vertex_main_loc0_Output;
+vec3 radians_f96258() {
+  vec3 arg_0 = vec3(1.0f);
+  vec3 res = radians(arg_0);
+  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 = radians_f96258();
+  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;
+}
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 4ead8e6..38dc8a8 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,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
+f16vec2 radians_fbacf0() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 res = radians(arg_0);
+  return res;
+}
+void main() {
+  v.tint_symbol = radians_fbacf0();
+}
+#version 310 es
+#extension GL_AMD_gpu_shader_half_float: require
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  f16vec2 tint_symbol;
+} v;
+f16vec2 radians_fbacf0() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 res = radians(arg_0);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = radians_fbacf0();
+}
+#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 radians_fbacf0() {
+  f16vec2 arg_0 = f16vec2(1.0hf);
+  f16vec2 res = radians(arg_0);
+  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 = radians_fbacf0();
+  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;
+}
diff --git a/test/tint/builtins/radians.spvasm.expected.ir.glsl b/test/tint/builtins/radians.spvasm.expected.ir.glsl
index 4ead8e6..18f361f 100644
--- a/test/tint/builtins/radians.spvasm.expected.ir.glsl
+++ b/test/tint/builtins/radians.spvasm.expected.ir.glsl
@@ -1,11 +1,12 @@
-SKIP: FAILED
+#version 310 es
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: radians
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
-
-tint executable returned error: signal: trace/BPT trap
+void main_1() {
+  float a = 0.0f;
+  float b = 0.0f;
+  a = 42.0f;
+  b = radians(a);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  main_1();
+}
diff --git a/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl b/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl
index 2d32649..70d1199 100644
--- a/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/repeated_use.wgsl.expected.ir.glsl
@@ -1,11 +1,29 @@
-SKIP: FAILED
+#version 310 es
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:1451 internal compiler error: TINT_UNREACHABLE unhandled core builtin: degrees
-********************************************************************
-*  The tint shader compiler has encountered an unexpected error.   *
-*                                                                  *
-*  Please help us fix this issue by submitting a bug report at     *
-*  crbug.com/tint with the source program that triggered the bug.  *
-********************************************************************
-
-tint executable returned error: signal: trace/BPT trap
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  vec4 va = vec4(0.0f);
+  vec4 a = degrees(va);
+  vec4 vb = vec4(1.0f);
+  vec4 b = degrees(vb);
+  vec4 vc = vec4(1.0f, 2.0f, 3.0f, 4.0f);
+  vec4 c = degrees(vc);
+  vec3 vd = vec3(0.0f);
+  vec3 d = degrees(vd);
+  vec3 ve = vec3(1.0f);
+  vec3 e = degrees(ve);
+  vec3 vf = vec3(1.0f, 2.0f, 3.0f);
+  vec3 f = degrees(vf);
+  vec2 vg = vec2(0.0f);
+  vec2 g = degrees(vg);
+  vec2 vh = vec2(1.0f);
+  vec2 h = degrees(vh);
+  vec2 vi = vec2(1.0f, 2.0f);
+  vec2 i = degrees(vi);
+  float vj = 1.0f;
+  float j = degrees(vj);
+  float vk = 2.0f;
+  float k = degrees(vk);
+  float vl = 3.0f;
+  float l = degrees(vl);
+}