public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1248] i386: Clean up constraints.md
@ 2021-06-06 20:10 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2021-06-06 20:10 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:09bf5279e87a15f658e37c7f873ccc40e5ef2576

commit r12-1248-g09bf5279e87a15f658e37c7f873ccc40e5ef2576
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Sun Jun 6 22:07:05 2021 +0200

    i386: Clean up constraints.md
    
    No functional changes.
    
    2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
    
    gcc/
            * config/i386/constraints.md (Bs):
            Remove boolean operators from match_test RTX.
            (Bw): Ditto.
            (L): Ditto.
            (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
            (Wz): Ditto.

Diff:
---
 gcc/config/i386/constraints.md | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/gcc/config/i386/constraints.md b/gcc/config/i386/constraints.md
index eaa582d2055..485e3f5b2cf 100644
--- a/gcc/config/i386/constraints.md
+++ b/gcc/config/i386/constraints.md
@@ -198,7 +198,8 @@
   (ior (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
 	    (not (match_test "TARGET_X32"))
 	    (match_operand 0 "sibcall_memory_operand"))
-       (and (match_test "TARGET_X32 && Pmode == DImode")
+       (and (match_test "TARGET_X32")
+	    (match_test "Pmode == DImode")
 	    (match_operand 0 "GOT_memory_operand"))))
 
 (define_constraint "Bw"
@@ -206,7 +207,8 @@
   (ior (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
 	    (not (match_test "TARGET_X32"))
 	    (match_operand 0 "memory_operand"))
-       (and (match_test "TARGET_X32 && Pmode == DImode")
+       (and (match_test "TARGET_X32")
+	    (match_test "Pmode == DImode")
 	    (match_operand 0 "GOT_memory_operand"))))
 
 (define_constraint "Bz"
@@ -239,8 +241,9 @@
   "@code{0xFF}, @code{0xFFFF} or @code{0xFFFFFFFF}
    for AND as a zero-extending move."
   (and (match_code "const_int")
-       (match_test "ival == 0xff || ival == 0xffff
-		    || ival == (HOST_WIDE_INT) 0xffffffff")))
+       (ior (match_test "ival == 0xff")
+	    (match_test "ival == 0xffff")
+	    (match_test "ival == (HOST_WIDE_INT) 0xffffffff"))))
 
 (define_constraint "M"
   "0, 1, 2, or 3 (shifts for the @code{lea} instruction)."
@@ -289,14 +292,14 @@
    to fit that range (for sign-extending conversion operations that
    require non-VOIDmode immediate operands)."
   (and (match_operand 0 "x86_64_immediate_operand")
-       (match_test "GET_MODE (op) != VOIDmode")))
+       (match_test "mode != VOIDmode")))
 
 (define_constraint "Wz"
   "32-bit unsigned integer constant, or a symbolic reference known
    to fit that range (for zero-extending conversion operations that
    require non-VOIDmode immediate operands)."
   (and (match_operand 0 "x86_64_zext_immediate_operand")
-       (match_test "GET_MODE (op) != VOIDmode")))
+       (match_test "mode != VOIDmode")))
 
 (define_constraint "Wd"
   "128-bit integer constant where both the high and low 64-bit word


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

only message in thread, other threads:[~2021-06-06 20:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-06 20:10 [gcc r12-1248] i386: Clean up constraints.md 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).