[Bug tree-optimization/69047] memcpy is not as optimized as union is
mwahab at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 30 11:49:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69047
mwahab at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mwahab at gcc dot gnu.org
--- Comment #9 from mwahab at gcc dot gnu.org ---
The new test gcc.dg/pr69047.c fails on big-endian aarch64 (aarch64_be-none-elf)
because the expected output isn't generated.
For big-endian aarch64, the expression in the cddce1 file is
----
_2 = BIT_FIELD_REF <b_6(D), 8, 0>;
----
For little-endian aarch64, the expression is as expected:
----
_2 = (unsigned char) b_6(D);
----
Matthew
More information about the Gcc-bugs
mailing list