]> gcc.gnu.org Git - gcc.git/commitdiff
Revert scc_operand patch.
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 13 Jun 2005 15:49:51 +0000 (15:49 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 13 Jun 2005 15:49:51 +0000 (11:49 -0400)
* config/rs6000/predicates.md (scc_operand): Delete.
* config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.

From-SVN: r100879

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

index 7e8425c05d0309a1f327c2a0e8bf6e6a3574c97e..9fba87f5cb6cb65c289b12a5559f7d1895670d16 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-13  David Edelsohn  <edelsohn@gnu.org>
+
+       Revert scc_operand patch.
+       * config/rs6000/predicates.md (scc_operand): Delete.
+       * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
+
 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
 
        * trans-expr.c (gfc_conv_function_call): Return int instead of
        tag if VAR has just one in its may_aliases list.
 
 2005-06-10  Fariborz Jahanian <fjahanian@apple.com>
+
        * rs6000/predicates.md (scc_operand): New.
        * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
 
index cba7337882579fbe6e4e8311a338a4fcf0cba69e..664c7f0b05d57f0163a8ac0e59cbecc45e5b39b0 100644 (file)
   (ior (match_code "const_int")
        (match_operand 0 "gpc_reg_operand")))
 
-;; Return 1 if op is an integer meeting one of 'I','J','O','L'(TARGET_32BIT)
-;; or 'J'(TARGET_64BIT) constraints or if it is a non-special register.
-(define_predicate "scc_operand"
-  (if_then_else (match_code "const_int")
-    (match_test "CONST_OK_FOR_LETTER_P (INTVAL (op), 'I')
-                || CONST_OK_FOR_LETTER_P (INTVAL (op), 'K')
-                || CONST_OK_FOR_LETTER_P (INTVAL (op), 'O')
-                || CONST_OK_FOR_LETTER_P (INTVAL (op), 
-                                          (TARGET_32BIT ? 'L' : 'J'))")
-    (match_operand 0 "gpc_reg_operand")))
-
 ;; Return 1 if op is a constant integer valid for addition
 ;; or non-special register.
 (define_predicate "reg_or_add_cint_operand"
index 8e4fd3551d0e8058c40f7c4e14248cb1a10c59bf..eee241010af0d7be0d1d4d1b5e1d00818b98e1de 100644 (file)
 (define_insn ""
   [(set (match_operand:SI 0 "gpc_reg_operand" "=&r,&r,&r,&r,&r")
        (plus:SI (eq:SI (match_operand:SI 1 "gpc_reg_operand" "%r,r,r,r,r")
-                       (match_operand:SI 2 "scc_operand" "r,O,K,L,I"))
+                       (match_operand:SI 2 "scc_eq_operand" "r,O,K,L,I"))
                 (match_operand:SI 3 "gpc_reg_operand" "r,r,r,r,r")))]
   "TARGET_32BIT"
   "@
        (compare:CC
         (plus:SI
          (eq:SI (match_operand:SI 1 "gpc_reg_operand" "%r,r,r,r,r,r,r,r,r,r")
-                (match_operand:SI 2 "scc_operand" "r,O,K,L,I,r,O,K,L,I"))
+                (match_operand:SI 2 "scc_eq_operand" "r,O,K,L,I,r,O,K,L,I"))
          (match_operand:SI 3 "gpc_reg_operand" "r,r,r,r,r,r,r,r,r,r"))
         (const_int 0)))
    (clobber (match_scratch:SI 4 "=&r,&r,&r,&r,&r,&r,&r,&r,&r,&r"))]
        (compare:CC
         (plus:SI
          (eq:SI (match_operand:SI 1 "gpc_reg_operand" "")
-                (match_operand:SI 2 "scc_operand" ""))
+                (match_operand:SI 2 "scc_eq_operand" ""))
          (match_operand:SI 3 "gpc_reg_operand" ""))
         (const_int 0)))
    (clobber (match_scratch:SI 4 ""))]
        (compare:CC
         (plus:SI
          (eq:SI (match_operand:SI 1 "gpc_reg_operand" "%r,r,r,r,r,r,r,r,r,r")
-                (match_operand:SI 2 "scc_operand" "r,O,K,L,I,r,O,K,L,I"))
+                (match_operand:SI 2 "scc_eq_operand" "r,O,K,L,I,r,O,K,L,I"))
          (match_operand:SI 3 "gpc_reg_operand" "r,r,r,r,r,r,r,r,r,r"))
         (const_int 0)))
    (set (match_operand:SI 0 "gpc_reg_operand" "=&r,&r,&r,&r,&r,&r,&r,&r,&r,&r")
        (compare:CC
         (plus:SI
          (eq:SI (match_operand:SI 1 "gpc_reg_operand" "")
-                (match_operand:SI 2 "scc_operand" ""))
+                (match_operand:SI 2 "scc_eq_operand" ""))
          (match_operand:SI 3 "gpc_reg_operand" ""))
         (const_int 0)))
    (set (match_operand:SI 0 "gpc_reg_operand" "")
 (define_insn ""
   [(set (match_operand:SI 0 "gpc_reg_operand" "=r,r,r,r,r")
        (neg:SI (eq:SI (match_operand:SI 1 "gpc_reg_operand" "%r,r,r,r,r")
-                      (match_operand:SI 2 "scc_operand" "r,O,K,L,I"))))]
+                      (match_operand:SI 2 "scc_eq_operand" "r,O,K,L,I"))))]
   "TARGET_32BIT"
   "@
    xor %0,%1,%2\;{ai|addic} %0,%0,-1\;{sfe|subfe} %0,%0,%0
This page took 0.092632 seconds and 5 git commands to generate.