diff options
author | Jim Wilson <wilson@redhat.com> | 2002-12-24 15:49:24 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2002-12-24 07:49:24 -0800 |
commit | c28b4e4097e22cfc1cd8ff4ec942a9fbc62976c9 (patch) | |
tree | 8a22599996bc1b39e0ceed17e8b3fae0bc72b030 /gcc/alias.c | |
parent | 14b493d64dd504f79cd702bba4b8bae678740af9 (diff) | |
download | gcc-c28b4e4097e22cfc1cd8ff4ec942a9fbc62976c9.zip gcc-c28b4e4097e22cfc1cd8ff4ec942a9fbc62976c9.tar.gz gcc-c28b4e4097e22cfc1cd8ff4ec942a9fbc62976c9.tar.bz2 |
Fix v850 PlumHall testsuite failure.
* alias.c (record_set): Handle multi-reg hard registers.
From-SVN: r60474
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 12029f0..fee64b1 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -932,6 +932,7 @@ record_set (dest, set, data) { unsigned regno; rtx src; + int n; if (GET_CODE (dest) != REG) return; @@ -941,6 +942,22 @@ record_set (dest, set, data) if (regno >= reg_base_value_size) abort (); + /* If this spans multiple hard registers, then we must indicate that every + register has an unusable value. */ + if (regno < FIRST_PSEUDO_REGISTER) + n = HARD_REGNO_NREGS (regno, GET_MODE (dest)); + else + n = 1; + if (n != 1) + { + while (--n >= 0) + { + reg_seen[regno + n] = 1; + new_reg_base_value[regno + n] = 0; + } + return; + } + if (set) { /* A CLOBBER wipes out any old value but does not prevent a previously |