[Bug target/35189] New: -mno-sse4.2 turns off SSE4a
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 13 23:42:00 GMT 2008
[hjl@gnu-6 tmp]$ cat y.c
#include <stdio.h>
int
main ()
{
#ifdef __SSE__
printf ("SSE\n");
#endif
#ifdef __SSE2__
printf ("SSE2\n");
#endif
#ifdef __SSE3__
printf ("SSE3\n");
#endif
#ifdef __SSSE3__
printf ("SSSE3\n");
#endif
#ifdef __SSE4_1__
printf ("SSE4.1\n");
#endif
#ifdef __SSE4_2__
printf ("SSE4.2\n");
#endif
#ifdef __SSE4A__
printf ("SSE4A\n");
#endif
}
[hjl@gnu-6 tmp]$ /usr/gcc-4.3/bin/gcc -march=core2 -mno-sse4.2 y.c && ./a.out
SSE
SSE2
SSE3
SSSE3
[hjl@gnu-6 tmp]$ /usr/gcc-4.3/bin/gcc -march=amdfam10 -mno-sse4.2 y.c &&
./a.out
SSE
SSE2
SSE3
[hjl@gnu-6 tmp]$ /usr/gcc-4.3/bin/gcc -march=amdfam10 y.c && ./a.out
SSE
SSE2
SSE3
SSE4A
[hjl@gnu-6 tmp]$
--
Summary: -mno-sse4.2 turns off SSE4a
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35189
More information about the Gcc-bugs
mailing list