diff --git a/libclc/generic/lib/math/math.h b/libclc/generic/lib/math/math.h --- a/libclc/generic/lib/math/math.h +++ b/libclc/generic/lib/math/math.h @@ -40,6 +40,9 @@ #if (defined __AMDGCN__ || defined __R600__) && !defined __HAS_FMAF__ #define HAVE_HW_FMA32() (0) +#elif defined CLC_SPIRV || defined CLC_SPIRV64 +bool __builtin_has_hw_fma32(void); +#define HAVE_HW_FMA32() __builtin_has_hw_fma32() #else #define HAVE_HW_FMA32() (1) #endif