Hi Thomas, With your patch I see
FAIL: gfortran.dg/internal_pack_4.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test with -m32. gfc /opt/gcc/work/gcc/testsuite/gfortran.dg/internal_pack_4.f90 -O3 -funroll-loops -ftracer -m32 is enough to trigger the miscomputation. The changes in the test suite are quite messy and I hope I did not miss any test (you should do "diff -N …" for the new tests). Do you have test showing a speed-up? I agree with Richard that this patch should be held until the next stage 1. Thanks for this work. Dominique