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

Unified Diff: gdb/testsuite/gdb.arch/amd64-pseudo.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/amd64-prologue-xmm.s ('k') | gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.arch/amd64-pseudo.c
diff --git a/gdb/testsuite/gdb.arch/amd64-pseudo.c b/gdb/testsuite/gdb.arch/amd64-pseudo.c
index f73ec10f8c767043139a1c88a97902c91a3a5a47..edaeebf057a23120bf3315777af2f04ebb1cecac 100644
--- a/gdb/testsuite/gdb.arch/amd64-pseudo.c
+++ b/gdb/testsuite/gdb.arch/amd64-pseudo.c
@@ -1,6 +1,6 @@
/* Test program for byte registers.
- Copyright 2010-2012 Free Software Foundation, Inc.
+ Copyright 2010-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -63,6 +63,14 @@ main (int argc, char **argv)
: "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15");
asm ("nop"); /* second breakpoint here */
+ /* amd64-dword.exp writes eax-edi here.
+ Tell gcc they're clobbered so it doesn't try to keep "data" in
+ one of them. */
+ asm (""
+ : /* no outputs */
+ : /* no inputs */
+ : "eax", "ebx", "ecx", "edx", "esi", "edi");
+
asm ("mov %%eax, 0(%0)\n\t"
"mov %%ebx, 4(%0)\n\t"
"mov %%ecx, 8(%0)\n\t"
@@ -74,6 +82,14 @@ main (int argc, char **argv)
: "eax", "ebx", "ecx", "edx", "esi", "edi");
asm ("nop"); /* third breakpoint here */
+ /* amd64-dword.exp writes r8-r15 here.
+ Tell gcc they're clobbered so it doesn't try to keep "data" in
+ one of them. */
+ asm (""
+ : /* no outputs */
+ : /* no inputs */
+ : "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15");
+
asm ("mov %%r8d, 24(%0)\n\t"
"mov %%r9d, 28(%0)\n\t"
"mov %%r10d, 32(%0)\n\t"
« no previous file with comments | « gdb/testsuite/gdb.arch/amd64-prologue-xmm.s ('k') | gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698