From 9bab1b80f81a9fbc157fbffd82e4fb1afcbdb394 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 27 Jul 2009 23:09:42 +0000 Subject: [PATCH] Make sure the x86 direction flag is cleared again if we set it as part of a test, as the x86 requires it to be clear when any function is called and gcc 4.3.0 and later rely on that. Fixes #201708. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10642 --- none/tests/x86/bug152818-x86.c | 1 + none/tests/x86/gen_insn_test.pl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/none/tests/x86/bug152818-x86.c b/none/tests/x86/bug152818-x86.c index 9fbe0e904d..cda0bf995e 100644 --- a/none/tests/x86/bug152818-x86.c +++ b/none/tests/x86/bug152818-x86.c @@ -60,6 +60,7 @@ static void pp_eflags (unsigned int _8bits_eflags) "lahf \t\n" \ "movl %%eax, %1 \t\n" \ "movl %%esi, %2 \t\n" \ + "cld \t\n" \ : "=d"(out_eax), \ "=b"(out_eflags), \ "=r"(out_esi) \ diff --git a/none/tests/x86/gen_insn_test.pl b/none/tests/x86/gen_insn_test.pl index d97eee8be3..283583dc3e 100644 --- a/none/tests/x86/gen_insn_test.pl +++ b/none/tests/x86/gen_insn_test.pl @@ -809,7 +809,8 @@ while (<>) } print qq| \"frstor %$stateargnum\\n\"\n|; - + print qq| \"cld\\n\"\n|; + print qq| :|; $prefix = " "; -- 2.47.3