[LLVMdev] Support for Soft-float

Asiri Rathnayake asiri.rathnayake at arm.com
Thu Sep 25 03:02:30 PDT 2014


And, Apologies for the footer. Wrong account.

Best,

- Asiri

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Asiri Rathnayake
Sent: 25 September 2014 10:48
To: Eric Cheng; llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Support for Soft-float

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


_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev








More information about the llvm-dev mailing list