8307651: RISC-V: stringL_indexof_char instruction has wrong format string
Reviewed-by: fyang
This commit is contained in:
parent
2be1f10fec
commit
d3e6d04e3e
@ -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,
|
effect(USE_KILL str1, USE_KILL cnt1, USE_KILL ch, TEMP_DEF result,
|
||||||
TEMP tmp1, TEMP tmp2, TEMP tmp3, TEMP tmp4, KILL cr);
|
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 %{
|
ins_encode %{
|
||||||
__ string_indexof_char($str1$$Register, $cnt1$$Register, $ch$$Register,
|
__ string_indexof_char($str1$$Register, $cnt1$$Register, $ch$$Register,
|
||||||
$result$$Register, $tmp1$$Register, $tmp2$$Register,
|
$result$$Register, $tmp1$$Register, $tmp2$$Register,
|
||||||
@ -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,
|
effect(USE_KILL str1, USE_KILL cnt1, USE_KILL ch, TEMP_DEF result,
|
||||||
TEMP tmp1, TEMP tmp2, TEMP tmp3, TEMP tmp4, KILL cr);
|
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 %{
|
ins_encode %{
|
||||||
__ string_indexof_char($str1$$Register, $cnt1$$Register, $ch$$Register,
|
__ string_indexof_char($str1$$Register, $cnt1$$Register, $ch$$Register,
|
||||||
$result$$Register, $tmp1$$Register, $tmp2$$Register,
|
$result$$Register, $tmp1$$Register, $tmp2$$Register,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user