From 81c3eb11561d803158287628b6c750e3f24d8a18 Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 17 Feb 2002 15:39:25 +0000 Subject: [PATCH] * config/h8300/h8300.c: Fix formatting. * config/h8300/h8300.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49822 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.c | 34 +++++++++++++++++----------------- gcc/config/h8300/h8300.h | 28 ++++++++++++++-------------- 3 files changed, 36 insertions(+), 31 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4530ebf4255..3cc3e611604 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-02-17 Kazu Hirata + + * config/h8300/h8300.c: Fix formatting. + * config/h8300/h8300.h: Likewise. + 2002-02-17 Philipp Thomas * doc/tm.texi: Explain why empty strings should not be diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index b0bd3df642b..e79d86507a8 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -2411,25 +2411,25 @@ get_shift_alg (shift_type, shift_mode, count, info) } } else if (TARGET_H8300 && 24 <= count && count <= 28) - { - info->remainder = count - 24; + { + info->remainder = count - 24; - switch (shift_type) - { - case SHIFT_ASHIFT: - info->special = "mov.b\t%w0,%z0\n\tsub.b\t%y0,%y0\n\tsub.w\t%f0,%f0"; - info->shift1 = "shll.b\t%z0"; - goto end; - case SHIFT_LSHIFTRT: - info->special = "mov.b\t%z0,%w0\n\tsub.b\t%x0,%x0\n\tsub.w\t%e0,%e0"; - info->shift1 = "shlr.b\t%w0"; + switch (shift_type) + { + case SHIFT_ASHIFT: + info->special = "mov.b\t%w0,%z0\n\tsub.b\t%y0,%y0\n\tsub.w\t%f0,%f0"; + info->shift1 = "shll.b\t%z0"; + goto end; + case SHIFT_LSHIFTRT: + info->special = "mov.b\t%z0,%w0\n\tsub.b\t%x0,%x0\n\tsub.w\t%e0,%e0"; + info->shift1 = "shlr.b\t%w0"; + goto end; + case SHIFT_ASHIFTRT: + info->special = "mov.b\t%z0,%w0\n\tbld\t#7,%w0\n\tsubx\t%x0,%x0\n\tsubx\t%x0,%x0\n\tsubx\t%x0,%x0"; + info->shift1 = "shar.b\t%w0"; goto end; - case SHIFT_ASHIFTRT: - info->special = "mov.b\t%z0,%w0\n\tbld\t#7,%w0\n\tsubx\t%x0,%x0\n\tsubx\t%x0,%x0\n\tsubx\t%x0,%x0"; - info->shift1 = "shar.b\t%w0"; - goto end; - } - } + } + } else if ((TARGET_H8300H && count == 24) || (TARGET_H8300S && 24 <= count && count <= 25)) { diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index a082cde9b21..7c979648e61 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -121,7 +121,7 @@ extern int target_flags; {"int32", 8, N_("Make integers 32 bits wide")}, \ {"addresses", 64, NULL}, \ {"quickcall", 128, \ - N_("Use registers for argument passing")}, \ + N_("Use registers for argument passing")}, \ {"no-quickcall", -128, \ N_("Do not use registers for argument passing")}, \ {"slowbyte", 256, \ @@ -217,15 +217,15 @@ extern int target_flags; See also the macro `Pmode' defined below. */ #define POINTER_SIZE (TARGET_H8300H || TARGET_H8300S ? 32 : 16) -#define SHORT_TYPE_SIZE 16 -#define INT_TYPE_SIZE (TARGET_INT32 ? 32 : 16) -#define LONG_TYPE_SIZE 32 +#define SHORT_TYPE_SIZE 16 +#define INT_TYPE_SIZE (TARGET_INT32 ? 32 : 16) +#define LONG_TYPE_SIZE 32 #define LONG_LONG_TYPE_SIZE 32 -#define FLOAT_TYPE_SIZE 32 -#define DOUBLE_TYPE_SIZE 32 -#define LONG_DOUBLE_TYPE_SIZE DOUBLE_TYPE_SIZE +#define FLOAT_TYPE_SIZE 32 +#define DOUBLE_TYPE_SIZE 32 +#define LONG_DOUBLE_TYPE_SIZE DOUBLE_TYPE_SIZE -#define MAX_FIXED_MODE_SIZE 32 +#define MAX_FIXED_MODE_SIZE 32 /* Allocation boundary (in *bits*) for storing arguments in argument list. */ #define PARM_BOUNDARY (TARGET_H8300H || TARGET_H8300S ? 32 : 16) @@ -405,11 +405,11 @@ enum reg_class { This is an initializer for a vector of HARD_REG_SET of length N_REG_CLASSES. */ -#define REG_CLASS_CONTENTS \ +#define REG_CLASS_CONTENTS \ { {0}, /* No regs */ \ - {0x6ff}, /* GENERAL_REGS */ \ - {0x100}, /* MAC_REGS */ \ - {0x7ff}, /* ALL_REGS */ \ + {0x6ff}, /* GENERAL_REGS */ \ + {0x100}, /* MAC_REGS */ \ + {0x7ff}, /* ALL_REGS */ \ } /* The same information, inverted: @@ -904,9 +904,9 @@ struct cum_arg || (GET_CODE (X) == SUBREG && REG_P (SUBREG_REG (X)) \ && REG_OK_FOR_BASE_P (SUBREG_REG (X)))) -#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \ +#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \ if (RTX_OK_FOR_BASE_P (X)) goto ADDR; \ - if (CONSTANT_ADDRESS_P (X)) goto ADDR; \ + if (CONSTANT_ADDRESS_P (X)) goto ADDR; \ if (GET_CODE (X) == PLUS \ && CONSTANT_ADDRESS_P (XEXP (X, 1)) \ && RTX_OK_FOR_BASE_P (XEXP (X, 0))) goto ADDR; -- 2.11.4.GIT