Skip to content

Commit

Permalink
8307651: RISC-V: stringL_indexof_char instruction has wrong format st…
Browse files Browse the repository at this point in the history
…ring

Reviewed-by: fyang
Backport-of: d3e6d04e3eddfd26433f9cb95cfa9bff05b14bd6
  • Loading branch information
feilongjiang authored and RealFYang committed May 23, 2023
1 parent 504014c commit 9d8c08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/riscv/riscv.ad
Expand Up @@ -10315,7 +10315,7 @@ instruct stringU_indexof_char(iRegP_R11 str1, iRegI_R12 cnt1, iRegI_R13 ch,
effect(USE_KILL str1, USE_KILL cnt1, USE_KILL ch, TEMP_DEF result,
TEMP tmp1, TEMP tmp2, TEMP tmp3, TEMP tmp4, KILL cr);

format %{ "StringUTF16 IndexOf char[] $str1,$cnt1,$ch -> $result" %}
format %{ "StringUTF16 IndexOf char[] $str1, $cnt1, $ch -> $result" %}
ins_encode %{
__ string_indexof_char($str1$$Register, $cnt1$$Register, $ch$$Register,
$result$$Register, $tmp1$$Register, $tmp2$$Register,
Expand All @@ -10334,7 +10334,7 @@ instruct stringL_indexof_char(iRegP_R11 str1, iRegI_R12 cnt1, iRegI_R13 ch,
effect(USE_KILL str1, USE_KILL cnt1, USE_KILL ch, TEMP_DEF result,
TEMP tmp1, TEMP tmp2, TEMP tmp3, TEMP tmp4, KILL cr);

format %{ "StringUTF16 IndexOf char[] $str1,$cnt1,$ch -> $result" %}
format %{ "StringLatin1 IndexOf char[] $str1, $cnt1, $ch -> $result" %}
ins_encode %{
__ string_indexof_char($str1$$Register, $cnt1$$Register, $ch$$Register,
$result$$Register, $tmp1$$Register, $tmp2$$Register,
Expand Down

0 comments on commit 9d8c08f

Please sign in to comment.