[LLVMdev] [cfe-dev] should -mno-sse -mno-mmx -msse -mmmx work?

Andrew Fish afish at apple.com
Fri Jul 1 15:02:02 PDT 2011

On Jul 1, 2011, at 2:43 PM, Alistair Lynn wrote:

> Hi Andrew-
>> fatal error: error in backend: SSE2 register return with SSE2 disabled
> Is this for 32-bit or 64-bit x86?

64-bit x86.

> If it's the latter, the ABI demands
> that the return value in this case is in xmm0 - SSE is required.

Well -no-sse -mno-mmx works for EFI as it is pre-boot firmware and does not have any floating point C code.  We use -no-sse and -mno-mmx code to prevent optimized code gen using these registers for optimizations. 


More information about the llvm-dev mailing list