From: Shiva Chen Date: Sun, 22 Apr 2018 08:51:26 +0000 (+0000) Subject: [NDS32] Remove unused function: nds32_ls_333_p(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=029db20edd88bf6aa038cc949f70ba5c3890a5fc;p=gcc.git [NDS32] Remove unused function: nds32_ls_333_p(). gcc/ * config/nds32/nds32-protos.h (nds32_ls_333_p): Remove. * config/nds32/nds32.c (nds32_ls_333_p): Remove. From-SVN: r259551 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b32490e3072..d84f5bc71f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-04-22 Shiva Chen + + * config/nds32/nds32-protos.h (nds32_ls_333_p): Remove. + * config/nds32/nds32.c (nds32_ls_333_p): Remove. + 2018-04-22 Shiva Chen Chung-Ju Wu diff --git a/gcc/config/nds32/nds32-protos.h b/gcc/config/nds32/nds32-protos.h index 2d68f131fcf..7e8111e2755 100644 --- a/gcc/config/nds32/nds32-protos.h +++ b/gcc/config/nds32/nds32-protos.h @@ -69,10 +69,6 @@ extern unsigned int nds32_dbx_register_number (unsigned int); /* ------------------------------------------------------------------------ */ -/* Auxiliary functions for auxiliary macros in nds32.h. */ - -extern bool nds32_ls_333_p (rtx, rtx, rtx, machine_mode); - /* Auxiliary functions for lwm/smw. */ extern bool nds32_valid_smw_lwm_base_p (rtx); diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index a33567eeff4..997cc7672d0 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -4787,28 +4787,6 @@ nds32_case_vector_shorten_mode (int min_offset, int max_offset, /* ------------------------------------------------------------------------ */ -/* Function to test 333-form for load/store instructions. - This is auxiliary extern function for auxiliary macro in nds32.h. - Because it is a little complicated, we use function instead of macro. */ -bool -nds32_ls_333_p (rtx rt, rtx ra, rtx imm, machine_mode mode) -{ - if (REGNO_REG_CLASS (REGNO (rt)) == LOW_REGS - && REGNO_REG_CLASS (REGNO (ra)) == LOW_REGS) - { - if (GET_MODE_SIZE (mode) == 4) - return satisfies_constraint_Iu05 (imm); - - if (GET_MODE_SIZE (mode) == 2) - return satisfies_constraint_Iu04 (imm); - - if (GET_MODE_SIZE (mode) == 1) - return satisfies_constraint_Iu03 (imm); - } - - return false; -} - /* Return alignment for the label. */ int nds32_target_alignment (rtx_insn *label)