RFR: 8275167: x86 intrinsic for unsignedMultiplyHigh
Vamsi Parasa
duke at openjdk.java.net
Fri Oct 15 21:06:52 UTC 2021
On Fri, 15 Oct 2021 20:19:31 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
> > > How you verified correctness of results? I suggest to extend `test/jdk//java/lang/Math/MultiplicationTests.java` test to cover unsigned method.
> >
> >
> > Tests for unsignedMultiplyHigh were already added in test/jdk//java/lang/Math/MultiplicationTests.java (in July 2021 by Brian Burkhalter). Used that test to verify the correctness of the results.
>
> Good. It seems I have old version of the test. Did you run it with -Xcomp? How you verified that intrinsic is used?
The tests were not run with -Xcomp. Looked at the generated x86 code using the disassembler (hsdis) and verified that that correct instruction (mul) instead of (imul, without the intrinsic) was being generated.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5933
More information about the core-libs-dev
mailing list