[Bug c/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

2020-08-26 Thread chfast at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793 --- Comment #4 from Paweł Bylica --- I missed some information: This affects both double and float variants: __builtin_floor() and __builtin_floorf(). This affects also usage of floor() C standard library function as the function call usually

[Bug c/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

2020-08-26 Thread chfast at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793 --- Comment #3 from Paweł Bylica --- Created attachment 49128 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49128=edit Compiler invocation log

[Bug c/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

2020-08-26 Thread chfast at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793 --- Comment #1 from Paweł Bylica --- Created attachment 49126 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49126=edit Test source code

[Bug c/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

2020-08-26 Thread chfast at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793 --- Comment #2 from Paweł Bylica --- Created attachment 49127 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49127=edit Assembly output