simde icon indicating copy to clipboard operation
simde copied to clipboard

gcc 11.1.1 with -O2 + s390x arm/neon/{mlal_lane,mlsl_lane} failures

Open junaruga opened this issue 2 years ago • 1 comments

On gcc 11.1.1 s390x with simde the latest 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/866#issuecomment-886246349 , then I faced the following test failures with -O2 flag. Here is the result from the log.

== 1. tests on gcc ==
+ gcc --version
gcc (GCC) 11.1.1 20210623 (Red Hat 11.1.1-6)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ g++ --version
g++ (GCC) 11.1.1 20210623 (Red Hat 11.1.1-6)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

=== 1.2. tests on gcc with O2 flag ===
+ BUILD_DIR=build/gcc-O2
+ CC='gcc -fno-strict-aliasing'
+ CXX='g++ -fno-strict-aliasing'
+ CFLAGS=-O2
+ CXXFLAGS=-O2
+ _setup
+ meson setup build/gcc-O2
The Meson build system
Version: 0.58.0
Source dir: /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f
Build dir: /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2
Build type: native build
Project name: SIMDe
Project version: 0.7.3
C compiler for the host machine: gcc -fno-strict-aliasing (gcc 11.1.1 "gcc (GCC) 11.1.1 20210623 (Red Hat 11.1.1-6)")
C linker for the host machine: gcc -fno-strict-aliasing ld.bfd 2.36.1-15
C++ compiler for the host machine: g++ -fno-strict-aliasing (gcc 11.1.1 "g++ (GCC) 11.1.1 20210623 (Red Hat 11.1.1-6)")
C++ linker for the host machine: g++ -fno-strict-aliasing ld.bfd 2.36.1-15
Host machine cpu family: s390x
Host machine cpu: s390x
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: 1438
Found ninja-1.10.2 at /usr/bin/ninja
+ _build
+ rm -f build.log
+ _time ninja -C build/gcc-O2 -v -j 3
+ head -4 build.log
+ /usr/bin/time -f '=> [%E]' ninja -C build/gcc-O2 -v -j 3
ninja: Entering directory `build/gcc-O2'
[1/2876] gcc -fno-strict-aliasing -Itest/common/common-c.p -Itest/common -I../../test/common -I. -I../.. -fdiagnostics-color=always -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/2876] gcc -fno-strict-aliasing  -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
[2875/2876] g++ -fno-strict-aliasing -Itest/mips/msa/subv-native-cpp.p -Itest/mips/msa -I../../test/mips/msa -I. -I../.. -fdiagnostics-color=always -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
[2876/2876] g++ -fno-strict-aliasing  -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
=> [8:14.22]
+ _test
+ _time meson test -C build/gcc-O2 -q --no-rebuild --print-errorlogs
+ /usr/bin/time -f '=> [%E]' meson test -C build/gcc-O2 -q --no-rebuild --print-errorlogs
▶  715/1438 mlal_lane/vmlal_laneq_s32             FAIL          
▶  716/1438 mlal_lane/vmlal_laneq_s32             FAIL          
 715/1438 arm/neon/mlal_lane/emul/c               ERROR           0.03s   exit status 1
>>> MALLOC_PERTURB_=130 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlal_lane-emul-c
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
../../test/arm/neon/mlal_lane.c:693: assertion failed: r[1] == simde_vld1q_s64(test_vec[1].r)[1] (8895241783635711792 == 8895241783635711792)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶  717/1438 mlal_lane/vmlal_laneq_s32             FAIL          
 716/1438 arm/neon/mlal_lane/native/c             ERROR           0.03s   exit status 1
>>> MALLOC_PERTURB_=8 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlal_lane-native-c
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
../../test/arm/neon/mlal_lane.c:693: assertion failed: r[1] == simde_vld1q_s64(test_vec[1].r)[1] (8895241783635711792 == 8895241783635711792)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
 717/1438 arm/neon/mlal_lane/emul/cpp             ERROR           0.02s   exit status 1
>>> MALLOC_PERTURB_=51 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlal_lane-emul-cpp
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
test/arm/neon/mlal_lane.cpp:693: assertion failed: r[1] == simde_vld1q_s64(test_vec[1].r)[1] (8895241783635711792 == 8895241783635711792)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶  718/1438 mlal_lane/vmlal_laneq_s32             FAIL          
 718/1438 arm/neon/mlal_lane/native/cpp           ERROR           0.03s   exit status 1
>>> MALLOC_PERTURB_=222 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlal_lane-native-cpp
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
test/arm/neon/mlal_lane.cpp:693: assertion failed: r[1] == simde_vld1q_s64(test_vec[1].r)[1] (8895241783635711792 == 8895241783635711792)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶  739/1438 mlsl_lane/vmlsl_laneq_s32             FAIL          
▶  740/1438 mlsl_lane/vmlsl_laneq_s32             FAIL          
 739/1438 arm/neon/mlsl_lane/emul/c               ERROR           0.02s   exit status 1
>>> MALLOC_PERTURB_=199 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlsl_lane-emul-c
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
../../test/arm/neon/mlsl_lane.c:687: assertion failed: r[0] == simde_vld1q_s64(test_vec[0].r)[0] (-7842804104020015808 == -7842804104020015808)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
 740/1438 arm/neon/mlsl_lane/native/c             ERROR           0.03s   exit status 1
>>> MALLOC_PERTURB_=110 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlsl_lane-native-c
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
../../test/arm/neon/mlsl_lane.c:687: assertion failed: r[0] == simde_vld1q_s64(test_vec[0].r)[0] (-7842804104020015808 == -7842804104020015808)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶  741/1438 mlsl_lane/vmlsl_laneq_s32             FAIL          
 741/1438 arm/neon/mlsl_lane/emul/cpp             ERROR           0.03s   exit status 1
>>> MALLOC_PERTURB_=67 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlsl_lane-emul-cpp
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
test/arm/neon/mlsl_lane.cpp:687: assertion failed: r[0] == simde_vld1q_s64(test_vec[0].r)[0] (-7842804104020015808 == -7842804104020015808)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
▶  742/1438 mlsl_lane/vmlsl_laneq_s32             FAIL          
 742/1438 arm/neon/mlsl_lane/native/cpp           ERROR           0.03s   exit status 1
>>> MALLOC_PERTURB_=46 /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/test/arm/neon/mlsl_lane-native-cpp
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stderr:
test/arm/neon/mlsl_lane.cpp:687: assertion failed: r[0] == simde_vld1q_s64(test_vec[0].r)[0] (-7842804104020015808 == -7842804104020015808)
(test program exited with status code 1)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Summary of Failures:
 715/1438 arm/neon/mlal_lane/emul/c               ERROR           0.03s   exit status 1
 716/1438 arm/neon/mlal_lane/native/c             ERROR           0.03s   exit status 1
 717/1438 arm/neon/mlal_lane/emul/cpp             ERROR           0.02s   exit status 1
 718/1438 arm/neon/mlal_lane/native/cpp           ERROR           0.03s   exit status 1
 739/1438 arm/neon/mlsl_lane/emul/c               ERROR           0.02s   exit status 1
 740/1438 arm/neon/mlsl_lane/native/c             ERROR           0.03s   exit status 1
 741/1438 arm/neon/mlsl_lane/emul/cpp             ERROR           0.03s   exit status 1
 742/1438 arm/neon/mlsl_lane/native/cpp           ERROR           0.03s   exit status 1
Ok:                 1430
Expected Fail:      0   
Fail:               8   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
Full log written to /builddir/build/BUILD/simde-c4aa8b492aea70a3a09852c4e0427e07791bb49f/build/gcc-O2/meson-logs/testlog.txt
Command exited with non-zero status 8
=> [0:11.91]

junaruga avatar Jul 25 '21 19:07 junaruga

This is also seen on Debian with gcc 10.2.1-6 on s390x

https://buildd.debian.org/status/fetch.php?pkg=simde&arch=s390x&ver=0.7.3%7E0git20210814191010.3f186a0-1&stamp=1629174074&raw=0

mr-c avatar Aug 17 '21 07:08 mr-c

With SIMDe 0.7.4+ I am no longer able to reproduce this

mr-c avatar May 20 '23 18:05 mr-c