From bafb5bc228b17409ecc4c7e1984ad34a44dffba5 Mon Sep 17 00:00:00 2001 From: jasonwucj Date: Sun, 22 Apr 2018 08:51:26 +0000 Subject: [PATCH] [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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259551 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/nds32/nds32-protos.h | 4 ---- gcc/config/nds32/nds32.c | 22 ---------------------- 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b32490e3072..d84f5bc71f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ 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 * config/nds32/nds32-protos.h (nds32_case_vector_shorten_mode): 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) -- 2.11.4.GIT