diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-03-26 17:06:56 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-03-26 17:06:56 -0500 |
commit | 5aa58c13dd1ef37084ebb2766c706bfadba67414 (patch) | |
tree | ed740c5808e1baa0b4a7d3e246d95c91a57852b0 /gcc | |
parent | cc5ae869302448c8d22d706b4f1d938e79396b70 (diff) | |
download | gcc-5aa58c13dd1ef37084ebb2766c706bfadba67414.zip gcc-5aa58c13dd1ef37084ebb2766c706bfadba67414.tar.gz gcc-5aa58c13dd1ef37084ebb2766c706bfadba67414.tar.bz2 |
(multiply/multiplu/mulm/mulmu insns): These clobber Q.
From-SVN: r3885
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/a29k/a29k.md | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/gcc/config/a29k/a29k.md b/gcc/config/a29k/a29k.md index 12b3567..07a2b73 100644 --- a/gcc/config/a29k/a29k.md +++ b/gcc/config/a29k/a29k.md @@ -1115,7 +1115,8 @@ (define_insn "mulsi3" [(set (match_operand:SI 0 "gpc_reg_operand" "=r") (mult:SI (match_operand:SI 1 "gpc_reg_operand" "%r") - (match_operand:SI 2 "gpc_reg_operand" "r")))] + (match_operand:SI 2 "gpc_reg_operand" "r"))) + (clobber (match_scratch:SI 3 "=&q"))] "" "multiply %0,%1,%2") @@ -1124,7 +1125,8 @@ (subreg:SI (mult:DI (sign_extend:DI (match_operand:SI 1 "gpc_reg_operand" "%r")) - (sign_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r"))) 0))] + (sign_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r"))) 0)) + (clobber (match_scratch:SI 3 "=&q"))] "" "multm %0,%1,%2") @@ -1133,14 +1135,16 @@ (subreg:SI (mult:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "%r")) - (zero_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r"))) 0))] + (zero_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r"))) 0)) + (clobber (match_scratch:SI 3 "=&q"))] "" "multmu %0,%1,%2") (define_insn "mulsidi3" [(set (match_operand:DI 0 "gpc_reg_operand" "=r") (mult:DI (sign_extend:DI (match_operand:SI 1 "gpc_reg_operand" "r")) - (sign_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r"))))] + (sign_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r")))) + (clobber (match_scratch:SI 3 "=&q"))] "" "multiply %L0,%1,%2\;multm %0,%1,%2" [(set_attr "type" "multi")]) @@ -1148,14 +1152,17 @@ (define_split [(set (match_operand:DI 0 "gpc_reg_operand" "") (mult:DI (sign_extend:DI (match_operand:SI 1 "gpc_reg_operand" "")) - (sign_extend:DI (match_operand:SI 2 "gpc_reg_operand" ""))))] + (sign_extend:DI (match_operand:SI 2 "gpc_reg_operand" "")))) + (clobber (reg:SI 180))] "reload_completed" - [(set (match_dup 3) - (mult:SI (match_dup 1) (match_dup 2))) - (set (match_dup 4) - (subreg:SI (mult:DI - (sign_extend:DI (match_dup 1)) - (sign_extend:DI (match_dup 2))) 0))] + [(parallel [(set (match_dup 3) + (mult:SI (match_dup 1) (match_dup 2))) + (clobber (reg:SI 180))]) + (parallel [(set (match_dup 4) + (subreg:SI (mult:DI + (sign_extend:DI (match_dup 1)) + (sign_extend:DI (match_dup 2))) 0)) + (clobber (reg:SI 180))])] " { operands[3] = operand_subword (operands[0], 1, 1, DImode); operands[4] = operand_subword (operands[1], 0, 1, DImode); } ") @@ -1163,7 +1170,8 @@ (define_insn "umulsidi3" [(set (match_operand:DI 0 "gpc_reg_operand" "=r") (mult:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "r")) - (zero_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r"))))] + (zero_extend:DI (match_operand:SI 2 "gpc_reg_operand" "r")))) + (clobber (match_scratch:SI 3 "=&q"))] "" "multiplu %L0,%1,%2\;multmu %0,%1,%2" [(set_attr "type" "multi")]) @@ -1171,13 +1179,16 @@ (define_split [(set (match_operand:DI 0 "gpc_reg_operand" "") (mult:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "")) - (zero_extend:DI (match_operand:SI 2 "gpc_reg_operand" ""))))] + (zero_extend:DI (match_operand:SI 2 "gpc_reg_operand" "")))) + (clobber (reg:SI 180))] "reload_completed" - [(set (match_dup 3) - (mult:SI (match_dup 1) (match_dup 2))) - (set (match_dup 4) - (subreg:SI (mult:DI (zero_extend:DI (match_dup 1)) - (zero_extend:DI (match_dup 2))) 0))] + [(parallel [(set (match_dup 3) + (mult:SI (match_dup 1) (match_dup 2))) + (clobber (reg:SI 180))]) + (parallel [(set (match_dup 4) + (subreg:SI (mult:DI (zero_extend:DI (match_dup 1)) + (zero_extend:DI (match_dup 2))) 0)) + (clobber (reg:SI 180))])] " { operands[3] = operand_subword (operands[0], 1, 1, DImode); operands[4] = operand_subword (operands[1], 0, 1, DImode); } ") |