Revision bdf46ea2 target-sparc/translate.c

b/target-sparc/translate.c
419 419
    tcg_gen_brcond_tl(TCG_COND_NE, r_temp, tcg_const_tl(0), l1);
420 420
    tcg_gen_ori_i32(cpu_psr, cpu_psr, PSR_ZERO);
421 421
    gen_set_label(l1);
422
    tcg_gen_andi_tl(r_temp, dst, 0xffffffffULL);
422
    tcg_gen_ext_i32_tl(r_temp, dst);
423 423
    tcg_gen_brcond_tl(TCG_COND_GE, r_temp, tcg_const_tl(0), l2);
424 424
    tcg_gen_ori_i32(cpu_psr, cpu_psr, PSR_NEG);
425 425
    gen_set_label(l2);

Also available in: Unified diff