Skip to content

Commit b5eb7f4

Browse files
authored
This patch enables testing with tester4 on windows with clang. (#669)
1 parent f3481df commit b5eb7f4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ option(SLEEF_BUILD_STATIC_TEST_BINS "Build statically linked test executables" O
1515
option(SLEEF_ENABLE_LTO "Enable LTO on GCC or ThinLTO on clang" OFF)
1616
option(SLEEF_BUILD_LIBM "libsleef will be built." ON)
1717
option(SLEEF_BUILD_DFT "libsleefdft will be built." OFF)
18-
option(SLEEF_BUILD_QUAD "libsleefquad will be built." ON)
18+
option(SLEEF_BUILD_QUAD "libsleefquad will be built." OFF)
1919
option(SLEEF_BUILD_GNUABI_LIBS "libsleefgnuabi will be built." ON)
2020
option(SLEEF_BUILD_SCALAR_LIB "libsleefscalar will be built." OFF)
2121
option(SLEEF_BUILD_TESTS "Tests will be built." ON)

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pipeline {
8080
bat """
8181
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
8282
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
83-
call "winbuild-clang.bat" -DCMAKE_BUILD_TYPE=Release -DSLEEF_SHOW_CONFIG=1 -DSLEEF_BUILD_DFT=True -DSLEEF_ENFORCE_DFT=TRUE -DSLEEF_BUILD_QUAD=TRUE -DSLEEF_ENFORCE_SSE2=TRUE -DSLEEF_ENFORCE_SSE4=TRUE -DSLEEF_ENFORCE_AVX=TRUE -DSLEEF_ENFORCE_AVX2=TRUE -DSLEEF_ENFORCE_AVX512F=TRUE -DSLEEF_ENABLE_TESTER4=False -DSLEEF_DISABLE_SSL=True
83+
call "winbuild-clang.bat" -DCMAKE_BUILD_TYPE=Release -DSLEEF_SHOW_CONFIG=1 -DSLEEF_BUILD_DFT=True -DSLEEF_ENFORCE_DFT=TRUE -DSLEEF_BUILD_QUAD=TRUE -DSLEEF_ENFORCE_SSE2=TRUE -DSLEEF_ENFORCE_SSE4=TRUE -DSLEEF_ENFORCE_AVX=TRUE -DSLEEF_ENFORCE_AVX2=TRUE -DSLEEF_ENFORCE_AVX512F=TRUE -DSLEEF_ENABLE_TESTER4=True -DSLEEF_ENFORCE_TESTER4=True -DSLEEF_DISABLE_SSL=True
8484
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
8585
ctest -j 4 --output-on-failure
8686
exit /b %ERRORLEVEL%

src/libm-tester/tester4simd.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,13 +1562,13 @@ int main2(int argc, char **argv) {
15621562
-1000, 1000, 0.2, 1.0, false) && success;
15631563

15641564
cout << "copysign" << endl;
1565-
success = check_d_d_d<tlfloat_quad>("copysign", xcopysign, tlfloat_copysignq,
1566-
ad, sizeof(ad)/sizeof(ad[0]), ad, sizeof(ad)/sizeof(ad[0]),
1567-
0.0, true) && success;
1568-
success = check_d_d_d<tlfloat_quad>("copysign", xcopysign, tlfloat_copysignq,
1569-
-10, 10, 0.15, -10, 10, 0.15, 0.0, false) && success;
1570-
success = check_d_d_d<tlfloat_quad>("copysign", xcopysign, tlfloat_copysignq,
1571-
-1e+10, 1e+10, 1.51e+8, -1e+10, 1e+10, 1.51e+8, 0.0, false) && success;
1565+
success = check_d_d_d<double>("copysign", xcopysign, tlfloat_copysign,
1566+
ad, sizeof(ad)/sizeof(ad[0]), ad, sizeof(ad)/sizeof(ad[0]),
1567+
0.0, true) && success;
1568+
success = check_d_d_d<double>("copysign", xcopysign, tlfloat_copysign,
1569+
-10, 10, 0.15, -10, 10, 0.15, 0.0, false) && success;
1570+
success = check_d_d_d<double>("copysign", xcopysign, tlfloat_copysign,
1571+
-1e+10, 1e+10, 1.51e+8, -1e+10, 1e+10, 1.51e+8, 0.0, false) && success;
15721572

15731573
cout << "fmax" << endl;
15741574
success = check_d_d_d<tlfloat_quad>("fmax", xfmax, tlfloat_fmaxq,

0 commit comments

Comments
 (0)