Commit 343fd2c7 by Kazu Hirata Committed by Kazu Hirata

h8300.c (compute_a_rotate_length): Fix the references to the amount of a rotation.

	* config/h8300/h8300.c (compute_a_rotate_length): Fix the
	references to the amount of a rotation.

From-SVN: r68539
parent 8370378a
2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (compute_a_rotate_length): Fix the
references to the amount of a rotation.
2003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
* config/sh/coff.h: Don't include dbxcoff.h.
......
......@@ -3990,14 +3990,15 @@ unsigned int
compute_a_rotate_length (rtx *operands)
{
rtx src = operands[1];
rtx amount_rtx = operands[2];
enum machine_mode mode = GET_MODE (src);
int amount;
unsigned int length = 0;
if (GET_CODE (XEXP (src, 1)) != CONST_INT)
return 0;
if (GET_CODE (amount_rtx) != CONST_INT)
abort ();
amount = INTVAL (XEXP (src, 1));
amount = INTVAL (amount_rtx);
/* Clean up AMOUNT. */
if (amount < 0)
......
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