On 03/31/2013 04:50 PM, Peter Maydell wrote:
>> > I'm a bit confused.  This is the exact same algorithm that's used on ARM 
>> > and
>> > i386.  And as far as I can determine, all three platforms have the same
>> > definition of "overflow".
> I think it's not quite the same as ARM because the two arguments
> to subtract are reversed for PPC (ie PPC is 'subtract from', not
> 'subtract'). I think that means you want 'xor_tl(cpu_ov, arg0, arg2)'
> for your first xor, maybe? (untested)

Oh, duh.  Of course.


r~

Reply via email to