Commit bc8c44a6 by Richard Kenner

(addsi3...

(addsi3, addhi3): Use two addqw (or subqw) insns when adding (or
subtracting) small integer constants (8 < N <= 16) to both address and
data registers.

From-SVN: r13367
parent 7bc88d49
;;- Machine description for GNU compiler, Motorola 68000 Version
;; Copyright (C) 1987, 88, 93, 94, 95, 1996 Free Software Foundation, Inc.
;; Copyright (C) 1987, 88, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
;; This file is part of GNU CC.
......@@ -2167,9 +2167,9 @@
: \"subq%.l %2,%0\");
}
/* On the CPU32 it is faster to use two addqw instructions to
add a small integer (8 < N <= 16) to an address register.
add a small integer (8 < N <= 16) to a register.
Likewise for subqw. */
if (TARGET_CPU32 && ADDRESS_REG_P (operands[0]))
if (TARGET_CPU32 && REG_P (operands[0]))
{
if (INTVAL (operands[2]) > 8
&& INTVAL (operands[2]) <= 16)
......@@ -2242,9 +2242,9 @@
return \"subq%.w %2,%0\";
}
/* On the CPU32 it is faster to use two addqw instructions to
add a small integer (8 < N <= 16) to an address register.
add a small integer (8 < N <= 16) to a register.
Likewise for subqw. */
if (TARGET_CPU32 && ADDRESS_REG_P (operands[0]))
if (TARGET_CPU32 && REG_P (operands[0]))
{
if (INTVAL (operands[2]) > 8
&& INTVAL (operands[2]) <= 16)
......@@ -2308,9 +2308,9 @@
return \"subq%.w %1,%0\";
}
/* On the CPU32 it is faster to use two addqw instructions to
add a small integer (8 < N <= 16) to an address register.
add a small integer (8 < N <= 16) to a register.
Likewise for subqw. */
if (TARGET_CPU32 && ADDRESS_REG_P (operands[0]))
if (TARGET_CPU32 && REG_P (operands[0]))
{
if (INTVAL (operands[1]) > 8
&& INTVAL (operands[1]) <= 16)
......@@ -2368,9 +2368,9 @@
return \"subq%.w %1,%0\";
}
/* On the CPU32 it is faster to use two addqw instructions to
add a small integer (8 < N <= 16) to an address register.
add a small integer (8 < N <= 16) to a register.
Likewise for subqw. */
if (TARGET_CPU32 && ADDRESS_REG_P (operands[0]))
if (TARGET_CPU32 && REG_P (operands[0]))
{
if (INTVAL (operands[1]) > 8
&& INTVAL (operands[1]) <= 16)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment