]> git.ipfire.org Git - thirdparty/gcc.git/commit
IBM zSystems: Optimize vec_cmpge followed by vec_sel
authorJuergen Christ <jchrist@linux.ibm.com>
Tue, 18 Jul 2023 06:30:14 +0000 (08:30 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 18 Jul 2023 06:33:03 +0000 (08:33 +0200)
commit615c2e555d34c2b17513c869b309b8f398376874
tree803414c7516368d3cbdc97d407eeab9d88cc92c4
parent6bab2772dbc42ce7a1b29b03ae84e6e434e23c4e
IBM zSystems: Optimize vec_cmpge followed by vec_sel

A vec_cmpge produces a negation.  Replace this negation by swapping the two
selection choices of a vec_sel based on the result of the vec_cmpge.

gcc/ChangeLog:

* config/s390/vx-builtins.md: New vsel pattern.

gcc/testsuite/ChangeLog:

* gcc.target/s390/vector/vec-cmpge.c: New test.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
gcc/config/s390/vx-builtins.md
gcc/testsuite/gcc.target/s390/vector/vec-cmpge.c [new file with mode: 0644]