From efdbb285f5154d274861751a222da25a8bbed3ce Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Thu, 10 Sep 2015 11:19:52 +0200 Subject: [PATCH] arc.md (length): Fix attribute length for conditional executed instructions with long immediate. 2015-09-10 Claudiu Zissulescu * config/arc/arc.md (length): Fix attribute length for conditional executed instructions with long immediate. (posted as: https://gcc.gnu.org/ml/gcc/2015-03/msg00268.html) From-SVN: r227626 --- gcc/ChangeLog | 5 +++++ gcc/config/arc/arc.md | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d32e483d812..17b46e78631 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-10 Claudiu Zissulescu + + * config/arc/arc.md (length): Fix attribute length for conditional + executed instructions with long immediate. + 2015-09-10 Kyrylo Tkachov * config/aarch64/aarch64.md (*and3nr_compare0): Use logics_imm diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index 931f9a18703..cfc4d325e98 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -337,9 +337,13 @@ (match_test "GET_CODE (PATTERN (insn)) == COND_EXEC") (const_int 4)] (const_int 2)) - (eq_attr "iscompact" "true_limm,maybe_limm") + (eq_attr "iscompact" "true_limm") (const_int 6) + (eq_attr "iscompact" "maybe_limm") + (cond [(match_test "GET_CODE (PATTERN (insn)) == COND_EXEC") (const_int 8)] + (const_int 6)) + (eq_attr "type" "load") (if_then_else (match_operand 1 "long_immediate_loadstore_operand" "") -- 2.30.2