Re: [PATCH][fold-const] Fix native_encode_real for HFmode constants

2016-10-06 Thread Richard Biener
On Wed, Oct 5, 2016 at 4:06 PM, Kyrill Tkachov wrote: > Hi all, > > I encountered a wrong-code issue with my WIP store merging pass when it was > trying to encode HFmode constants. > I am using native_encode_real to write the constants to a byte array and > it's breaking on big-endian. > For a 2-b

Re: [PATCH][fold-const] Fix native_encode_real for HFmode constants

2016-10-05 Thread Bernd Schmidt
On 10/05/2016 04:06 PM, Kyrill Tkachov wrote: The fix in this patch makes the logic in native_encode_real match the logic in native_interpret_real, I just copied the logic across. Looks reasonable to me. Ok. Bernd