Re: [Qemu-devel] [PATCH v2 0/2] target-arm: inline abs, 64-bit negate

2012-10-19 Thread Aurelien Jarno
On Fri, Oct 19, 2012 at 02:06:57PM +0100, Peter Maydell wrote: > Two minor patches which inline some operations rather than using helper > functions. The 64 bit negate is a no-brainer since there's a simple > TCG op for it. For abs we implement in terms of movcond: > movi_i32 tmp6,$0x0 > neg_i32

[Qemu-devel] [PATCH v2 0/2] target-arm: inline abs, 64-bit negate

2012-10-19 Thread Peter Maydell
Two minor patches which inline some operations rather than using helper functions. The 64 bit negate is a no-brainer since there's a simple TCG op for it. For abs we implement in terms of movcond: movi_i32 tmp6,$0x0 neg_i32 tmp7,tmp5 movcond_i32 tmp5,tmp5,tmp6,tmp5,tmp7,gt which the x86-64 backe