1 |
On 12/17/2011 11:07 PM, Walter Dnes wrote: |
2 |
> |
3 |
> Then I ran "gcc -march=native -Q --help=target" and got a major shock. |
4 |
> It's a long output listing of what -march=native thinks about my cpu. |
5 |
> Here are some relevant items... |
6 |
> |
7 |
> -march= core2 |
8 |
> -mmmx [disabled] |
9 |
> -msse [disabled] |
10 |
> -msse2 [disabled] |
11 |
> -msse3 [disabled] |
12 |
> -mssse3 [disabled] |
13 |
> |
14 |
> It properly identified the cpu as "core2". But mmx, sse, sse2, sse3 |
15 |
> (aka pni), and ssse3 are disabled!!! |
16 |
|
17 |
The output lies. It's a known issue. Use this instead: |
18 |
|
19 |
echo | gcc -dM -E - -march=native |
20 |
|
21 |
You should see stuff like: |
22 |
|
23 |
#define __MMX__ 1 |
24 |
#define __SSE3__ 1 |