From a0466a68245dbef92227b1e88891b1c771772bf2 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 21 Jun 1993 19:21:04 -0400 Subject: [PATCH] (print_operand, case 'J'): Write out shift count of 0, not 32 for bit 31 of CCR. From-SVN: r4707 --- gcc/config/rs6000/rs6000.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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': -- 2.30.2