diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2015-06-03 21:05:02 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2015-06-11 15:14:17 +0200 |
commit | 0154a81d0b54a0423de2038238dbc1e11acdbe00 (patch) | |
tree | 5c4b22de0692e93b687102db17430593e3ede7ed | |
parent | 32e638e0a676f6ab4d3a39fdb2def07478b5e13a (diff) |
2015-06-03 Christophe Lyon <christophe.lyon@linaro.org>
gcc/
Backport from trunk r222357.
* config/arm/arm.md (load_multiple): Reject operand 2 greater than
MAX_LDM_STM_OPS.
(store_multiple): Likewise.
2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Change-Id: I126e3b1557be32a9c9a8521c2dfef3a27f60bfa4
-rw-r--r-- | gcc/config/arm/arm.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 164ac13a262..1b5e62ec517 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -6676,7 +6676,7 @@ /* Support only fixed point registers. */ if (!CONST_INT_P (operands[2]) - || INTVAL (operands[2]) > 14 + || INTVAL (operands[2]) > MAX_LDM_STM_OPS || INTVAL (operands[2]) < 2 || !MEM_P (operands[1]) || !REG_P (operands[0]) @@ -6701,7 +6701,7 @@ /* Support only fixed point registers. */ if (!CONST_INT_P (operands[2]) - || INTVAL (operands[2]) > 14 + || INTVAL (operands[2]) > MAX_LDM_STM_OPS || INTVAL (operands[2]) < 2 || !REG_P (operands[1]) || !MEM_P (operands[0]) |