OSDN Git Service

Check SSE and YMM state support for -march=native
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Oct 2012 20:25:04 +0000 (20:25 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Oct 2012 20:25:04 +0000 (20:25 +0000)
commitccf93a7bf50ef9782a275df39fdeb49f7311796f
tree5de82f25eb627bc7254ebe5b3cecd271de827d92
parent76d33de29c819cdc30eeea69705754a8147cbcef
Check SSE and YMM state support for -march=native

Backported from mainline

PR target/54741
*  config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
(XSTATE_FP): Likewise.
(XSTATE_SSE): Likewise.
(XSTATE_YMM): Likewise.
(host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
SSE and YMM states aren't supported.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@192003 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/driver-i386.c