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

Unified Diff: gcc/gcc/testsuite/gcc.target/i386/sse3-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-xorpd-1.c ('k') | gcc/gcc/testsuite/gcc.target/i386/sse3-haddps.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/sse3-check.h
diff --git a/gcc/gcc/testsuite/gcc.target/i386/sse3-check.h b/gcc/gcc/testsuite/gcc.target/i386/sse3-check.h
index 92930d10a3fa8528c078ca7f41878a82cbac0698..5a0a0b1a02e06e752a52b6b014fb980556ac1c8c 100644
--- a/gcc/gcc/testsuite/gcc.target/i386/sse3-check.h
+++ b/gcc/gcc/testsuite/gcc.target/i386/sse3-check.h
@@ -1,10 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
-
#include "cpuid.h"
+#include "sse-os-support.h"
static void sse3_test (void);
+static void
+__attribute__ ((noinline))
+do_test (void)
+{
+ sse3_test ();
+}
+
int
main ()
{
@@ -14,8 +21,8 @@ main ()
return 0;
/* Run SSE3 test only if host has SSE3 support. */
- if (ecx & bit_SSE3)
- sse3_test ();
+ if ((ecx & bit_SSE3) && sse_os_support ())
+ do_test ();
return 0;
}
« no previous file with comments | « gcc/gcc/testsuite/gcc.target/i386/sse2-xorpd-1.c ('k') | gcc/gcc/testsuite/gcc.target/i386/sse3-haddps.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698