Commit a76033a0 by Geoffrey Keating Committed by Geoffrey Keating

emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension of array elements.

	* emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
	of array elements.

From-SVN: r47568
parent 251931f3
2001-12-03 Geoff Keating <geoffk@redhat.com>
* emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
of array elements.
2001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
PR c/4988
......
......@@ -1062,10 +1062,10 @@ gen_lowpart_common (mode, x)
if (HOST_BITS_PER_WIDE_INT != 64)
abort ();
return immed_double_const (i[3 * endian]
| ((HOST_WIDE_INT) i[1 + endian] << 32),
i[2 - endian]
| ((HOST_WIDE_INT) i[3 - 3 * endian] << 32),
return immed_double_const ((((unsigned long) i[3 * endian])
| ((HOST_WIDE_INT) i[1 + endian] << 32)),
(((unsigned long) i[2 - endian])
| ((HOST_WIDE_INT) i[3 - 3 * endian] << 32)),
mode);
#endif
}
......
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