From: Geoff Keating Date: Sun, 14 May 2000 21:37:07 +0000 (+0000) Subject: rs6000.c (output_cbranch): Don't output prediction codes when old mnemonics are in... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94a54f47cfdfc0ed8d8a4c598e3018fd5e5eabca;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ddab6f2b8e6..b909d3ec721 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2000-05-14 Geoffrey Keating + * 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 double rounding. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index b3d391384bc..104cc8d9dfa 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4051,7 +4051,8 @@ output_cbranch (op, label, reversed, insn) 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); if (note != NULL_RTX) { @@ -4069,11 +4070,11 @@ output_cbranch (op, label, reversed, insn) pred = ""; 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 - 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) {