diff options
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 3ae06e4..2029528 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3635,8 +3635,8 @@ subreg_size_offset_from_lsb (unsigned int outer_bytes, function does not check whether adding INFO->offset to XREGNO gives a valid hard register; even if INFO->offset + XREGNO is out of range, there might be another register of the same type that is in range. - Likewise it doesn't check whether HARD_REGNO_MODE_OK accepts the new - register, since that can depend on things like whether the final + Likewise it doesn't check whether targetm.hard_regno_mode_ok accepts + the new register, since that can depend on things like whether the final register number is even or odd. Callers that want to check whether this particular subreg can be replaced by a simple (reg ...) should use simplify_subreg_regno. */ @@ -3901,8 +3901,8 @@ simplify_subreg_regno (unsigned int xregno, machine_mode xmode, ??? We allow invalid registers if (reg:XMODE XREGNO) is also invalid. This is a kludge to work around how complex FP arguments are passed on IA-64 and should be fixed. See PR target/49226. */ - if (!HARD_REGNO_MODE_OK (yregno, ymode) - && HARD_REGNO_MODE_OK (xregno, xmode)) + if (!targetm.hard_regno_mode_ok (yregno, ymode) + && targetm.hard_regno_mode_ok (xregno, xmode)) return -1; return (int) yregno; |