public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/99041] New: combine creates invalid address which ICEs in decompose_normal_address
@ 2021-02-09 18:51 bergner at gcc dot gnu.org
  2021-02-09 18:52 ` [Bug rtl-optimization/99041] " bergner at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bergner at gcc dot gnu.org @ 2021-02-09 18:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99041
           Summary: combine creates invalid address which ICEs in
                    decompose_normal_address
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bergner at gcc dot gnu.org
  Target Milestone: ---

Created attachment 50153
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50153&action=edit
creduced test case

For a reduced test case from the Eigen library with some MMA builtin usage, we
are ICEing in decompose_normal_address():

bergner@pike:~/gcc/BUGS/MMA/CHIP$ xg++ -B/path/to/gcc -S -mcpu=power10
-std=c++03 -nostdinc -fno-check-new -fno-common -fstrict-aliasing -ansi -O2 -w
polynomialsolver.ii 
during RTL pass: reload
polynomialsolver.ii: In function ‘void test_polynomialsolver()’:
polynomialsolver.ii:78:67: internal compiler error: in
decompose_normal_address, at rtlanal.c:6754
   78 |  void test_polynomialsolver() { polynomialsolver< double, 5 >(5); }
      |                                                                   ^
0x10ecf3cf decompose_normal_address
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/rtlanal.c:6754
0x10ecf3cf decompose_address(address_info*, rtx_def**, machine_mode, unsigned
char, rtx_code)
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/rtlanal.c:6787
0x10cda44f process_address_1
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:3460
0x10cdd80b process_address
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:3734
0x10cdd80b curr_insn_transform
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:4049
0x10ce497f lra_constraints(bool)
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra-constraints.c:5138
0x10cc560f lra(_IO_FILE*)
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/lra.c:2336
0x10c535bb do_reload
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/ira.c:5821
0x10c535bb execute
        /home/bergner/gcc/gcc-fsf-mainline-pr98872/gcc/ira.c:6007
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

The invalid address comes from:

(insn 127 126 128 3 (set (reg:OO 138 [ _41 ])
        (unspec:OO [
                (mem:V16QI (reg:DI 149 [ ivtmp.49 ]) [0 MEM <ax> [(void
*)_75]+0 S16 A8])
                (mem:V16QI (plus:DI (plus:DI (reg:DI 142 [ _63 ])
                            (reg:DI 149 [ ivtmp.49 ]))
                        (reg:DI 197)) [0 MEM <ax> [(void *)_24 + _16 * 1]+0 S16
A8])
            ] UNSPEC_MMA_ASSEMBLE)) 2074 {*mma_assemble_pair}
     (nil))

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

end of thread, other threads:[~2021-03-10 23:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 18:51 [Bug rtl-optimization/99041] New: combine creates invalid address which ICEs in decompose_normal_address bergner at gcc dot gnu.org
2021-02-09 18:52 ` [Bug rtl-optimization/99041] " bergner at gcc dot gnu.org
2021-02-09 19:02 ` jakub at gcc dot gnu.org
2021-02-09 19:13 ` bergner at gcc dot gnu.org
2021-02-09 20:52 ` segher at gcc dot gnu.org
2021-02-09 20:55 ` segher at gcc dot gnu.org
2021-02-10 20:51 ` [Bug target/99041] " bergner at gcc dot gnu.org
2021-02-10 21:27 ` segher at gcc dot gnu.org
2021-02-11 20:16 ` cvs-commit at gcc dot gnu.org
2021-02-11 20:24 ` bergner at gcc dot gnu.org
2021-02-11 21:07 ` bergner at gcc dot gnu.org
2021-03-10 23:48 ` cvs-commit at gcc dot gnu.org
2021-03-10 23:50 ` bergner at gcc dot gnu.org

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).