static unsigned int dec_btstq(DisasContext *dc)

{

	TCGv l0;

	dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4);

	DIS(fprintf (logfile, "btstq %u, $r%d\n", dc->op1, dc->op2));



	cris_cc_mask(dc, CC_MASK_NZ);

	l0 = tcg_temp_local_new(TCG_TYPE_TL);

	cris_alu(dc, CC_OP_BTST,

		 l0, cpu_R[dc->op2], tcg_const_tl(dc->op1), 4);

	cris_update_cc_op(dc, CC_OP_FLAGS, 4);

	t_gen_mov_preg_TN(dc, PR_CCS, l0);

	dc->flags_uptodate = 1;

	tcg_temp_free(l0);

	return 2;

}

static unsigned int dec_btstq(DisasContext *dc)

{

	TCGv l0;

	dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4);

	DIS(fprintf (logfile, "btstq %u, $r%d\n", dc->op1, dc->op2));



	cris_cc_mask(dc, CC_MASK_NZ);

	l0 = tcg_temp_local_new(TCG_TYPE_TL);

	cris_alu(dc, CC_OP_BTST,

		 l0, cpu_R[dc->op2], tcg_const_tl(dc->op1), 4);

	cris_update_cc_op(dc, CC_OP_FLAGS, 4);

	t_gen_mov_preg_TN(dc, PR_CCS, l0);

	dc->flags_uptodate = 1;

	tcg_temp_free(l0);

	return 2;

}

static unsigned int FUNC_0(DisasContext *VAR_0)

{

	TCGv l0;

	VAR_0->op1 = EXTRACT_FIELD(VAR_0->ir, 0, 4);

	DIS(fprintf (logfile, "btstq %u, $r%d\n", VAR_0->op1, VAR_0->op2));



	cris_cc_mask(VAR_0, CC_MASK_NZ);

	l0 = tcg_temp_local_new(TCG_TYPE_TL);

	cris_alu(VAR_0, CC_OP_BTST,

		 l0, cpu_R[VAR_0->op2], tcg_const_tl(VAR_0->op1), 4);

	cris_update_cc_op(VAR_0, CC_OP_FLAGS, 4);

	t_gen_mov_preg_TN(VAR_0, PR_CCS, l0);

	VAR_0->flags_uptodate = 1;

	tcg_temp_free(l0);

	return 2;

}

static unsigned int FUNC_0(DisasContext *VAR_0)
{ TCGv l0; VAR_0->op1 = EXTRACT_FIELD(VAR_0->ir, 0, 4); DIS(fprintf (logfile, "btstq %u, $r%d\n", VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZ); l0 = tcg_temp_local_new(TCG_TYPE_TL); cris_alu(VAR_0, CC_OP_BTST,
l0, cpu_R[VAR_0->op2], tcg_const_tl(VAR_0->op1), 4); cris_update_cc_op(VAR_0, CC_OP_FLAGS, 4); t_gen_mov_preg_TN(VAR_0, PR_CCS, l0); VAR_0->flags_uptodate = 1; tcg_temp_free(l0); return 2; }