sse.md ("mov<mode>_internal"): Use <sseinsnmode> mode attribute for TARGET_AVX512VL.
authorSergey Shalnov <Sergey.Shalnov@intel.com>
Fri, 22 Sep 2017 05:13:33 +0000 (07:13 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 22 Sep 2017 05:13:33 +0000 (07:13 +0200)
commite7ba6a6041df85d7027a4e776f144a2f21204fdf
tree814e5681975dccea8bed77d42686f8244713f3bd
parentb9327b5ac225ed9cae6becd10b6588733e87adca
sse.md ("mov<mode>_internal"): Use <sseinsnmode> mode attribute for TARGET_AVX512VL.

/gcc
        * config/i386/sse.md ("mov<mode>_internal"): Use <sseinsnmode>
mode attribute for TARGET_AVX512VL.

* config/i386/i386.opt (mprefer-avx256): New option.
* config/i386/i386.c (ix86_target_string): Add -mprefer-avx256
to flag_opts.
(ix86_preferred_simd_mode): Return 256-bit AVX modes
for TARGET_PREFER_AVX256.
* doc/invoke.texi (x86 Options): Document -mprefer-avx256.

/testsuite

        * gcc.target/i386/avx512f-constant-set.c: New test.

* g++.dg/ext/pr57362.C: Test __attribute__((target("prefer-avx256"))).
* gcc.target/i386/avx512f-prefer.c: New test.

From-SVN: r253089
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.opt
gcc/config/i386/sse.md
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr57362.C
gcc/testsuite/gcc.target/i386/avx512f-constant-set.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512f-prefer.c [new file with mode: 0644]