Re: [PATCH] Fix bswap load optimization on big-endian (PR tree-optimization/65215)

2015-02-26 Thread Richard Biener
On February 26, 2015 8:07:48 PM CET, Jakub Jelinek wrote: >Hi! > >If we cast a wider memory load on big endian to a narrower type and >then >byteswap that, we can't load the the narrower object from the >address of the larger original load, because it contains the MS bytes, >rather than LS bytes.

[PATCH] Fix bswap load optimization on big-endian (PR tree-optimization/65215)

2015-02-26 Thread Jakub Jelinek
Hi! If we cast a wider memory load on big endian to a narrower type and then byteswap that, we can't load the the narrower object from the address of the larger original load, because it contains the MS bytes, rather than LS bytes. Fixed thusly, bootstrapped/regtested on x86_64-linux, i686-linux,