www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - FMA

reply "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
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
Feb 05 2015
parent reply "Kai Nacke" <kai redstar.de> writes:
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
Feb 07 2015
parent reply "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
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?
Feb 07 2015
parent reply "Kai Nacke" <kai redstar.de> writes:
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
Feb 07 2015
parent "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
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?
Feb 07 2015