From 1368a2177ad206e8b30ab30fc83630428afe0f2d Mon Sep 17 00:00:00 2001 From: "Yu-Hsiang M. Tsai" Date: Mon, 18 Nov 2024 13:45:44 +0100 Subject: [PATCH] delete the sycl half test as we do not enable it directly --- core/test/base/half.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/core/test/base/half.cpp b/core/test/base/half.cpp index 7fcd0ffa70f..82732c62d16 100644 --- a/core/test/base/half.cpp +++ b/core/test/base/half.cpp @@ -61,12 +61,7 @@ TEST(FloatToHalf, ConvertsNan) { half x = create_from_bits("0" "11111111" "00000000000000000000001"); - #if defined(SYCL_LANGUAGE_VERSION) - // Sycl put the 1000000000, but ours put mask - ASSERT_EQ(get_bits(x), get_bits("0" "11111" "1000000000")); - #else ASSERT_EQ(get_bits(x), get_bits("0" "11111" "1111111111")); - #endif } @@ -74,12 +69,7 @@ TEST(FloatToHalf, ConvertsNegNan) { half x = create_from_bits("1" "11111111" "00010000000000000000000"); - #if defined(SYCL_LANGUAGE_VERSION) - // Sycl put the 1000000000, but ours put mask - ASSERT_EQ(get_bits(x), get_bits("1" "11111" "1000000000")); - #else ASSERT_EQ(get_bits(x), get_bits("1" "11111" "1111111111")); - #endif } @@ -177,12 +167,7 @@ TEST(HalfToFloat, ConvertsNan) { float x = create_from_bits("0" "11111" "0001001000"); - #if defined(SYCL_LANGUAGE_VERSION) - // sycl keeps significand - ASSERT_EQ(get_bits(x), get_bits("0" "11111111" "00010010000000000000000")); - #else ASSERT_EQ(get_bits(x), get_bits("0" "11111111" "11111111111111111111111")); - #endif } @@ -190,12 +175,7 @@ TEST(HalfToFloat, ConvertsNegNan) { float x = create_from_bits("1" "11111" "0000000001"); - #if defined(SYCL_LANGUAGE_VERSION) - // sycl keeps significand - ASSERT_EQ(get_bits(x), get_bits("1" "11111111" "00000000010000000000000")); - #else ASSERT_EQ(get_bits(x), get_bits("1" "11111111" "11111111111111111111111")); - #endif }