mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-20 01:12:17 +08:00
The multiplication operation is required only if the branch is taken, and the compiler might not optimize it away. It fixes the following issues when the testcase is built with clang: FAIL: math/test-ldouble-erf Failure: erf (-0x4p-16384): Exception "Underflow" set Failure: erf (0x1p-10000): Exception "Underflow" set Failure: erf (0x3.8b7f12369ded54f38760a41abb84p-16384): Exception "Underflow" set Failure: erf (0x3.8b7f12369ded54f38760a41abb88p-16384): Exception "Underflow" set Failure: erf (0x3.8b7f12369ded54f4p-16384): Exception "Underflow" set Failure: erf (0x3.8b7f12369ded54f8p-16384): Exception "Underflow" set Failure: erf (0x3.8b7f12369ded5518p-16384): Exception "Underflow" set Failure: erf (0x3.8b7f12369ded551cp-16384): Exception "Underflow" set Failure: erf (0x3.8b7f12369ded552p-16384): Exception "Underflow" set Failure: erf (0x4p-16384): Exception "Underflow" set Failure: erf_downward (-0x4p-16384): Exception "Underflow" set Failure: erf_downward (0x1p-10000): Exception "Underflow" set Failure: erf_downward (0x3.8b7f12369ded54f38760a41abb84p-16384): Exception "Underflow" set Failure: erf_downward (0x3.8b7f12369ded54f38760a41abb88p-16384): Exception "Underflow" set Failure: erf_downward (0x3.8b7f12369ded54f4p-16384): Exception "Underflow" set Failure: erf_downward (0x3.8b7f12369ded54f8p-16384): Exception "Underflow" set Failure: erf_downward (0x3.8b7f12369ded5518p-16384): Exception "Underflow" set Failure: erf_downward (0x3.8b7f12369ded551cp-16384): Exception "Underflow" set Failure: erf_downward (0x3.8b7f12369ded552p-16384): Exception "Underflow" set Failure: erf_downward (0x4p-16384): Exception "Underflow" set Failure: erf_towardzero (-0x4p-16384): Exception "Underflow" set Failure: erf_towardzero (0x1p-10000): Exception "Underflow" set Failure: erf_towardzero (0x3.8b7f12369ded54f38760a41abb84p-16384): Exception "Underflow" set Failure: erf_towardzero (0x3.8b7f12369ded54f38760a41abb88p-16384): Exception "Underflow" set Failure: erf_towardzero (0x3.8b7f12369ded54f4p-16384): Exception "Underflow" set Failure: erf_towardzero (0x3.8b7f12369ded54f8p-16384): Exception "Underflow" set Failure: erf_towardzero (0x3.8b7f12369ded5518p-16384): Exception "Underflow" set Failure: erf_towardzero (0x3.8b7f12369ded551cp-16384): Exception "Underflow" set Failure: erf_towardzero (0x3.8b7f12369ded552p-16384): Exception "Underflow" set Failure: erf_towardzero (0x4p-16384): Exception "Underflow" set Failure: erf_upward (-0x4p-16384): Exception "Underflow" set Failure: erf_upward (0x1p-10000): Exception "Underflow" set Failure: erf_upward (0x3.8b7f12369ded54f38760a41abb84p-16384): Exception "Underflow" set Failure: erf_upward (0x3.8b7f12369ded54f38760a41abb88p-16384): Exception "Underflow" set Failure: erf_upward (0x3.8b7f12369ded54f4p-16384): Exception "Underflow" set Failure: erf_upward (0x3.8b7f12369ded54f8p-16384): Exception "Underflow" set Failure: erf_upward (0x3.8b7f12369ded5518p-16384): Exception "Underflow" set Failure: erf_upward (0x3.8b7f12369ded551cp-16384): Exception "Underflow" set Failure: erf_upward (0x3.8b7f12369ded552p-16384): Exception "Underflow" set Failure: erf_upward (0x4p-16384): Exception "Underflow" set Checked on x86_64-linux-gnu and aarch64-linux-gnu with gcc-15 and clang-18. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>