changeset 59893:9fce19fdda7e

8247979: aarch64: missing side effect of killing flags for clearArray_reg_reg Reviewed-by: adinn Contributed-by: wangyadong4@huawei.com
author fyang
date Mon, 22 Jun 2020 20:26:02 +0800
parents ab0b56034852
children a6860c505636
files src/hotspot/cpu/aarch64/aarch64.ad
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/aarch64/aarch64.ad	Tue Jun 23 07:48:39 2020 -0700
+++ b/src/hotspot/cpu/aarch64/aarch64.ad	Mon Jun 22 20:26:02 2020 +0800
@@ -13845,7 +13845,7 @@
 instruct clearArray_reg_reg(iRegL_R11 cnt, iRegP_R10 base, Universe dummy, rFlagsReg cr)
 %{
   match(Set dummy (ClearArray cnt base));
-  effect(USE_KILL cnt, USE_KILL base);
+  effect(USE_KILL cnt, USE_KILL base, KILL cr);
 
   ins_cost(4 * INSN_COST);
   format %{ "ClearArray $cnt, $base" %}