https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118544
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Now `#pragma GCC unroll(5)` is just a misreporting of the number of > iterations; it was fully unrolled. A Note on why it is fully unroll even though there are 6 iterations. Since it is unrolled 4 times, there is only one iteration left so that is no longer considered a loop. So it is fully unrolled. that is 5+1 where 1 is leftovers that is needed for the prologue.