GCC -msse2 does not generate SIMD code

旧时模样 提交于 2019-12-02 07:43:57

-march=core2 means that gcc can assume (along with 64 bit ISA) up to SSSE3 (e.g., MMX, SSE, SSE2, SSE3) is available.

-mfpmath=sse can then force the use of SSE for floating-point arithmetic (the default in 64-bit mode), rather than 387 (the default in 32-bit -m32 mode).

See: "Intel 386 and AMD x86-64 Options" section in the man page.

Unfortunately, you still have the limitations of 32-bit mode and a 32-bit ABI. e.g., only registers XMM0 .. XMM7 are available; XMM8 .. XMM15 are only available in 64 bit mode.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!