forked from OSchip/llvm-project
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:
parent
d1be91127c
commit
0ecb5e511e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue