https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40987
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |4.9.0 --- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like this was fixed with r0-127324-ge15eb172b0dd (aka PR 59545). Basically a signed integer overflow inside the compiler was causing the wrong code happening.