diff options
author | jasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-04-22 08:51:26 +0000 |
---|---|---|
committer | jasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-04-22 08:51:26 +0000 |
commit | bafb5bc228b17409ecc4c7e1984ad34a44dffba5 (patch) | |
tree | c83e4898f7c20b33a7ab1b093e7b1b3f5c8f280f | |
parent | d7129f0f3c3ac5e36c024046f41c81bb54bf3796 (diff) |
[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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/nds32/nds32-protos.h | 4 | ||||
-rw-r--r-- | 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 <shiva0217@gmail.com> + + * config/nds32/nds32-protos.h (nds32_ls_333_p): Remove. + * config/nds32/nds32.c (nds32_ls_333_p): Remove. + +2018-04-22 Shiva Chen <shiva0217@gmail.com> Chung-Ju Wu <jasonwucj@gmail.com> * 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) |