Fix generation of f16 values.

The generator script was not using the test values for `f16`, they
always got a zero initialization. This CL fixes the script to generate
`f16` values.

Change-Id: I95e8f2c7007251a646de05b4f7fe0aad14e740f8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109342
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2022-11-10 00:32:12 +00:00 committed by Dawn LUCI CQ
parent 46ee63933c
commit d9b68eb691
2453 changed files with 11460 additions and 10759 deletions

View File

@ -273,6 +273,7 @@ enable f16;
{{- if eq $ty.Target.Name "i32" -}}{{$value}}i {{- if eq $ty.Target.Name "i32" -}}{{$value}}i
{{- else if eq $ty.Target.Name "u32" -}}{{$value}}u {{- else if eq $ty.Target.Name "u32" -}}{{$value}}u
{{- else if eq $ty.Target.Name "f32" -}}{{$float_value}}f {{- else if eq $ty.Target.Name "f32" -}}{{$float_value}}f
{{- else if eq $ty.Target.Name "f16" -}}{{$float_value}}h
{{- else if eq $ty.Target.Name "fa" -}}{{$float_value}} {{- else if eq $ty.Target.Name "fa" -}}{{$float_value}}
{{- else if eq $ty.Target.Name "ia" -}}{{$value}} {{- else if eq $ty.Target.Name "ia" -}}{{$value}}
{{- else if eq $ty.Target.Name "bool" -}}true {{- else if eq $ty.Target.Name "bool" -}}true

View File

