src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.loop.test/src/org/graalvm/compiler/loop/test/LoopPartialUnrollTest.java
equal
deleted
inserted
replaced
141 |
141 |
142 return c; |
142 return c; |
143 } |
143 } |
144 |
144 |
145 @Test |
145 @Test |
|
146 @Ignore |
|
147 public void testUnsignedLoopCarried() { |
|
148 for (int i = -1; i < 64; i++) { |
|
149 for (int j = 0; j < 64; j++) { |
|
150 test("testUnsignedLoopCarriedSnippet", i, j); |
|
151 } |
|
152 } |
|
153 test("testUnsignedLoopCarriedSnippet", -1 - 32, -1); |
|
154 test("testUnsignedLoopCarriedSnippet", -1 - 4, -1); |
|
155 test("testUnsignedLoopCarriedSnippet", -1 - 32, 0); |
|
156 } |
|
157 |
|
158 public static int testUnsignedLoopCarriedSnippet(int start, int end) { |
|
159 int a = 0; |
|
160 int b = 0; |
|
161 int c = 0; |
|
162 |
|
163 for (int i = start; branchProbability(0.99, Integer.compareUnsigned(i, end) < 0); i++) { |
|
164 int t1 = volatileInt; |
|
165 int t2 = a + b; |
|
166 c = b; |
|
167 b = a; |
|
168 a = t1 + t2; |
|
169 } |
|
170 |
|
171 return c; |
|
172 } |
|
173 |
|
174 @Test |
146 public void testLoopCarried2() { |
175 public void testLoopCarried2() { |
147 for (int i = -1; i < 64; i++) { |
176 for (int i = -1; i < 64; i++) { |
148 for (int j = -1; j < 64; j++) { |
177 for (int j = -1; j < 64; j++) { |
149 test("testLoopCarried2Snippet", i, j); |
178 test("testLoopCarried2Snippet", i, j); |
150 } |
179 } |