https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111311
--- Comment #12 from JuzheZhong <juzhe.zhong at rivai dot ai> --- signbit execution issue should be ignored. It's ISA issue not compiler issue. I knew this issue long time ago and confirm Clang has the sam issue: https://github.com/riscv-collab/riscv-gnu-toolchain/issues/1075