On 07/07/2014 11:13 AM, Bastian Koppelmann wrote: > +/* SBRN-format jumps */ > + case OPC1_16_SBRN_JZ_T: > + temp = tcg_temp_new(); > + tcg_gen_andi_tl(temp, cpu_gpr_d[15], 0x1u << constant); > + gen_branch_condi(ctx, TCG_COND_NE, temp, 0x1 << constant, offset); > + tcg_temp_free(temp); > + break; > + case OPC1_16_SBRN_JNZ_T: > + temp = tcg_temp_new(); > + tcg_gen_andi_tl(temp, cpu_gpr_d[15], 0x1u << constant); > + gen_branch_condi(ctx, TCG_COND_EQ, temp, 0x1 << constant, offset); > + tcg_temp_free(temp); > + break;
Compare vs zero after the andi. r~