simde icon indicating copy to clipboard operation
simde copied to clipboard

clang 12 with -O2 + i686 x86/sse2 test_simde_mm_cvtsi64_sd failures

Open junaruga opened this issue 3 years ago • 1 comments

On the latest commit: 4b7394fc2609c70540772769092014bf970a0b43, with clang 12 (clang version 12.0.0 (Fedora 12.0.0-0.7.rc3.fc35)) with only -O2 flag + i686 on Fedora rawhide (= 35), I see fhe following failures. Could you take a look at it? Thanks.

+ clang --version
clang version 12.0.0 (Fedora 12.0.0-0.7.rc3.fc35)
Target: i686-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

+ clang++ --version
clang version 12.0.0 (Fedora 12.0.0-0.7.rc3.fc35)
Target: i686-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
=== 2.2. tests on clang with O2 flag ===
+ BUILD_DIR=build/clang-O2
+ CC=clang
+ CXX=clang++
+ CFLAGS=-O2
+ CXXFLAGS=-O2
+ _setup
+ meson setup build/clang-O2
The Meson build system
Version: 0.57.1
Source dir: /builddir/build/BUILD/simde-4b7394fc2609c70540772769092014bf970a0b43
Build dir: /builddir/build/BUILD/simde-4b7394fc2609c70540772769092014bf970a0b43/build/clang-O2
Build type: native build
Project name: SIMDe
Project version: 0.7.3
C compiler for the host machine: clang (clang 12.0.0 "clang version 12.0.0 (Fedora 12.0.0-0.7.rc3.fc35)")
C linker for the host machine: clang ld.bfd 2.36.1-8
C++ compiler for the host machine: clang++ (clang 12.0.0 "clang version 12.0.0 (Fedora 12.0.0-0.7.rc3.fc35)")
C++ linker for the host machine: clang++ ld.bfd 2.36.1-8
Host machine cpu family: x86
Host machine cpu: i686
Library m found: YES
Compiler for C supports arguments -fopenmp-simd: YES 
Compiler for C++ supports arguments -fopenmp-simd: YES 
Compiler for C supports arguments -Wpsabi: YES 
Compiler for C++ supports arguments -Wpsabi: YES 
Library m found: YES
Build targets in project: 1082
Found ninja-1.10.2 at /usr/bin/ninja
+ _build
+ rm -f build.log
+ _time ninja -C build/clang-O2 -v -j 6
+ head -4 build.log
+ /usr/bin/time -f '=> [%E]' ninja -C build/clang-O2 -v -j 6
ninja: Entering directory `build/clang-O2'
[1/2164] clang -Itest/common/common-c.p -Itest/common -I../../test/common -I. -I../.. -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -g -O2 -fopenmp-simd -DSIMDE_ENABLE_OPENMP -Wno-psabi -DSIMDE_TEST_BARE -MD -MQ test/common/common-c.p/common.c.o -MF test/common/common-c.p/common.c.o.d -o test/common/common-c.p/common.c.o -c ../../test/common/common.c
[2/2164] clang++ -Itest/common/common-cpp.p -Itest/common -I../../test/common -I. -I../.. -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -O2 -fopenmp-simd -DSIMDE_ENABLE_OPENMP -Wno-psabi -DSIMDE_TEST_BARE -MD -MQ test/common/common-cpp.p/meson-generated_.._common.cpp.o -MF test/common/common-cpp.p/meson-generated_.._common.cpp.o.d -o test/common/common-cpp.p/meson-generated_.._common.cpp.o -c test/common/common.cpp
+ tail -3 build.log
[2163/2164] clang++ -Itest/wasm/xor-native-cpp.p -Itest/wasm -I../../test/wasm -I. -I../.. -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -O2 -fopenmp-simd -DSIMDE_ENABLE_OPENMP -Wno-psabi -DSIMDE_TEST_BARE -MD -MQ test/wasm/xor-native-cpp.p/meson-generated_.._xor.cpp.o -MF test/wasm/xor-native-cpp.p/meson-generated_.._xor.cpp.o.d -o test/wasm/xor-native-cpp.p/meson-generated_.._xor.cpp.o -c test/wasm/xor.cpp
[2164/2164] clang++  -o test/wasm/xor-native-cpp test/wasm/xor-native-cpp.p/meson-generated_.._xor.cpp.o -Wl,--as-needed -Wl,--no-undefined -O2 -Wl,--start-group -lm -Wl,--end-group
=> [2:48.82]
+ _test
+ meson test -C build/clang-O2 -q --no-rebuild --print-errorlogs
▶  310/1082 sse2/mm_cvtsi64_sd                FAIL          
 310/1082 x86/sse2/native/c                   ERROR           0.08s   exit status 1
>>> MALLOC_PERTURB_=178 /builddir/build/BUILD/simde-4b7394fc2609c70540772769092014bf970a0b43/build/clang-O2/test/x86/sse2-native-c
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
../../test/x86/sse2.c:3675: assertion failed: r[0] ~= test_vec[i].r[0] (-nan ~= 637.000000)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶  313/1082 sse2/mm_cvtsi64_sd                FAIL          
 313/1082 x86/sse2/native/cpp                 ERROR           0.04s   exit status 1
>>> MALLOC_PERTURB_=34 /builddir/build/BUILD/simde-4b7394fc2609c70540772769092014bf970a0b43/build/clang-O2/test/x86/sse2-native-cpp
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
test/x86/sse2.cpp:3675: assertion failed: r[0] ~= test_vec[i].r[0] (-nan ~= 637.000000)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Summary of Failures:
 310/1082 x86/sse2/native/c                   ERROR           0.08s   exit status 1
 313/1082 x86/sse2/native/cpp                 ERROR           0.04s   exit status 1
Ok:                 1080
Expected Fail:      0   
Fail:               2   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
Full log written to /builddir/build/BUILD/simde-4b7394fc2609c70540772769092014bf970a0b43/build/clang-O2/meson-logs/testlog.txt

junaruga avatar Mar 26 '21 21:03 junaruga

I skipped the failures by the following command for now.

sed -i '/^test_simde_mm_cvtsi64_sd *(/,/^}$/ s|simde_assert_m128d_close|//\0|' test/x86/sse2.c

junaruga avatar Jul 26 '21 22:07 junaruga