Commit 89e56fe5 by Kazu Hirata Committed by Kazu Hirata

h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify using IN_RANGE.

	* config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
	using IN_RANGE.
	(TINY_CONSTANT_ADDRESS_P): Likewise.

From-SVN: r58392
parent f02e1358
2002-10-21 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
using IN_RANGE.
(TINY_CONSTANT_ADDRESS_P): Likewise.
Tue Oct 22 00:04:20 CEST 2002 Jan Hubicka <jh@suse.cz> Tue Oct 22 00:04:20 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.c (builtin_description): Add punpcklqdq and movdq2q * i386.c (builtin_description): Add punpcklqdq and movdq2q
......
...@@ -825,14 +825,11 @@ struct cum_arg ...@@ -825,14 +825,11 @@ struct cum_arg
/* Nonzero if X is a constant address suitable as an 8-bit absolute, /* Nonzero if X is a constant address suitable as an 8-bit absolute,
which is a special case of the 'R' operand. */ which is a special case of the 'R' operand. */
#define EIGHTBIT_CONSTANT_ADDRESS_P(X) \ #define EIGHTBIT_CONSTANT_ADDRESS_P(X) \
((GET_CODE (X) == CONST_INT) \ ((GET_CODE (X) == CONST_INT) \
&& ((TARGET_H8300H && 0xffff00 <= INTVAL (X) \ && ((TARGET_H8300 && IN_RANGE (INTVAL (X) & 0xffff, 0xff00, 0xffff)) \
&& INTVAL (X) <= 0xffffff) \ || (TARGET_H8300H && IN_RANGE (INTVAL (X), 0xffff00, 0xffffff)) \
|| (TARGET_H8300S && 0xffffff00 <= INTVAL (X) \ || (TARGET_H8300S && IN_RANGE (INTVAL (X), 0xffffff00, 0xffffffff))))
&& INTVAL (X) <= 0xffffffff) \
|| (TARGET_H8300 && 0xff00 <= (INTVAL (X) & 0x0000FFFF) \
&& (INTVAL (X) & 0x0000FFFF) <= 0xffff)))
/* Nonzero if X is a constant address suitable as an 16-bit absolute /* Nonzero if X is a constant address suitable as an 16-bit absolute
on H8/300H and H8S. */ on H8/300H and H8S. */
...@@ -840,12 +837,11 @@ struct cum_arg ...@@ -840,12 +837,11 @@ struct cum_arg
#define TINY_CONSTANT_ADDRESS_P(X) \ #define TINY_CONSTANT_ADDRESS_P(X) \
((GET_CODE (X) == CONST_INT) \ ((GET_CODE (X) == CONST_INT) \
&& ((TARGET_H8300H \ && ((TARGET_H8300H \
&& ((0xff8000 <= INTVAL (X) && INTVAL (X) <= 0xffffff) \ && (IN_RANGE (INTVAL (X), 0x000000, 0x007fff) \
|| (0x000000 <= INTVAL (X) && INTVAL (X) <= 0x007fff))) \ || IN_RANGE (INTVAL (X), 0xff8000, 0xffffff))) \
|| (TARGET_H8300S \ || (TARGET_H8300S \
&& ((0xffff8000 <= INTVAL (X) && INTVAL (X) <= 0xffffffff) \ && (IN_RANGE (INTVAL (X), 0x00000000, 0x00007fff) \
|| (0x00000000 <= INTVAL (X) \ || IN_RANGE (INTVAL (X), 0xffff8000, 0xffffffff)))))
&& INTVAL (X) <= 0x00007fff)))))
/* 'U' if valid for a bset destination; /* 'U' if valid for a bset destination;
i.e. a register, register indirect, or the eightbit memory region i.e. a register, register indirect, or the eightbit memory region
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment