Commit 491a9777 by Kazu Hirata Committed by Kazu Hirata

h8300.c (single_one_operand): Fix a warning.

	* config/h8300/h8300.c (single_one_operand): Fix a warning.
	(single_zero_operand): Likewise.

From-SVN: r59772
parent 765828d5
2002-12-03 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (single_one_operand): Fix a warning.
(single_zero_operand): Likewise.
2002-12-02 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (dosize): Replace argument op with
......
......@@ -816,7 +816,7 @@ single_one_operand (operand, mode)
unsigned HOST_WIDE_INT mask =
(GET_MODE_BITSIZE (mode) < HOST_BITS_PER_WIDE_INT)
? ((unsigned HOST_WIDE_INT) 1 << GET_MODE_BITSIZE (mode)) - 1
: ~0;
: ~(unsigned HOST_WIDE_INT) 0;
unsigned HOST_WIDE_INT value = INTVAL (operand);
if (exact_log2 (value & mask) >= 0)
......@@ -841,7 +841,7 @@ single_zero_operand (operand, mode)
unsigned HOST_WIDE_INT mask =
(GET_MODE_BITSIZE (mode) < HOST_BITS_PER_WIDE_INT)
? ((unsigned HOST_WIDE_INT) 1 << GET_MODE_BITSIZE (mode)) - 1
: ~0;
: ~(unsigned HOST_WIDE_INT) 0;
unsigned HOST_WIDE_INT value = INTVAL (operand);
if (exact_log2 (~value & mask) >= 0)
......
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