Re: [Qemu-devel] [PATCH 5/5] target-tricore: Add instructions of RC opcode format

2014-10-29 Thread Richard Henderson
On 10/29/2014 06:22 AM, Bastian Koppelmann wrote: > +} else if (shift_count > 0) { > +low = tcg_temp_new(); > +high = tcg_temp_new(); > + > +tcg_gen_andi_tl(low, r1, 0x); > +tcg_gen_andi_tl(high, r1, 0x); > +tcg_gen_shli_tl(low, low, shift_cou

[Qemu-devel] [PATCH 5/5] target-tricore: Add instructions of RC opcode format

2014-10-29 Thread Bastian Koppelmann
Add instructions of RC opcode format. Add helper for mul, sha, absdif with signed saturation on overflow. Add helper for add, sub, mul with unsigned saturation on overflow. Add microcode generator functions: * gen_add_CC, which calculates the carry bit. * gen_addc_CC, which adds the carry b