From: Segher Boessenkool Date: Wed, 7 Jun 2017 15:14:29 +0000 (+0200) Subject: rs6000: Remove output_e500_flip_gt_bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cad57128d318f405de1398e168d67e0127dc0fe;p=gcc.git rs6000: Remove output_e500_flip_gt_bit * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete. * config/rs6000/rs6000.c: Ditto. From-SVN: r248978 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bce2601bbc9..685f2562c42 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-07 Segher Boessenkool + + * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete. + * config/rs6000/rs6000.c: Ditto. + 2017-06-07 Segher Boessenkool * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete. diff --git a/gcc/config/rs6000/rs6000-protos.h b/gcc/config/rs6000/rs6000-protos.h index 0344823db0a..2955d971c28 100644 --- a/gcc/config/rs6000/rs6000-protos.h +++ b/gcc/config/rs6000/rs6000-protos.h @@ -133,7 +133,6 @@ extern void rs6000_emit_sISEL (machine_mode, rtx[]); extern void rs6000_emit_sCOND (machine_mode, rtx[]); extern void rs6000_emit_cbranch (machine_mode, rtx[]); extern char * output_cbranch (rtx, const char *, int, rtx_insn *); -extern char * output_e500_flip_gt_bit (rtx, rtx); extern const char * output_probe_stack_range (rtx, rtx); extern bool rs6000_emit_set_const (rtx, rtx); extern int rs6000_emit_cmove (rtx, rtx, rtx, rtx); diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 587ec18998a..23e08ca531d 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -25105,24 +25105,6 @@ output_cbranch (rtx op, const char *label, int reversed, rtx_insn *insn) return string; } -/* Return the string to flip the GT bit on a CR. */ -char * -output_e500_flip_gt_bit (rtx dst, rtx src) -{ - static char string[64]; - int a, b; - - gcc_assert (GET_CODE (dst) == REG && CR_REGNO_P (REGNO (dst)) - && GET_CODE (src) == REG && CR_REGNO_P (REGNO (src))); - - /* GT bit. */ - a = 4 * (REGNO (dst) - CR0_REGNO) + 1; - b = 4 * (REGNO (src) - CR0_REGNO) + 1; - - sprintf (string, "crnot %d,%d", a, b); - return string; -} - /* Return insn for VSX or Altivec comparisons. */ static rtx