simde icon indicating copy to clipboard operation
simde copied to clipboard

clang 12.0.1 with -O2 + ppc64le x86/avx512/ror failures

Open junaruga opened this issue 2 years ago • 0 comments

On clang 12.0.1 with simde the master commit c4aa8b492aea70a3a09852c4e0427e07791bb49f on Fedora rawhide (= 35), after passing the test without flags by skipping the failures with the command at https://github.com/simd-everywhere/simde/issues/868#issuecomment-886249301 , then I faced the following test failures with -O2 flag. Here is the result from the log.

== 2. tests on clang ==
+ clang --version
clang version 12.0.1 (Fedora 12.0.1-1.fc35)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
+ clang++ --version
clang version 12.0.1 (Fedora 12.0.1-1.fc35)
Target: powerpc64le-unknown-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.58.0
Source dir: /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f
Build dir: /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/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.1 "clang version 12.0.1 (Fedora 12.0.1-1.fc35)")
C linker for the host machine: clang ld.bfd 2.36.1-15
C++ compiler for the host machine: clang++ (clang 12.0.1 "clang version 12.0.1 (Fedora 12.0.1-1.fc35)")
C++ linker for the host machine: clang++ ld.bfd 2.36.1-15
Host machine cpu family: ppc64
Host machine cpu: ppc64le
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: 1434
Found ninja-1.10.2 at /usr/bin/ninja
+ _build
+ rm -f build.log
+ _time ninja -C build/clang-O2 -v -j 8
+ head -4 build.log
+ /usr/bin/time -f '=> [%E]' ninja -C build/clang-O2 -v -j 8
ninja: Entering directory `build/clang-O2'
[1/2868] clang -Itest/common/common-c.p -Itest/common -I../../test/common -I. -I../.. -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -g -O2 -fopenmp-simd -DSIMDE_CONSTRAINED_COMPILATION -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/2868] clang  -o test/common/common-c test/common/common-c.p/common.c.o -Wl,--as-needed -Wl,--no-undefined -O2 -Wl,--start-group -lm -Wl,--end-group
+ tail -3 build.log
[2867/2868] clang++ -Itest/mips/msa/subv-native-cpp.p -Itest/mips/msa -I../../test/mips/msa -I. -I../.. -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g -O2 -fopenmp-simd -DSIMDE_CONSTRAINED_COMPILATION -DSIMDE_ENABLE_OPENMP -Wno-psabi -DSIMDE_TEST_BARE -MD -MQ test/mips/msa/subv-native-cpp.p/meson-generated_.._subv.cpp.o -MF test/mips/msa/subv-native-cpp.p/meson-generated_.._subv.cpp.o.d -o test/mips/msa/subv-native-cpp.p/meson-generated_.._subv.cpp.o -c test/mips/msa/subv.cpp
[2868/2868] clang++  -o test/mips/msa/subv-native-cpp test/mips/msa/subv-native-cpp.p/meson-generated_.._subv.cpp.o -Wl,--as-needed -Wl,--no-undefined -O2 -Wl,--start-group -lm -Wl,--end-group
=> [4:31.94]
+ _test
+ _time meson test -C build/clang-O2 -q --no-rebuild --print-errorlogs
+ /usr/bin/time -f '=> [%E]' meson test -C build/clang-O2 -q --no-rebuild --print-errorlogs
▶  233/1434 ror/mm256_maskz_ror_epi64             FAIL          
 233/1434 x86/avx512/ror/native/c                 ERROR           0.04s   exit status 1
>>> MALLOC_PERTURB_=111 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/clang-O2/test/x86/avx512/ror-native-c
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
../../test/x86/avx512/ror.c:1493: assertion failed: r[3] == simde_x_mm256_loadu_epi64(test_vec[0].r)[3] (-6433452321821972806 == 0)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶  241/1434 ror/mm256_maskz_ror_epi64             FAIL          
 241/1434 x86/avx512/ror/native/cpp               ERROR           0.06s   exit status 1
>>> MALLOC_PERTURB_=153 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/clang-O2/test/x86/avx512/ror-native-cpp
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
test/x86/avx512/ror.cpp:1493: assertion failed: r[3] == simde_x_mm256_loadu_epi64(test_vec[0].r)[3] (-6433452321821972806 == 0)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Summary of Failures:
 233/1434 x86/avx512/ror/native/c                 ERROR           0.04s   exit status 1
 241/1434 x86/avx512/ror/native/cpp               ERROR           0.06s   exit status 1
Ok:                 1432
Expected Fail:      0   
Fail:               2   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
Full log written to /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/clang-O2/meson-logs/testlog.txt
Command exited with non-zero status 2
=> [0:10.67]

junaruga avatar Jul 25 '21 19:07 junaruga