public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/103463] [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -Os -fno-tree-dominator-opts -fno-tree-vrp
Date: Tue, 30 Nov 2021 23:39:17 +0000	[thread overview]
Message-ID: <bug-103463-4-bhuihrIb21@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103463-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

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

commit r12-5647-gf5e2f2d0ad1b293c534338a72094926313e12039
Author: liuhongt <hongtao.liu@intel.com>
Date:   Tue Nov 30 16:24:39 2021 +0800

    Fix ICE in ix86_attr_length_immediate_default.

    ix86_attr_length_immediate_default assume TYPE ishift only have 1
    constant operand,
    but *x86_64_shld_1/*x86_shld_1/*x86_64_shrd_1/*x86_shrd_1 has 2, with
    condition: INTVAL (operands[3]) == 32 - INTVAL (operands[2]) or
    INTVAL (operands[3]) == 64 - INTVAL (operands[2]), and hit
    gcc_assert.
    Explicitly set_attr length_immediate for these patterns.

    gcc/ChangeLog:

            PR target/103463
            PR target/103484
            * config/i386/i386.md (*x86_64_shld_1): Set_attr
            length_immediate to 1.
            (*x86_shld_1): Ditto.
            (*x86_64_shrd_1): Ditto.
            (*x86_shrd_1): Ditto.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr103463.c: New test.
            * gcc.target/i386/pr103463-2.c: New test.

  parent reply	other threads:[~2021-11-30 23:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-29  7:22 [Bug target/103463] New: " zsojka at seznam dot cz
2021-11-29  7:37 ` [Bug target/103463] " pinskia at gcc dot gnu.org
2021-11-29  7:43 ` crazylht at gmail dot com
2021-11-29  8:58 ` marxin at gcc dot gnu.org
2021-11-29  9:46 ` cvs-commit at gcc dot gnu.org
2021-11-30  7:44 ` crazylht at gmail dot com
2021-11-30  7:58 ` crazylht at gmail dot com
2021-11-30  8:19 ` crazylht at gmail dot com
2021-11-30 23:39 ` cvs-commit at gcc dot gnu.org [this message]
2021-12-01  0:51 ` crazylht at gmail dot com
2021-12-03 10:14 ` pinskia at gcc dot gnu.org
2021-12-04 21:44 ` pinskia 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-103463-4-bhuihrIb21@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).