Enable some disabled test.

This CL enables some of the @const disabled test now that the
methods are implemented.

Bug: tint:1581
Change-Id: I2cc0aa33188e439a661e2e7c265c6414881c92a0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110169
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
dan sinclair 2022-11-17 13:19:16 +00:00 committed by Dawn LUCI CQ
parent 46682e7e6b
commit d6f9a8a253
1 changed files with 9 additions and 17 deletions

View File

@ -66,8 +66,7 @@ fn f() {
EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillAcosh(Level::kFull))); EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillAcosh(Level::kFull)));
} }
// TODO(crbug.com/tint/1581): Enable once `acosh` is implemented as @const TEST_F(BuiltinPolyfillTest, Acosh_ConstantExpression) {
TEST_F(BuiltinPolyfillTest, DISABLED_Acosh_ConstantExpression) {
auto* src = R"( auto* src = R"(
fn f() { fn f() {
let r : f32 = acosh(1.0); let r : f32 = acosh(1.0);
@ -287,11 +286,10 @@ fn f() {
EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillAtanh(Level::kFull))); EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillAtanh(Level::kFull)));
} }
// TODO(crbug.com/tint/1581): Enable once `atanh` is implemented as @const TEST_F(BuiltinPolyfillTest, Atanh_ConstantExpression) {
TEST_F(BuiltinPolyfillTest, DISABLED_Atanh_ConstantExpression) {
auto* src = R"( auto* src = R"(
fn f() { fn f() {
let r : f32 = atanh(1.23); let r : f32 = atanh(0.23);
} }
)"; )";
@ -727,8 +725,7 @@ fn f() {
EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillCountLeadingZeros())); EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillCountLeadingZeros()));
} }
// TODO(crbug.com/tint/1581): Enable once `countLeadingZeros` is implemented as @const TEST_F(BuiltinPolyfillTest, CountLeadingZeros_ConstantExpression) {
TEST_F(BuiltinPolyfillTest, DISABLED_CountLeadingZeros_ConstantExpression) {
auto* src = R"( auto* src = R"(
fn f() { fn f() {
let r : i32 = countLeadingZeros(15i); let r : i32 = countLeadingZeros(15i);
@ -905,8 +902,7 @@ fn f() {
EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillCountTrailingZeros())); EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillCountTrailingZeros()));
} }
// TODO(crbug.com/tint/1581): Enable once `countTrailingZeros` is implemented as @const TEST_F(BuiltinPolyfillTest, CountTrailingZeros_ConstantExpression) {
TEST_F(BuiltinPolyfillTest, DISABLED_CountTrailingZeros_ConstantExpression) {
auto* src = R"( auto* src = R"(
fn f() { fn f() {
let r : i32 = countTrailingZeros(15i); let r : i32 = countTrailingZeros(15i);
@ -1338,8 +1334,7 @@ fn f() {
EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillFirstLeadingBit())); EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillFirstLeadingBit()));
} }
// TODO(crbug.com/tint/1581): Enable once `firstLeadingBit` is implemented as @const TEST_F(BuiltinPolyfillTest, FirstLeadingBit_ConstantExpression) {
TEST_F(BuiltinPolyfillTest, DISABLED_FirstLeadingBit_ConstantExpression) {
auto* src = R"( auto* src = R"(
fn f() { fn f() {
let r : i32 = firstLeadingBit(15i); let r : i32 = firstLeadingBit(15i);
@ -1516,8 +1511,7 @@ fn f() {
EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillFirstTrailingBit())); EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillFirstTrailingBit()));
} }
// TODO(crbug.com/tint/1581): Enable once `firstTrailingBit` is implemented as @const TEST_F(BuiltinPolyfillTest, FirstTrailingBit_ConstantExpression) {
TEST_F(BuiltinPolyfillTest, DISABLED_FirstTrailingBit_ConstantExpression) {
auto* src = R"( auto* src = R"(
fn f() { fn f() {
let r : i32 = firstTrailingBit(15i); let r : i32 = firstTrailingBit(15i);
@ -1696,12 +1690,10 @@ fn f() {
EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillInsertBits(Level::kFull))); EXPECT_TRUE(ShouldRun<BuiltinPolyfill>(src, polyfillInsertBits(Level::kFull)));
} }
// TODO(crbug.com/tint/1581): Enable once `insertBits` is implemented as @const TEST_F(BuiltinPolyfillTest, InsertBits_ConstantExpression) {
TEST_F(BuiltinPolyfillTest, DISABLED_InsertBits_ConstantExpression) {
auto* src = R"( auto* src = R"(
fn f() { fn f() {
let v = 1234i; let r : i32 = insertBits(1234i, 5678i, 5u, 6u);
let r : i32 = insertBits(v, 5678, 5u, 6u);
} }
)"; )";