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

Unified Diff: gdb/testsuite/gdb.arch/i386-sse.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 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 | « gdb/testsuite/gdb.arch/i386-size-overlap.exp ('k') | gdb/testsuite/gdb.arch/i386-sse.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.arch/i386-sse.c
diff --git a/gdb/testsuite/gdb.arch/i386-sse.c b/gdb/testsuite/gdb.arch/i386-sse.c
index 649b097f4730d742e5d6cdbfbd1e30f1629699ea..8617c8ad36c91c86e10e94a84c9b82311c868f9a 100644
--- a/gdb/testsuite/gdb.arch/i386-sse.c
+++ b/gdb/testsuite/gdb.arch/i386-sse.c
@@ -1,6 +1,6 @@
/* Test program for SSE registers.
- Copyright 2004, 2007-2012 Free Software Foundation, Inc.
+ Copyright 2004-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -51,7 +51,10 @@ v4sf_t data[] =
int
have_sse (void)
{
- int edx = i386_cpuid ();
+ int edx;
+
+ if (!i386_cpuid (1, NULL, NULL, NULL, &edx))
+ return 0;
if (edx & bit_SSE)
return 1;
« no previous file with comments | « gdb/testsuite/gdb.arch/i386-size-overlap.exp ('k') | gdb/testsuite/gdb.arch/i386-sse.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698