diff options
author | Paul Brook <paul@codesourcery.com> | 2011-09-19 09:11:56 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2011-09-19 09:11:56 +0000 |
commit | a3627303ee33116be7f61fbf8f8f5547baf04a03 (patch) | |
tree | 89b4bb6d166301db056de1b4ff8456a51c3f4049 | |
parent | 1e6a52b48ccd2fe1e30f6114a4e05b7bb3c5310d (diff) | |
download | gcc-a3627303ee33116be7f61fbf8f8f5547baf04a03.zip gcc-a3627303ee33116be7f61fbf8f8f5547baf04a03.tar.gz gcc-a3627303ee33116be7f61fbf8f8f5547baf04a03.tar.bz2 |
predicates.md (shift_amount_operand): Check constant shift count is in range.
2011-09-19 Paul Brook <paul@codesourcery.com>
gcc/
* config/arm/predicates.md (shift_amount_operand): Check constant
shift count is in range.
(const_shift_operand): Remove.
From-SVN: r178966
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/arm/predicates.md | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7c7279..b80cd8b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-09-19 Paul Brook <paul@codesourcery.com> + + gcc/ + * config/arm/predicates.md (shift_amount_operand): Check constant + shift count is in range. + (const_shift_operand): Remove. + 2011-09-18 Eric Botcazou <ebotcazou@adacore.com> Iain Sandoe <developer@sandoe-acoustics.co.uk> diff --git a/gcc/config/arm/predicates.md b/gcc/config/arm/predicates.md index c7d6206..df8990e 100644 --- a/gcc/config/arm/predicates.md +++ b/gcc/config/arm/predicates.md @@ -132,7 +132,8 @@ (define_predicate "shift_amount_operand" (ior (and (match_test "TARGET_ARM") (match_operand 0 "s_register_operand")) - (match_operand 0 "const_int_operand"))) + (and (match_code "const_int") + (match_test "((unsigned HOST_WIDE_INT) INTVAL (op)) < 32")))) (define_predicate "arm_add_operand" (ior (match_operand 0 "arm_rhs_operand") @@ -344,12 +345,6 @@ (and (match_code "reg,subreg,mem") (match_operand 0 "nonimmediate_soft_df_operand")))) -(define_predicate "const_shift_operand" - (and (match_code "const_int") - (ior (match_operand 0 "power_of_two_operand") - (match_test "((unsigned HOST_WIDE_INT) INTVAL (op)) < 32")))) - - (define_special_predicate "load_multiple_operation" (match_code "parallel") { |