Commit 5b774d92 by Chung-Ju Wu Committed by Chung-Ju Wu

[NDS32] Change return type of predicator to bool.

gcc/
	* config/nds32/nds32-predicates.c
	(nds32_can_use_bclr_p): Change return type as bool.
	(nds32_can_use_bset_p): Ditto.
	(nds32_can_use_btgl_p): Ditto.
	(nds32_can_use_bitci_p): Ditto.
	* config/nds32/nds32-protos.h
	(nds32_can_use_bclr_p): Change declaration.
	(nds32_can_use_bset_p): Ditto.
	(nds32_can_use_btgl_p): Ditto.
	(nds32_can_use_bitci_p): Ditto.

From-SVN: r263497
parent d057a470
2018-08-12 Chung-Ju Wu <jasonwucj@gmail.com> 2018-08-12 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32-predicates.c
(nds32_can_use_bclr_p): Change return type as bool.
(nds32_can_use_bset_p): Ditto.
(nds32_can_use_btgl_p): Ditto.
(nds32_can_use_bitci_p): Ditto.
* config/nds32/nds32-protos.h
(nds32_can_use_bclr_p): Change declaration.
(nds32_can_use_bset_p): Ditto.
(nds32_can_use_btgl_p): Ditto.
(nds32_can_use_bitci_p): Ditto.
2018-08-12 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_expand_prologue, nds32_expand_epilogue): * config/nds32/nds32.c (nds32_expand_prologue, nds32_expand_epilogue):
Support -msched-prolog-epilog option. Support -msched-prolog-epilog option.
* config/nds32/nds32.opt (msched-prolog-epilog): New option. * config/nds32/nds32.opt (msched-prolog-epilog): New option.
......
...@@ -356,8 +356,8 @@ nds32_valid_stack_push_pop_p (rtx op, bool push_p) ...@@ -356,8 +356,8 @@ nds32_valid_stack_push_pop_p (rtx op, bool push_p)
} }
/* Function to check if 'bclr' instruction can be used with IVAL. */ /* Function to check if 'bclr' instruction can be used with IVAL. */
int bool
nds32_can_use_bclr_p (int ival) nds32_can_use_bclr_p (HOST_WIDE_INT ival)
{ {
int one_bit_count; int one_bit_count;
unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode); unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode);
...@@ -373,8 +373,8 @@ nds32_can_use_bclr_p (int ival) ...@@ -373,8 +373,8 @@ nds32_can_use_bclr_p (int ival)
} }
/* Function to check if 'bset' instruction can be used with IVAL. */ /* Function to check if 'bset' instruction can be used with IVAL. */
int bool
nds32_can_use_bset_p (int ival) nds32_can_use_bset_p (HOST_WIDE_INT ival)
{ {
int one_bit_count; int one_bit_count;
unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode); unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode);
...@@ -389,8 +389,8 @@ nds32_can_use_bset_p (int ival) ...@@ -389,8 +389,8 @@ nds32_can_use_bset_p (int ival)
} }
/* Function to check if 'btgl' instruction can be used with IVAL. */ /* Function to check if 'btgl' instruction can be used with IVAL. */
int bool
nds32_can_use_btgl_p (int ival) nds32_can_use_btgl_p (HOST_WIDE_INT ival)
{ {
int one_bit_count; int one_bit_count;
unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode); unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode);
...@@ -405,8 +405,8 @@ nds32_can_use_btgl_p (int ival) ...@@ -405,8 +405,8 @@ nds32_can_use_btgl_p (int ival)
} }
/* Function to check if 'bitci' instruction can be used with IVAL. */ /* Function to check if 'bitci' instruction can be used with IVAL. */
int bool
nds32_can_use_bitci_p (int ival) nds32_can_use_bitci_p (HOST_WIDE_INT ival)
{ {
/* If we are using V3 ISA, we have 'bitci' instruction. /* If we are using V3 ISA, we have 'bitci' instruction.
Try to see if we can present 'andi' semantic with Try to see if we can present 'andi' semantic with
......
...@@ -138,11 +138,11 @@ extern bool nds32_valid_stack_push_pop_p (rtx, bool); ...@@ -138,11 +138,11 @@ extern bool nds32_valid_stack_push_pop_p (rtx, bool);
/* Auxiliary functions for bit operation detection. */ /* Auxiliary functions for bit operation detection. */
extern int nds32_can_use_bclr_p (int); extern bool nds32_can_use_bclr_p (HOST_WIDE_INT);
extern int nds32_can_use_bset_p (int); extern bool nds32_can_use_bset_p (HOST_WIDE_INT);
extern int nds32_can_use_btgl_p (int); extern bool nds32_can_use_btgl_p (HOST_WIDE_INT);
extern int nds32_can_use_bitci_p (int); extern bool nds32_can_use_bitci_p (HOST_WIDE_INT);
extern bool nds32_const_double_range_ok_p (rtx, machine_mode, extern bool nds32_const_double_range_ok_p (rtx, machine_mode,
HOST_WIDE_INT, HOST_WIDE_INT); HOST_WIDE_INT, HOST_WIDE_INT);
......
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