flow.c (find_regno_partial): Return register, not the expression the register is in.

2001-12-06  Andrew MacLeod <amacleod@redhat.com>

	* flow.c (find_regno_partial): Return register, not the expression
	the register is in.

From-SVN: r47720
This commit is contained in:
Andrew MacLeod 2001-12-06 14:39:11 +00:00 committed by Andrew Macleod
parent f189c7caea
commit 69da3e3a72
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-12-06 Andrew MacLeod <amacleod@redhat.com>
* flow.c (find_regno_partial): Return register, not the expression
the register is in.
Thu Dec 6 09:24:12 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* function.c (handle_epilogue_set): Check for FP setting case when

View File

@ -1327,7 +1327,7 @@ find_regno_partial (ptr, data)
case STRICT_LOW_PART:
if (GET_CODE (XEXP (*ptr, 0)) == REG && REGNO (XEXP (*ptr, 0)) == reg)
{
param->retval = *ptr;
param->retval = XEXP (*ptr, 0);
return 1;
}
break;
@ -1336,7 +1336,7 @@ find_regno_partial (ptr, data)
if (GET_CODE (SUBREG_REG (*ptr)) == REG
&& REGNO (SUBREG_REG (*ptr)) == reg)
{
param->retval = *ptr;
param->retval = SUBREG_REG (*ptr);
return 1;
}
break;