]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Don't reject early mov?fcc patterns that we might be able to handle
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 7 Nov 2025 10:03:43 +0000 (10:03 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 10 Nov 2025 14:46:27 +0000 (14:46 +0000)
commitdbc9d1dade3fa53be7bbef3b90691ab6a84323a3
tree1de4d3ddfe702257f97bc95a676125d5d464c8f3
parenta98b6cf01ba9fb69450a5e883c5d8e8600e2cc95
arm: Don't reject early mov?fcc patterns that we might be able to handle

The define_expand patterns for movdfcc, movsfcc and movhfcc had overly
tight contstraints that could cause the compiler to reject these
patterns when re-ordering the operands could lead to a successful
match.  Relax the initial predicate test and rely on the test after
arm_validize_comparison has run to determine whether this is something
we can support.  This fixes some test failures which were introduced
in the fix for PR118460

gcc/ChangeLog:

PR target/118460
* config/arm/arm.md (movhfcc): Use expandable_comparison_operator.
(movsfcc, movdfcc): Likewise.
gcc/config/arm/arm.md