Commit 5766e0ef by Geoffrey Keating Committed by Geoffrey Keating

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
parent 3fdb2f71
2001-11-03 Geoffrey Keating <geoffk@redhat.com> 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. * config/stormy16/stormy16.h (CONST_COSTS): Define.
(RTX_COSTS): Define. (RTX_COSTS): Define.
(ADDRESS_COST): Define. (ADDRESS_COST): Define.
......
...@@ -1863,7 +1863,6 @@ stormy16_output_shift (mode, code, x, size_r, temp) ...@@ -1863,7 +1863,6 @@ stormy16_output_shift (mode, code, x, size_r, temp)
r0 = reg_names [REGNO (x)]; r0 = reg_names [REGNO (x)];
r1 = reg_names [REGNO (x) + 1]; r1 = reg_names [REGNO (x) + 1];
rt = reg_names [REGNO (temp)];
/* For shifts of size 1, we can use the rotate instructions. */ /* For shifts of size 1, we can use the rotate instructions. */
if (size == 1) if (size == 1)
...@@ -1928,6 +1927,7 @@ stormy16_output_shift (mode, code, x, size_r, temp) ...@@ -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 /* For the rest, we have to do more work. In particular, we
need a temporary. */ need a temporary. */
rt = reg_names [REGNO (temp)];
switch (code) switch (code)
{ {
case ASHIFT: case ASHIFT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment