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

Unified Diff: gcc/gcc/testsuite/gcc.dg/pr37544.c

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.dg/pr36901.h ('k') | gcc/gcc/testsuite/gcc.dg/pr37561.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/pr37544.c
diff --git a/gcc/gcc/testsuite/gcc.dg/pr37544.c b/gcc/gcc/testsuite/gcc.dg/pr37544.c
index 6393d2f89d8c74b650b6de970f8da750f74a5a4e..dec321bf7217cf8e5fa94d4726b33d94abe7607e 100644
--- a/gcc/gcc/testsuite/gcc.dg/pr37544.c
+++ b/gcc/gcc/testsuite/gcc.dg/pr37544.c
@@ -1,10 +1,8 @@
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -msse2 -mtune=core2 -mfpmath=387" { target { i?86-*-* x86_64-*-* } } } */
-
-#ifdef __i386__
-#include "cpuid.h"
-#endif
+/* { dg-require-effective-target sse2 { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-require-effective-target sse2_runtime { target { i?86-*-* x86_64-*-* } } } */
extern void abort (void);
@@ -15,17 +13,6 @@ int main(void)
int i;
-#ifdef __i386__
- unsigned int eax, ebx, ecx, edx;
-
- if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
- return 0;
-
- /* Run SSE2 test only if host has SSE2 support. */
- if (!(edx & bit_SSE2))
- return 0;
-#endif
-
for (i = 0; i < 1000; i++)
arr[i] = 4294967296.0 + (double)i;
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/pr36901.h ('k') | gcc/gcc/testsuite/gcc.dg/pr37561.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698