|
From: <sv...@va...> - 2009-07-27 23:09:50
|
Author: tom
Date: 2009-07-28 00:09:42 +0100 (Tue, 28 Jul 2009)
New Revision: 10642
Log:
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.
Modified:
trunk/none/tests/x86/bug152818-x86.c
trunk/none/tests/x86/gen_insn_test.pl
Modified: trunk/none/tests/x86/bug152818-x86.c
===================================================================
--- trunk/none/tests/x86/bug152818-x86.c 2009-07-27 22:21:22 UTC (rev 10641)
+++ trunk/none/tests/x86/bug152818-x86.c 2009-07-27 23:09:42 UTC (rev 10642)
@@ -60,6 +60,7 @@
"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) \
Modified: trunk/none/tests/x86/gen_insn_test.pl
===================================================================
--- trunk/none/tests/x86/gen_insn_test.pl 2009-07-27 22:21:22 UTC (rev 10641)
+++ trunk/none/tests/x86/gen_insn_test.pl 2009-07-27 23:09:42 UTC (rev 10642)
@@ -809,7 +809,8 @@
}
print qq| \"frstor %$stateargnum\\n\"\n|;
-
+ print qq| \"cld\\n\"\n|;
+
print qq| :|;
$prefix = " ";
|