Skip to content

Commit

Permalink
8332498: [aarch64, x86] improving OpToAssembly output for partialSubt…
Browse files Browse the repository at this point in the history
…ypeCheckConstSuper Instruct

Reviewed-by: kvn, thartmann
  • Loading branch information
offamitkumar committed May 21, 2024
1 parent e529101 commit 7ffc999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/aarch64.ad
Original file line number Diff line number Diff line change
Expand Up @@ -16230,7 +16230,7 @@ instruct partialSubtypeCheckConstSuper(iRegP_R4 sub, iRegP_R0 super_reg, immP su
effect(KILL cr, TEMP tempR1, TEMP tempR2, TEMP tempR3, TEMP vtemp);

ins_cost(700); // smaller than the next version
format %{ "partialSubtypeCheck $result, $sub, super" %}
format %{ "partialSubtypeCheck $result, $sub, $super_reg, $super_con" %}

ins_encode %{
bool success = false;
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/x86/x86_64.ad
Original file line number Diff line number Diff line change
Expand Up @@ -12094,7 +12094,7 @@ instruct partialSubtypeCheckConstSuper(rsi_RegP sub, rax_RegP super_reg, immP su
effect(KILL cr, TEMP temp1, TEMP temp2, TEMP temp3, TEMP temp4);

ins_cost(700); // smaller than the next version
format %{ "partialSubtypeCheck $result, $sub, super" %}
format %{ "partialSubtypeCheck $result, $sub, $super_reg, $super_con" %}

ins_encode %{
u1 super_klass_slot = ((Klass*)$super_con$$constant)->hash_slot();
Expand Down

0 comments on commit 7ffc999

Please sign in to comment.