1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-01-11 19:43:42 +01:00

(compile_reg): Fix off-by-1 error for case IA64_WHERE_FR. This makes

Gia64-test-nat.c:check_static_to_fpreg() work.

(Logical change 1.172)
This commit is contained in:
hp.com!davidm 2004-02-19 01:34:08 +00:00
parent f2273f5463
commit 90a9f62a8c

View file

@ -331,7 +331,7 @@ compile_reg (struct ia64_state_record *sr, int i, struct ia64_script *script)
case IA64_WHERE_FR:
if (rval <= 5)
val = IA64_REG_F2 + (rval - 1);
val = IA64_REG_F2 + (rval - 2);
else if (rval >= 16 && rval <= 31)
val = IA64_REG_F16 + (rval - 16);
else