alpha.c (alpha_emit_setcc): Fix test for when gen_lowpart is needed.
authorRichard Henderson <rth@redhat.com>
Fri, 12 Jun 2009 05:23:38 +0000 (22:23 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 12 Jun 2009 05:23:38 +0000 (22:23 -0700)
        * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
        when gen_lowpart is needed.

From-SVN: r148413

gcc/ChangeLog
gcc/config/alpha/alpha.c

index 3888eb6..c542648 100644 (file)
@@ -1,5 +1,10 @@
 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.
 
        * dwarf2out.c (need_data_align_sf_opcode): New.
index 1803627..314c217 100644 (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;
     }