diff options
author | Steve Ellcey <sje@cup.hp.com> | 2005-09-20 21:29:30 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2005-09-20 21:29:30 +0000 |
commit | 9972f30d1c2b29cdfc35421bbb5f4902ff0a1879 (patch) | |
tree | b8a3a4d001039d06c780e91e771cc6e99da938a0 /gcc | |
parent | 29b2d8671e5694c2e5c5aa4e90c49542b55be18a (diff) | |
download | gcc-9972f30d1c2b29cdfc35421bbb5f4902ff0a1879.zip gcc-9972f30d1c2b29cdfc35421bbb5f4902ff0a1879.tar.gz gcc-9972f30d1c2b29cdfc35421bbb5f4902ff0a1879.tar.bz2 |
* config/pa/pa.c (output_cbranch): Check for zero in operands[2].
From-SVN: r104465
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a33054..15f7f29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 8828258..d7ce82b 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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. */ |