[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently

2006-08-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-22 00:07 --- First -ffinite-math-only results are correct. Second this is fully a target issue. Third the -funsafe-math-optimizations problem is PR 19116. -- pinskia at gcc dot gnu dot org changed: What

[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently

2006-08-21 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-22 00:10 --- If you read the C99 standard and it mentions specificly about the case where NaNs are not supported isnan should always return false. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28795

[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently

2006-08-21 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-22 00:13 --- ...with emphasis on the last sentence. I can not do this until you are actually C99 compliant *all the time*. I have to support well written legacy applications that expect this macro to work *all the time*.

[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently

2006-08-21 Thread iano at apple dot com
--- Comment #4 from iano at apple dot com 2006-08-22 00:14 --- Pinski, look at the data I presented. You do not actually return 0 for these cases -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28795

[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently

2006-08-21 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-08-22 00:16 --- (In reply to comment #4) Pinski, look at the data I presented. You do not actually return 0 for these cases Try it on a real processor instead of x86 which does funny stuff in the back-end and does not fully

[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently

2006-08-21 Thread iano at apple dot com
--- Comment #6 from iano at apple dot com 2006-08-22 00:18 --- Subject: Re: __builtin_isunordered() and __builtin_isnan() should behave consistently On Aug 21, 2006, at 5:16 PM, pinskia at gcc dot gnu dot org wrote: --- Comment #5 from pinskia at gcc dot gnu dot org

[Bug target/28795] __builtin_isunordered() and __builtin_isnan() should behave consistently

2006-08-21 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-08-22 00:37 --- I should mention We intend for a library implementor to be able to simply #define each standard macro to its built-in equivalent. is when not using -ffast-math and other options which turn off IEEE/C99 complaincy