Commit c1a4d0b5 by Richard Sandiford Committed by Richard Sandiford

expmed.c (lowpart_bit_field_p): Add missing == 0 check.

gcc/
	* expmed.c (lowpart_bit_field_p): Add missing == 0 check.

From-SVN: r192772
parent 65875a30
2012-10-24 Richard Sandiford <rdsandiford@googlemail.com>
* expmed.c (lowpart_bit_field_p): Add missing == 0 check.
2012-10-24 Vladimir Makarov <vmakarov@redhat.com> 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/55049 PR bootstrap/55049
...@@ -402,7 +402,7 @@ lowpart_bit_field_p (unsigned HOST_WIDE_INT bitnum, ...@@ -402,7 +402,7 @@ lowpart_bit_field_p (unsigned HOST_WIDE_INT bitnum,
enum machine_mode struct_mode) enum machine_mode struct_mode)
{ {
if (BYTES_BIG_ENDIAN) if (BYTES_BIG_ENDIAN)
return (bitnum % BITS_PER_UNIT return (bitnum % BITS_PER_UNIT == 0
&& (bitnum + bitsize == GET_MODE_BITSIZE (struct_mode) && (bitnum + bitsize == GET_MODE_BITSIZE (struct_mode)
|| (bitnum + bitsize) % BITS_PER_WORD == 0)); || (bitnum + bitsize) % BITS_PER_WORD == 0));
else else
......
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