diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-01-13 20:29:19 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-01-13 20:29:19 -0500 |
commit | f1d947250e78e10c44bd8fefc58cad274ce2fef4 (patch) | |
tree | 2ec6b968c032d90d085d91ebce167d70d34c42f8 | |
parent | 8dbda09ab52083a55345d402ce99aff32032ae2b (diff) | |
download | gcc-f1d947250e78e10c44bd8fefc58cad274ce2fef4.zip gcc-f1d947250e78e10c44bd8fefc58cad274ce2fef4.tar.gz gcc-f1d947250e78e10c44bd8fefc58cad274ce2fef4.tar.bz2 |
(fullword move): Call output_move_const_into_data_reg.
From-SVN: r8752
-rw-r--r-- | gcc/config/m68k/m68k.md | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 761bb4f..8f34329 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) |