rs6000.md (divmodsi4): Use register_operand predicate for mod result.
authorDavid Edelsohn <edelsohn@gnu.org>
Tue, 11 Feb 2003 20:38:28 +0000 (20:38 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Tue, 11 Feb 2003 20:38:28 +0000 (15:38 -0500)
        * config/rs6000/rs6000.md (divmodsi4): Use register_operand
        predicate for mod result.

From-SVN: r62714

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

index 268974126ccc6c85f30fb1e85e2722f5693edc12..f7b059acc066d77cb792e24c495a35dd84bd35e8 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-11  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.md (divmodsi4): Use register_operand
+       predicate for mod result.
+
 Tue Feb 11 20:44:45 CET 2003  Jan Hubicka  <jh@suse.cz>
 
        * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
index f8144232096c3c646cba2349fa4257f27961703b..b06f01b63c9360a6926be176bfdffa89ada6d97c 100644 (file)
   [(parallel [(set (match_operand:SI 0 "gpc_reg_operand" "")
                   (div:SI (match_operand:SI 1 "gpc_reg_operand" "")
                           (match_operand:SI 2 "gpc_reg_operand" "")))
-             (set (match_operand:SI 3 "gpc_reg_operand" "")
+             (set (match_operand:SI 3 "register_operand" "")
                   (mod:SI (match_dup 1) (match_dup 2)))])]
   "TARGET_POWER || (! TARGET_POWER && ! TARGET_POWERPC)"
   "
     }
 }")
 
-(define_insn ""
+(define_insn "*divmodsi4_internal"
   [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
        (div:SI (match_operand:SI 1 "gpc_reg_operand" "r")
                (match_operand:SI 2 "gpc_reg_operand" "r")))
-   (set (match_operand:SI 3 "gpc_reg_operand" "=q")
+   (set (match_operand:SI 3 "register_operand" "=q")
        (mod:SI (match_dup 1) (match_dup 2)))]
   "TARGET_POWER"
   "divs %0,%1,%2"