* config/pa/pa.c (output_cbranch): Check for zero in operands[2].
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Sep 2005 21:29:30 +0000 (21:29 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Sep 2005 21:29:30 +0000 (21:29 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104465 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/pa.c

index 0a33054..15f7f29 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-20  Steve Ellcey  <sje@cup.hp.com>
+
+       * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
+
 2005-09-20  Richard Henderson  <rth@redhat.com>
 
        * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
index 8828258..d7ce82b 100644 (file)
@@ -5922,6 +5922,8 @@ output_cbranch (rtx *operands, int nullify, int length, int negated, rtx insn)
      zero for cmpb, we must ensure that we use cmpb for the comparison.  */
   if (GET_MODE (operands[1]) == DImode && operands[2] == const0_rtx)
     operands[2] = gen_rtx_REG (DImode, 0);
+  if (GET_MODE (operands[2]) == DImode && operands[1] == const0_rtx)
+    operands[1] = gen_rtx_REG (DImode, 0);
 
   /* If this is a long branch with its delay slot unfilled, set `nullify'
      as it can nullify the delay slot and save a nop.  */