RFR: 8328998: Encoding support for Intel APX extended general-purpose registers [v2]

Jatin Bhateja jbhateja at openjdk.org
Fri Apr 19 12:00:00 UTC 2024


On Wed, 17 Apr 2024 00:47:29 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:
> 
>   fix white space, add comments

src/hotspot/cpu/x86/assembler_x86.cpp line 12925:

> 12923: void Assembler::prefix_rex2(Address adr, bool is_map1) {
> 12924:   int bits = is_map1 ? REX2BIT_M0 : 0;
> 12925:   bits |= get_base_prefix_bits(adr.base()->encoding());

Suggestion:

  bits |= get_base_prefix_bits(adr.base());

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18476#discussion_r1572247446


More information about the hotspot-compiler-dev mailing list