alpha.c (alpha_emit_setcc): Fix test for when gen_lowpart is needed.

* config/alpha/alpha.c (alpha_emit_setcc): Fix test for
        when gen_lowpart is needed.

From-SVN: r148413
This commit is contained in:
Richard Henderson 2009-06-11 22:23:38 -07:00 committed by Richard Henderson
parent 42755c2151
commit 7c1db202df
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-06-11 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_emit_setcc): Fix test for
when gen_lowpart is needed.
2009-06-11 Richard Henderson <rth@redhat.com>
* dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.

View File

@ -2623,7 +2623,7 @@ alpha_emit_setcc (rtx operands[], enum machine_mode cmp_mode)
emit_insn (gen_rtx_SET (VOIDmode, tmp,
gen_rtx_fmt_ee (cmp_code, cmp_mode, op0, op1)));
op0 = cmp_mode == DImode ? gen_lowpart (DImode, tmp) : tmp;
op0 = cmp_mode != DImode ? gen_lowpart (DImode, tmp) : tmp;
op1 = const0_rtx;
}