// ./java -XX:CompileCommand=compileonly,Test*::test* -XX:CompileCommand=printcompilation,Test*::test* -XX:+TraceLoopOpts -Xbatch TestLoopMaxUnrollIncreasing.java
public class TestLoopMaxUnrollIncreasing {
    public static void main(String[] args) {
        byte[] aB = new byte[100_000];
        short[] aS = new short[100_000];
	for (int i = 0; i < 10_000; i++) {
	    testB(aB);
	}
	for (int i = 0; i < 10_000; i++) {
	    testS(aS);
	}
    }

    public static void testB(byte[] a) {
	for (int i = 0; i < a.length; i++) {
	    a[i] += (byte)42;
	}
    }

    public static void testS(short[] a) {
	for (int i = 0; i < a.length; i++) {
	    a[i] += (short)42;
	}
    }
}
