[Bug middle-end/92824] Wrong optimization: representation of long doubles not copied even with memcpy

ch3root at openwall dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 9 22:30:46 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92824

Alexander Cherepanov <ch3root at openwall dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #5 from Alexander Cherepanov <ch3root at openwall dot com> ---
I thought that memcpy ignored after the assignment here but the problem remain
even after replacing `y = x;` with `-x;`. After fre1 we get a normalized value:

  MEM <__int128 unsigned> [(char * {ref-all})&y] = 0x18000000000000000;

So this is an exact dup of pr94103.

*** This bug has been marked as a duplicate of bug 94103 ***


More information about the Gcc-bugs mailing list