On Tue, 11 Sep 2012, Segher Boessenkool wrote: > > > 2012-09-10 Maciej W. Rozycki <ma...@codesourcery.com> > > > > > > gcc/ > > > * config/rs6000/rs6000.c (print_operand) <'c'>: Remove. > > > * config/rs6000/spe.md: Remove a leftover comment. > > > > Okay. > > This patch wasn't sent to gcc-patches -- can we see it please?
Umm, I didn't notice a cc to gcc-patches was removed in the course of discussion, sorry about that. Here's the change concerned. Maciej gcc-powerpc-print-operand-c.patch Index: gcc/config/rs6000/spe.md =================================================================== --- gcc/config/rs6000/spe.md (revision 191161) +++ gcc/config/rs6000/spe.md (working copy) @@ -2945,8 +2945,6 @@ "mfspefscr %0" [(set_attr "type" "vecsimple")]) -;; FP comparison stuff. - ;; Flip the GT bit. (define_insn "e500_flip_gt_bit" [(set (match_operand:CCFP 0 "cc_reg_operand" "=y") Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 191161) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -14659,14 +14659,6 @@ print_operand (FILE *file, rtx x, int co /* %c is output_addr_const if a CONSTANT_ADDRESS_P, otherwise output_operand. */ - case 'c': - /* X is a CR register. Print the number of the GT bit of the CR. */ - if (GET_CODE (x) != REG || ! CR_REGNO_P (REGNO (x))) - output_operand_lossage ("invalid %%c value"); - else - fprintf (file, "%d", 4 * (REGNO (x) - CR0_REGNO) + 1); - return; - case 'D': /* Like 'J' but get to the GT bit only. */ gcc_assert (REG_P (x));