Thread overview
FMA
Feb 05, 2015
Ilya Yaroshenko
Feb 07, 2015
Kai Nacke
Feb 07, 2015
Kai Nacke
February 05, 2015
Clang has the following option to enable FMA instructions

-ffp-contract=<value>   Form fused FP ops (e.g. FMAs): fast
(everywhere) | on (according to FP_CONTRACT pragma, default) |
off (never fuse)

How can I enable FMA instructions with LDC?

Kind Regards,
Ilya
February 07, 2015
Hi Ilya!

On Thursday, 5 February 2015 at 11:06:56 UTC, Ilya Yaroshenko wrote:
> Clang has the following option to enable FMA instructions
>
> -ffp-contract=<value>   Form fused FP ops (e.g. FMAs): fast
> (everywhere) | on (according to FP_CONTRACT pragma, default) |
> off (never fuse)
>
> How can I enable FMA instructions with LDC?

I am sorry but this option is currently not implemented. :-(

Regards,
Kai
February 07, 2015
On Saturday, 7 February 2015 at 14:48:55 UTC, Kai Nacke wrote:
>> How can I enable FMA instructions with LDC?
>
> I am sorry but this option is currently not implemented. :-(

On a related note, where are the supported Intel intrinsics listed?
February 07, 2015
On Saturday, 7 February 2015 at 17:18:37 UTC, Ola Fosheim Grøstad wrote:
> On Saturday, 7 February 2015 at 14:48:55 UTC, Kai Nacke wrote:
>>> How can I enable FMA instructions with LDC?
>>
>> I am sorry but this option is currently not implemented. :-(
>
> On a related note, where are the supported Intel intrinsics listed?

I think you refering to ldc.gccbuiltins_x86.di.

Regards,
Kai
February 07, 2015
On Saturday, 7 February 2015 at 18:07:34 UTC, Kai Nacke wrote:
> On Saturday, 7 February 2015 at 17:18:37 UTC, Ola Fosheim Grøstad wrote:
>> On Saturday, 7 February 2015 at 14:48:55 UTC, Kai Nacke wrote:
>>>> How can I enable FMA instructions with LDC?
>>>
>>> I am sorry but this option is currently not implemented. :-(
>>
>> On a related note, where are the supported Intel intrinsics listed?
>
> I think you refering to ldc.gccbuiltins_x86.di.

Hm, yes, not Intel calling conventions, but it does actually list vfma near line 700.

So the OP might want to try those?