This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Use RTX_AUTOINC in rs6000 predicates.md
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Richard Sandiford <rdsandiford at googlemail dot com>
- Date: Tue, 14 Jul 2009 09:11:54 -0400
- Subject: [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"