i386: Add V2SFmode NEG, ABS and logic insn patterns [PR95046]
authorUros Bizjak <ubizjak@gmail.com>
Tue, 12 May 2020 15:06:13 +0000 (17:06 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Tue, 12 May 2020 15:06:13 +0000 (17:06 +0200)
commit6416f67273aaeafd6ad89c2c82076dabb50f8dbe
tree52978f48c8e49bf2c0617752511080a069ba56a0
parent998fbe9f1f7e5ef53ca79fbd28f8a3875a477baa
i386: Add V2SFmode NEG, ABS and logic insn patterns [PR95046]

gcc/ChangeLog:

PR target/95046
* config/i386/mmx.md (<code>v2sf2): New insn pattern.
(*mmx_<code>v2sf2): New insn_and_split pattern.
(*mmx_nabsv2sf2): Ditto.
(*mmx_andnotv2sf3): New insn pattern.
(*mmx_<code>v2sf3): Ditto.
* config/i386/i386.md (absneg_op): New code attribute.
* config/i386/i386.c (ix86_build_const_vector): Handle V2SFmode.
(ix86_build_signbit_mask): Ditto.

testsuite/ChangeLog:

PR target/95046
* gcc.target/i386/pr95046-2.c: New test.
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/config/i386/mmx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr95046-1.c
gcc/testsuite/gcc.target/i386/pr95046-2.c [new file with mode: 0644]