This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SSE Optimization control


Hi guys,

  We've been trying to find a way to write code that uses SSE and has
a fallback when not supported on the system currently running.  This
would seem simple enough -- check the cpuid and branch accordingly.

  However, when enabling -msse or -msse2 in gcc, integer/floating
point cast optimizations are inserted everywhere and causes an
immediate SIGILL of course on an incompatible system.

  The SSE code is written in assembly.  Is there away to control these
auto-optimizations and do we need to enable it for hand-written SSE?

Corey


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]