From f1d947250e78e10c44bd8fefc58cad274ce2fef4 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 13 Jan 1995 20:29:19 -0500 Subject: [PATCH] (fullword move): Call output_move_const_into_data_reg. From-SVN: r8752 --- gcc/config/m68k/m68k.md | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) 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) -- 2.30.2