Skip to content

Commit

Permalink
delete the sycl half test as we do not enable it directly
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Nov 29, 2024
1 parent 3421fea commit 3b05fc9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions core/test/base/half.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,15 @@ 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
}


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
}


Expand Down Expand Up @@ -177,25 +167,15 @@ 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
}


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
}


Expand Down

0 comments on commit 3b05fc9

Please sign in to comment.