From 7ffc9997bd4a93cefe30f672a5f0e9c49215d2c7 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Tue, 21 May 2024 08:17:06 +0000 Subject: [PATCH] 8332498: [aarch64, x86] improving OpToAssembly output for partialSubtypeCheckConstSuper Instruct Reviewed-by: kvn, thartmann --- src/hotspot/cpu/aarch64/aarch64.ad | 2 +- src/hotspot/cpu/x86/x86_64.ad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/cpu/aarch64/aarch64.ad b/src/hotspot/cpu/aarch64/aarch64.ad index a82a1b396e0a6..1b8b9801f3c71 100644 --- a/src/hotspot/cpu/aarch64/aarch64.ad +++ b/src/hotspot/cpu/aarch64/aarch64.ad @@ -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; diff --git a/src/hotspot/cpu/x86/x86_64.ad b/src/hotspot/cpu/x86/x86_64.ad index 5d1c513b10f1a..f3ad721dfcb9d 100644 --- a/src/hotspot/cpu/x86/x86_64.ad +++ b/src/hotspot/cpu/x86/x86_64.ad @@ -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();