From: Richard Kenner Date: Mon, 21 Jun 1993 23:21:04 +0000 (-0400) Subject: (print_operand, case 'J'): Write out shift count of 0, not 32 for bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0466a68245dbef92227b1e88891b1c771772bf2;p=gcc.git (print_operand, case 'J'): Write out shift count of 0, not 32 for bit 31 of CCR. From-SVN: r4707 --- diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 3f97f44fa38..c92fde81b06 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -840,7 +840,8 @@ print_operand (file, x, code) if (i == -1) output_operand_lossage ("invalid %%J code"); else - fprintf (file, "%d", i + 1); + /* If we want bit 31, write a shift count of zero, not 32. */ + fprintf (file, "%d", i == 31 ? 0 : i + 1); return; case 'k':