Simon Zhou
2009-Sep-16 08:13 UTC
[LLVMdev] [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 -->From : Simon.Zhou at PPI, Fudan University-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090916/4717f6df/attachment.html>
Chris Lattner
2009-Sep-16 15:50 UTC
[LLVMdev] [codegen] how to generate x87 instructions using LLVM
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 -Chris