* reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.

From-SVN: r31389
This commit is contained in:
J"orn Rennecke 2000-01-13 16:05:03 +00:00 committed by Joern Rennecke
parent eeb109f2cf
commit 54ed0905ec
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Thu Jan 13 16:03:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.

View File

@ -1,5 +1,5 @@
/* Reload pseudo regs into hard regs for insns that require hard regs.
Copyright (C) 1987, 88, 89, 92-98, 1999 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 89, 92-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
@ -9189,7 +9189,7 @@ reload_combine_note_store (dst, set, data)
{
int regno = 0;
int i;
unsigned size = GET_MODE_SIZE (GET_MODE (dst));
enum machine_mode mode = GET_MODE (dst);
if (GET_CODE (dst) == SUBREG)
{
@ -9209,7 +9209,7 @@ reload_combine_note_store (dst, set, data)
|| GET_CODE (SET_DEST (set)) == SIGN_EXTRACT
|| GET_CODE (SET_DEST (set)) == STRICT_LOW_PART)
{
for (i = (size - 1) / UNITS_PER_WORD + regno; i >= regno; i--)
for (i = HARD_REGNO_NREGS (regno, mode) - 1 + regno; i >= regno; i--)
{
reg_state[i].use_index = -1;
reg_state[i].store_ruid = reload_combine_ruid;
@ -9217,7 +9217,7 @@ reload_combine_note_store (dst, set, data)
}
else
{
for (i = (size - 1) / UNITS_PER_WORD + regno; i >= regno; i--)
for (i = HARD_REGNO_NREGS (regno, mode) - 1 + regno; i >= regno; i--)
{
reg_state[i].store_ruid = reload_combine_ruid;
reg_state[i].use_index = RELOAD_COMBINE_MAX_USES;