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

Unified Diff: gcc/gcc/testsuite/g++.dg/other/pr40446.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/g++.dg/other/packed1.C ('k') | gcc/gcc/testsuite/g++.dg/other/pragma-re-2.C » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/g++.dg/other/pr40446.C
diff --git a/gcc/gcc/testsuite/g++.dg/other/pr40446.C b/gcc/gcc/testsuite/g++.dg/other/pr40446.C
index 33dbcec7159195062c265fe33c184e7ef29797ef..b4be0d05617145a93f442700a1d0a47b3fc19604 100644
--- a/gcc/gcc/testsuite/g++.dg/other/pr40446.C
+++ b/gcc/gcc/testsuite/g++.dg/other/pr40446.C
@@ -1,9 +1,10 @@
// PR middle-end/40446
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-options "-O1 -msse2" }
+// { dg-require-effective-target sse2 }
+// { dg-require-effective-target sse2_runtime }
#include <emmintrin.h>
-#include "cpuid.h"
extern "C" void abort ();
@@ -33,14 +34,6 @@ sse2_test ()
int
main ()
{
- 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)
- sse2_test ();
-
+ sse2_test ();
return 0;
}
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/other/packed1.C ('k') | gcc/gcc/testsuite/g++.dg/other/pragma-re-2.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698