[LLVMdev] Support for Soft-float

Eric Cheng eccheng at stanford.edu
Thu Sep 25 09:06:47 PDT 2014


Hi Asiri,

Unfortunately, I had also tried using the -target switch previously
("-target sparc", "-target arm", etc.). However, since it ultimately made
difference, I left it out of my example for brevity.

Thanks,
Eric

On Thu, Sep 25, 2014 at 3:02 AM, Asiri Rathnayake <asiri.rathnayake at arm.com>
wrote:

> 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
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140925/c085a4a9/attachment.html>


More information about the llvm-dev mailing list