Set specific test value for asin test cases.

The value of 1 for the `asin` is providing a slightly different result on OSX
compared to the Windows and Linux results. This CL updates the test case to use
asin(0.479425538604) = 0.5

Bug: tint:1581
Change-Id: Ibf7a921d1476c0d24da696eb6cc2b491c1ca1516
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107541
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
dan sinclair 2022-10-28 12:31:08 +00:00 committed by Dawn LUCI CQ
parent 380ea60c70
commit fd1b5a893d
114 changed files with 188 additions and 184 deletions

View File

@ -415,8 +415,8 @@ fn all<N: num>(vec<N, bool>) -> bool
fn any(bool) -> bool
fn any<N: num>(vec<N, bool>) -> bool
fn arrayLength<T, A: access>(ptr<storage, array<T>, A>) -> u32
@const fn asin<T: fa_f32_f16>(T) -> T
@const fn asin<N: num, T: fa_f32_f16>(vec<N, T>) -> vec<N, T>
@const fn asin<T: fa_f32_f16>(@test_value(0.479425538604) T) -> T
@const fn asin<N: num, T: fa_f32_f16>(@test_value(0.479425538604) vec<N, T>) -> vec<N, T>
@const fn asinh<T: fa_f32_f16>(T) -> T
@const fn asinh<N: num, T: fa_f32_f16>(vec<N, T>) -> vec<N, T>
@const fn atan<T: fa_f32_f16>(T) -> T

View File

@ -14020,8 +14020,8 @@ constexpr IntrinsicInfo kBuiltins[] = {
},
{
/* [6] */
/* fn asin<T : fa_f32_f16>(T) -> T */
/* fn asin<N : num, T : fa_f32_f16>(vec<N, T>) -> vec<N, T> */
/* fn asin<T : fa_f32_f16>(@test_value(0.479425538604) T) -> T */
/* fn asin<N : num, T : fa_f32_f16>(@test_value(0.479425538604) vec<N, T>) -> vec<N, T> */
/* num overloads */ 2,
/* overloads */ &kOverloads[324],
},

View File

