Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: gcc/gcc/testsuite/gcc.target/i386/sse2-check.h

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.target/i386/sse2-andpd-1.c ('k') | gcc/gcc/testsuite/gcc.target/i386/sse2-comisd-1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.target/i386/sse2-check.h
diff --git a/gcc/gcc/testsuite/gcc.target/i386/sse2-check.h b/gcc/gcc/testsuite/gcc.target/i386/sse2-check.h
index a69333e391a09ed05e90482b778cd3f06cdbe6b7..fd4a6ce1dbf64f14028fc27f0882607cbb6c0c9f 100644
--- a/gcc/gcc/testsuite/gcc.target/i386/sse2-check.h
+++ b/gcc/gcc/testsuite/gcc.target/i386/sse2-check.h
@@ -1,9 +1,17 @@
#include <stdlib.h>
#include "cpuid.h"
#include "m128-check.h"
+#include "sse-os-support.h"
static void sse2_test (void);
+static void
+__attribute__ ((noinline))
+do_test (void)
+{
+ sse2_test ();
+}
+
int
main ()
{
@@ -13,8 +21,8 @@ main ()
return 0;
/* Run SSE2 test only if host has SSE2 support. */
- if (edx & bit_SSE2)
- sse2_test ();
+ if ((edx & bit_SSE2) && sse_os_support ())
+ do_test ();
return 0;
}
« no previous file with comments | « gcc/gcc/testsuite/gcc.target/i386/sse2-andpd-1.c ('k') | gcc/gcc/testsuite/gcc.target/i386/sse2-comisd-1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698