Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AArch64: Incorrect SVE double to int and float to long vector conversion #2

Merged

Conversation

nsjian
Copy link

@nsjian nsjian commented Nov 3, 2021

Like JDK-8276151, SVE vector double to int and float to long
conversions have similar issue. According to Java language
specification [1], we should convert double/float to
integer/long directly, instead of converting to long/int and then
narrowing/extending to target types. Test cases will be updated in
the fix of JDK-8276151.

[1] https://docs.oracle.com/javase/specs/jls/se17/html/jls-5.html#jls-5.1.3

Like JDK-8276151, SVE vector double to int and float to long
conversions have similar issue. According to Java language
specification [1], we should convert double/float to
integer/long directly, instead of converting to long/int and then
narrowing/extending to target types. Test cases will be updated in
JDK-8276151.

[1] https://docs.oracle.com/javase/specs/jls/se17/html/jls-5.html#jls-5.1.3
@PaulSandoz PaulSandoz merged commit 571e6f3 into PaulSandoz:JDK-8271515-vector-api Nov 4, 2021
@nsjian nsjian deleted the vector-conversion-fix branch November 17, 2021 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants