This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: testsuite/37074: gcc.dg/torture/stackalign/builtin-apply-4.c failed with SSE2


Hi,

gcc.dg/torture/stackalign/builtin-apply-4.c failed with SSE2. The
problem is MMX enabled with SSE2, but builtin-apply-4.c mixes mmx
and x87 instructions without emms in between. This patch adds
-mno-mmx to x86. OK for trunk?

Thanks.


H.J.
---
2008-08-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/37074:
	* gcc.dg/torture/stackalign/stackalign.exp: Add -mno-mmx to x86.

--- gcc/testsuite/gcc.dg/torture/stackalign/stackalign.exp.mmx	2008-07-30 20:53:11.000000000 -0700
+++ gcc/testsuite/gcc.dg/torture/stackalign/stackalign.exp	2008-08-10 13:10:23.000000000 -0700
@@ -28,6 +28,7 @@ set additional_flags ""
 if { [istarget i?86*-*-*] || [istarget x86_64-*-*] } then {
     lappend additional_flags "-mstackrealign"
     lappend additional_flags "-mpreferred-stack-boundary=5"
+    lappend additional_flags "-mno-mmx"
 }
 
 dg-init


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]