[LLVMdev] Support for Soft-float

Asiri Rathnayake Asiri.Rathnayake at arm.com
Thu Sep 25 02:48:19 PDT 2014


Hi Eric,

> Running "clang -c -emit-llvm -msoft-float test.c -o test.bc" doesn't generate IR with soft-float library calls (perhaps understandably) - only hard float instructions. I would expect the frontend to at least be able to generate the library calls even though I'm not asking it to link to any library yet.

I think you have to explicitly pass the target. For an example:

./clang -c -emit-llvm -msoft-float test.c -o test.bc -###

Does not show -msoft-float passed into the backend. Whereas the following invocation does:

./clang -target sparc-none-linux-gnu -c -emit-llvm -msoft-float test.c -o test.bc -###

May be give this a try and see if it produces the correct lib calls?

I happened to be working on something related (for ARM).

- Asiri

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2548782





More information about the llvm-dev mailing list