]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Cleanup comparison predicates.
authorUros Bizjak <ubizjak@gmail.com>
Thu, 29 Apr 2021 13:24:51 +0000 (15:24 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 29 Apr 2021 13:25:39 +0000 (15:25 +0200)
commitd03ca8a6148f55e119b8220a9c65147173b32065
tree34f03b9e4ea194fe7cac42bdeacf0a5ebf97e942
parentfc14ff611181c274584c7963bc597a6ca50c20a1
i386: Cleanup comparison predicates.

CCCmode is allowed only with GEU and LTU comparison codes.  Also allow
CCGZmode for these two codes.  There is no need to check for trivial FP
comparison operator, ix86_fp_compare_code_to_integer will return
UNKNOWN code for unsupported operators.

2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>

gcc/
* config/i386/predicates.md (fcmov_comparison_operator):
Do not check for trivial FP comparison operator.
<case GEU, case LTU>: Allow CCGZmode.
<case GTU, case LEU>: Do not allow CCCmode.
(ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
(ix86_carry_flag_operator): Match only LTU and UNLT code.
Do not check for trivial FP comparison operator.  Allow CCGZmode.
gcc/config/i386/predicates.md