This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use RTX_AUTOINC in rs6000 predicates.md


During the discussions about the rs6000 non-autoinc constraint
question, Richard Henderson mentioned the ia64 constraint.  The rs6000
predicate should be simplified similarly.  Is this reasonable?

Bootstrapped and regression tested on powerpc-ibm-aix5.3.0.0.

Thanks, David

        * config/rs6000/predicates.md (offsettable_mem_operand): Test
        RTX_AUTOINC class.

Index: predicates.md
===================================================================
--- predicates.md       (revision 149613)
+++ predicates.md       (working copy)
@@ -367,9 +367,7 @@
 ;; Return 1 if the operand is an offsettable memory operand.
 (define_predicate "offsettable_mem_operand"
   (and (match_operand 0 "memory_operand")
-       (match_test "GET_CODE (XEXP (op, 0)) != PRE_INC
-                   && GET_CODE (XEXP (op, 0)) != PRE_DEC
-                   && GET_CODE (XEXP (op, 0)) != PRE_MODIFY")))
+       (match_test "GET_RTX_CLASS (GET_CODE (XEXP (op, 0))) != RTX_AUTOINC")))

 ;; Return 1 if the operand is a memory operand with an address divisible by 4
 (define_predicate "word_offset_memref_operand"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]