]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Implement mmx_pblendv to optimize SSE conditional moves [PR98218]
authorUros Bizjak <ubizjak@gmail.com>
Fri, 7 May 2021 15:14:34 +0000 (17:14 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 7 May 2021 15:15:26 +0000 (17:15 +0200)
commit5795ec0edc30e077a9900cf3ca0a04ad8ac5ac97
tree0f30b09d338a754955904f8eeaf27af42f360b73
parent33b647956caa977d1ae489f9baed9cef70b4f382
i386: Implement mmx_pblendv to optimize SSE conditional moves [PR98218]

Implement mmx_pblendv to optimize V8HI, V4HI and V2SI mode
conditional moves for SSE4.1 targets.

2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>

gcc/
PR target/98218
* config/i386/i386-expand.c (ix86_expand_sse_movcc):
Handle V8QI, V4HI and V2SI modes.
* config/i386/mmx.md (mmx_pblendvb): New insn pattern.
* config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
* config/i386/i386.md (unspec): ... here.
gcc/config/i386/i386-expand.c
gcc/config/i386/i386.md
gcc/config/i386/mmx.md
gcc/config/i386/sse.md