i386: Fix REDUC_SSE_SMINMAX_MODE mode conditions.
authorUros Bizjak <ubizjak@gmail.com>
Sat, 11 Apr 2020 09:51:41 +0000 (11:51 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sat, 11 Apr 2020 09:51:41 +0000 (11:51 +0200)
commitf883c46b4877f637e0fa5025b4d6b5c9040ec566
tree75961caccb7a0f16d375b0f11add6a89034697c4
parentbb87d5cc77db1f28083990f44e20b6c0728d925e
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/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr94494.c [new file with mode: 0644]