]> gcc.gnu.org Git - gcc.git/commit
x86: Enable FMA in rsqrt<mode>2 expander
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 23 Jan 2019 14:33:58 +0000 (06:33 -0800)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:17:03 +0000 (13:17 -0300)
commit7d54540883078fd9faabdab9d39df8f3e5714f69
tree39401eeada6e9f14a574c5d6da46c9d4e707551f
parenta014f47b3efc284e5e638042f81718cdc2c11ce5
x86: Enable FMA in rsqrt<mode>2 expander

Enable FMA in rsqrt<mode>2 expander and fold rsqrtv16sf2 expander into
rsqrt<mode>2 expander which expands to UNSPEC_RSQRT28 for TARGET_AVX512ER.
Although it doesn't show performance change in our workloads, FMA can
improve other workloads.

gcc/

PR target/88713
* config/i386/i386-expand.c (ix86_emit_swsqrtsf): Enable FMA.
* config/i386/sse.md (VF_AVX512VL_VF1_128_256): New.
(rsqrt<mode>2): Replace VF1_128_256 with VF_AVX512VL_VF1_128_256.
(rsqrtv16sf2): Removed.

gcc/testsuite/

PR target/88713
* gcc.target/i386/pr88713-1.c: New test.
* gcc.target/i386/pr88713-2.c: Likewise.
gcc/config/i386/i386-expand.c
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/pr88713-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr88713-2.c [new file with mode: 0644]
This page took 0.06246 seconds and 6 git commands to generate.