diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 54f2f7a..e9dd537 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-08-31 Eric Botcazou <ebotcazou@adacore.com> + + * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard. + 2016-08-30 David Malcolm <dmalcolm@redhat.com> * diagnostic-show-locus.c (colorizer::begin_state): Support more diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 43a832e..946f308 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -9127,7 +9127,8 @@ thumb1_size_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer) if (satisfies_constraint_J (SET_SRC (x)) || satisfies_constraint_K (SET_SRC (x)) /* Too big an immediate for a 2-byte mov, using MOVT. */ - || (UINTVAL (SET_SRC (x)) >= 256 + || (CONST_INT_P (SET_SRC (x)) + && UINTVAL (SET_SRC (x)) >= 256 && TARGET_HAVE_MOVT && satisfies_constraint_j (SET_SRC (x))) /* thumb1_movdi_insn. */ |