-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 27
-
Component/s: hotspot
I ran following code with `-Djdk.incubator.vector.DEBUG=true`, however it was not intrinsified.
```
public static void cos(){
var rand = new Random();
for(int i = 0; i < 1_000_000; i++){
var vec = DoubleVector.fromArray(DoubleVector.SPECIES_256, rand.doubles().limit(4).toArray(), 0);
vec.lanewise(VectorOperators.COS);
}
}
```
I knew `__jsvml_cos4_ha_l9()` in libjsvml.so should be called in this case (via vector debug log), but it was not hitted even though I set breakpoint in it.
`LaneType` has been introduced inJDK-8376187, and `LibraryCallKit::inline_vector_call()` was updated to handle lane type rather than class of element type. However `VectorMathLibrary` wasn't modified.
```
public static void cos(){
var rand = new Random();
for(int i = 0; i < 1_000_000; i++){
var vec = DoubleVector.fromArray(DoubleVector.SPECIES_256, rand.doubles().limit(4).toArray(), 0);
vec.lanewise(VectorOperators.COS);
}
}
```
I knew `__jsvml_cos4_ha_l9()` in libjsvml.so should be called in this case (via vector debug log), but it was not hitted even though I set breakpoint in it.
`LaneType` has been introduced in
- relates to
-
JDK-8376187 [VectorAPI] Define new lane type constants and pass them to intrinsic entries
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/357f29dc
-
Review(master)
openjdk/jdk/29835