Allow functions for AVX target inline functions for lower target.
authorSriraman Tallam <tmsriram@google.com>
Wed, 3 Jul 2013 00:03:06 +0000 (00:03 +0000)
committerSriraman Tallam <tmsriram@gcc.gnu.org>
Wed, 3 Jul 2013 00:03:06 +0000 (00:03 +0000)
commit786fb9b6c4f1755b2e5dc88d7de90393a4417659
tree52cc7ee32421ded2e23f860bd96e6ab510e83c91
parent4b043553715e4e8ef8c38806f05452dfb0d744f0
Allow functions for AVX target inline functions for lower target.

Allow functions for AVX target inline functions for lower target.  This bug was
reported here: http://gcc.gnu.org/ml/gcc-patches/2013-06/msg01620.html

2013-07-02  Sriraman Tallam  <tmsriram@google.com>

* config/i386/i386.c (gate_insert_vzeroupper): Check if target
ISA is AVX.
(ix86_option_override_internal):Turn on all -mavx target flags by
default as they are dependent on AVX anyway.

* gcc.target/i386/avx-inline.c: New test.

From-SVN: r200627
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx-inline.c [new file with mode: 0644]