https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118580
--- Comment #6 from anlauf at gcc dot gnu.org --- The issue can be reduced to the case k=1, i.e. 1x1 matrices. I then get: maxval(abs(A - eye)) = -Infinity Looks like the initial condition of the maximum search plays a role.