@ -25,7 +25,7 @@ enable f16;
// fn abs(vec<3, f16>) -> vec<3, f16> // fn abs(vec<3, f16>) -> vec<3, f16>
fn abs_421ca3() { fn abs_421ca3() {
var res: vec3<f16> = abs(vec3<f16>(f16())); var res: vec3<f16> = abs(vec3<f16>(1.h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void abs_421ca3() { void abs_421ca3() {
vector<float16_t, 3> res = (float16_t(0.0h)).xxx; vector<float16_t, 3> res = (float16_t(1.0h)).xxx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_421ca3() { void abs_421ca3() {
f16vec3 res = f16vec3(0.0hf); f16vec3 res = f16vec3(1.0hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void abs_421ca3() { void abs_421ca3() {
f16vec3 res = f16vec3(0.0hf); f16vec3 res = f16vec3(1.0hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_421ca3() { void abs_421ca3() {
f16vec3 res = f16vec3(0.0hf); f16vec3 res = f16vec3(1.0hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void abs_421ca3() { void abs_421ca3() {
half3 res = half3(0.0h); half3 res = half3(1.0h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 32 ; Bound: 34
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -36,35 +36,37 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v3half = OpTypeVector %half 3 %v3half = OpTypeVector %half 3
%15 = OpConstantNull %v3half %half_0x1p_0 = OpConstant %half 0x1p+0
%16 = OpConstantComposite %v3half %half_0x1p_0 %half_0x1p_0 %half_0x1p_0
%_ptr_Function_v3half = OpTypePointer Function %v3half %_ptr_Function_v3half = OpTypePointer Function %v3half
%18 = OpTypeFunction %v4float %19 = OpConstantNull %v3half
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%abs_421ca3 = OpFunction %void None %9 %abs_421ca3 = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_v3half Function %15 %res = OpVariable %_ptr_Function_v3half Function %19
OpStore %res %15 OpStore %res %16
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18 %vertex_main_inner = OpFunction %v4float None %20
%20 = OpLabel %22 = OpLabel
%21 = OpFunctionCall %void %abs_421ca3 %23 = OpFunctionCall %void %abs_421ca3
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%23 = OpLabel %25 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner %26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24 OpStore %value %26
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%27 = OpLabel %29 = OpLabel
%28 = OpFunctionCall %void %abs_421ca3 %30 = OpFunctionCall %void %abs_421ca3
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%30 = OpLabel %32 = OpLabel
%31 = OpFunctionCall %void %abs_421ca3 %33 = OpFunctionCall %void %abs_421ca3
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn abs_421ca3() { fn abs_421ca3() {
var res : vec3<f16> = abs(vec3<f16>(f16())); var res : vec3<f16> = abs(vec3<f16>(1.0h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn abs(vec<4, f16>) -> vec<4, f16> // fn abs(vec<4, f16>) -> vec<4, f16>
fn abs_538d29() { fn abs_538d29() {
var res: vec4<f16> = abs(vec4<f16>(f16())); var res: vec4<f16> = abs(vec4<f16>(1.h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void abs_538d29() { void abs_538d29() {
vector<float16_t, 4> res = (float16_t(0.0h)).xxxx; vector<float16_t, 4> res = (float16_t(1.0h)).xxxx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_538d29() { void abs_538d29() {
f16vec4 res = f16vec4(0.0hf); f16vec4 res = f16vec4(1.0hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void abs_538d29() { void abs_538d29() {
f16vec4 res = f16vec4(0.0hf); f16vec4 res = f16vec4(1.0hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_538d29() { void abs_538d29() {
f16vec4 res = f16vec4(0.0hf); f16vec4 res = f16vec4(1.0hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void abs_538d29() { void abs_538d29() {
half4 res = half4(0.0h); half4 res = half4(1.0h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 32 ; Bound: 34
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -36,35 +36,37 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v4half = OpTypeVector %half 4 %v4half = OpTypeVector %half 4
%15 = OpConstantNull %v4half %half_0x1p_0 = OpConstant %half 0x1p+0
%16 = OpConstantComposite %v4half %half_0x1p_0 %half_0x1p_0 %half_0x1p_0 %half_0x1p_0
%_ptr_Function_v4half = OpTypePointer Function %v4half %_ptr_Function_v4half = OpTypePointer Function %v4half
%18 = OpTypeFunction %v4float %19 = OpConstantNull %v4half
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%abs_538d29 = OpFunction %void None %9 %abs_538d29 = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_v4half Function %15 %res = OpVariable %_ptr_Function_v4half Function %19
OpStore %res %15 OpStore %res %16
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18 %vertex_main_inner = OpFunction %v4float None %20
%20 = OpLabel %22 = OpLabel
%21 = OpFunctionCall %void %abs_538d29 %23 = OpFunctionCall %void %abs_538d29
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%23 = OpLabel %25 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner %26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24 OpStore %value %26
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%27 = OpLabel %29 = OpLabel
%28 = OpFunctionCall %void %abs_538d29 %30 = OpFunctionCall %void %abs_538d29
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%30 = OpLabel %32 = OpLabel
%31 = OpFunctionCall %void %abs_538d29 %33 = OpFunctionCall %void %abs_538d29
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn abs_538d29() { fn abs_538d29() {
var res : vec4<f16> = abs(vec4<f16>(f16())); var res : vec4<f16> = abs(vec4<f16>(1.0h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn abs(vec<2, f16>) -> vec<2, f16> // fn abs(vec<2, f16>) -> vec<2, f16>
fn abs_5ae4fe() { fn abs_5ae4fe() {
var res: vec2<f16> = abs(vec2<f16>(f16())); var res: vec2<f16> = abs(vec2<f16>(1.h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void abs_5ae4fe() { void abs_5ae4fe() {
vector<float16_t, 2> res = (float16_t(0.0h)).xx; vector<float16_t, 2> res = (float16_t(1.0h)).xx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_5ae4fe() { void abs_5ae4fe() {
f16vec2 res = f16vec2(0.0hf); f16vec2 res = f16vec2(1.0hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void abs_5ae4fe() { void abs_5ae4fe() {
f16vec2 res = f16vec2(0.0hf); f16vec2 res = f16vec2(1.0hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_5ae4fe() { void abs_5ae4fe() {
f16vec2 res = f16vec2(0.0hf); f16vec2 res = f16vec2(1.0hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void abs_5ae4fe() { void abs_5ae4fe() {
half2 res = half2(0.0h); half2 res = half2(1.0h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 32 ; Bound: 34
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -36,35 +36,37 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v2half = OpTypeVector %half 2 %v2half = OpTypeVector %half 2
%15 = OpConstantNull %v2half %half_0x1p_0 = OpConstant %half 0x1p+0
%16 = OpConstantComposite %v2half %half_0x1p_0 %half_0x1p_0
%_ptr_Function_v2half = OpTypePointer Function %v2half %_ptr_Function_v2half = OpTypePointer Function %v2half
%18 = OpTypeFunction %v4float %19 = OpConstantNull %v2half
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%abs_5ae4fe = OpFunction %void None %9 %abs_5ae4fe = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_v2half Function %15 %res = OpVariable %_ptr_Function_v2half Function %19
OpStore %res %15 OpStore %res %16
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18 %vertex_main_inner = OpFunction %v4float None %20
%20 = OpLabel %22 = OpLabel
%21 = OpFunctionCall %void %abs_5ae4fe %23 = OpFunctionCall %void %abs_5ae4fe
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%23 = OpLabel %25 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner %26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24 OpStore %value %26
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%27 = OpLabel %29 = OpLabel
%28 = OpFunctionCall %void %abs_5ae4fe %30 = OpFunctionCall %void %abs_5ae4fe
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%30 = OpLabel %32 = OpLabel
%31 = OpFunctionCall %void %abs_5ae4fe %33 = OpFunctionCall %void %abs_5ae4fe
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn abs_5ae4fe() { fn abs_5ae4fe() {
var res : vec2<f16> = abs(vec2<f16>(f16())); var res : vec2<f16> = abs(vec2<f16>(1.0h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn abs(f16) -> f16 // fn abs(f16) -> f16
fn abs_fd247f() { fn abs_fd247f() {
var res: f16 = abs(f16()); var res: f16 = abs(1.h);
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void abs_fd247f() { void abs_fd247f() {
float16_t res = float16_t(0.0h); float16_t res = float16_t(1.0h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_fd247f() { void abs_fd247f() {
float16_t res = 0.0hf; float16_t res = 1.0hf;
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void abs_fd247f() { void abs_fd247f() {
float16_t res = 0.0hf; float16_t res = 1.0hf;
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void abs_fd247f() { void abs_fd247f() {
float16_t res = 0.0hf; float16_t res = 1.0hf;
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void abs_fd247f() { void abs_fd247f() {
half res = 0.0h; half res = 1.0h;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 31 ; Bound: 32
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -35,35 +35,36 @@
%void = OpTypeVoid %void = OpTypeVoid
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%14 = OpConstantNull %half %half_0x1p_0 = OpConstant %half 0x1p+0
%_ptr_Function_half = OpTypePointer Function %half %_ptr_Function_half = OpTypePointer Function %half
%17 = OpTypeFunction %v4float %17 = OpConstantNull %half
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%abs_fd247f = OpFunction %void None %9 %abs_fd247f = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_half Function %14 %res = OpVariable %_ptr_Function_half Function %17
OpStore %res %14 OpStore %res %half_0x1p_0
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %17 %vertex_main_inner = OpFunction %v4float None %18
%19 = OpLabel %20 = OpLabel
%20 = OpFunctionCall %void %abs_fd247f %21 = OpFunctionCall %void %abs_fd247f
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%22 = OpLabel %23 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner %24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23 OpStore %value %24
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%26 = OpLabel %27 = OpLabel
%27 = OpFunctionCall %void %abs_fd247f %28 = OpFunctionCall %void %abs_fd247f
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%29 = OpLabel %30 = OpLabel
%30 = OpFunctionCall %void %abs_fd247f %31 = OpFunctionCall %void %abs_fd247f
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn abs_fd247f() { fn abs_fd247f() {
var res : f16 = abs(f16()); var res : f16 = abs(1.0h);
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acos(vec<2, f16>) -> vec<2, f16> // fn acos(vec<2, f16>) -> vec<2, f16>
fn acos_004aff() { fn acos_004aff() {
var res: vec2<f16> = acos(vec2<f16>(f16())); var res: vec2<f16> = acos(vec2<f16>(0.96891242171h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void acos_004aff() { void acos_004aff() {
vector<float16_t, 2> res = (float16_t(1.5703125h)).xx; vector<float16_t, 2> res = (float16_t(0.250488281h)).xx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_004aff() { void acos_004aff() {
f16vec2 res = f16vec2(1.5703125hf); f16vec2 res = f16vec2(0.250488281hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void acos_004aff() { void acos_004aff() {
f16vec2 res = f16vec2(1.5703125hf); f16vec2 res = f16vec2(0.250488281hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_004aff() { void acos_004aff() {
f16vec2 res = f16vec2(1.5703125hf); f16vec2 res = f16vec2(0.250488281hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void acos_004aff() { void acos_004aff() {
half2 res = half2(1.5703125h); half2 res = half2(0.250488281h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -36,8 +36,8 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v2half = OpTypeVector %half 2 %v2half = OpTypeVector %half 2
%half_0x1_92p_0 = OpConstant %half 0x1.92p+0 %half_0x1_008pn2 = OpConstant %half 0x1.008p-2
%16 = OpConstantComposite %v2half %half_0x1_92p_0 %half_0x1_92p_0 %16 = OpConstantComposite %v2half %half_0x1_008pn2 %half_0x1_008pn2
%_ptr_Function_v2half = OpTypePointer Function %v2half %_ptr_Function_v2half = OpTypePointer Function %v2half
%19 = OpConstantNull %v2half %19 = OpConstantNull %v2half
%20 = OpTypeFunction %v4float %20 = OpTypeFunction %v4float

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acos_004aff() { fn acos_004aff() {
var res : vec2<f16> = acos(vec2<f16>(f16())); var res : vec2<f16> = acos(vec2<f16>(0.96875h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acos(vec<4, f16>) -> vec<4, f16> // fn acos(vec<4, f16>) -> vec<4, f16>
fn acos_203628() { fn acos_203628() {
var res: vec4<f16> = acos(vec4<f16>(f16())); var res: vec4<f16> = acos(vec4<f16>(0.96891242171h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void acos_203628() { void acos_203628() {
vector<float16_t, 4> res = (float16_t(1.5703125h)).xxxx; vector<float16_t, 4> res = (float16_t(0.250488281h)).xxxx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_203628() { void acos_203628() {
f16vec4 res = f16vec4(1.5703125hf); f16vec4 res = f16vec4(0.250488281hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void acos_203628() { void acos_203628() {
f16vec4 res = f16vec4(1.5703125hf); f16vec4 res = f16vec4(0.250488281hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_203628() { void acos_203628() {
f16vec4 res = f16vec4(1.5703125hf); f16vec4 res = f16vec4(0.250488281hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void acos_203628() { void acos_203628() {
half4 res = half4(1.5703125h); half4 res = half4(0.250488281h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -36,8 +36,8 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v4half = OpTypeVector %half 4 %v4half = OpTypeVector %half 4
%half_0x1_92p_0 = OpConstant %half 0x1.92p+0 %half_0x1_008pn2 = OpConstant %half 0x1.008p-2
%16 = OpConstantComposite %v4half %half_0x1_92p_0 %half_0x1_92p_0 %half_0x1_92p_0 %half_0x1_92p_0 %16 = OpConstantComposite %v4half %half_0x1_008pn2 %half_0x1_008pn2 %half_0x1_008pn2 %half_0x1_008pn2
%_ptr_Function_v4half = OpTypePointer Function %v4half %_ptr_Function_v4half = OpTypePointer Function %v4half
%19 = OpConstantNull %v4half %19 = OpConstantNull %v4half
%20 = OpTypeFunction %v4float %20 = OpTypeFunction %v4float

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acos_203628() { fn acos_203628() {
var res : vec4<f16> = acos(vec4<f16>(f16())); var res : vec4<f16> = acos(vec4<f16>(0.96875h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acos(f16) -> f16 // fn acos(f16) -> f16
fn acos_303e3d() { fn acos_303e3d() {
var res: f16 = acos(f16()); var res: f16 = acos(0.96891242171h);
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void acos_303e3d() { void acos_303e3d() {
float16_t res = float16_t(1.5703125h); float16_t res = float16_t(0.250488281h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_303e3d() { void acos_303e3d() {
float16_t res = 1.5703125hf; float16_t res = 0.250488281hf;
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void acos_303e3d() { void acos_303e3d() {
float16_t res = 1.5703125hf; float16_t res = 0.250488281hf;
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_303e3d() { void acos_303e3d() {
float16_t res = 1.5703125hf; float16_t res = 0.250488281hf;
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void acos_303e3d() { void acos_303e3d() {
half res = 1.5703125h; half res = 0.250488281h;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -35,7 +35,7 @@
%void = OpTypeVoid %void = OpTypeVoid
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%half_0x1_92p_0 = OpConstant %half 0x1.92p+0 %half_0x1_008pn2 = OpConstant %half 0x1.008p-2
%_ptr_Function_half = OpTypePointer Function %half %_ptr_Function_half = OpTypePointer Function %half
%17 = OpConstantNull %half %17 = OpConstantNull %half
%18 = OpTypeFunction %v4float %18 = OpTypeFunction %v4float
@ -43,7 +43,7 @@
%acos_303e3d = OpFunction %void None %9 %acos_303e3d = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_half Function %17 %res = OpVariable %_ptr_Function_half Function %17
OpStore %res %half_0x1_92p_0 OpStore %res %half_0x1_008pn2
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18 %vertex_main_inner = OpFunction %v4float None %18

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acos_303e3d() { fn acos_303e3d() {
var res : f16 = acos(f16()); var res : f16 = acos(0.96875h);
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acos(vec<3, f16>) -> vec<3, f16> // fn acos(vec<3, f16>) -> vec<3, f16>
fn acos_f47057() { fn acos_f47057() {
var res: vec3<f16> = acos(vec3<f16>(f16())); var res: vec3<f16> = acos(vec3<f16>(0.96891242171h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void acos_f47057() { void acos_f47057() {
vector<float16_t, 3> res = (float16_t(1.5703125h)).xxx; vector<float16_t, 3> res = (float16_t(0.250488281h)).xxx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_f47057() { void acos_f47057() {
f16vec3 res = f16vec3(1.5703125hf); f16vec3 res = f16vec3(0.250488281hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void acos_f47057() { void acos_f47057() {
f16vec3 res = f16vec3(1.5703125hf); f16vec3 res = f16vec3(0.250488281hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void acos_f47057() { void acos_f47057() {
f16vec3 res = f16vec3(1.5703125hf); f16vec3 res = f16vec3(0.250488281hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void acos_f47057() { void acos_f47057() {
half3 res = half3(1.5703125h); half3 res = half3(0.250488281h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -36,8 +36,8 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v3half = OpTypeVector %half 3 %v3half = OpTypeVector %half 3
%half_0x1_92p_0 = OpConstant %half 0x1.92p+0 %half_0x1_008pn2 = OpConstant %half 0x1.008p-2
%16 = OpConstantComposite %v3half %half_0x1_92p_0 %half_0x1_92p_0 %half_0x1_92p_0 %16 = OpConstantComposite %v3half %half_0x1_008pn2 %half_0x1_008pn2 %half_0x1_008pn2
%_ptr_Function_v3half = OpTypePointer Function %v3half %_ptr_Function_v3half = OpTypePointer Function %v3half
%19 = OpConstantNull %v3half %19 = OpConstantNull %v3half
%20 = OpTypeFunction %v4float %20 = OpTypeFunction %v4float

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acos_f47057() { fn acos_f47057() {
var res : vec3<f16> = acos(vec3<f16>(f16())); var res : vec3<f16> = acos(vec3<f16>(0.96875h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acosh(vec<2, f16>) -> vec<2, f16> // fn acosh(vec<2, f16>) -> vec<2, f16>
fn acosh_5f49d8() { fn acosh_5f49d8() {
var res: vec2<f16> = acosh(vec2<f16>(f16())); var res: vec2<f16> = acosh(vec2<f16>(1.h));
} }
@vertex @vertex

View File

@ -3,7 +3,7 @@ vector<float16_t, 2> tint_acosh(vector<float16_t, 2> x) {
} }
void acosh_5f49d8() { void acosh_5f49d8() {
vector<float16_t, 2> res = tint_acosh((float16_t(0.0h)).xx); vector<float16_t, 2> res = tint_acosh((float16_t(1.0h)).xx);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -6,7 +6,7 @@ f16vec2 tint_acosh(f16vec2 x) {
} }
void acosh_5f49d8() { void acosh_5f49d8() {
f16vec2 res = tint_acosh(f16vec2(0.0hf)); f16vec2 res = tint_acosh(f16vec2(1.0hf));
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -31,7 +31,7 @@ f16vec2 tint_acosh(f16vec2 x) {
} }
void acosh_5f49d8() { void acosh_5f49d8() {
f16vec2 res = tint_acosh(f16vec2(0.0hf)); f16vec2 res = tint_acosh(f16vec2(1.0hf));
} }
void fragment_main() { void fragment_main() {
@ -50,7 +50,7 @@ f16vec2 tint_acosh(f16vec2 x) {
} }
void acosh_5f49d8() { void acosh_5f49d8() {
f16vec2 res = tint_acosh(f16vec2(0.0hf)); f16vec2 res = tint_acosh(f16vec2(1.0hf));
} }
void compute_main() { void compute_main() {

View File

@ -6,7 +6,7 @@ half2 tint_acosh(half2 x) {
} }
void acosh_5f49d8() { void acosh_5f49d8() {
half2 res = tint_acosh(half2(0.0h)); half2 res = tint_acosh(half2(1.0h));
} }
struct tint_symbol { struct tint_symbol {

View File

@ -59,7 +59,7 @@
%acosh_5f49d8 = OpFunction %void None %24 %acosh_5f49d8 = OpFunction %void None %24
%27 = OpLabel %27 = OpLabel
%res = OpVariable %_ptr_Function_v2half Function %21 %res = OpVariable %_ptr_Function_v2half Function %21
%28 = OpFunctionCall %v2half %tint_acosh %21 %28 = OpFunctionCall %v2half %tint_acosh %17
OpStore %res %28 OpStore %res %28
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acosh_5f49d8() { fn acosh_5f49d8() {
var res : vec2<f16> = acosh(vec2<f16>(f16())); var res : vec2<f16> = acosh(vec2<f16>(1.0h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acosh(f16) -> f16 // fn acosh(f16) -> f16
fn acosh_a37dfe() { fn acosh_a37dfe() {
var res: f16 = acosh(f16()); var res: f16 = acosh(1.h);
} }
@vertex @vertex

View File

@ -3,7 +3,7 @@ float16_t tint_acosh(float16_t x) {
} }
void acosh_a37dfe() { void acosh_a37dfe() {
float16_t res = tint_acosh(float16_t(0.0h)); float16_t res = tint_acosh(float16_t(1.0h));
} }
struct tint_symbol { struct tint_symbol {

View File

@ -6,7 +6,7 @@ float16_t tint_acosh(float16_t x) {
} }
void acosh_a37dfe() { void acosh_a37dfe() {
float16_t res = tint_acosh(0.0hf); float16_t res = tint_acosh(1.0hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -31,7 +31,7 @@ float16_t tint_acosh(float16_t x) {
} }
void acosh_a37dfe() { void acosh_a37dfe() {
float16_t res = tint_acosh(0.0hf); float16_t res = tint_acosh(1.0hf);
} }
void fragment_main() { void fragment_main() {
@ -50,7 +50,7 @@ float16_t tint_acosh(float16_t x) {
} }
void acosh_a37dfe() { void acosh_a37dfe() {
float16_t res = tint_acosh(0.0hf); float16_t res = tint_acosh(1.0hf);
} }
void compute_main() { void compute_main() {

View File

@ -6,7 +6,7 @@ half tint_acosh(half x) {
} }
void acosh_a37dfe() { void acosh_a37dfe() {
half res = tint_acosh(0.0h); half res = tint_acosh(1.0h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -56,7 +56,7 @@
%acosh_a37dfe = OpFunction %void None %21 %acosh_a37dfe = OpFunction %void None %21
%24 = OpLabel %24 = OpLabel
%res = OpVariable %_ptr_Function_half Function %18 %res = OpVariable %_ptr_Function_half Function %18
%25 = OpFunctionCall %half %tint_acosh %18 %25 = OpFunctionCall %half %tint_acosh %half_0x1p_0
OpStore %res %25 OpStore %res %25
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acosh_a37dfe() { fn acosh_a37dfe() {
var res : f16 = acosh(f16()); var res : f16 = acosh(1.0h);
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acosh(vec<4, f16>) -> vec<4, f16> // fn acosh(vec<4, f16>) -> vec<4, f16>
fn acosh_de60d8() { fn acosh_de60d8() {
var res: vec4<f16> = acosh(vec4<f16>(f16())); var res: vec4<f16> = acosh(vec4<f16>(1.h));
} }
@vertex @vertex

View File

@ -3,7 +3,7 @@ vector<float16_t, 4> tint_acosh(vector<float16_t, 4> x) {
} }
void acosh_de60d8() { void acosh_de60d8() {
vector<float16_t, 4> res = tint_acosh((float16_t(0.0h)).xxxx); vector<float16_t, 4> res = tint_acosh((float16_t(1.0h)).xxxx);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -6,7 +6,7 @@ f16vec4 tint_acosh(f16vec4 x) {
} }
void acosh_de60d8() { void acosh_de60d8() {
f16vec4 res = tint_acosh(f16vec4(0.0hf)); f16vec4 res = tint_acosh(f16vec4(1.0hf));
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -31,7 +31,7 @@ f16vec4 tint_acosh(f16vec4 x) {
} }
void acosh_de60d8() { void acosh_de60d8() {
f16vec4 res = tint_acosh(f16vec4(0.0hf)); f16vec4 res = tint_acosh(f16vec4(1.0hf));
} }
void fragment_main() { void fragment_main() {
@ -50,7 +50,7 @@ f16vec4 tint_acosh(f16vec4 x) {
} }
void acosh_de60d8() { void acosh_de60d8() {
f16vec4 res = tint_acosh(f16vec4(0.0hf)); f16vec4 res = tint_acosh(f16vec4(1.0hf));
} }
void compute_main() { void compute_main() {

View File

@ -6,7 +6,7 @@ half4 tint_acosh(half4 x) {
} }
void acosh_de60d8() { void acosh_de60d8() {
half4 res = tint_acosh(half4(0.0h)); half4 res = tint_acosh(half4(1.0h));
} }
struct tint_symbol { struct tint_symbol {

View File

@ -59,7 +59,7 @@
%acosh_de60d8 = OpFunction %void None %24 %acosh_de60d8 = OpFunction %void None %24
%27 = OpLabel %27 = OpLabel
%res = OpVariable %_ptr_Function_v4half Function %21 %res = OpVariable %_ptr_Function_v4half Function %21
%28 = OpFunctionCall %v4half %tint_acosh %21 %28 = OpFunctionCall %v4half %tint_acosh %17
OpStore %res %28 OpStore %res %28
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acosh_de60d8() { fn acosh_de60d8() {
var res : vec4<f16> = acosh(vec4<f16>(f16())); var res : vec4<f16> = acosh(vec4<f16>(1.0h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn acosh(vec<3, f16>) -> vec<3, f16> // fn acosh(vec<3, f16>) -> vec<3, f16>
fn acosh_f56574() { fn acosh_f56574() {
var res: vec3<f16> = acosh(vec3<f16>(f16())); var res: vec3<f16> = acosh(vec3<f16>(1.h));
} }
@vertex @vertex

View File

@ -3,7 +3,7 @@ vector<float16_t, 3> tint_acosh(vector<float16_t, 3> x) {
} }
void acosh_f56574() { void acosh_f56574() {
vector<float16_t, 3> res = tint_acosh((float16_t(0.0h)).xxx); vector<float16_t, 3> res = tint_acosh((float16_t(1.0h)).xxx);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -6,7 +6,7 @@ f16vec3 tint_acosh(f16vec3 x) {
} }
void acosh_f56574() { void acosh_f56574() {
f16vec3 res = tint_acosh(f16vec3(0.0hf)); f16vec3 res = tint_acosh(f16vec3(1.0hf));
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -31,7 +31,7 @@ f16vec3 tint_acosh(f16vec3 x) {
} }
void acosh_f56574() { void acosh_f56574() {
f16vec3 res = tint_acosh(f16vec3(0.0hf)); f16vec3 res = tint_acosh(f16vec3(1.0hf));
} }
void fragment_main() { void fragment_main() {
@ -50,7 +50,7 @@ f16vec3 tint_acosh(f16vec3 x) {
} }
void acosh_f56574() { void acosh_f56574() {
f16vec3 res = tint_acosh(f16vec3(0.0hf)); f16vec3 res = tint_acosh(f16vec3(1.0hf));
} }
void compute_main() { void compute_main() {

View File

@ -6,7 +6,7 @@ half3 tint_acosh(half3 x) {
} }
void acosh_f56574() { void acosh_f56574() {
half3 res = tint_acosh(half3(0.0h)); half3 res = tint_acosh(half3(1.0h));
} }
struct tint_symbol { struct tint_symbol {

View File

@ -59,7 +59,7 @@
%acosh_f56574 = OpFunction %void None %24 %acosh_f56574 = OpFunction %void None %24
%27 = OpLabel %27 = OpLabel
%res = OpVariable %_ptr_Function_v3half Function %21 %res = OpVariable %_ptr_Function_v3half Function %21
%28 = OpFunctionCall %v3half %tint_acosh %21 %28 = OpFunctionCall %v3half %tint_acosh %17
OpStore %res %28 OpStore %res %28
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn acosh_f56574() { fn acosh_f56574() {
var res : vec3<f16> = acosh(vec3<f16>(f16())); var res : vec3<f16> = acosh(vec3<f16>(1.0h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn asin(f16) -> f16 // fn asin(f16) -> f16
fn asin_11dfda() { fn asin_11dfda() {
var res: f16 = asin(f16()); var res: f16 = asin(0.479425538604h);
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void asin_11dfda() { void asin_11dfda() {
float16_t res = float16_t(0.0h); float16_t res = float16_t(0.499755859h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_11dfda() { void asin_11dfda() {
float16_t res = 0.0hf; float16_t res = 0.499755859hf;
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void asin_11dfda() { void asin_11dfda() {
float16_t res = 0.0hf; float16_t res = 0.499755859hf;
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_11dfda() { void asin_11dfda() {
float16_t res = 0.0hf; float16_t res = 0.499755859hf;
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void asin_11dfda() { void asin_11dfda() {
half res = 0.0h; half res = 0.499755859h;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 31 ; Bound: 32
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -35,35 +35,36 @@
%void = OpTypeVoid %void = OpTypeVoid
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%14 = OpConstantNull %half %half_0x1_ffcpn2 = OpConstant %half 0x1.ffcp-2
%_ptr_Function_half = OpTypePointer Function %half %_ptr_Function_half = OpTypePointer Function %half
%17 = OpTypeFunction %v4float %17 = OpConstantNull %half
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%asin_11dfda = OpFunction %void None %9 %asin_11dfda = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_half Function %14 %res = OpVariable %_ptr_Function_half Function %17
OpStore %res %14 OpStore %res %half_0x1_ffcpn2
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %17 %vertex_main_inner = OpFunction %v4float None %18
%19 = OpLabel %20 = OpLabel
%20 = OpFunctionCall %void %asin_11dfda %21 = OpFunctionCall %void %asin_11dfda
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%22 = OpLabel %23 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner %24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23 OpStore %value %24
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%26 = OpLabel %27 = OpLabel
%27 = OpFunctionCall %void %asin_11dfda %28 = OpFunctionCall %void %asin_11dfda
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%29 = OpLabel %30 = OpLabel
%30 = OpFunctionCall %void %asin_11dfda %31 = OpFunctionCall %void %asin_11dfda
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn asin_11dfda() { fn asin_11dfda() {
var res : f16 = asin(f16()); var res : f16 = asin(0.479248047h);
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn asin(vec<3, f16>) -> vec<3, f16> // fn asin(vec<3, f16>) -> vec<3, f16>
fn asin_2d8e29() { fn asin_2d8e29() {
var res: vec3<f16> = asin(vec3<f16>(f16())); var res: vec3<f16> = asin(vec3<f16>(0.479425538604h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void asin_2d8e29() { void asin_2d8e29() {
vector<float16_t, 3> res = (float16_t(0.0h)).xxx; vector<float16_t, 3> res = (float16_t(0.499755859h)).xxx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_2d8e29() { void asin_2d8e29() {
f16vec3 res = f16vec3(0.0hf); f16vec3 res = f16vec3(0.499755859hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void asin_2d8e29() { void asin_2d8e29() {
f16vec3 res = f16vec3(0.0hf); f16vec3 res = f16vec3(0.499755859hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_2d8e29() { void asin_2d8e29() {
f16vec3 res = f16vec3(0.0hf); f16vec3 res = f16vec3(0.499755859hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void asin_2d8e29() { void asin_2d8e29() {
half3 res = half3(0.0h); half3 res = half3(0.499755859h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 32 ; Bound: 34
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -36,35 +36,37 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v3half = OpTypeVector %half 3 %v3half = OpTypeVector %half 3
%15 = OpConstantNull %v3half %half_0x1_ffcpn2 = OpConstant %half 0x1.ffcp-2
%16 = OpConstantComposite %v3half %half_0x1_ffcpn2 %half_0x1_ffcpn2 %half_0x1_ffcpn2
%_ptr_Function_v3half = OpTypePointer Function %v3half %_ptr_Function_v3half = OpTypePointer Function %v3half
%18 = OpTypeFunction %v4float %19 = OpConstantNull %v3half
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%asin_2d8e29 = OpFunction %void None %9 %asin_2d8e29 = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_v3half Function %15 %res = OpVariable %_ptr_Function_v3half Function %19
OpStore %res %15 OpStore %res %16
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18 %vertex_main_inner = OpFunction %v4float None %20
%20 = OpLabel %22 = OpLabel
%21 = OpFunctionCall %void %asin_2d8e29 %23 = OpFunctionCall %void %asin_2d8e29
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%23 = OpLabel %25 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner %26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24 OpStore %value %26
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%27 = OpLabel %29 = OpLabel
%28 = OpFunctionCall %void %asin_2d8e29 %30 = OpFunctionCall %void %asin_2d8e29
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%30 = OpLabel %32 = OpLabel
%31 = OpFunctionCall %void %asin_2d8e29 %33 = OpFunctionCall %void %asin_2d8e29
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn asin_2d8e29() { fn asin_2d8e29() {
var res : vec3<f16> = asin(vec3<f16>(f16())); var res : vec3<f16> = asin(vec3<f16>(0.479248047h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn asin(vec<4, f16>) -> vec<4, f16> // fn asin(vec<4, f16>) -> vec<4, f16>
fn asin_3cfbd4() { fn asin_3cfbd4() {
var res: vec4<f16> = asin(vec4<f16>(f16())); var res: vec4<f16> = asin(vec4<f16>(0.479425538604h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void asin_3cfbd4() { void asin_3cfbd4() {
vector<float16_t, 4> res = (float16_t(0.0h)).xxxx; vector<float16_t, 4> res = (float16_t(0.499755859h)).xxxx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_3cfbd4() { void asin_3cfbd4() {
f16vec4 res = f16vec4(0.0hf); f16vec4 res = f16vec4(0.499755859hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void asin_3cfbd4() { void asin_3cfbd4() {
f16vec4 res = f16vec4(0.0hf); f16vec4 res = f16vec4(0.499755859hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_3cfbd4() { void asin_3cfbd4() {
f16vec4 res = f16vec4(0.0hf); f16vec4 res = f16vec4(0.499755859hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void asin_3cfbd4() { void asin_3cfbd4() {
half4 res = half4(0.0h); half4 res = half4(0.499755859h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 32 ; Bound: 34
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -36,35 +36,37 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v4half = OpTypeVector %half 4 %v4half = OpTypeVector %half 4
%15 = OpConstantNull %v4half %half_0x1_ffcpn2 = OpConstant %half 0x1.ffcp-2
%16 = OpConstantComposite %v4half %half_0x1_ffcpn2 %half_0x1_ffcpn2 %half_0x1_ffcpn2 %half_0x1_ffcpn2
%_ptr_Function_v4half = OpTypePointer Function %v4half %_ptr_Function_v4half = OpTypePointer Function %v4half
%18 = OpTypeFunction %v4float %19 = OpConstantNull %v4half
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%asin_3cfbd4 = OpFunction %void None %9 %asin_3cfbd4 = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_v4half Function %15 %res = OpVariable %_ptr_Function_v4half Function %19
OpStore %res %15 OpStore %res %16
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18 %vertex_main_inner = OpFunction %v4float None %20
%20 = OpLabel %22 = OpLabel
%21 = OpFunctionCall %void %asin_3cfbd4 %23 = OpFunctionCall %void %asin_3cfbd4
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%23 = OpLabel %25 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner %26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24 OpStore %value %26
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%27 = OpLabel %29 = OpLabel
%28 = OpFunctionCall %void %asin_3cfbd4 %30 = OpFunctionCall %void %asin_3cfbd4
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%30 = OpLabel %32 = OpLabel
%31 = OpFunctionCall %void %asin_3cfbd4 %33 = OpFunctionCall %void %asin_3cfbd4
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn asin_3cfbd4() { fn asin_3cfbd4() {
var res : vec4<f16> = asin(vec4<f16>(f16())); var res : vec4<f16> = asin(vec4<f16>(0.479248047h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn asin(vec<2, f16>) -> vec<2, f16> // fn asin(vec<2, f16>) -> vec<2, f16>
fn asin_b4aced() { fn asin_b4aced() {
var res: vec2<f16> = asin(vec2<f16>(f16())); var res: vec2<f16> = asin(vec2<f16>(0.479425538604h));
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void asin_b4aced() { void asin_b4aced() {
vector<float16_t, 2> res = (float16_t(0.0h)).xx; vector<float16_t, 2> res = (float16_t(0.499755859h)).xx;
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_b4aced() { void asin_b4aced() {
f16vec2 res = f16vec2(0.0hf); f16vec2 res = f16vec2(0.499755859hf);
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void asin_b4aced() { void asin_b4aced() {
f16vec2 res = f16vec2(0.0hf); f16vec2 res = f16vec2(0.499755859hf);
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asin_b4aced() { void asin_b4aced() {
f16vec2 res = f16vec2(0.0hf); f16vec2 res = f16vec2(0.499755859hf);
} }
void compute_main() { void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal; using namespace metal;
void asin_b4aced() { void asin_b4aced() {
half2 res = half2(0.0h); half2 res = half2(0.499755859h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V ; SPIR-V
; Version: 1.3 ; Version: 1.3
; Generator: Google Tint Compiler; 0 ; Generator: Google Tint Compiler; 0
; Bound: 32 ; Bound: 34
; Schema: 0 ; Schema: 0
OpCapability Shader OpCapability Shader
OpCapability Float16 OpCapability Float16
@ -36,35 +36,37 @@
%9 = OpTypeFunction %void %9 = OpTypeFunction %void
%half = OpTypeFloat 16 %half = OpTypeFloat 16
%v2half = OpTypeVector %half 2 %v2half = OpTypeVector %half 2
%15 = OpConstantNull %v2half %half_0x1_ffcpn2 = OpConstant %half 0x1.ffcp-2
%16 = OpConstantComposite %v2half %half_0x1_ffcpn2 %half_0x1_ffcpn2
%_ptr_Function_v2half = OpTypePointer Function %v2half %_ptr_Function_v2half = OpTypePointer Function %v2half
%18 = OpTypeFunction %v4float %19 = OpConstantNull %v2half
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1 %float_1 = OpConstant %float 1
%asin_b4aced = OpFunction %void None %9 %asin_b4aced = OpFunction %void None %9
%12 = OpLabel %12 = OpLabel
%res = OpVariable %_ptr_Function_v2half Function %15 %res = OpVariable %_ptr_Function_v2half Function %19
OpStore %res %15 OpStore %res %16
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18 %vertex_main_inner = OpFunction %v4float None %20
%20 = OpLabel %22 = OpLabel
%21 = OpFunctionCall %void %asin_b4aced %23 = OpFunctionCall %void %asin_b4aced
OpReturnValue %5 OpReturnValue %5
OpFunctionEnd OpFunctionEnd
%vertex_main = OpFunction %void None %9 %vertex_main = OpFunction %void None %9
%23 = OpLabel %25 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner %26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24 OpStore %value %26
OpStore %vertex_point_size %float_1 OpStore %vertex_point_size %float_1
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%fragment_main = OpFunction %void None %9 %fragment_main = OpFunction %void None %9
%27 = OpLabel %29 = OpLabel
%28 = OpFunctionCall %void %asin_b4aced %30 = OpFunctionCall %void %asin_b4aced
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd
%compute_main = OpFunction %void None %9 %compute_main = OpFunction %void None %9
%30 = OpLabel %32 = OpLabel
%31 = OpFunctionCall %void %asin_b4aced %33 = OpFunctionCall %void %asin_b4aced
OpReturn OpReturn
OpFunctionEnd OpFunctionEnd

View File

@ -1,7 +1,7 @@
enable f16; enable f16;
fn asin_b4aced() { fn asin_b4aced() {
var res : vec2<f16> = asin(vec2<f16>(f16())); var res : vec2<f16> = asin(vec2<f16>(0.479248047h));
} }
@vertex @vertex

View File

@ -25,7 +25,7 @@ enable f16;
// fn asinh(f16) -> f16 // fn asinh(f16) -> f16
fn asinh_468a48() { fn asinh_468a48() {
var res: f16 = asinh(f16()); var res: f16 = asinh(1.h);
} }
@vertex @vertex

View File

@ -1,5 +1,5 @@
void asinh_468a48() { void asinh_468a48() {
float16_t res = float16_t(0.0h); float16_t res = float16_t(0.881347656h);
} }
struct tint_symbol { struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asinh_468a48() { void asinh_468a48() {
float16_t res = 0.0hf; float16_t res = 0.881347656hf;
} }
vec4 vertex_main() { vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float; precision mediump float;
void asinh_468a48() { void asinh_468a48() {
float16_t res = 0.0hf; float16_t res = 0.881347656hf;
} }
void fragment_main() { void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require #extension GL_AMD_gpu_shader_half_float : require
void asinh_468a48() { void asinh_468a48() {
float16_t res = 0.0hf; float16_t res = 0.881347656hf;
} }
void compute_main() { void compute_main() {

Some files were not shown because too many files have changed in this diff Show More