* g++.dg/other/i386-1.C: Pass if CPU has no SSE2 support.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Nov 2005 08:45:09 +0000 (08:45 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Nov 2005 08:45:09 +0000 (08:45 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107403 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/i386-1.C

index f33e833..9ed97b8 100644 (file)
@@ -1,3 +1,7 @@
+2005-11-23  Uros Bizjak  <uros@kss-loka.si>
+
+       * g++.dg/other/i386-1.C: Pass if CPU has no SSE2 support.
+
 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        PR c/21668
index c579cf2..5dc781f 100644 (file)
@@ -15,8 +15,8 @@ int main(int argc, char** argv) {
 
   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;