2 Commits

Author SHA1 Message Date
TheRealMDoerr 4af2585ac3 Add check if flag is available. 2025-10-15 14:31:28 +02:00
TheRealMDoerr 3041e656ce 8369511: PPC64: compiler/vectorapi/VectorMaskCompareNotTest.java fails when running without VectorRegisters 2025-10-14 20:18:01 +02:00
2 changed files with 22 additions and 1 deletions
@@ -35,7 +35,7 @@ import jdk.test.lib.Asserts;
* @library /test/lib /
* @summary test combining vector not operation with compare
* @modules jdk.incubator.vector
* @requires (os.arch != "riscv64" | (os.arch == "riscv64" & vm.cpu.features ~= ".*rvv.*"))
* @requires vm.opt.final.MaxVectorSize == "null" | vm.opt.final.MaxVectorSize >= 16
*
* @run driver compiler.vectorapi.VectorMaskCompareNotTest
*/
+21
View File
@@ -149,6 +149,7 @@ public class VMProps implements Callable<Map<String, String>> {
vmGC(map); // vm.gc.X = true/false
vmGCforCDS(map); // may set vm.gc
vmOptFinalFlags(map);
vmOptFinalIntxFlags(map);
dump(map.map);
log("Leaving call()");
@@ -389,6 +390,26 @@ public class VMProps implements Callable<Map<String, String>> {
vmOptFinalFlag(map, "UseVectorizedMismatchIntrinsic");
}
/**
* Selected final flag of type intx.
*
* @param map - property-value pairs
* @param flagName - flag name
*/
private void vmOptFinalIntxFlag(SafeMap map, String flagName) {
map.put("vm.opt.final." + flagName,
() -> String.valueOf(WB.getIntxVMFlag(flagName)));
}
/**
* Selected sets of final flags of type intx.
*
* @param map - property-value pairs
*/
protected void vmOptFinalIntxFlags(SafeMap map) {
vmOptFinalIntxFlag(map, "MaxVectorSize");
}
/**
* @return "true" if VM has a serviceability agent.
*/