On x86_64-w64-mingw32 targets, during tests such as avx-vaddpd-1.c, the
testsuite fails. This seems to be due to the fact that the test function is
inlined into main. Due to this inlining, some of the the xmm registers are
saved and restored. However, because the -mavx flag is passed, the register
saves are performed using instructions not available on the CPU. In other
words, the register save/restore is performed before the __cpuid function is
called to determine whether the test is supported on the machine that is
running the test.
This is hit-and-miss and is problematic on any tests that require unsupported
registry saves on this target type.
--
Summary: CPU options cause testsuite failures
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dougsemler at gmail dot com
GCC target triplet: x86_64-w64-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44159