public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, i386]: Do not match (const_int 0) and (const_int 1) with const_wide_int
@ 2016-04-25 19:23 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2016-04-25 19:23 UTC (permalink / raw)
  To: gcc-patches

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

Hello!

(const_int 0) and (const_int 1) are never const_wide_int.

2016-04-25  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/predicates.md (const0_operand): Do not match
    const_wide_int code.
    (const1_operand): 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: 712 bytes --]

Index: predicates.md
===================================================================
--- predicates.md	(revision 235411)
+++ predicates.md	(working copy)
@@ -659,7 +659,7 @@
 
 ;; Match exactly zero.
 (define_predicate "const0_operand"
-  (match_code "const_int,const_wide_int,const_double,const_vector")
+  (match_code "const_int,const_double,const_vector")
 {
   if (mode == VOIDmode)
     mode = GET_MODE (op);
@@ -668,7 +668,7 @@
 
 ;; Match one or a vector with all elements equal to one.
 (define_predicate "const1_operand"
-  (match_code "const_int,const_wide_int,const_double,const_vector")
+  (match_code "const_int,const_double,const_vector")
 {
   if (mode == VOIDmode)
     mode = GET_MODE (op);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-25 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-25 19:23 [PATCH, i386]: Do not match (const_int 0) and (const_int 1) with const_wide_int Uros Bizjak

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