Skip to content

Commit 2014cb2

Browse files
committed
Disable some IR rules for Power8.
1 parent 599a4f3 commit 2014cb2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/hotspot/jtreg/compiler/c2/irTests/TestAutoVectorization2DArray.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
* @bug 8279258
3131
* @summary Auto-vectorization enhancement for two-dimensional array operations
3232
* @requires ((os.arch == "x86" | os.arch == "i386") & (vm.opt.UseSSE == "null" | vm.opt.UseSSE >= 2))
33-
* | (os.arch != "x86" & os.arch != "i386" & os.arch != "riscv64")
33+
* | (os.arch != "x86" & os.arch != "i386" & os.arch != "riscv64" & os.arch != "ppc64" & os.arch != "ppc64le")
3434
* | (os.arch == "riscv64" & vm.cpu.features ~= ".*rvv.*")
35+
* | ((os.arch == "ppc64" | os.arch == "ppc64le") & vm.cpu.features ~= ".*darn.*")
3536
* @library /test/lib /
3637
* @run driver compiler.c2.irTests.TestAutoVectorization2DArray
3738
*/

test/hotspot/jtreg/compiler/loopopts/superword/MinMaxRed_Int.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public static void ReductionInit(int[] a, int[] b) {
9797
applyIfCPUFeature = {"rvv", "true"},
9898
counts = {IRNode.MIN_REDUCTION_V, " > 0"})
9999
@IR(applyIfPlatform = {"ppc", "true"},
100+
applyIf = {"SuperwordUseVSX", "true"},
100101
counts = {IRNode.MIN_REDUCTION_V, " > 0"})
101102
public static int minReductionImplement(int[] a, int[] b, int res) {
102103
for (int i = 0; i < a.length; i++) {
@@ -113,6 +114,7 @@ public static int minReductionImplement(int[] a, int[] b, int res) {
113114
applyIfCPUFeature = {"rvv", "true"},
114115
counts = {IRNode.MAX_REDUCTION_V, " > 0"})
115116
@IR(applyIfPlatform = {"ppc", "true"},
117+
applyIf = {"SuperwordUseVSX", "true"},
116118
counts = {IRNode.MAX_REDUCTION_V, " > 0"})
117119
public static int maxReductionImplement(int[] a, int[] b, int res) {
118120
for (int i = 0; i < a.length; i++) {

0 commit comments

Comments
 (0)