diff options
| author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-06 02:17:39 +0000 | 
|---|---|---|
| committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-06 02:17:39 +0000 | 
| commit | 5c7b13c9cfb51bf3d7104b538f05e9f1b7b55371 (patch) | |
| tree | f408bf59c19d0109cc818456489e52e1960612af | |
| parent | f12a18386ff10f6225035f7a10951689b08a9358 (diff) | |
| download | ppe42-gcc-5c7b13c9cfb51bf3d7104b538f05e9f1b7b55371.tar.gz ppe42-gcc-5c7b13c9cfb51bf3d7104b538f05e9f1b7b55371.zip | |
	* config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
	(single_zero_operand): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65291 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/h8300/h8300.c | 16 | 
2 files changed, 7 insertions, 14 deletions
| diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0b12ae1abf..c3381f07b6f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-05  Kazu Hirata  <kazu@cs.umass.edu> + +	* config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK. +	(single_zero_operand): Likewise. +  2003-04-05  Daniel Berlin  <dberlin@dberlin.org>  	* Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 866e6fdc017..a54055eca15 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -757,13 +757,7 @@ single_one_operand (operand, mode)      {        /* We really need to do this masking because 0x80 in QImode is  	 represented as -128 for example.  */ -      unsigned HOST_WIDE_INT mask = -	(GET_MODE_BITSIZE (mode) < HOST_BITS_PER_WIDE_INT) -	? ((unsigned HOST_WIDE_INT) 1 << GET_MODE_BITSIZE (mode)) - 1 -	: ~(unsigned HOST_WIDE_INT) 0; -      unsigned HOST_WIDE_INT value = INTVAL (operand); - -      if (exact_log2 (value & mask) >= 0) +      if (exact_log2 (INTVAL (operand) & GET_MODE_MASK (mode)) >= 0)  	return 1;      } @@ -782,13 +776,7 @@ single_zero_operand (operand, mode)      {        /* We really need to do this masking because 0x80 in QImode is  	 represented as -128 for example.  */ -      unsigned HOST_WIDE_INT mask = -	(GET_MODE_BITSIZE (mode) < HOST_BITS_PER_WIDE_INT) -	? ((unsigned HOST_WIDE_INT) 1 << GET_MODE_BITSIZE (mode)) - 1 -	: ~(unsigned HOST_WIDE_INT) 0; -      unsigned HOST_WIDE_INT value = INTVAL (operand); - -      if (exact_log2 (~value & mask) >= 0) +      if (exact_log2 (~INTVAL (operand) & GET_MODE_MASK (mode)) >= 0)  	return 1;      } | 

