MSP430: Remove unused msp430_hard_regno_nregs_*_padding functions
2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com> * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove and add comment. (msp430_hard_regno_nregs_with_padding): Remove. From-SVN: r277395
This commit is contained in:
parent
d8e4dc54a6
commit
39a6e72a9e
2 changed files with 9 additions and 22 deletions
|
@ -1,3 +1,9 @@
|
|||
2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
||||
|
||||
* config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
|
||||
and add comment.
|
||||
(msp430_hard_regno_nregs_with_padding): Remove.
|
||||
|
||||
2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
||||
|
||||
* config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
|
||||
|
|
|
@ -332,28 +332,9 @@ msp430_hard_regno_nregs (unsigned int, machine_mode mode)
|
|||
/ UNITS_PER_WORD);
|
||||
}
|
||||
|
||||
/* Implements HARD_REGNO_NREGS_HAS_PADDING. */
|
||||
int
|
||||
msp430_hard_regno_nregs_has_padding (int regno ATTRIBUTE_UNUSED,
|
||||
machine_mode mode)
|
||||
{
|
||||
if (mode == PSImode && msp430x)
|
||||
return 1;
|
||||
return ((GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1)
|
||||
/ UNITS_PER_WORD);
|
||||
}
|
||||
|
||||
/* Implements HARD_REGNO_NREGS_WITH_PADDING. */
|
||||
int
|
||||
msp430_hard_regno_nregs_with_padding (int regno ATTRIBUTE_UNUSED,
|
||||
machine_mode mode)
|
||||
{
|
||||
if (mode == PSImode)
|
||||
return 2;
|
||||
if (mode == CPSImode)
|
||||
return 4;
|
||||
return msp430_hard_regno_nregs (regno, mode);
|
||||
}
|
||||
/* subreg_get_info correctly handles PSImode registers, so defining
|
||||
HARD_REGNO_NREGS_HAS_PADDING and HARD_REGNO_NREGS_WITH_PADDING
|
||||
has no effect. */
|
||||
|
||||
#undef TARGET_HARD_REGNO_MODE_OK
|
||||
#define TARGET_HARD_REGNO_MODE_OK msp430_hard_regno_mode_ok
|
||||
|
|
Loading…
Add table
Reference in a new issue