Commit 94a54f47 by Geoff Keating Committed by Geoffrey Keating

rs6000.c (output_cbranch): Don't output prediction codes when old mnemonics are in use.

* rs6000.c (output_cbranch): Don't output prediction codes
when old mnemonics are in use.  Print register names
for cc registers when requested.

From-SVN: r33897
parent 99d05d99
2000-05-14 Geoffrey Keating <geoffk@cygnus.com> 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
* rs6000.c (output_cbranch): Don't output prediction codes
when old mnemonics are in use. Print register names
for cc registers when requested.
* optabs.c (expand_float): Don't allow mode widening that causes * optabs.c (expand_float): Don't allow mode widening that causes
double rounding. double rounding.
......
...@@ -4051,7 +4051,8 @@ output_cbranch (op, label, reversed, insn) ...@@ -4051,7 +4051,8 @@ output_cbranch (op, label, reversed, insn)
abort(); abort();
} }
/* Maybe we have a guess as to how likely the branch is. */ /* Maybe we have a guess as to how likely the branch is.
The old mnemonics don't have a way to specify this information. */
note = find_reg_note (insn, REG_BR_PROB, NULL_RTX); note = find_reg_note (insn, REG_BR_PROB, NULL_RTX);
if (note != NULL_RTX) if (note != NULL_RTX)
{ {
...@@ -4069,11 +4070,11 @@ output_cbranch (op, label, reversed, insn) ...@@ -4069,11 +4070,11 @@ output_cbranch (op, label, reversed, insn)
pred = ""; pred = "";
if (label == NULL) if (label == NULL)
s += sprintf (s, "{b%sr|b%slr}%s ", ccode, ccode, pred); s += sprintf (s, "{b%sr|b%slr%s} ", ccode, ccode, pred);
else else
s += sprintf (s, "b%s%s ", ccode, pred); s += sprintf (s, "{b%s|b%s%s} ", ccode, ccode, pred);
s += sprintf (s, "%d", cc_regno); s += sprintf (s, "%s", reg_names[cc_regno + CR0_REGNO]);
if (label != NULL) if (label != NULL)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment