]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/arc/predicates.md
[ARC] Fix move_double_src_operand predicate.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 27 Mar 2017 10:56:46 +0000 (12:56 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 27 Mar 2017 10:56:46 +0000 (12:56 +0200)
commite5dcff3eb55dcccf1ad20d94c0f5680f75f3b75c
tree58a74d8196faec545c085f294fc96f8192b072b6
parentc4192ad7027a3e991134b5d6d5f2d7451d058f48
[ARC] Fix move_double_src_operand predicate.

Durring compilation process, (subreg (mem ...) ...) can occur. Hence,
we need to check if the address of mem is a valid one. This patch is
fixing this check by directly calling the address_operand, instead of
calling move_double_src_operand, as the latter is always checking
against the original mode, thus, returning false when the inner and
outer modes are different.

gcc/
2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/predicates.md (move_double_src_operand): Replace the
call to move_double_src_operand with a call to address_operand.

From-SVN: r246499
gcc/ChangeLog
gcc/config/arc/predicates.md