https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106928
--- Comment #3 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> --- (In reply to Martin Liška from comment #2) > I think you missed -fno-finite-math-only option as documented here: > https://www.spec.org/cpu2017/Docs/benchmarks/500.perlbench_r.html#portability Thanks! It pass with -fno-finite-math-only.