@ -23,7 +23,7 @@
// fn asin(vec<4, f32>) -> vec<4, f32>
fn asin_064953() {
var res: vec4<f32> = asin(vec4<f32>(1.f));
var res: vec4<f32> = asin(vec4<f32>(0.479425538604f));
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_064953() {
float4 res = (1.570796371f).xxxx;
float4 res = (0.5f).xxxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_064953() {
float4 res = (1.570796371f).xxxx;
float4 res = (0.5f).xxxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_064953() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_064953() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_064953() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_064953() {
float4 res = float4(1.570796371f);
float4 res = float4(0.5f);
}
struct tint_symbol {

View File

@ -30,8 +30,8 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_57079637 = OpConstant %float 1.57079637
%14 = OpConstantComposite %v4float %float_1_57079637 %float_1_57079637 %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%14 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0_5 %float_0_5
%_ptr_Function_v4float = OpTypePointer Function %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1

View File

@ -1,5 +1,5 @@
fn asin_064953() {
var res : vec4<f32> = asin(vec4<f32>(1.0f));
var res : vec4<f32> = asin(vec4<f32>(0.47942555f));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(vec<3, fa>) -> vec<3, fa>
fn asin_0bac07() {
var res = asin(vec3(1));
var res = asin(vec3(0.479425538604));
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_0bac07() {
float3 res = (1.570796371f).xxx;
float3 res = (0.5f).xxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_0bac07() {
float3 res = (1.570796371f).xxx;
float3 res = (0.5f).xxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_0bac07() {
float3 res = float3(1.570796371f);
float3 res = float3(0.5f);
}
struct tint_symbol {

View File

@ -31,8 +31,8 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v3float %float_1_57079637 %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%15 = OpConstantComposite %v3float %float_0_5 %float_0_5 %float_0_5
%_ptr_Function_v3float = OpTypePointer Function %v3float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float

View File

@ -1,5 +1,5 @@
fn asin_0bac07() {
var res = asin(vec3(1));
var res = asin(vec3(0.479425538604));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(vec<4, fa>) -> vec<4, fa>
fn asin_64bb1f() {
var res = asin(vec4(1));
var res = asin(vec4(0.479425538604));
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_64bb1f() {
float4 res = (1.570796371f).xxxx;
float4 res = (0.5f).xxxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_64bb1f() {
float4 res = (1.570796371f).xxxx;
float4 res = (0.5f).xxxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_64bb1f() {
float4 res = float4(1.570796371f);
float4 res = float4(0.5f);
}
struct tint_symbol {

View File

@ -30,8 +30,8 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_57079637 = OpConstant %float 1.57079637
%14 = OpConstantComposite %v4float %float_1_57079637 %float_1_57079637 %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%14 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0_5 %float_0_5
%_ptr_Function_v4float = OpTypePointer Function %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1

View File

@ -1,5 +1,5 @@
fn asin_64bb1f() {
var res = asin(vec4(1));
var res = asin(vec4(0.479425538604));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(vec<2, f32>) -> vec<2, f32>
fn asin_7b6a44() {
var res: vec2<f32> = asin(vec2<f32>(1.f));
var res: vec2<f32> = asin(vec2<f32>(0.479425538604f));
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_7b6a44() {
float2 res = (1.570796371f).xx;
float2 res = (0.5f).xx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_7b6a44() {
float2 res = (1.570796371f).xx;
float2 res = (0.5f).xx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_7b6a44() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_7b6a44() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_7b6a44() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_7b6a44() {
float2 res = float2(1.570796371f);
float2 res = float2(0.5f);
}
struct tint_symbol {

View File

@ -31,8 +31,8 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v2float %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%15 = OpConstantComposite %v2float %float_0_5 %float_0_5
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float

View File

@ -1,5 +1,5 @@
fn asin_7b6a44() {
var res : vec2<f32> = asin(vec2<f32>(1.0f));
var res : vec2<f32> = asin(vec2<f32>(0.47942555f));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(vec<3, f32>) -> vec<3, f32>
fn asin_8cd9c9() {
var res: vec3<f32> = asin(vec3<f32>(1.f));
var res: vec3<f32> = asin(vec3<f32>(0.479425538604f));
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_8cd9c9() {
float3 res = (1.570796371f).xxx;
float3 res = (0.5f).xxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_8cd9c9() {
float3 res = (1.570796371f).xxx;
float3 res = (0.5f).xxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_8cd9c9() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_8cd9c9() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_8cd9c9() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_8cd9c9() {
float3 res = float3(1.570796371f);
float3 res = float3(0.5f);
}
struct tint_symbol {

View File

@ -31,8 +31,8 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v3float %float_1_57079637 %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%15 = OpConstantComposite %v3float %float_0_5 %float_0_5 %float_0_5
%_ptr_Function_v3float = OpTypePointer Function %v3float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float

View File

@ -1,5 +1,5 @@
fn asin_8cd9c9() {
var res : vec3<f32> = asin(vec3<f32>(1.0f));
var res : vec3<f32> = asin(vec3<f32>(0.47942555f));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(vec<2, fa>) -> vec<2, fa>
fn asin_a5dd88() {
var res = asin(vec2(1));
var res = asin(vec2(0.479425538604));
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_a5dd88() {
float2 res = (1.570796371f).xx;
float2 res = (0.5f).xx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_a5dd88() {
float2 res = (1.570796371f).xx;
float2 res = (0.5f).xx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_a5dd88() {
float2 res = float2(1.570796371f);
float2 res = float2(0.5f);
}
struct tint_symbol {

View File

@ -31,8 +31,8 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v2float %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%15 = OpConstantComposite %v2float %float_0_5 %float_0_5
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float

View File

@ -1,5 +1,5 @@
fn asin_a5dd88() {
var res = asin(vec2(1));
var res = asin(vec2(0.479425538604));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(fa) -> fa
fn asin_a6d73a() {
var res = asin(1);
var res = asin(0.479425538604);
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_a6d73a() {
float res = 1.570796371f;
float res = 0.5f;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_a6d73a() {
float res = 1.570796371f;
float res = 0.5f;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_a6d73a() {
float res = 1.570796371f;
float res = 0.5f;
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_a6d73a() {
float res = 1.570796371f;
float res = 0.5f;
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_a6d73a() {
float res = 1.570796371f;
float res = 0.5f;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_a6d73a() {
float res = 1.570796371f;
float res = 0.5f;
}
struct tint_symbol {

View File

@ -30,14 +30,14 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_57079637 = OpConstant %float 1.57079637
%float_0_5 = OpConstant %float 0.5
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_a6d73a = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_1_57079637
OpStore %res %float_0_5
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %16

View File

@ -1,5 +1,5 @@
fn asin_a6d73a() {
var res = asin(1);
var res = asin(0.479425538604);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(f32) -> f32
fn asin_c0c272() {
var res: f32 = asin(1.f);
var res: f32 = asin(0.479425538604f);
}
@vertex

View File

@ -1,5 +1,5 @@
void asin_c0c272() {
float res = 1.570796371f;
float res = 0.5f;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_c0c272() {
float res = 1.570796371f;
float res = 0.5f;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_c0c272() {
float res = 1.570796371f;
float res = 0.5f;
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_c0c272() {
float res = 1.570796371f;
float res = 0.5f;
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_c0c272() {
float res = 1.570796371f;
float res = 0.5f;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_c0c272() {
float res = 1.570796371f;
float res = 0.5f;
}
struct tint_symbol {

View File

@ -30,14 +30,14 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_57079637 = OpConstant %float 1.57079637
%float_0_5 = OpConstant %float 0.5
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_c0c272 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_1_57079637
OpStore %res %float_0_5
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %16

View File

@ -1,5 +1,5 @@
fn asin_c0c272() {
var res : f32 = asin(1.0f);
var res : f32 = asin(0.47942555f);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asin(vec<4, f32>) -> vec<4, f32>
fn asin_064953() {
var arg_0 = vec4<f32>(1.f);
var arg_0 = vec4<f32>(0.479425538604f);
var res: vec4<f32> = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_064953() {
float4 arg_0 = (1.0f).xxxx;
float4 arg_0 = (0.47942555f).xxxx;
float4 res = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_064953() {
float4 arg_0 = (1.0f).xxxx;
float4 arg_0 = (0.47942555f).xxxx;
float4 res = asin(arg_0);
}

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_064953() {
vec4 arg_0 = vec4(1.0f);
vec4 arg_0 = vec4(0.47942555f);
vec4 res = asin(arg_0);
}
@ -22,7 +22,7 @@ void main() {
precision mediump float;
void asin_064953() {
vec4 arg_0 = vec4(1.0f);
vec4 arg_0 = vec4(0.47942555f);
vec4 res = asin(arg_0);
}
@ -37,7 +37,7 @@ void main() {
#version 310 es
void asin_064953() {
vec4 arg_0 = vec4(1.0f);
vec4 arg_0 = vec4(0.47942555f);
vec4 res = asin(arg_0);
}

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_064953() {
float4 arg_0 = float4(1.0f);
float4 arg_0 = float4(0.47942555f);
float4 res = asin(arg_0);
}

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 35
; Schema: 0
OpCapability Shader
%18 = OpExtInstImport "GLSL.std.450"
@ -32,10 +32,11 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%14 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%float_0_47942555 = OpConstant %float 0.47942555
%14 = OpConstantComposite %v4float %float_0_47942555 %float_0_47942555 %float_0_47942555 %float_0_47942555
%_ptr_Function_v4float = OpTypePointer Function %v4float
%21 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_064953 = OpFunction %void None %9
%12 = OpLabel
%arg_0 = OpVariable %_ptr_Function_v4float Function %5
@ -59,12 +60,12 @@
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_064953
%30 = OpLabel
%31 = OpFunctionCall %void %asin_064953
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asin_064953
%33 = OpLabel
%34 = OpFunctionCall %void %asin_064953
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn asin_064953() {
var arg_0 = vec4<f32>(1.0f);
var arg_0 = vec4<f32>(0.47942555f);
var res : vec4<f32> = asin(arg_0);
}

View File

@ -23,7 +23,7 @@
// fn asin(vec<3, fa>) -> vec<3, fa>
fn asin_0bac07() {
const arg_0 = vec3(1);
const arg_0 = vec3(0.479425538604);
var res = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_0bac07() {
float3 res = (1.570796371f).xxx;
float3 res = (0.5f).xxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_0bac07() {
float3 res = (1.570796371f).xxx;
float3 res = (0.5f).xxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
vec3 res = vec3(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_0bac07() {
float3 res = float3(1.570796371f);
float3 res = float3(0.5f);
}
struct tint_symbol {

View File

@ -31,8 +31,8 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v3float %float_1_57079637 %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%15 = OpConstantComposite %v3float %float_0_5 %float_0_5 %float_0_5
%_ptr_Function_v3float = OpTypePointer Function %v3float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float

View File

@ -1,5 +1,5 @@
fn asin_0bac07() {
const arg_0 = vec3(1);
const arg_0 = vec3(0.479425538604);
var res = asin(arg_0);
}

View File

@ -23,7 +23,7 @@
// fn asin(vec<4, fa>) -> vec<4, fa>
fn asin_64bb1f() {
const arg_0 = vec4(1);
const arg_0 = vec4(0.479425538604);
var res = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_64bb1f() {
float4 res = (1.570796371f).xxxx;
float4 res = (0.5f).xxxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_64bb1f() {
float4 res = (1.570796371f).xxxx;
float4 res = (0.5f).xxxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
vec4 res = vec4(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_64bb1f() {
float4 res = float4(1.570796371f);
float4 res = float4(0.5f);
}
struct tint_symbol {

View File

@ -30,8 +30,8 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_57079637 = OpConstant %float 1.57079637
%14 = OpConstantComposite %v4float %float_1_57079637 %float_1_57079637 %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%14 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0_5 %float_0_5
%_ptr_Function_v4float = OpTypePointer Function %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1

View File

@ -1,5 +1,5 @@
fn asin_64bb1f() {
const arg_0 = vec4(1);
const arg_0 = vec4(0.479425538604);
var res = asin(arg_0);
}

View File

@ -23,7 +23,7 @@
// fn asin(vec<2, f32>) -> vec<2, f32>
fn asin_7b6a44() {
var arg_0 = vec2<f32>(1.f);
var arg_0 = vec2<f32>(0.479425538604f);
var res: vec2<f32> = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_7b6a44() {
float2 arg_0 = (1.0f).xx;
float2 arg_0 = (0.47942555f).xx;
float2 res = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_7b6a44() {
float2 arg_0 = (1.0f).xx;
float2 arg_0 = (0.47942555f).xx;
float2 res = asin(arg_0);
}

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_7b6a44() {
vec2 arg_0 = vec2(1.0f);
vec2 arg_0 = vec2(0.47942555f);
vec2 res = asin(arg_0);
}
@ -22,7 +22,7 @@ void main() {
precision mediump float;
void asin_7b6a44() {
vec2 arg_0 = vec2(1.0f);
vec2 arg_0 = vec2(0.47942555f);
vec2 res = asin(arg_0);
}
@ -37,7 +37,7 @@ void main() {
#version 310 es
void asin_7b6a44() {
vec2 arg_0 = vec2(1.0f);
vec2 arg_0 = vec2(0.47942555f);
vec2 res = asin(arg_0);
}

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_7b6a44() {
float2 arg_0 = float2(1.0f);
float2 arg_0 = float2(0.47942555f);
float2 res = asin(arg_0);
}

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; Bound: 37
; Schema: 0
OpCapability Shader
%20 = OpExtInstImport "GLSL.std.450"
@ -33,11 +33,12 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v2float %float_1 %float_1
%float_0_47942555 = OpConstant %float 0.47942555
%15 = OpConstantComposite %v2float %float_0_47942555 %float_0_47942555
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%23 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_7b6a44 = OpFunction %void None %9
%12 = OpLabel
%arg_0 = OpVariable %_ptr_Function_v2float Function %18
@ -61,12 +62,12 @@
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %asin_7b6a44
%32 = OpLabel
%33 = OpFunctionCall %void %asin_7b6a44
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%34 = OpLabel
%35 = OpFunctionCall %void %asin_7b6a44
%35 = OpLabel
%36 = OpFunctionCall %void %asin_7b6a44
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn asin_7b6a44() {
var arg_0 = vec2<f32>(1.0f);
var arg_0 = vec2<f32>(0.47942555f);
var res : vec2<f32> = asin(arg_0);
}

View File

@ -23,7 +23,7 @@
// fn asin(vec<3, f32>) -> vec<3, f32>
fn asin_8cd9c9() {
var arg_0 = vec3<f32>(1.f);
var arg_0 = vec3<f32>(0.479425538604f);
var res: vec3<f32> = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_8cd9c9() {
float3 arg_0 = (1.0f).xxx;
float3 arg_0 = (0.47942555f).xxx;
float3 res = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_8cd9c9() {
float3 arg_0 = (1.0f).xxx;
float3 arg_0 = (0.47942555f).xxx;
float3 res = asin(arg_0);
}

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_8cd9c9() {
vec3 arg_0 = vec3(1.0f);
vec3 arg_0 = vec3(0.47942555f);
vec3 res = asin(arg_0);
}
@ -22,7 +22,7 @@ void main() {
precision mediump float;
void asin_8cd9c9() {
vec3 arg_0 = vec3(1.0f);
vec3 arg_0 = vec3(0.47942555f);
vec3 res = asin(arg_0);
}
@ -37,7 +37,7 @@ void main() {
#version 310 es
void asin_8cd9c9() {
vec3 arg_0 = vec3(1.0f);
vec3 arg_0 = vec3(0.47942555f);
vec3 res = asin(arg_0);
}

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_8cd9c9() {
float3 arg_0 = float3(1.0f);
float3 arg_0 = float3(0.47942555f);
float3 res = asin(arg_0);
}

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; Bound: 37
; Schema: 0
OpCapability Shader
%20 = OpExtInstImport "GLSL.std.450"
@ -33,11 +33,12 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%float_0_47942555 = OpConstant %float 0.47942555
%15 = OpConstantComposite %v3float %float_0_47942555 %float_0_47942555 %float_0_47942555
%_ptr_Function_v3float = OpTypePointer Function %v3float
%18 = OpConstantNull %v3float
%23 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_8cd9c9 = OpFunction %void None %9
%12 = OpLabel
%arg_0 = OpVariable %_ptr_Function_v3float Function %18
@ -61,12 +62,12 @@
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %asin_8cd9c9
%32 = OpLabel
%33 = OpFunctionCall %void %asin_8cd9c9
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%34 = OpLabel
%35 = OpFunctionCall %void %asin_8cd9c9
%35 = OpLabel
%36 = OpFunctionCall %void %asin_8cd9c9
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn asin_8cd9c9() {
var arg_0 = vec3<f32>(1.0f);
var arg_0 = vec3<f32>(0.47942555f);
var res : vec3<f32> = asin(arg_0);
}

View File

@ -23,7 +23,7 @@
// fn asin(vec<2, fa>) -> vec<2, fa>
fn asin_a5dd88() {
const arg_0 = vec2(1);
const arg_0 = vec2(0.479425538604);
var res = asin(arg_0);
}

View File

@ -1,5 +1,5 @@
void asin_a5dd88() {
float2 res = (1.570796371f).xx;
float2 res = (0.5f).xx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_a5dd88() {
float2 res = (1.570796371f).xx;
float2 res = (0.5f).xx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
vec2 res = vec2(0.5f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_a5dd88() {
float2 res = float2(1.570796371f);
float2 res = float2(0.5f);
}
struct tint_symbol {

View File

@ -31,8 +31,8 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v2float %float_1_57079637 %float_1_57079637
%float_0_5 = OpConstant %float 0.5
%15 = OpConstantComposite %v2float %float_0_5 %float_0_5
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float

View File

@ -1,5 +1,5 @@
fn asin_a5dd88() {
const arg_0 = vec2(1);
const arg_0 = vec2(0.479425538604);
var res = asin(arg_0);
}

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