public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/44159]  New: CPU options cause testsuite failures
@ 2010-05-16 14:21 dougsemler at gmail dot com
  2010-05-16 14:23 ` [Bug testsuite/44159] " dougsemler at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dougsemler at gmail dot com @ 2010-05-16 14:21 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-07 11:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-16 14:21 [Bug testsuite/44159] New: CPU options cause testsuite failures dougsemler at gmail dot com
2010-05-16 14:23 ` [Bug testsuite/44159] " dougsemler at gmail dot com
2010-05-17 14:55 ` ktietz at gcc dot gnu dot org
2010-06-07 10:57 ` ktietz at gcc dot gnu dot org
2010-06-07 11:09 ` ktietz at gcc dot gnu dot org
2010-06-07 11:09 ` ktietz at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).