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
This commit is contained in:
parent
251931f3ad
commit
a76033a004
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue