math.h: Set HAVE_HW_FMA32 based on compiler provided macro

Fixes sin/cos piglits on non-FMA capable asics.
Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=35983

Reviewer: Tom Stellard
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 323677
This commit is contained in:
Jan Vesely 2018-01-29 19:05:08 +00:00
parent d1be91127c
commit 0ecb5e511e
1 changed files with 5 additions and 0 deletions

View File

@ -31,7 +31,12 @@
#define PNOR 0x100
#define PINF 0x200
#if (defined __AMDGCN__ | defined __R600__) & !defined __HAS_FMAF__
#define HAVE_HW_FMA32() (0)
#else
#define HAVE_HW_FMA32() (1)
#endif
#define HAVE_BITALIGN() (0)
#define HAVE_FAST_FMA32() (0)