aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-01-04 08:15:46 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1997-01-04 08:15:46 -0500
commitbc8c44a637419f06d348530310dd6e1f4ec803de (patch)
treeb52d0e7db8ba506adc597bfaede9f8754e31aa8c /gcc
parent7bc88d49332000c62fd7793d4cbc1718462c078d (diff)
downloadgcc-bc8c44a637419f06d348530310dd6e1f4ec803de.zip
gcc-bc8c44a637419f06d348530310dd6e1f4ec803de.tar.gz
gcc-bc8c44a637419f06d348530310dd6e1f4ec803de.tar.bz2
(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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/m68k/m68k.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index 61e4a66..2f0201c 100644
--- a/gcc/config/m68k/m68k.md
+++ b/gcc/config/m68k/m68k.md
@@ -1,5 +1,5 @@
;;- 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)