public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/115397] New: [15 Regression]  ICE 'during RTL pass: split1' on numpy-1.26.4 i686-linux '-fPIC -mavx512f'
@ 2024-06-08 14:23 slyfox at gcc dot gnu.org
  2024-06-08 14:45 ` [Bug target/115397] " slyfox at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: slyfox at gcc dot gnu.org @ 2024-06-08 14:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115397

            Bug ID: 115397
           Summary: [15 Regression]  ICE 'during RTL pass: split1' on
                    numpy-1.26.4 i686-linux '-fPIC -mavx512f'
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

Noticed on gcc master from r15-1111-ge22b7f741ab54f today. There numpy on
i686-linux ICEs. Extracted example:

// $ cat bug.c.c
int LONG_divide_AVX512F_dimensions_0;
void npy_set_floatstatus_overflow();
void LONG_divide_AVX512F() {
  long *src;
  int raise_err = 0;
  for (; LONG_divide_AVX512F_dimensions_0;
       --LONG_divide_AVX512F_dimensions_0, ++src) {
    long a = *src;
    if (a)
      raise_err = 1;
  }
  if (raise_err)
    npy_set_floatstatus_overflow();
}

Crashing:

$ gcc -std=c99 -fPIC   -mavx512f -c bug.c.c -o bug.o -O3
during RTL pass: split1
bug.c.c: In function 'LONG_divide_AVX512F':
bug.c.c:14:1: internal compiler error: Segmentation fault
   14 | }
      | ^
0x9a3deba diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, char**, diagnostic_t)
        ???:0
0x9a3e33c internal_error(char const*, ...)
        ???:0
0x898434a crash_signal(int)
        ???:0
0x8329133 get_pool_constant(rtx_def const*) [clone .cold]
        ???:0
0x8dbcd04 ix86_broadcast_from_constant(machine_mode, rtx_def*)
        ???:0
0x8ddee5c ix86_expand_ternlog(machine_mode, rtx_def*, rtx_def*, rtx_def*, int,
rtx_def*)
        ???:0
0x937cdc7 gen_split_1359(rtx_insn*, rtx_def**)
        ???:0
0x95a1992 split_70(rtx_def*, rtx_insn*) [clone .isra.0]
        ???:0
0x977abbb split_73(rtx_def*, rtx_insn*)
        ???:0
0x85793de try_split(rtx_def*, rtx_insn*, int)
        ???:0
0x88e8db6 split_insn(rtx_insn*)
        ???:0
0x88ee33e split_all_insns()
        ???:0
0x88ee3f7 (anonymous namespace)::pass_split_all_insns::execute(function*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ gcc -v
Using built-in specs.
COLLECT_GCC=/<<NIX>>/gfortran-15.0.0/bin/gcc
COLLECT_LTO_WRAPPER=/<<NIX>>/gfortran-15.0.0/libexec/gcc/i686-unknown-linux-gnu/15.0.0/lto-wrapper
Target: i686-unknown-linux-gnu
Configured with: ../source/configure --prefix=/<<NIX>>/gfortran-15.0.0
--with-gmp-include=/<<NIX>>/gmp-6.3.0-dev/include
--with-gmp-lib=/<<NIX>>/gmp-6.3.0/lib
--with-mpfr-include=/<<NIX>>/mpfr-4.2.1-dev/include
--with-mpfr-lib=/<<NIX>>/mpfr-4.2.1/lib --with-mpc=/<<NIX>>/libmpc-1.3.1
--with-native-system-header-dir=/<<NIX>>/glibc-2.39-52-dev/include
--with-build-sysroot=/
--with-gxx-include-dir=/<<NIX>>/gfortran-15.0.0/include/c++/15.0.0/
--program-prefix= --enable-lto --disable-libstdcxx-pch
--without-included-gettext --with-system-zlib --enable-checking=release
--enable-static --enable-languages=fortran --disable-multilib --enable-plugin
--disable-libcc1 --with-isl=/<<NIX>>/isl-0.20 --with-arch=i686
--build=i686-unknown-linux-gnu --host=i686-unknown-linux-gnu
--target=i686-unknown-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.0.0 99999999 (experimental) (GCC)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-06-17  8:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-08 14:23 [Bug target/115397] New: [15 Regression] ICE 'during RTL pass: split1' on numpy-1.26.4 i686-linux '-fPIC -mavx512f' slyfox at gcc dot gnu.org
2024-06-08 14:45 ` [Bug target/115397] " slyfox at gcc dot gnu.org
2024-06-08 15:16 ` slyfox at gcc dot gnu.org
2024-06-08 17:19 ` pinskia at gcc dot gnu.org
2024-06-08 17:20 ` pinskia at gcc dot gnu.org
2024-06-08 21:03 ` [Bug target/115397] [15 Regression] ICE 'during RTL pass: split1' on numpy-1.26.4 i686-linux '-fPIC -mavx512f' since r15-1100-gec985bc97a0157 roger at nextmovesoftware dot com
2024-06-08 23:18 ` slyfox at gcc dot gnu.org
2024-06-09 16:31 ` pinskia at gcc dot gnu.org
2024-06-11  8:35 ` cvs-commit at gcc dot gnu.org
2024-06-17  8:45 ` roger at nextmovesoftware dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).