Re: [Qemu-devel] [PATCH 2/2] tcg-ia64: implement add2_i32/i64 and sub2_i32/i64

2013-03-30 Thread Aurelien Jarno
On Sat, Mar 30, 2013 at 08:54:03AM -0700, Richard Henderson wrote: > On 03/30/2013 08:33 AM, Aurelien Jarno wrote: > > +static inline void tcg_out_add2(TCGContext *s, TCGArg retl, TCGArg reth, > > +TCGArg arg1l, TCGArg arg1h, > > +TCGA

Re: [Qemu-devel] [PATCH 2/2] tcg-ia64: implement add2_i32/i64 and sub2_i32/i64

2013-03-30 Thread Richard Henderson
On 03/30/2013 08:33 AM, Aurelien Jarno wrote: > +static inline void tcg_out_add2(TCGContext *s, TCGArg retl, TCGArg reth, > +TCGArg arg1l, TCGArg arg1h, > +TCGArg arg2l, TCGArg arg2h, > +int cmp4) > +{ >

[Qemu-devel] [PATCH 2/2] tcg-ia64: implement add2_i32/i64 and sub2_i32/i64

2013-03-30 Thread Aurelien Jarno
Add 32-bit and 64-bit add2 and sub2 TCG ops. On IA64, 32-bit ops should just ignore the 32 most significant bits of registers, and can leave them with non-zero values. This means a 32-bit comparison instruction should be used for add2_i32 and sub32_i32. Signed-off-by: Aurelien Jarno --- tcg/ia6