Commit 029db20e by Shiva Chen Committed by Chung-Ju Wu

[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
parent 2f1bb3ca
2018-04-22 Shiva Chen <shiva0217@gmail.com> 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> Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32-protos.h (nds32_case_vector_shorten_mode): * config/nds32/nds32-protos.h (nds32_case_vector_shorten_mode):
......
...@@ -69,10 +69,6 @@ extern unsigned int nds32_dbx_register_number (unsigned int); ...@@ -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. */ /* Auxiliary functions for lwm/smw. */
extern bool nds32_valid_smw_lwm_base_p (rtx); extern bool nds32_valid_smw_lwm_base_p (rtx);
......
...@@ -4787,28 +4787,6 @@ nds32_case_vector_shorten_mode (int min_offset, int max_offset, ...@@ -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. */ /* Return alignment for the label. */
int int
nds32_target_alignment (rtx_insn *label) nds32_target_alignment (rtx_insn *label)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment