i386-1.C: Pass if CPU has no SSE2 support.

* g++.dg/other/i386-1.C: Pass if CPU has no SSE2 support.

From-SVN: r107403
This commit is contained in:
Uros Bizjak 2005-11-23 09:45:09 +01:00 committed by Uros Bizjak
parent b8b47f4251
commit 7d6c1f42b4
2 changed files with 6 additions and 2 deletions

View 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

View 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;