public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101742] New: [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002
@ 2021-08-03  7:50 marxin at gcc dot gnu.org
  2021-08-03  7:51 ` [Bug target/101742] " marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-03  7:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101742
           Summary: [12 Regression] ICE in expand_mult, at expmed.c:3585
                    since r12-2666-g29f0e955c97da002
           Product: gcc
           Version: 12.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: hjl.tools at gmail dot com
  Target Milestone: ---
              Host: x86_64-linux-gnu

The following fails:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/pr101505.c
-mtune=nano-x2 -O3 -c
during RTL pass: expand
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/pr101505.c: In function
‘w7.simdclone.4’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/pr101505.c:15:10:
internal compiler error: in expand_mult, at expmed.c:3585
   15 |   return xb;
      |          ^~
0x69b962 expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, bool)
        /home/marxin/Programming/gcc/gcc/expmed.c:3585
0x9b6328 builtin_memset_gen_str
        /home/marxin/Programming/gcc/gcc/builtins.c:4124
0xb0c816 op_by_pieces_d::run()
        /home/marxin/Programming/gcc/gcc/expr.c:1252
0xb0ce2a store_by_pieces(rtx_def*, unsigned long, rtx_def* (*)(void*, void*,
long, fixed_size_mode), void*, unsigned int, bool, memop_ret)
        /home/marxin/Programming/gcc/gcc/expr.c:1579
0xb0ce2a store_by_pieces(rtx_def*, unsigned long, rtx_def* (*)(void*, void*,
long, fixed_size_mode), void*, unsigned int, bool, memop_ret)
        /home/marxin/Programming/gcc/gcc/expr.c:1561
0x9b882e expand_builtin_memset_args
        /home/marxin/Programming/gcc/gcc/builtins.c:4383
0x9c2f2d expand_builtin_memset
        /home/marxin/Programming/gcc/gcc/builtins.c:4146
0x9c2f2d expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        /home/marxin/Programming/gcc/gcc/builtins.c:7647
0xb1b9fe expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /home/marxin/Programming/gcc/gcc/expr.c:11508
0x9ebfdf expand_expr
        /home/marxin/Programming/gcc/gcc/expr.h:301
0x9ebfdf expand_call_stmt
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:2846
0x9ebfdf expand_gimple_stmt_1
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:3879
0x9ebfdf expand_gimple_stmt
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:4043
0x9f20e0 expand_gimple_basic_block
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:6085
0x9f4057 execute
        /home/marxin/Programming/gcc/gcc/cfgexpand.c:6811
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/101742] [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002
  2021-08-03  7:50 [Bug target/101742] New: [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002 marxin at gcc dot gnu.org
@ 2021-08-03  7:51 ` marxin at gcc dot gnu.org
  2021-08-03 13:57 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-03  7:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-08-03
   Target Milestone|---                         |12.0
      Known to fail|                            |12.0
             Status|UNCONFIRMED                 |NEW
           Priority|P3                          |P1
     Ever confirmed|0                           |1
      Known to work|                            |11.2.0

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

* [Bug target/101742] [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002
  2021-08-03  7:50 [Bug target/101742] New: [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002 marxin at gcc dot gnu.org
  2021-08-03  7:51 ` [Bug target/101742] " marxin at gcc dot gnu.org
@ 2021-08-03 13:57 ` hjl.tools at gmail dot com
  2021-08-04 13:25 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-03 13:57 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

https://gcc.gnu.org/pipermail/gcc-patches/2021-August/576601.html

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

* [Bug target/101742] [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002
  2021-08-03  7:50 [Bug target/101742] New: [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002 marxin at gcc dot gnu.org
  2021-08-03  7:51 ` [Bug target/101742] " marxin at gcc dot gnu.org
  2021-08-03 13:57 ` hjl.tools at gmail dot com
@ 2021-08-04 13:25 ` cvs-commit at gcc dot gnu.org
  2021-08-04 20:02 ` cvs-commit at gcc dot gnu.org
  2021-08-04 20:06 ` hjl.tools at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-04 13:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:f2e5d2717d9e249edc5e0d45e49e4f9ef81fc694

commit r12-2732-gf2e5d2717d9e249edc5e0d45e49e4f9ef81fc694
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 3 06:17:22 2021 -0700

    by_pieces: Pass MAX_PIECES to op_by_pieces_d

    Pass MAX_PIECES to op_by_pieces_d::op_by_pieces_d for move, store and
    compare.

            PR target/101742
            * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
            argument to set m_max_size.
            (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
            (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
            (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.

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

* [Bug target/101742] [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002
  2021-08-03  7:50 [Bug target/101742] New: [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-08-04 13:25 ` cvs-commit at gcc dot gnu.org
@ 2021-08-04 20:02 ` cvs-commit at gcc dot gnu.org
  2021-08-04 20:06 ` hjl.tools at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-04 20:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:5738a64f8b3cf132b88b39af84b9f5f5a9a1554c

commit r12-2748-g5738a64f8b3cf132b88b39af84b9f5f5a9a1554c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 3 06:17:22 2021 -0700

    x86: Update STORE_MAX_PIECES

    Update STORE_MAX_PIECES to allow 16/32/64 bytes only if inter-unit move
    is enabled since vec_duplicate enabled by inter-unit move is used to
    implement store_by_pieces of 16/32/64 bytes.

    gcc/

            PR target/101742
            * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
            only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.

    gcc/testsuite/

            PR target/101742
            * gcc.target/i386/pr101742a.c: New test.
            * gcc.target/i386/pr101742b.c: Likewise.

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

* [Bug target/101742] [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002
  2021-08-03  7:50 [Bug target/101742] New: [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-08-04 20:02 ` cvs-commit at gcc dot gnu.org
@ 2021-08-04 20:06 ` hjl.tools at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-04 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.

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

end of thread, other threads:[~2021-08-04 20:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03  7:50 [Bug target/101742] New: [12 Regression] ICE in expand_mult, at expmed.c:3585 since r12-2666-g29f0e955c97da002 marxin at gcc dot gnu.org
2021-08-03  7:51 ` [Bug target/101742] " marxin at gcc dot gnu.org
2021-08-03 13:57 ` hjl.tools at gmail dot com
2021-08-04 13:25 ` cvs-commit at gcc dot gnu.org
2021-08-04 20:02 ` cvs-commit at gcc dot gnu.org
2021-08-04 20:06 ` hjl.tools at gmail dot com

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