RFR: 8328998: Encoding support for Intel APX extended general-purpose registers [v8]
Sandhya Viswanathan
sviswanathan at openjdk.org
Wed May 1 21:30:58 UTC 2024
On Mon, 29 Apr 2024 21:55:31 GMT, Steve Dohrmann <duke at openjdk.org> wrote:
>> Add instruction encoding support for Intel APX extended general-purpose registers:
>>
>> Intel Advanced Performance Extensions (APX) doubles the number of general-purpose registers, from 16 to 32. For more information about APX, see https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-performance-extensions-apx.html.
>>
>> By specification, instruction encoding remains unchanged for instructions using only the lower 16 GPRs. For cases where one or more instruction operands reference extended GPRs (Egprs), encoding targets either REX2, an extension of REX encoding, or an extended version of EVEX encoding. These new encoding schemes extend or modify existing instruction prefixes only when Egprs are used.
>
> Steve Dohrmann has updated the pull request incrementally with one additional commit since the last revision:
>
> add egpr support for popcntq(R,A), cvttsd2siq(R,A), popq(R)
src/hotspot/cpu/x86/assembler_x86.cpp line 14001:
> 13999: emit_int8((unsigned char)0xF3);
> 14000: prefixq(src, dst, true /* is_map1 */);
> 14001: emit_int8((unsigned char)0xB8);
Just a nit, this could be:
emit_prefix_and_int8(get_prefixq(src, dst, true /* is_map1 */), (unsigned char) 0xB8);
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18476#discussion_r1586826001
More information about the hotspot-compiler-dev
mailing list