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> 2001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
PR c/4988 PR c/4988
......
...@@ -1062,10 +1062,10 @@ gen_lowpart_common (mode, x) ...@@ -1062,10 +1062,10 @@ gen_lowpart_common (mode, x)
if (HOST_BITS_PER_WIDE_INT != 64) if (HOST_BITS_PER_WIDE_INT != 64)
abort (); abort ();
return immed_double_const (i[3 * endian] return immed_double_const ((((unsigned long) i[3 * endian])
| ((HOST_WIDE_INT) i[1 + endian] << 32), | ((HOST_WIDE_INT) i[1 + endian] << 32)),
i[2 - endian] (((unsigned long) i[2 - endian])
| ((HOST_WIDE_INT) i[3 - 3 * endian] << 32), | ((HOST_WIDE_INT) i[3 - 3 * endian] << 32)),
mode); mode);
#endif #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