[codegen] how to generate x87 instructions using LLVM

Hi All

I am a greenhand for LLVM.

I find the LLVM generate SSE instrctions for floating pointing computation, is there some method or options to let it generate x87 instructions?

Thanks
Simon

Are you using the low level llvm tools like 'llc'? If so, pass -mattr=-sse to disable SSE codegen, for example:

llc ~/fp.bc -o - -mattr=-sse

-Chris