Add const-eval for asin and asinh.

This CL adds const-eval for the `asin` and `asinh` operators.

Bug: tint:1581
Change-Id: I18b2eeb4fb85b8979012b48551eefa773d1b980e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106980
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair
2022-10-27 15:10:20 +00:00
committed by Dawn LUCI CQ
parent a92f4259d5
commit 59d9c89ff7
180 changed files with 9532 additions and 5064 deletions

View File

@@ -167,7 +167,7 @@ DataMap polyfillSinh() {
TEST_F(BuiltinPolyfillTest, ShouldRunAsinh) {
auto* src = R"(
fn f() {
asinh(1.0);
asinh(1.0f);
}
)";
@@ -178,7 +178,7 @@ fn f() {
TEST_F(BuiltinPolyfillTest, Asinh_f32) {
auto* src = R"(
fn f() {
let r : f32 = asinh(1234);
let r : f32 = asinh(1234f);
}
)";
@@ -188,7 +188,7 @@ fn tint_sinh(x : f32) -> f32 {
}
fn f() {
let r : f32 = tint_sinh(1234);
let r : f32 = tint_sinh(1234.0f);
}
)";
@@ -200,7 +200,7 @@ fn f() {
TEST_F(BuiltinPolyfillTest, Asinh_vec3_f32) {
auto* src = R"(
fn f() {
let r : vec3<f32> = asinh(vec3<f32>(1234));
let r : vec3<f32> = asinh(vec3<f32>(1234f));
}
)";
@@ -210,7 +210,7 @@ fn tint_sinh(x : vec3<f32>) -> vec3<f32> {
}
fn f() {
let r : vec3<f32> = tint_sinh(vec3<f32>(1234));
let r : vec3<f32> = tint_sinh(vec3<f32>(1234.0f));
}
)";