https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81800
--- Comment #3 from Qing Zhao <qing.zhao at oracle dot com> --- I can repeat this with the latest upstream gcc on aarch64 machine. the inlining happens when -fno-math-errno is specified. and it should be only inlined when -fno-trapping-math is specified.