diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-06-26 17:50:01 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-06-26 17:50:01 +0000 |
commit | 343fd2c726cc22b177aa3b3e2195aaab73f49f92 (patch) | |
tree | 49c3d221116071e27ca7748be107f28020050036 /gcc | |
parent | 8370378a24b75ed389f16ec53da507bb250beba1 (diff) | |
download | gcc-343fd2c726cc22b177aa3b3e2195aaab73f49f92.zip gcc-343fd2c726cc22b177aa3b3e2195aaab73f49f92.tar.gz gcc-343fd2c726cc22b177aa3b3e2195aaab73f49f92.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 250812c..aea1239 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 54703c2..88a739c 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -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) |