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: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Aug 2016 12:17:36 +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
--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 30 Aug 2016, mwahab at gcc dot gnu.org wrote:
> 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);
> ----
Fixed this with r239857 I think