re PR target/93089 (Force mprefer-vector-width=512 in 'e' simd clones)
authorJakub Jelinek <jakub@redhat.com>
Fri, 3 Jan 2020 10:14:03 +0000 (11:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 3 Jan 2020 10:14:03 +0000 (11:14 +0100)
commit1609beddb1bac416456743dff136b486f54a572c
treebfe29feb4b2f9a7b9186de4760e41605b9b2f1c6
parent46e6341fc824ee10bdd4975a2841f945017609dc
re PR target/93089 (Force mprefer-vector-width=512 in 'e' simd clones)

PR target/93089
* config/i386/i386-options.c (ix86_simd_clone_adjust): If
TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
simd clones.  If TARGET_PREFER_AVX256, use prefer-vector-width=512
for 'e' simd clones.

* gcc.target/i386/pr93089-2.c: New test.
* gcc.target/i386/pr93089-3.c: New test.

From-SVN: r279857
gcc/ChangeLog
gcc/config/i386/i386-options.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr93089-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr93089-3.c [new file with mode: 0644]