public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Uros Bizjak <ubizjak@gmail.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: [PATCH, i386]: Fix PR82098, ICE in elimination_costs_in_insn
Date: Mon, 04 Sep 2017 18:30:00 -0000	[thread overview]
Message-ID: <CAFULd4ZSMkTeBu=FE0iHmAp_5Ot0WmPzVD0e03-T4MLQt8ZZLQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

2017-09-04  Uros Bizjak  <ubizjak@gmail.com>

    PR target/82098
    * config/i386/i386.md (*<btsc><mode>_mask): Add
    TARGET_USE_BT to insn constraint.
    (*btr<mode>_mask): Ditto.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.

[-- Attachment #2: r.diff.txt --]
[-- Type: text/plain, Size: 1040 bytes --]

Index: config/i386/i386.md
===================================================================
--- config/i386/i386.md	(revision 251662)
+++ config/i386/i386.md	(working copy)
@@ -11033,8 +11033,9 @@
 		(match_operand:SI 2 "const_int_operand")) 0))
 	  (match_operand:SWI48 3 "register_operand")))
    (clobber (reg:CC FLAGS_REG))]
-  "(INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
-   == GET_MODE_BITSIZE (<MODE>mode)-1
+  "TARGET_USE_BT
+   && (INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
+      == GET_MODE_BITSIZE (<MODE>mode)-1
    && can_create_pseudo_p ()"
   "#"
   "&& 1"
@@ -11073,8 +11074,9 @@
 		(match_operand:SI 2 "const_int_operand")) 0))
 	  (match_operand:SWI48 3 "register_operand")))
    (clobber (reg:CC FLAGS_REG))]
-  "(INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
-   == GET_MODE_BITSIZE (<MODE>mode)-1
+  "TARGET_USE_BT
+   && (INTVAL (operands[2]) & (GET_MODE_BITSIZE (<MODE>mode)-1))
+      == GET_MODE_BITSIZE (<MODE>mode)-1
    && can_create_pseudo_p ()"
   "#"
   "&& 1"

                 reply	other threads:[~2017-09-04 18:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAFULd4ZSMkTeBu=FE0iHmAp_5Ot0WmPzVD0e03-T4MLQt8ZZLQ@mail.gmail.com' \
    --to=ubizjak@gmail.com \
    --cc=gcc-patches@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).