File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
test/jdk/jdk/incubator/vector Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,13 @@ void VM_Version::initialize() {
136
136
if (FLAG_IS_DEFAULT (UseCharacterCompareIntrinsics)) {
137
137
FLAG_SET_ERGO (UseCharacterCompareIntrinsics, true );
138
138
}
139
- if (FLAG_IS_DEFAULT (UseVectorByteReverseInstructionsPPC64)) {
140
- FLAG_SET_ERGO (UseVectorByteReverseInstructionsPPC64, true );
139
+ if (SuperwordUseVSX) {
140
+ if (FLAG_IS_DEFAULT (UseVectorByteReverseInstructionsPPC64)) {
141
+ FLAG_SET_ERGO (UseVectorByteReverseInstructionsPPC64, true );
142
+ }
143
+ } else if (UseVectorByteReverseInstructionsPPC64) {
144
+ warning (" UseVectorByteReverseInstructionsPPC64 specified, but needs SuperwordUseVSX." );
145
+ FLAG_SET_DEFAULT (UseVectorByteReverseInstructionsPPC64, false );
141
146
}
142
147
if (FLAG_IS_DEFAULT (UseBASE64Intrinsics)) {
143
148
FLAG_SET_ERGO (UseBASE64Intrinsics, true );
Original file line number Diff line number Diff line change 39
39
* Vector64ConversionTests
40
40
*/
41
41
42
+ /*
43
+ * @test VectorConversionPPC64
44
+ * @bug 8256479
45
+ * @requires os.arch =="ppc64" | os.arch == "ppc64le"
46
+ * @summary VectorConversion on PPC64 without Vector Register usage
47
+ * @modules jdk.incubator.vector
48
+ * @modules java.base/jdk.internal.vm.annotation
49
+ * @run testng/othervm -XX:-SuperwordUseVSX -XX:-TieredCompilation --add-opens jdk.incubator.vector/jdk.incubator.vector=ALL-UNNAMED
50
+ * Vector64ConversionTests
51
+ */
52
+
42
53
@ Test
43
54
public class Vector64ConversionTests extends AbstractVectorConversionTest {
44
55
You can’t perform that action at this time.
0 commit comments