diff options
Diffstat (limited to 'gcc/config/nds32')
-rw-r--r-- | gcc/config/nds32/nds32-predicates.c | 16 | ||||
-rw-r--r-- | gcc/config/nds32/nds32-protos.h | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/gcc/config/nds32/nds32-predicates.c b/gcc/config/nds32/nds32-predicates.c index ba77700..b41b6c7 100644 --- a/gcc/config/nds32/nds32-predicates.c +++ b/gcc/config/nds32/nds32-predicates.c @@ -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. */ -int -nds32_can_use_bclr_p (int ival) +bool +nds32_can_use_bclr_p (HOST_WIDE_INT ival) { int one_bit_count; unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode); @@ -373,8 +373,8 @@ nds32_can_use_bclr_p (int ival) } /* Function to check if 'bset' instruction can be used with IVAL. */ -int -nds32_can_use_bset_p (int ival) +bool +nds32_can_use_bset_p (HOST_WIDE_INT ival) { int one_bit_count; unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode); @@ -389,8 +389,8 @@ nds32_can_use_bset_p (int ival) } /* Function to check if 'btgl' instruction can be used with IVAL. */ -int -nds32_can_use_btgl_p (int ival) +bool +nds32_can_use_btgl_p (HOST_WIDE_INT ival) { int one_bit_count; unsigned HOST_WIDE_INT mask = GET_MODE_MASK (SImode); @@ -405,8 +405,8 @@ nds32_can_use_btgl_p (int ival) } /* Function to check if 'bitci' instruction can be used with IVAL. */ -int -nds32_can_use_bitci_p (int ival) +bool +nds32_can_use_bitci_p (HOST_WIDE_INT ival) { /* If we are using V3 ISA, we have 'bitci' instruction. Try to see if we can present 'andi' semantic with diff --git a/gcc/config/nds32/nds32-protos.h b/gcc/config/nds32/nds32-protos.h index 5c4d233..7fb2315 100644 --- a/gcc/config/nds32/nds32-protos.h +++ b/gcc/config/nds32/nds32-protos.h @@ -138,11 +138,11 @@ extern bool nds32_valid_stack_push_pop_p (rtx, bool); /* Auxiliary functions for bit operation detection. */ -extern int nds32_can_use_bclr_p (int); -extern int nds32_can_use_bset_p (int); -extern int nds32_can_use_btgl_p (int); +extern bool nds32_can_use_bclr_p (HOST_WIDE_INT); +extern bool nds32_can_use_bset_p (HOST_WIDE_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, HOST_WIDE_INT, HOST_WIDE_INT); |