i386: Add V2SFmode NEG, ABS and logic insn patterns [PR95046]
commit2a2dea6b63ae600eb1d084c06d8a3ba42c66dd6b
authorUros Bizjak <ubizjak@gmail.com>
Tue, 12 May 2020 15:08:03 +0000 (12 17:08 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Tue, 12 May 2020 15:08:03 +0000 (12 17:08 +0200)
tree13a9749c4ebd8549df7f70bc912bc10e33b20ca4
parent6416f67273aaeafd6ad89c2c82076dabb50f8dbe
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/ChangeLog