diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4710e0262c..f8e86e7320 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -111,12 +111,14 @@ jobs: cmake --build . --target unit.arch.exe --config ${{ matrix.cfg.mode }} --parallel 2 cmake --build . --target unit.meta.exe --config ${{ matrix.cfg.mode }} --parallel 2 cmake --build . --target unit.internals.exe --config ${{ matrix.cfg.mode }} --parallel 2 + cmake --build . --target unit.core.exe --config ${{ matrix.cfg.mode }} --parallel 2 - name: Running Tests run: | cd build ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.arch.*.exe ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.meta.*.exe ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.internals.*.exe + ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.core.*.exe avx512: runs-on: [self-hosted, avx512] diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bfe51144a..c20b60e99e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,6 @@ endif() ## ================================================================================================= if( EVE_BUILD_TEST ) include(config/dependencies) - include(CTest) include(target/add_parent_target) include(config/compiler) include(config/types) diff --git a/test/unit/module/core/constants.cpp b/test/unit/module/core/constants.cpp index 2f2d8ccf56..b192abb97c 100644 --- a/test/unit/module/core/constants.cpp +++ b/test/unit/module/core/constants.cpp @@ -8,6 +8,9 @@ #include "test.hpp" #include +#include + +#include TTS_CASE_TPL("Check basic constants behavior", eve::test::simd::ieee_reals) (tts::type) @@ -23,7 +26,7 @@ TTS_CASE_TPL("Check basic constants behavior", eve::test::simd::ieee_reals) if constexpr( eve::floating_value ) { - TTS_IEEE_EQUAL(eve::allbits(as()), T(0.0 / 0.0)); + TTS_IEEE_EQUAL(eve::allbits(as()), T(std::numeric_limits::quiet_NaN())); TTS_EQUAL(eve::mzero(as()), T(-0)); TTS_EQUAL(eve::half(as()), T(0.5)); TTS_EQUAL(eve::mhalf(as()), T(-0.5)); @@ -40,7 +43,7 @@ TTS_CASE_TPL("Check ieee754 constants", eve::test::simd::ieee_reals) using ilt_t = eve::as_integer_t; using i_t = eve::as_integer_t; TTS_EQUAL(eve::bitincrement(as()), T(eve::bit_cast(eve::one(as()), as()))); - TTS_IEEE_EQUAL(eve::nan(as()), T(0.0 / 0.0)); + TTS_IEEE_EQUAL(eve::nan(as()), T(std::numeric_limits::quiet_NaN())); TTS_EQUAL(eve::signmask(as()), T(eve::bit_cast(eve::one(as()) << (sizeof(ilt_t) * 8 - 1), as()))); TTS_EQUAL(eve::mindenormal(as()), eve::bitincrement(as())); diff --git a/test/unit/module/core/frexp.cpp b/test/unit/module/core/frexp.cpp index 06e0f1b2d2..34d31364fd 100644 --- a/test/unit/module/core/frexp.cpp +++ b/test/unit/module/core/frexp.cpp @@ -8,6 +8,7 @@ #include "test.hpp" #include +#include #include #include diff --git a/test/unit/module/core/hi.cpp b/test/unit/module/core/hi.cpp index aeff2fae79..bddaabfda6 100644 --- a/test/unit/module/core/hi.cpp +++ b/test/unit/module/core/hi.cpp @@ -34,7 +34,7 @@ TTS_CASE_WITH("Check behavior of hi(wide) on unsigned integral ", { using v_t = eve::element_type_t; using d_t = eve::detail::downgrade_t; - constexpr int s = sizeof(v_t) * 4; + static constexpr int s = sizeof(v_t) * 4; if constexpr( s == 4 ) { TTS_EQUAL(eve::hi(a0), map([&](auto e) -> v_t { return d_t(eve::shr(e, s)); }, a0)); diff --git a/test/unit/module/core/lo.cpp b/test/unit/module/core/lo.cpp index ee4f4141a8..4c73e5217a 100644 --- a/test/unit/module/core/lo.cpp +++ b/test/unit/module/core/lo.cpp @@ -34,7 +34,7 @@ TTS_CASE_WITH("Check behavior of lo(wide) on unsigned integral ", { using v_t = eve::element_type_t; using d_t = eve::detail::downgrade_t; - constexpr int s = sizeof(v_t) * 4; + static constexpr int s = sizeof(v_t) * 4; if constexpr( s == 4 ) { TTS_EQUAL(eve::lo(a0), diff --git a/test/unit/module/core/scan.cpp b/test/unit/module/core/scan.cpp index 050229e639..59df5d0db2 100644 --- a/test/unit/module/core/scan.cpp +++ b/test/unit/module/core/scan.cpp @@ -10,7 +10,7 @@ #include -#include +#include #include template