re PR target/85572 (faster code for absolute value of __v2di)
authorJakub Jelinek <jakub@redhat.com>
Tue, 8 May 2018 12:16:19 +0000 (14:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 8 May 2018 12:16:19 +0000 (14:16 +0200)
commit4d4015db89b3e93dac9f8e08ce9127390d475f11
tree58dcf1ac378e7ad6c3ef1d21a7f0fbb33c62e820
parentac6818591810af25dc9f91d28230f30494e22a71
re PR target/85572 (faster code for absolute value of __v2di)

PR target/85572
* config/i386/i386.c (ix86_expand_sse2_abs): Handle E_V2DImode and
E_V4DImode.
* config/i386/sse.md (abs<mode>2): Use VI_AVX2 iterator instead of
VI1248_AVX512VL_AVX512BW.  Handle V2DImode and V4DImode if not
TARGET_AVX512VL using ix86_expand_sse2_abs.  Formatting fixes.

* g++.dg/other/sse2-pr85572-1.C: New test.
* g++.dg/other/sse2-pr85572-2.C: New test.
* g++.dg/other/sse4-pr85572-1.C: New test.
* g++.dg/other/avx2-pr85572-1.C: New test.

From-SVN: r260041
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/avx2-pr85572-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/sse2-pr85572-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/sse2-pr85572-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/sse4-pr85572-1.C [new file with mode: 0644]