My commit rL216160 introduced a bug PR21014.
IndVars widens code
for (i = ; i < ...; i++) arr[ CONST - i]
into
for (i = ; i < ...; i++) arr[ i - CONST]
thus inverting index expression. The patch attached fixes it.
Thanks to Jörg Sonnenberger for pointing.