[LLVMdev] llvm builtins

Reed Kotler rkotler at mips.com
Wed Feb 4 17:32:30 PST 2015


I'm testing my code for all of this in mips fast-isel and realized that 
I could not force the llvm.zzz... path for builtins without
explicitly writing llvm assembly.

Besides "make check" tests I like to always have executable tests.


On 02/04/2015 04:56 PM, reed kotler wrote:
> I think at least the same issue applies to the following:
>
> sqrt, sin, cos, exp,  exp2, log, log10, log2, fabs, floor,
> copysign, ceil, trunc, rint, round...
>
>
> On 02/04/2015 04:23 PM, Reid Kleckner wrote:
>> Should be fixed in to always use the LLVM builtin in r228240.
>>
>> On Wed, Feb 4, 2015 at 3:39 PM, reed kotler <rkotler at mips.com
>> <mailto:rkotler at mips.com>> wrote:
>>
>>     In the following example with gcc style builtins, in once case
>>     llvm.powi.f64 is emitted
>>     and in the other just a call to library function powf.
>>
>>      ~/llvm/build/Debug+Asserts/bin/clang -S -emit-llvm pow1.c
>>
>>     Why is that?
>>
>>     Is there a way to force the call to an llvm style builtin?
>>
>>     Tia.
>>
>>     Reed
>>
>>     _______________________________________________
>>     LLVM Developers mailing list
>>     LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu>
>>     http://llvm.cs.uiuc.edu
>>     http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
>
>
> _______________________________________________
> 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