* config/pa/pa.c (output_cbranch): Check for zero in operands[2].
authorSteve Ellcey <sje@cup.hp.com>
Tue, 20 Sep 2005 21:29:30 +0000 (21:29 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Tue, 20 Sep 2005 21:29:30 +0000 (21:29 +0000)
From-SVN: r104465

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

index 0a33054085e433c7bcc2345f9270e3ccc8c0141c..15f7f29204daae5e2d55bd01b18239b207f15e86 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 88282589a071cf2ad5a54f816e9b88b8793968a5..d7ce82bbe29cd083a7720c770478a74c64768c06 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.  */