public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/97807] New: ICE in output_move_double, at config/arm/arm.c:19689
@ 2020-11-12  8:42 marxin at gcc dot gnu.org
  2020-11-12  8:42 ` [Bug target/97807] " marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-12  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97807
           Summary: ICE in output_move_double, at config/arm/arm.c:19689
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: ktkachov at gcc dot gnu.org, rdsandiford at googlemail dot com,
                    rearnsha at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux
            Target: arm-linux-gnueabi

The following fails:

$ arm-linux-gnueabi-gcc
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/packed-aligned-1.c
-fno-forward-propagate -Os -mcpu=cortex-a17 -c
during RTL pass: final
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/packed-aligned-1.c:
In function ‘g’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/packed-aligned-1.c:11:1:
internal compiler error: in output_move_double, at config/arm/arm.c:19689
   11 | }
      | ^
0x600cfb output_move_double(rtx_def**, bool, int*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/config/arm/arm.c:19689
0x84b434 final_scan_insn_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:3039
0x84b8ab final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:3152
0x84bb84 final_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:2020
0x84c314 rest_of_handle_final
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:4658
0x84c314 execute
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:4736
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.

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

* [Bug target/97807] ICE in output_move_double, at config/arm/arm.c:19689
  2020-11-12  8:42 [Bug target/97807] New: ICE in output_move_double, at config/arm/arm.c:19689 marxin at gcc dot gnu.org
@ 2020-11-12  8:42 ` marxin at gcc dot gnu.org
  2021-08-17  9:57 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-12  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-11-12
             Status|UNCONFIRMED                 |NEW

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

* [Bug target/97807] ICE in output_move_double, at config/arm/arm.c:19689
  2020-11-12  8:42 [Bug target/97807] New: ICE in output_move_double, at config/arm/arm.c:19689 marxin at gcc dot gnu.org
  2020-11-12  8:42 ` [Bug target/97807] " marxin at gcc dot gnu.org
@ 2021-08-17  9:57 ` marxin at gcc dot gnu.org
  2021-08-17 18:07 ` rearnsha at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-17  9:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Similar ICE hapenning:

$ arm-linux-gnueabi-gcc
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/packed-aligned-1.c
-mcpu=fa726te -fno-tree-coalesce-vars -Os -c
during RTL pass: final
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/packed-aligned-1.c:
In function ‘g’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/packed-aligned-1.c:11:1:
internal compiler error: in output_move_double, at config/arm/arm.c:19771
   11 | }
      | ^
0x61a27b output_move_double(rtx_def**, bool, int*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/config/arm/arm.c:19771
0x8696a4 final_scan_insn_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:2827
0x869b7b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:2940
0x869e44 final_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:1997
0x86a614 rest_of_handle_final
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:4285
0x86a614 execute
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/final.c:4363
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.

May I please ping this?

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

* [Bug target/97807] ICE in output_move_double, at config/arm/arm.c:19689
  2020-11-12  8:42 [Bug target/97807] New: ICE in output_move_double, at config/arm/arm.c:19689 marxin at gcc dot gnu.org
  2020-11-12  8:42 ` [Bug target/97807] " marxin at gcc dot gnu.org
  2021-08-17  9:57 ` marxin at gcc dot gnu.org
@ 2021-08-17 18:07 ` rearnsha at gcc dot gnu.org
  2023-08-23 17:36 ` jamborm at gcc dot gnu.org
  2023-08-24 13:09 ` rearnsha at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2021-08-17 18:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
In Arm mode the compiler restricts 64-bit sized objects to be even/odd pairs of
core registers (ie starting in r0, r2, etc).  However, the ABI for this packed
object is trying to use (r1,r2) for passing the parameter and thus the compiler
generates

(set (reg:DF r1) (mem:DF(ptr)))

during expand.  This is already wrong, but not disastrous, since the compiler
could split this operation later on.  But a later pass turns the (mem:DF (ptr))
into a pre-inc because there's an earlier increment of the address.  We then
hit the assert during output because we can't handle the post-inc and splitting
the load into separate word operations.

There's multiple places where it might be argued this is going wrong:
- during expand (gen_movdi) when we should be splitting the operation into
parts for this case
- during auto-inc when the modified auto-inc pattern is not being correctly
validated
- during register allocation when the register allocation is not being checked
correctly.

I suspect the problem really is in the first of these - at least until we can
show that later passes don't merge things together again without validation.

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

* [Bug target/97807] ICE in output_move_double, at config/arm/arm.c:19689
  2020-11-12  8:42 [Bug target/97807] New: ICE in output_move_double, at config/arm/arm.c:19689 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-08-17 18:07 ` rearnsha at gcc dot gnu.org
@ 2023-08-23 17:36 ` jamborm at gcc dot gnu.org
  2023-08-24 13:09 ` rearnsha at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2023-08-23 17:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I believe our tester has hit this again recently:

arm-linux-gnueabi-gcc
/home/worker/buildworker/tiber-option-juggler/build/gcc/testsuite/gcc.c-torture/compile/packed-aligned-1.c
-mcpu=cortex-r4f -fno-tree-coalesce-vars -O2
--param=hot-bb-frequency-fraction=0

results in an ICE in output_move_double, at config/arm/arm.cc:20091

The backtrace is similar:

0xdeadbeef output_move_double(rtx_def**, bool, int*)
/home/worker/buildworker/tiber-gcc-trunk-arm/build/gcc/config/arm/arm.cc:20091
0xdeadbeef final_scan_insn_1
/home/worker/buildworker/tiber-gcc-trunk-arm/build/gcc/final.cc:2774
0xdeadbeef final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
/home/worker/buildworker/tiber-gcc-trunk-arm/build/gcc/final.cc:2887
0xdeadbeef final_1
/home/worker/buildworker/tiber-gcc-trunk-arm/build/gcc/final.cc:1979
0xdeadbeef rest_of_handle_final
/home/worker/buildworker/tiber-gcc-trunk-arm/build/gcc/final.cc:4240
0xdeadbeef execute
/home/worker/buildworker/tiber-gcc-trunk-arm/build/gcc/final.cc:4318

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

* [Bug target/97807] ICE in output_move_double, at config/arm/arm.c:19689
  2020-11-12  8:42 [Bug target/97807] New: ICE in output_move_double, at config/arm/arm.c:19689 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-08-23 17:36 ` jamborm at gcc dot gnu.org
@ 2023-08-24 13:09 ` rearnsha at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2023-08-24 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
I can reproduce this, but only with -mfloat-abi=soft.

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

end of thread, other threads:[~2023-08-24 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12  8:42 [Bug target/97807] New: ICE in output_move_double, at config/arm/arm.c:19689 marxin at gcc dot gnu.org
2020-11-12  8:42 ` [Bug target/97807] " marxin at gcc dot gnu.org
2021-08-17  9:57 ` marxin at gcc dot gnu.org
2021-08-17 18:07 ` rearnsha at gcc dot gnu.org
2023-08-23 17:36 ` jamborm at gcc dot gnu.org
2023-08-24 13:09 ` rearnsha 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).