Regression tests on loop optimizations.
