public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/106748] New: ICE in ix86_avx256_split_vector_move_misalign, at config/i386/i386-expand.cc:743 since r13-2111-g6910cad55ffc330d
Date: Fri, 26 Aug 2022 07:31:28 +0000	[thread overview]
Message-ID: <bug-106748-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 106748
           Summary: ICE in ix86_avx256_split_vector_move_misalign, at
                    config/i386/i386-expand.cc:743 since
                    r13-2111-g6910cad55ffc330d
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: lingling.kong7 at gmail dot com
  Target Milestone: ---
              Host: x86_64-linux-gnu

The following crashes:

$ cat test_passing_unions.i
typedef __bf16 __m256bf16 __attribute__((__vector_size__(32)));
typedef struct {
  __m256bf16 _m256bf16[1];
} YMM_T;

struct {
  YMM_T ymm0;
} fregs;

__m256bf16 do_test_u3b_0_0;
int do_test_i;

void
do_test() { (&fregs.ymm0)[do_test_i]._m256bf16[0] = do_test_u3b_0_0; }

$ gcc test_passing_unions.i -fpack-struct -mavx256-split-unaligned-store
-mavx512vp2intersect
during RTL pass: expand
test_passing_unions.i: In function ‘do_test’:
test_passing_unions.i:14:51: internal compiler error: in
ix86_avx256_split_vector_move_misalign, at config/i386/i386-expand.cc:743
   14 | do_test() { (&fregs.ymm0)[do_test_i]._m256bf16[0] = do_test_u3b_0_0; }
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
0x82f27b ix86_avx256_split_vector_move_misalign
        /home/marxin/Programming/gcc/gcc/config/i386/i386-expand.cc:743
0x82f27b ix86_expand_vector_move_misalign(machine_mode, rtx_def**)
        /home/marxin/Programming/gcc/gcc/config/i386/i386-expand.cc:855
0x13e1a91 ix86_expand_vector_move(machine_mode, rtx_def**)
        /home/marxin/Programming/gcc/gcc/config/i386/i386-expand.cc:654
0x19002ea gen_movv16bf(rtx_def*, rtx_def*)
        /home/marxin/Programming/gcc/gcc/config/i386/sse.md:1314
0xb95ee2 rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*>(rtx_def*,
rtx_def*) const
        /home/marxin/Programming/gcc/gcc/recog.h:407
0xb95ee2 emit_move_ccmode
        /home/marxin/Programming/gcc/gcc/expr.cc:3871
0xb95ee2 emit_move_insn_1(rtx_def*, rtx_def*)
        /home/marxin/Programming/gcc/gcc/expr.cc:4016
0xb9630f emit_move_insn(rtx_def*, rtx_def*)
        /home/marxin/Programming/gcc/gcc/expr.cc:4167
0xb9f206 store_expr(tree_node*, rtx_def*, int, bool, bool)
        /home/marxin/Programming/gcc/gcc/expr.cc:6342
0xba1177 expand_assignment(tree_node*, tree_node*, bool)
        /home/marxin/Programming/gcc/gcc/expr.cc:5736
0xa60c80 expand_gimple_stmt_1
        /home/marxin/Programming/gcc/gcc/cfgexpand.cc:3946
0xa60c80 expand_gimple_stmt
        /home/marxin/Programming/gcc/gcc/cfgexpand.cc:4044
0xa67944 expand_gimple_basic_block
        /home/marxin/Programming/gcc/gcc/cfgexpand.cc:6096
0xa695c7 execute
        /home/marxin/Programming/gcc/gcc/cfgexpand.cc:6822
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2022-08-26  7:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26  7:31 marxin at gcc dot gnu.org [this message]
2022-08-26  7:32 ` [Bug target/106748] " marxin at gcc dot gnu.org
2022-08-26 17:38 ` hjl.tools at gmail dot com
2022-08-29 14:46 ` [Bug target/106748] [13 Regression] " cvs-commit at gcc dot gnu.org
2022-08-29 14:58 ` hjl.tools at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-106748-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).