public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651
@ 2021-05-11 12:33 marxin at gcc dot gnu.org
  2021-05-14  7:32 ` [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776 marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-11 12:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100518
           Summary: ICE in copy_to_mode_reg, at explow.c:651
           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
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: aarch64-linux-gnu

It's likely a recent regression:

$ cat stringop.i
int unsigned_range_min, unsigned_range_max, a11___trans_tmp_1;

void a11() {
  a11___trans_tmp_1 = unsigned_range_max < unsigned_range_min;
  __builtin_memset((char *)1, 0, a11___trans_tmp_1);
}

$ aarch64-linux-gnu-gcc stringop.i -mabi=ilp32 -mstrict-align -O2 -c
during RTL pass: expand
stringop.i: In function ‘a11’:
stringop.i:5:3: internal compiler error: in copy_to_mode_reg, at explow.c:651
    5 |   __builtin_memset((char *)1, 0, a11___trans_tmp_1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x684fe3 copy_to_mode_reg(machine_mode, rtx_def*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/explow.c:651
0x7b593f try_store_by_multiple_pieces(rtx_def*, rtx_def*, unsigned int,
unsigned long, unsigned long, rtx_def*, char, unsigned int)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/builtins.c:6758
0x8ef134 clear_storage_hints(rtx_def*, rtx_def*, block_op_methods, unsigned
int, long, unsigned long, unsigned long, unsigned long, unsigned int)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/expr.c:3201
0x7b620e expand_builtin_memset_args
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/builtins.c:6949
0x7c61ee expand_builtin_memset
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/builtins.c:6665
0x7c61ee expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/builtins.c:10167
0x8e657f expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/expr.c:11458
0x7e89aa expand_expr
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/expr.h:301
0x7e89aa expand_call_stmt
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/cfgexpand.c:2843
0x7e89aa expand_gimple_stmt_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/cfgexpand.c:3847
0x7e89aa expand_gimple_stmt
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/cfgexpand.c:4011
0x7e8d1e expand_gimple_tailcall
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/cfgexpand.c:4057
0x7ee571 expand_gimple_basic_block
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/cfgexpand.c:6025
0x7ee571 execute
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-aarch64/build/gcc/cfgexpand.c:6732
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] 8+ messages in thread

* [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776
  2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
@ 2021-05-14  7:32 ` marxin at gcc dot gnu.org
  2021-05-17 15:12 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-14  7:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in copy_to_mode_reg     |[12 Regression] ICE in
                   |with aarch64 ILP32 and      |copy_to_mode_reg with
                   |memset with -mstrict-align  |aarch64 ILP32 and memset
                   |-O2                         |with -mstrict-align -O2
                   |                            |since
                   |                            |r12-397-gda9e6e63d1ae22e530
                   |                            |ec7baf59f6ed028bf05776
      Known to work|                            |11.1.0
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-05-14
      Known to fail|                            |12.0
                 CC|                            |aoliva at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776.

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

* [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776
  2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
  2021-05-14  7:32 ` [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776 marxin at gcc dot gnu.org
@ 2021-05-17 15:12 ` rguenth at gcc dot gnu.org
  2021-09-08  7:56 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-17 15:12 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
            Version|11.0                        |12.0

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

* [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776
  2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
  2021-05-14  7:32 ` [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776 marxin at gcc dot gnu.org
  2021-05-17 15:12 ` rguenth at gcc dot gnu.org
@ 2021-09-08  7:56 ` marxin at gcc dot gnu.org
  2021-11-19 13:13 ` aoliva at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-08  7:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
@Alexander: Can you please take a look?

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

* [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776
  2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-09-08  7:56 ` marxin at gcc dot gnu.org
@ 2021-11-19 13:13 ` aoliva at gcc dot gnu.org
  2021-12-09  5:08 ` aoliva at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu.org @ 2021-11-19 13:13 UTC (permalink / raw)
  To: gcc-bugs

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |aoliva at gcc dot gnu.org

--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Mine

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

* [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776
  2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-11-19 13:13 ` aoliva at gcc dot gnu.org
@ 2021-12-09  5:08 ` aoliva at gcc dot gnu.org
  2021-12-15  5:26 ` cvs-commit at gcc dot gnu.org
  2021-12-15  5:27 ` aoliva at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu.org @ 2021-12-09  5:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Created attachment 51955
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51955&action=edit
candidate patch under testing

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

* [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776
  2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-12-09  5:08 ` aoliva at gcc dot gnu.org
@ 2021-12-15  5:26 ` cvs-commit at gcc dot gnu.org
  2021-12-15  5:27 ` aoliva at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-12-15  5:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alexandre Oliva <aoliva@gcc.gnu.org>:

https://gcc.gnu.org/g:71cc9b8c39148d19a8043b74ca8b6b4e8b8072ca

commit r12-5984-g71cc9b8c39148d19a8043b74ca8b6b4e8b8072ca
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Dec 15 02:22:34 2021 -0300

    [PR100518] store by mult pieces: keep addr in Pmode

    The conversion of a MEM address to ptr_mode in
    try_store_by_multiple_pieces was misguided: copy_addr_to_reg expects
    Pmode for addresses.


    for  gcc/ChangeLog

            PR target/100518
            * builtins.c (try_store_by_multiple_pieces): Drop address
            conversion to ptr_mode.

    for  gcc/testsuite/ChangeLog

            PR target/100518
            * gcc.target/aarch64/pr100518.c: New.

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

* [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776
  2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-12-15  5:26 ` cvs-commit at gcc dot gnu.org
@ 2021-12-15  5:27 ` aoliva at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu.org @ 2021-12-15  5:27 UTC (permalink / raw)
  To: gcc-bugs

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Fixed

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

end of thread, other threads:[~2021-12-15  5:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 12:33 [Bug target/100518] New: ICE in copy_to_mode_reg, at explow.c:651 marxin at gcc dot gnu.org
2021-05-14  7:32 ` [Bug target/100518] [12 Regression] ICE in copy_to_mode_reg with aarch64 ILP32 and memset with -mstrict-align -O2 since r12-397-gda9e6e63d1ae22e530ec7baf59f6ed028bf05776 marxin at gcc dot gnu.org
2021-05-17 15:12 ` rguenth at gcc dot gnu.org
2021-09-08  7:56 ` marxin at gcc dot gnu.org
2021-11-19 13:13 ` aoliva at gcc dot gnu.org
2021-12-09  5:08 ` aoliva at gcc dot gnu.org
2021-12-15  5:26 ` cvs-commit at gcc dot gnu.org
2021-12-15  5:27 ` aoliva 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).