Skip to content

Commit fb72870

Browse files
cost0muchBen Taylor
authored andcommitted
8319970: AArch64: enable tests compiler/intrinsics/Test(Long|Integer)UnsignedDivMod.java on aarch64
8319960: RISC-V: compiler/intrinsics/TestInteger/LongUnsignedDivMod.java failed with "counts: Graph contains wrong number of nodes" Reviewed-by: phh Backport-of: c80e691adf6f9ac1a41b2329ce366710e604e34e
1 parent e939761 commit fb72870

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

test/hotspot/jtreg/compiler/intrinsics/TestIntegerUnsignedDivMod.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
/**
2525
* @test
26-
* @summary Test x86_64 intrinsic for divideUnsigned() and remainderUnsigned() methods for Integer
27-
* @requires os.arch=="amd64" | os.arch=="x86_64"
26+
* @summary Test intrinsic for divideUnsigned() and remainderUnsigned() methods for Integer
27+
* @requires os.arch=="amd64" | os.arch=="x86_64" | os.arch=="aarch64"
2828
* @library /test/lib /
2929
* @run driver compiler.intrinsics.TestIntegerUnsignedDivMod
3030
*/
@@ -73,7 +73,7 @@ public TestIntegerUnsignedDivMod() {
7373

7474
@Test // needs to be run in (fast) debug mode
7575
@Warmup(10000)
76-
@IR(counts = {IRNode.UDIV_I, ">= 1"}) // Atleast one UDivI node is generated if intrinsic is used
76+
@IR(counts = {IRNode.UDIV_I, ">= 1"}) // At least one UDivI node is generated if intrinsic is used
7777
public void testDivideUnsigned() {
7878
for (int i = 0; i < BUFFER_SIZE; i++) {
7979
try {
@@ -87,7 +87,7 @@ public void testDivideUnsigned() {
8787

8888
@Test // needs to be run in (fast) debug mode
8989
@Warmup(10000)
90-
@IR(counts = {IRNode.UMOD_I, ">= 1"}) // Atleast one UModI node is generated if intrinsic is used
90+
@IR(counts = {IRNode.UMOD_I, ">= 1"}) // At least one UModI node is generated if intrinsic is used
9191
public void testRemainderUnsigned() {
9292
for (int i = 0; i < BUFFER_SIZE; i++) {
9393
try {
@@ -102,7 +102,8 @@ public void testRemainderUnsigned() {
102102

103103
@Test // needs to be run in (fast) debug mode
104104
@Warmup(10000)
105-
@IR(counts = {IRNode.UDIV_MOD_I, ">= 1"}) // Atleast one UDivModI node is generated if intrinsic is used
105+
@IR(applyIfPlatform = {"x64", "true"},
106+
counts = {IRNode.UDIV_MOD_I, ">= 1"}) // At least one UDivModI node is generated if intrinsic is used
106107
public void testDivModUnsigned() {
107108
for (int i = 0; i < BUFFER_SIZE; i++) {
108109
try {

test/hotspot/jtreg/compiler/intrinsics/TestLongUnsignedDivMod.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
/**
2525
* @test
26-
* @summary Test x86_64 intrinsic for divideUnsigned() and remainderUnsigned() methods for Long
27-
* @requires os.arch=="amd64" | os.arch=="x86_64"
26+
* @summary Test intrinsic for divideUnsigned() and remainderUnsigned() methods for Long
27+
* @requires os.arch=="amd64" | os.arch=="x86_64" | os.arch=="aarch64"
2828
* @library /test/lib /
2929
* @run driver compiler.intrinsics.TestLongUnsignedDivMod
3030
*/
@@ -140,7 +140,8 @@ public void testRemainderUnsigned() {
140140

141141
@Test // needs to be run in (fast) debug mode
142142
@Warmup(10000)
143-
@IR(counts = {IRNode.UDIV_MOD_L, ">= 1"}) // Atleast one UDivModL node is generated if intrinsic is used
143+
@IR(applyIfPlatform = {"x64", "true"},
144+
counts = {IRNode.UDIV_MOD_L, ">= 1"}) // At least one UDivModL node is generated if intrinsic is used
144145
public void testDivModUnsigned() {
145146
for (int i = 0; i < BUFFER_SIZE; i++) {
146147
try {

0 commit comments

Comments
 (0)