DI mode and endianess

Richard Henderson rth@redhat.com
Tue Sep 1 16:40:00 GMT 2009


On 08/19/2009 06:50 AM, Mohamed Shafi wrote:
>          mov  _h,d4
>          mov  _h+4,d5
>          mov  _j,d2
>          mov  _j+4,d3
>          add    d4,d2
>          adc    d5,d3
>
> irrespective of which endian it is.
> What could i be missing here? Should i add anything specific for this
> in the back-end?

Given that the compiler is generating adc, I have to
assume that you have an adddi3 pattern.  At which point
I have to assume that you're doing something wrong in
there that's producing the little-endian sequence even
for big-endian.


r~



More information about the Gcc mailing list