Skip to content

Commit 2349304

Browse files
mhaessigMBaesken
andcommitted
8361040: compiler/codegen/TestRedundantLea.java#StringInflate fails with failed IR rules
Co-authored-by: Matthias Baesken <mbaesken@openjdk.org> Reviewed-by: chagedorn, mbaesken
1 parent 0bd2f9c commit 2349304

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

test/hotspot/jtreg/compiler/codegen/TestRedundantLea.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,23 +224,18 @@ private static Object[] setup() {
224224
}
225225

226226
@Test
227+
// TODO: Make tests more precise
227228
@IR(counts = {IRNode.LEA_P, "=2"},
228229
phase = {CompilePhase.FINAL_CODE},
229230
applyIfPlatform = {"mac", "false"})
230231
// Negative
231-
@IR(counts = {IRNode.DECODE_HEAP_OOP_NOT_NULL, "=5"},
232+
@IR(counts = {IRNode.DECODE_HEAP_OOP_NOT_NULL, ">=5"},
232233
phase = {CompilePhase.FINAL_CODE},
233-
applyIfAnd = {"OptoPeephole", "false", "UseAVX", ">=2"})
234-
@IR(counts = {IRNode.DECODE_HEAP_OOP_NOT_NULL, "=13"},
235-
phase = {CompilePhase.FINAL_CODE},
236-
applyIfAnd = {"OptoPeephole", "false", "UseAVX", "<2"})
234+
applyIf = {"OptoPeephole", "false"})
237235
// 2 decodes get removed
238-
@IR(counts = {IRNode.DECODE_HEAP_OOP_NOT_NULL, "=3"},
236+
@IR(counts = {IRNode.DECODE_HEAP_OOP_NOT_NULL, ">=3"},
239237
phase = {CompilePhase.FINAL_CODE},
240-
applyIfAnd = {"OptoPeephole", "true", "UseAVX", ">=2"})
241-
@IR(counts = {IRNode.DECODE_HEAP_OOP_NOT_NULL, "=11"},
242-
phase = {CompilePhase.FINAL_CODE},
243-
applyIfAnd = {"OptoPeephole", "true", "UseAVX", "<2"})
238+
applyIf = {"OptoPeephole", "true"})
244239
@Arguments(setup = "setup")
245240
public static Name test(Name n1, Name n2) {
246241
return n1.append(n2);
@@ -258,6 +253,7 @@ private static Object[] setup() {
258253
}
259254

260255
@Test
256+
// TODO: Make tests more precise
261257
@IR(counts = {IRNode.LEA_P, "=1"},
262258
phase = {CompilePhase.FINAL_CODE},
263259
applyIfPlatform = {"mac", "false"})

0 commit comments

Comments
 (0)