re PR middle-end/6100 (sparc-sun-solaris2.7 gcc-3.1 RTL checking failure w/-m64 on compile/20020320-1.c)

PR middle-end/6100
	* config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
	REG_BR_PRED.
	(output_v9branch): Likewise.

From-SVN: r51663
This commit is contained in:
Jakub Jelinek 2002-03-31 20:37:36 +02:00 committed by Jakub Jelinek
parent d05972d298
commit 4f31cce8e4
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2002-03-31 Jakub Jelinek <jakub@redhat.com>
PR middle-end/6100
* config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
REG_BR_PRED.
(output_v9branch): Likewise.
2002-03-31 Alexandre Oliva <aoliva@redhat.com>
* gcc.c: Revert previous patch for now.

View File

@ -5226,10 +5226,10 @@ output_cbranch (op, dest, label, reversed, annul, noop, insn)
labelno = "";
}
if (*labelno && insn && (note = find_reg_note (insn, REG_BR_PRED, NULL_RTX)))
if (*labelno && insn && (note = find_reg_note (insn, REG_BR_PROB, NULL_RTX)))
{
strcpy (p,
(((INTVAL (XEXP (note, 0)) & ATTR_FLAG_likely) != 0) ^ far)
((INTVAL (XEXP (note, 0)) >= REG_BR_PROB_BASE / 2) ^ far)
? ",pt" : ",pn");
p += 3;
spaces -= 3;
@ -5534,10 +5534,10 @@ output_v9branch (op, dest, reg, label, reversed, annul, noop, insn)
p += 2;
}
if (insn && (note = find_reg_note (insn, REG_BR_PRED, NULL_RTX)))
if (insn && (note = find_reg_note (insn, REG_BR_PROB, NULL_RTX)))
{
strcpy (p,
(((INTVAL (XEXP (note, 0)) & ATTR_FLAG_likely) != 0) ^ far)
((INTVAL (XEXP (note, 0)) >= REG_BR_PROB_BASE / 2) ^ far)
? ",pt" : ",pn");
p += 3;
}