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]

[4.2 PATCH, testsuite]: Commited: Fix sse-18.c: Pass if CPU has no SSE2 support.


Hello!

Kaveh asked me to install this trivial testsuite patch on 4.2 branch.

2008-02-25  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/sse-18.c: Pass if CPU has no SSE2 support.

Patch was tested on i686-pc-linux-gnu.

Uros.

Index: gcc.target/i386/sse-18.c
===================================================================
--- gcc.target/i386/sse-18.c    (revision 132486)
+++ gcc.target/i386/sse-18.c    (working copy)
@@ -20,8 +20,8 @@

   cpu_facilities = i386_cpuid ();

-  if ((cpu_facilities & (bit_MMX | bit_SSE | bit_CMOV))
-      != (bit_MMX | bit_SSE | bit_CMOV))
+  if ((cpu_facilities & (bit_MMX | bit_SSE | bit_SSE2 | bit_CMOV))
+      != (bit_MMX | bit_SSE | bit_SSE2 | bit_CMOV))
     /* If host has no vector support, pass.  */
     return 0;


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