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
  • Loading branch information
feilongjiang authored and RealFYang committed May 10, 2023
1 parent 2be1f10 commit d3e6d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/riscv/riscv.ad
Expand Up @@ -10206,7 +10206,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 @@ -10225,7 +10225,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

1 comment on commit d3e6d04

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.