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

            Bug ID: 123741
           Summary: [16 regression] ice during GIMPLE pass: slp with
                    -Ofast and -march=znver3
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 63439
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63439&action=edit
f90 source code

>From the Fujitsu Fortran test suite at

https://github.com/fujitsu/compiler-test-suite

source code file trunk/Fortran/0008/0008_0061.f90
does this with recent gcc trunk:

fujitsu $ ~/gcc/results/bin/gfortran -c -w -O3 trunk/Fortran/0008/0008_0061.f90
fujitsu $ ~/gcc/results/bin/gfortran -c -w -Ofast
trunk/Fortran/0008/0008_0061.f90
fujitsu $ ~/gcc/results/bin/gfortran -c -w -Ofast -march=znver3
trunk/Fortran/0008/0008_0061.f90
during GIMPLE pass: slp
trunk/Fortran/0008/0008_0061.f90:15:1:

   15 | subroutine s2(i,nn2,nn4)
      | ^~~~~~~~~~~~~
internal compiler error: Segmentation fault
0x1fc2797 internal_error
       
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0xccb799 ???
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/toplev.cc:325
0xfaf15e vectorizable_store
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/tree-vect-stmts.cc:8698
0xfb58e2 vect_transform_stmt
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/tree-vect-stmts.cc:13364
0x1023c0e vect_schedule_slp_node
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/tree-vect-slp.cc:12098
0x101165f vect_schedule_scc
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/tree-vect-slp.cc:12347

gfortran 15.2.0 seems to work:

fujitsu $ ~/gcc/results.15.2.0/bin/gfortran -c -w -Ofast -march=znver3
trunk/Fortran/0008/0008_0061.f90
fujitsu $

The earliest gfortran 16 compiler I have is from 20251222:

ujitsu $ ~/gcc/results.20251222.asan.ubsan/bin/gfortran -c -w -Ofast
-march=znver3 trunk/Fortran/0008/0008_0061.f90
during GIMPLE pass: slp
trunk/Fortran/0008/0008_0061.f90:15:1:

   15 | subroutine s2(i,nn2,nn4)
      | ^~~~~~~~~~~~~
internal compiler error: Segmentation fault
0x21f1ee7 internal_error(char const*, ...)
        ../../trunk/gcc/diagnostic-global-context.cc:787
0xca7637 crash_signal
        ../../trunk/gcc/toplev.cc:325
0xfed5d5 vectorizable_store
        ../../trunk/gcc/tree-vect-stmts.cc:8658

The git hash on that is g:94010a2af914ade3

Reply via email to