]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
predicates.md (altivec_register_operand): Remove redundant match_code test.
authorDavid Edelsohn <edelsohn@gnu.org>
Sat, 9 Apr 2005 15:39:34 +0000 (15:39 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sat, 9 Apr 2005 15:39:34 +0000 (11:39 -0400)
        * config/rs6000/predicates.md (altivec_register_operand): Remove
        redundant match_code test.
        (gpc_reg_operand): Same.
        (cc_reg_operand): Same.
        (cc_reg_not_cr0_operand): Same.

From-SVN: r97902

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

index 293ded6c5ed50fff436a039e3a535983509855dd..2b5ad905d4055939e3198db7783ff491cddeba57 100644 (file)
@@ -1,3 +1,11 @@
+2005-04-09  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/predicates.md (altivec_register_operand): Remove
+       redundant match_code test.
+       (gpc_reg_operand): Same.
+       (cc_reg_operand): Same.
+       (cc_reg_not_cr0_operand): Same.
+
 2005-04-09  Jan Hubicka  <jh@suse.cz>
 
        Forgotten hunk from my last merge patch:
index e29297a0faf405d3b0c2b592a6f3a72ea68b5336..430816423efe2ffe5a07f32cfea4c784fef1b8dd 100644 (file)
   
 ;; Return 1 if op is an Altivec register.
 (define_predicate "altivec_register_operand"
-  (and (match_code "reg,subreg")
-       (and (match_operand 0 "register_operand")
-           (match_test "GET_CODE (op) != REG
-                        || ALTIVEC_REGNO_P (REGNO (op))
-                        || REGNO (op) > LAST_VIRTUAL_REGISTER"))))
+   (and (match_operand 0 "register_operand")
+       (match_test "GET_CODE (op) != REG
+                    || ALTIVEC_REGNO_P (REGNO (op))
+                    || REGNO (op) > LAST_VIRTUAL_REGISTER")))
 
 ;; Return 1 if op is XER register.
 (define_predicate "xer_operand"
 
 ;; Return 1 if op is a register that is not special.
 (define_predicate "gpc_reg_operand"
-  (and (match_code "reg,subreg")
-       (and (match_operand 0 "register_operand")
-           (match_test "GET_CODE (op) != REG
-                        || (REGNO (op) >= ARG_POINTER_REGNUM
-                            && !XER_REGNO_P (REGNO (op)))
-                        || REGNO (op) < MQ_REGNO"))))
+   (and (match_operand 0 "register_operand")
+       (match_test "GET_CODE (op) != REG
+                    || (REGNO (op) >= ARG_POINTER_REGNUM
+                        && !XER_REGNO_P (REGNO (op)))
+                    || REGNO (op) < MQ_REGNO")))
 
 ;; Return 1 if op is a register that is a condition register field.
 (define_predicate "cc_reg_operand"
-  (and (match_code "reg,subreg")
-       (and (match_operand 0 "register_operand")
-           (match_test "GET_CODE (op) != REG
-                        || REGNO (op) > LAST_VIRTUAL_REGISTER
-                        || CR_REGNO_P (REGNO (op))"))))
+   (and (match_operand 0 "register_operand")
+       (match_test "GET_CODE (op) != REG
+                    || REGNO (op) > LAST_VIRTUAL_REGISTER
+                    || CR_REGNO_P (REGNO (op))")))
 
 ;; Return 1 if op is a register that is a condition register field not cr0.
 (define_predicate "cc_reg_not_cr0_operand"
-  (and (match_code "reg,subreg")
-       (and (match_operand 0 "register_operand")
-           (match_test "GET_CODE (op) != REG
-                        || REGNO (op) > LAST_VIRTUAL_REGISTER
-                        || CR_REGNO_NOT_CR0_P (REGNO (op))"))))
+   (and (match_operand 0 "register_operand")
+       (match_test "GET_CODE (op) != REG
+                    || REGNO (op) > LAST_VIRTUAL_REGISTER
+                    || CR_REGNO_NOT_CR0_P (REGNO (op))")))
 
 ;; Return 1 if op is a constant integer valid for D field
 ;; or non-special register register.