OSDN Git Service

* config/rs6000/predicates.md (offsettable_mem_operand): Test
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jul 2009 16:52:12 +0000 (16:52 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jul 2009 16:52:12 +0000 (16:52 +0000)
        RTX_AUTOINC class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149632 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/predicates.md

index 8f78256..306ddc4 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-14  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/predicates.md (offsettable_mem_operand): Test
+       RTX_AUTOINC class.
+
 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
 
        PR debug/40705
index dbf7873..13bb76a 100644 (file)
 ;; 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"