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

            Bug ID: 99842
           Summary: MMA test case ICEs using -O3
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bergner at gcc dot gnu.org
  Target Milestone: ---

A reduced test case from Eigen using MMA builtins ICEs using -O3:

bergner@pike:~/gcc/BUGS/$ g++ -w -S -O3 -mcpu=power10 bug.ii 
bug.ii: In function ‘n< <template-parameter-1-1>, <anonymous>, m, <anonymous>,
<anonymous>, <anonymous> >::n(ab) [with ab = af<ag<int, const n<double, -1, -1,
3>, const n<double, -1, -1, 3> >, n<double, -1, 1, 3> >; cg = double; int
<anonymous> = -1; int m = 1; int <anonymous> = 3; int <anonymous> = 0; int
<anonymous> = 1]’:
bug.ii:90:59: error: could not split insn
   90 |   template <typename ab> n(ab p) { n::template ch<ab>(p); }
      |                                                           ^
(insn:TI 28 335 29 (set (reg:OO 32 0 [orig:125 _28 ] [125])
        (unspec:OO [
                (mem:V16QI (plus:DI (reg/f:DI 26 26 [orig:223 MEM <double *>
[(struct ca *)_253] ] [223])
                        (reg:DI 27 27 [222])) [0 MEM <au> [(void *)_25]+0 S16
A8])
                (mem:V16QI (plus:DI (reg/f:DI 26 26 [orig:223 MEM <double *>
[(struct ca *)_253] ] [223])
                        (reg:DI 27 27 [222])) [0 MEM <au> [(void *)_25]+0 S16
A8])
            ] UNSPEC_MMA_ASSEMBLE)) 2080 {*vsx_assemble_pair}
     (expr_list:REG_EQUIV (mem/c:OO (plus:DI (reg/f:DI 31 31 [217])
                (const_int 160 [0xa0])) [6 MEM[(__vector_pair *)_173]+0 S32
A256])
        (nil)))
during RTL pass: final
bug.ii:90:59: internal compiler error: in final_scan_insn_1, at final.c:3092
0x101fa5fb _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/bergner/gcc/gcc-fsf-mainline-base/gcc/rtl-error.c:108
0x10a2b5cb final_scan_insn_1
        /home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:3092
0x10a2c613 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:3171
0x10a2c9b3 final_1
        /home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:2022
0x10a2dc57 rest_of_handle_final
        /home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:4676
0x10a2dc57 execute
        /home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:4754

Reply via email to