intrinsics: Add degrees() and radians()

Fixed: tint:1329
Change-Id: I5fb927268fc9cb8047a2b365d26e813a8546605a
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/75423
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/test/intrinsics/degrees.spvasm.expected.spvasm b/test/intrinsics/degrees.spvasm.expected.spvasm
index 70266bc..d4114c4 100644
--- a/test/intrinsics/degrees.spvasm.expected.spvasm
+++ b/test/intrinsics/degrees.spvasm.expected.spvasm
@@ -4,6 +4,7 @@
 ; Bound: 17
 ; Schema: 0
                OpCapability Shader
+         %13 = OpExtInstImport "GLSL.std.450"
                OpMemoryModel Logical GLSL450
                OpEntryPoint GLCompute %main "main"
                OpExecutionMode %main LocalSize 1 1 1
@@ -17,15 +18,14 @@
 %_ptr_Function_float = OpTypePointer Function %float
           %8 = OpConstantNull %float
    %float_42 = OpConstant %float 42
-%float_57_2957802 = OpConstant %float 57.2957802
      %main_1 = OpFunction %void None %1
           %4 = OpLabel
           %a = OpVariable %_ptr_Function_float Function %8
           %b = OpVariable %_ptr_Function_float Function %8
                OpStore %a %float_42
          %11 = OpLoad %float %a
-         %13 = OpFMul %float %11 %float_57_2957802
-               OpStore %b %13
+         %12 = OpExtInst %float %13 Degrees %11
+               OpStore %b %12
                OpReturn
                OpFunctionEnd
        %main = OpFunction %void None %1