[Cfp-interest] fabsf(SNANF)

Fred J. Tydeman tydeman at tybor.com
Tue Sep 25 14:36:57 PDT 2018


f = fabsf(SNANF);  /* Does it trigger and raise invalid? */

32-bit OS
 gcc   w/ FPU=x87  FE_INVALID
 gcc   w/ FPU=sse2 FE_INVALID
 clang w/ FPU=x87  FE_INVALID
 clang w/ FPU=sse2 OK
 sun   w/ FPU=x87  FE_INVALID
 sun   w/ FPU=sse2 FE_INVALID
 
64-bit OS
 gcc   w/ FPU=x87  FE_INVALID
 gcc   w/ FPU=sse2 OK
 clang w/ FPU=x87  will not compile
 clang w/ FPU=sse2 OK
 sun   w/ FPU=x87  will not compile
 sun   w/ FPU=sse2 OK


---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the Cfp-interest mailing list