23
23
24
24
/**
25
25
* @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"
28
28
* @library /test/lib /
29
29
* @run driver compiler.intrinsics.TestIntegerUnsignedDivMod
30
30
*/
@@ -73,7 +73,7 @@ public TestIntegerUnsignedDivMod() {
73
73
74
74
@ Test // needs to be run in (fast) debug mode
75
75
@ 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
77
77
public void testDivideUnsigned () {
78
78
for (int i = 0 ; i < BUFFER_SIZE ; i ++) {
79
79
try {
@@ -87,7 +87,7 @@ public void testDivideUnsigned() {
87
87
88
88
@ Test // needs to be run in (fast) debug mode
89
89
@ 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
91
91
public void testRemainderUnsigned () {
92
92
for (int i = 0 ; i < BUFFER_SIZE ; i ++) {
93
93
try {
@@ -102,7 +102,8 @@ public void testRemainderUnsigned() {
102
102
103
103
@ Test // needs to be run in (fast) debug mode
104
104
@ 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
106
107
public void testDivModUnsigned () {
107
108
for (int i = 0 ; i < BUFFER_SIZE ; i ++) {
108
109
try {
0 commit comments