From: Richard Kenner Date: Sat, 14 Jan 1995 01:29:19 +0000 (-0500) Subject: (fullword move): Call output_move_const_into_data_reg. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1d947250e78e10c44bd8fefc58cad274ce2fef4;p=gcc.git (fullword move): Call output_move_const_into_data_reg. From-SVN: r8752 --- diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 761bb4f7023..8f343295b73 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, 1988, 1993, 1994 Free Software Foundation, Inc. +;; Copyright (C) 1987, 1988, 1993, 1994, 1995 Free Software Foundation, Inc. ;; This file is part of GNU CC. @@ -776,29 +776,8 @@ || !(GET_CODE (operands[0]) == MEM && MEM_VOLATILE_P (operands[0])))) return \"clr%.l %0\"; - else if (DATA_REG_P (operands[0]) - && INTVAL (operands[1]) < 128 - && INTVAL (operands[1]) >= -128) - { -#if defined(MOTOROLA) && !defined(CRDS) - return \"moveq%.l %1,%0\"; -#else - return \"moveq %1,%0\"; -#endif - } - else if (DATA_REG_P (operands[0]) - /* if -256 < N < 256 but N is not in range for a moveq - N^ff will be, so use moveq #N^ff, dreg; not.b dreg. */ - && INTVAL (operands[1]) < 256 - && INTVAL (operands[1]) >= -256) - { - operands[1] = gen_rtx (CONST_INT, VOIDmode, INTVAL (operands[1]) ^ 0xff); -#if defined(MOTOROLA) && !defined(CRDS) - return \"moveq%.l %1,%0\;not%.b %0\"; -#else - return \"moveq %1,%0\;not%.b %0\"; -#endif - } + else if (DATA_REG_P (operands[0])) + return output_move_const_into_data_reg (operands); else if (ADDRESS_REG_P (operands[0]) && INTVAL (operands[1]) < 0x8000 && INTVAL (operands[1]) >= -0x8000)