diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-04-13 00:40:40 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-04-19 08:41:40 -0700 |
commit | 04a9209dc865dafe3c9615f5c868aa3fd89b96cf (patch) | |
tree | d79f1500e73fcaeb167fc68a85df8453cf55c823 /gcc/tree-vect-patterns.cc | |
parent | ed32ec26697cc77492d094b31a0d2eebc0535644 (diff) | |
download | gcc-04a9209dc865dafe3c9615f5c868aa3fd89b96cf.zip gcc-04a9209dc865dafe3c9615f5c868aa3fd89b96cf.tar.gz gcc-04a9209dc865dafe3c9615f5c868aa3fd89b96cf.tar.bz2 |
i386: Add new pattern for zero-extend cmov
After a phiopt change, I got a failure of cmov9.c.
The RTL IR has zero_extend on the outside of
the if_then_else rather than on the side. Both
ways are considered canonical as mentioned in
PR 66588.
This fixes the failure I got and also adds a testcase
which fails before even my phiopt patch but will pass
with this patch.
OK? Bootstrapped and tested on x86_64-linux-gnu with
no regressions.
gcc/ChangeLog:
* config/i386/i386.md (*movsicc_noc_zext_1): New pattern.
gcc/testsuite/ChangeLog:
* gcc.target/i386/cmov10.c: New test.
* gcc.target/i386/cmov11.c: New test.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions