]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Fix REDUC_SSE_SMINMAX_MODE mode conditions.
authorUros Bizjak <ubizjak@gmail.com>
Sat, 11 Apr 2020 11:22:52 +0000 (13:22 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sat, 11 Apr 2020 11:22:52 +0000 (13:22 +0200)
commit59eddd9769057ee094cdae09b15b257cc3db690f
treef46dc8d9c170ee5f8a844695482c84ae86cc8aeb
parentf41bd52147a32ca8931b5803aeae3c447384d1f0
i386: Fix REDUC_SSE_SMINMAX_MODE mode conditions.

V4SI, V8HI and V16QI modes of redux_<code>_scal_<mode> expander
expand with SSE2 instructions (PSRLDQ and PCMPGTx) so use
TARGET_SSE2 as relevant mode iterator codition.

PR target/94494
* config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE2
condition for V4SI, V8HI and V16QI modes.

testsuite/ChangeLog:

PR target/94494
* gcc.target/i386/pr94494.c: New test.
gcc/testsuite/gcc.target/i386/pr94494.c [new file with mode: 0644]