[LLVMdev] [codegen] how to generate x87 instructions using LLVM

Chris Lattner clattner at apple.com
Wed Sep 16 08:50:39 PDT 2009

On Sep 16, 2009, at 1:13 AM, Simon Zhou wrote:

> 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?

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


More information about the llvm-dev mailing list