From bb157ff4ee5ca91bb222bdbb60b0cbf6ba615454 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 11 Feb 2003 20:38:28 +0000 Subject: rs6000.md (divmodsi4): Use register_operand predicate for mod result. * config/rs6000/rs6000.md (divmodsi4): Use register_operand predicate for mod result. From-SVN: r62714 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.md | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2689741..f7b059a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-02-11 David Edelsohn + + * config/rs6000/rs6000.md (divmodsi4): Use register_operand + predicate for mod result. + Tue Feb 11 20:44:45 CET 2003 Jan Hubicka * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index f814423..b06f01b 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -2573,7 +2573,7 @@ [(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)" " @@ -2589,11 +2589,11 @@ } }") -(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" -- cgit v1.1