This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/69047] memcpy is not as optimized as union is
- From: "mwahab at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Aug 2016 11:49:15 +0000
- Subject: [Bug tree-optimization/69047] memcpy is not as optimized as union is
- Auto-submitted: auto-generated
- References: <bug-69047-4@http.gcc.gnu.org/bugzilla/>
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