diff options
author | Geoffrey Keating <geoffk@redhat.com> | 2001-11-04 07:41:04 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2001-11-04 07:41:04 +0000 |
commit | 5766e0ef6a281577e782b2af53241ada609aaf18 (patch) | |
tree | 9b25a8f0da7c79243b6b428de75c808d3e3473da | |
parent | 3fdb2f711edcfae345505ef2173be634b564eb3f (diff) | |
download | gcc-5766e0ef6a281577e782b2af53241ada609aaf18.zip gcc-5766e0ef6a281577e782b2af53241ada609aaf18.tar.gz gcc-5766e0ef6a281577e782b2af53241ada609aaf18.tar.bz2 |
stormy16.c (stormy16_output_shift): Don't look at 'temp' if we won't be using it.
* config/stormy16/stormy16.c (stormy16_output_shift): Don't
look at 'temp' if we won't be using it.
From-SVN: r46765
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/config/stormy16/stormy16.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 10b3542..bcf73c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-11-03 Geoffrey Keating <geoffk@redhat.com> + * config/stormy16/stormy16.c (stormy16_output_shift): Don't + look at 'temp' if we won't be using it. + * config/stormy16/stormy16.h (CONST_COSTS): Define. (RTX_COSTS): Define. (ADDRESS_COST): Define. diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index ef4951d..059f3eb 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -1863,7 +1863,6 @@ stormy16_output_shift (mode, code, x, size_r, temp) r0 = reg_names [REGNO (x)]; r1 = reg_names [REGNO (x) + 1]; - rt = reg_names [REGNO (temp)]; /* For shifts of size 1, we can use the rotate instructions. */ if (size == 1) @@ -1928,6 +1927,7 @@ stormy16_output_shift (mode, code, x, size_r, temp) /* For the rest, we have to do more work. In particular, we need a temporary. */ + rt = reg_names [REGNO (temp)]; switch (code) { case ASHIFT: |