]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix bootstrap failure on SPARC with -O3 -mvis3
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 18 Dec 2024 20:48:36 +0000 (21:48 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 18 Dec 2024 21:18:02 +0000 (22:18 +0100)
commited5ef9b39291e9d76e5caf4d96d7e6b09a35591e
treea61c2842b406d2d7bfd04872a78da5a110149b5e
parent33502a11e47a87f1423a80bead8e87fbd6363fa1
Fix bootstrap failure on SPARC with -O3 -mvis3

This replaces the use of FAIL in the new vec_cmp[u] expanders by that of a
predicate for the operator, which is (apparently) required for the optabs
machinery to properly compute the set of supported vector comparisons.

gcc/
PR target/118096
* config/sparc/predicates.md (vec_cmp_operator): New predicate.
(vec_cmpu_operator): Likewise.
* config/sparc/sparc.md (vec_cmp<FPCMP:mode><P:mode>): Use the
vec_cmp_operator predicate instead of FAILing the expansion.
(vec_cmpu<FPCMP:mode><P:mode>): Likewise for vec_cmpu_operator.
gcc/config/sparc/predicates.md
gcc/config/sparc/sparc.md