From: Richard Kenner Date: Sat, 4 Jan 1997 13:15:46 +0000 (-0500) Subject: (addsi3... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc8c44a637419f06d348530310dd6e1f4ec803de;p=gcc.git (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 --- diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 61e4a663e9c..2f0201c5ccb 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)