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

2014-10-01 Thread Richard Henderson
On 10/01/2014 02:35 AM, Bastian Koppelmann wrote: > +case OPC2_32_BIT_AND_NOR_T: > +#if defined TCG_TARGET_HAS_nor_i32 > +gen_bit_2op(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2], > +pos1, pos2, &tcg_gen_nor_tl, &tcg_gen_and_tl); > +#else These are *always* defined.

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

2014-10-01 Thread Bastian Koppelmann
Add instructions of BIT opcode format. Add microcode generator functions gen_bit_1/2op to do 1/2 bit operations on the last bit. Signed-off-by: Bastian Koppelmann --- v1 -> v2: - gen_bit_2op: Now uses deposit and two shifts. - gen_bit_1op: Now masks output instead of inputs and eliminate