diff options
author | David Edelsohn <edelsohn@gnu.org> | 2003-02-11 20:38:28 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2003-02-11 15:38:28 -0500 |
commit | bb157ff4ee5ca91bb222bdbb60b0cbf6ba615454 (patch) | |
tree | ee97c24cb82f69656ec7041a28521a0f4977fe6f | |
parent | 74db146134cce4b8e24d2df76b15d26fc4b6b3c3 (diff) | |
download | gcc-bb157ff4ee5ca91bb222bdbb60b0cbf6ba615454.zip gcc-bb157ff4ee5ca91bb222bdbb60b0cbf6ba615454.tar.gz gcc-bb157ff4ee5ca91bb222bdbb60b0cbf6ba615454.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 6 |
2 files changed, 8 insertions, 3 deletions
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 <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. 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" |