RFR: 8287139: aarch64 intrinsic for unsignedMultiplyHigh
Raffaello Giulietti
duke at openjdk.java.net
Mon May 23 13:13:44 UTC 2022
On Mon, 23 May 2022 12:41:25 GMT, Nick Gasson <ngasson at openjdk.org> wrote:
>> Adds aarch64 intrinsic support for `Math.unsignedMultiplyHigh()`
>
> src/hotspot/cpu/aarch64/aarch64.ad line 11151:
>
>> 11149:
>> 11150: ins_cost(INSN_COST * 7);
>> 11151: format %{ "umulh $dst, $src1, $src2, \t# umulhi" %}
>
> There's an unnecessary trailing comma here and in the `smulh` pattern above.
I didn't run the benchmark.
Isn't a single instruction supposed to be faster anyway, as opposed to the java method?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8840
More information about the hotspot-compiler-dev
mailing list