27
27
* @bug 8304042
28
28
* @summary Test some examples with independent packs with cyclic dependency
29
29
* between the packs.
30
- * @requires vm.bits == 64
31
- * @requires vm.compiler2.enabled
32
30
* @modules java.base/jdk.internal.misc
33
31
* @library /test/lib /
34
32
* @run driver compiler.loopopts.superword.TestIndependentPacksWithCyclicDependency
@@ -78,7 +76,7 @@ public static void main(String args[]) {
78
76
"-XX:CompileCommand=compileonly,compiler.loopopts.superword.TestIndependentPacksWithCyclicDependency::test*" ,
79
77
"-XX:CompileCommand=compileonly,compiler.loopopts.superword.TestIndependentPacksWithCyclicDependency::verify" ,
80
78
"-XX:CompileCommand=compileonly,compiler.loopopts.superword.TestIndependentPacksWithCyclicDependency::init" ,
81
- "-XX:LoopUnrollLimit=1000" );
79
+ "-XX:+IgnoreUnrecognizedVMOptions" , "-XX: LoopUnrollLimit=1000" );
82
80
}
83
81
84
82
TestIndependentPacksWithCyclicDependency () {
@@ -120,6 +118,7 @@ public void runTest0() {
120
118
121
119
@ Test
122
120
@ IR (counts = {IRNode .ADD_VI , "> 0" , IRNode .MUL_VF , "> 0" },
121
+ applyIfPlatform = {"64-bit" , "true" },
123
122
applyIfCPUFeatureOr = {"sse4.1" , "true" , "asimd" , "true" })
124
123
static void test0 (int [] dataIa , int [] dataIb , float [] dataFa , float [] dataFb ) {
125
124
for (int i = 0 ; i < RANGE ; i +=2 ) {
@@ -144,6 +143,7 @@ public void runTest1() {
144
143
145
144
@ Test
146
145
@ IR (counts = {IRNode .ADD_VI , "> 0" , IRNode .MUL_VF , "> 0" , IRNode .VECTOR_CAST_F2I , "> 0" , IRNode .VECTOR_CAST_I2F , "> 0" },
146
+ applyIfPlatform = {"64-bit" , "true" },
147
147
applyIfCPUFeatureOr = {"avx2" , "true" , "asimd" , "true" })
148
148
static void test1 (int [] dataIa , int [] dataIb , float [] dataFa , float [] dataFb ) {
149
149
for (int i = 0 ; i < RANGE ; i +=2 ) {
@@ -167,6 +167,7 @@ public void runTest2() {
167
167
168
168
@ Test
169
169
@ IR (counts = {IRNode .ADD_VI , "> 0" , IRNode .MUL_VI , "> 0" },
170
+ applyIfPlatform = {"64-bit" , "true" },
170
171
applyIfCPUFeatureOr = {"sse4.1" , "true" , "asimd" , "true" })
171
172
static void test2 (int [] dataIa , int [] dataIb , float [] dataFa , float [] dataFb ) {
172
173
for (int i = 0 ; i < RANGE ; i +=2 ) {
@@ -191,6 +192,7 @@ public void runTest3() {
191
192
192
193
@ Test
193
194
@ IR (counts = {IRNode .ADD_VI , "> 0" , IRNode .MUL_VF , "> 0" },
195
+ applyIfPlatform = {"64-bit" , "true" },
194
196
applyIfCPUFeatureOr = {"sse4.1" , "true" , "asimd" , "true" })
195
197
static void test3 (int [] dataIa , int [] dataIb , float [] dataFa , float [] dataFb ) {
196
198
for (int i = 0 ; i < RANGE ; i +=2 ) {
@@ -267,6 +269,7 @@ public void runTest6() {
267
269
268
270
@ Test
269
271
@ IR (counts = {IRNode .ADD_VI , "> 0" , IRNode .MUL_VI , "> 0" , IRNode .ADD_VF , "> 0" },
272
+ applyIfPlatform = {"64-bit" , "true" },
270
273
applyIfCPUFeatureOr = {"sse4.1" , "true" , "asimd" , "true" })
271
274
static void test6 (int [] dataIa , int [] dataIb , float [] dataFa , float [] dataFb ,
272
275
long [] dataLa , long [] dataLb ) {
0 commit comments