public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/107057] [10/11/12/13 Regression] ICE in extract_constrain_insn, at recog.cc:2692
Date: Wed, 19 Oct 2022 06:28:28 +0000	[thread overview]
Message-ID: <bug-107057-4-6Ma42CDAKi@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-107057-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> ---
It lookes like after replace equiv value, the pattern turns into

3482(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ])
3483        (vec_concat:V2DF (const_double:DF 1.0e+0 [0x0.8p+1])
3484            (const_double:DF 1.0e+0 [0x0.8p+1]))) "/:7:10 5956
{vec_concatv2df}
3485     (expr_list:REG_EQUAL (const_vector:V2DF [
3486                (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2
3487            ])
3488        (nil)))


and in op1 and op2(the same as op1) is forced to mem separately with 


3734(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ])
3735        (vec_concat:V2DF (mem/u/c:DF (reg:DI 330) [0  S8 A64])
3736            (const_double:DF 1.0e+0 [0x0.8p+1]))) "":7:10 5956
{vec_concatv2df}
3737     (expr_list:REG_EQUAL (const_vector:V2DF [
3738                (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2
3739            ])
3740        (nil)))
3741(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ])
3742        (vec_concat:V2DF (mem/u/c:DF (reg:DI 330) [0  S8 A64])
3743            (mem/u/c:DF (symbol_ref/u:DI ("*.LC0") [flags 0x2]) [0  S8
A64]))) "test.c":7:10 5956 {vec_concatv2df}
3744     (expr_list:REG_EQUAL (const_vector:V2DF [
3745                (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2
3746            ])
3747        (nil)))
3755(insn 76 67 101 5 (set (reg/v:V2DF 108 [ x ])
3756        (vec_concat:V2DF (mem/u/c:DF (reg:DI 330) [0  S8 A64])
3757            (mem/u/c:DF (reg:DI 331) [0  S8 A64]))) "test.c":7:10 5956
{vec_concatv2df}
3758     (expr_list:REG_EQUAL (const_vector:V2DF [
3759                (const_double:DF 1.0e+0 [0x0.8p+1]) repeated x2
3760            ])
3761        (nil)))


but gcc do set goal_alt_win[2] as false, but ignored it since below codes
thought it's already matched before.

4507      /* Operands that match previous ones have already been handled.  */
4508=>    if (goal_alt_matches[i] >= 0)
4509        continue;

  parent reply	other threads:[~2022-10-19  6:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27 16:25 [Bug c/107057] New: " gscfq@t-online.de
2022-09-27 16:30 ` [Bug target/107057] " pinskia at gcc dot gnu.org
2022-09-29  8:00 ` rguenth at gcc dot gnu.org
2022-09-29 11:41 ` marxin at gcc dot gnu.org
2022-09-29 12:52 ` ubizjak at gmail dot com
2022-09-29 15:01 ` [Bug rtl-optimization/107057] " ubizjak at gmail dot com
2022-10-19  6:28 ` crazylht at gmail dot com [this message]
2022-10-25  9:15 ` crazylht at gmail dot com
2022-10-26  2:16 ` crazylht at gmail dot com
2022-10-26  8:46 ` crazylht at gmail dot com
2022-10-26  8:47 ` crazylht at gmail dot com
2022-10-28  8:38 ` ubizjak at gmail dot com
2022-11-01  5:34 ` cvs-commit at gcc dot gnu.org
2022-11-01  5:38 ` crazylht at gmail dot com
2023-07-07 10:44 ` [Bug rtl-optimization/107057] [11/12 " rguenth at gcc dot gnu.org
2023-11-30 10:43 ` liuhongt at gcc dot gnu.org

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-107057-4-6Ma42CDAKi@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).