Skip to content

WIP Fixed __FMA__ when compiling vcl with clang

Florian Lemaitre requested to merge flemaitr_fix_vcl into master

If vcl is compiled with clang for AVX2 (no FMA), it sets __FMA__ while it shouldn't.

Example of error:

In file included from ./vectorclass.h:51:
./vectorf256.h:1085:12: error: always_inline function '_mm256_fmadd_ps' requires target feature 'fma', but would be inlined into function 'mul_add' that is compiled without support for 'fma'
    return _mm256_fmadd_ps(a, b, c);
Edited by Marco Cattaneo

Merge request reports