Skip to content

Commit

Permalink
8315612: RISC-V: intrinsic for unsignedMultiplyHigh
Browse files Browse the repository at this point in the history
Reviewed-by: fyang
  • Loading branch information
Vladimir Kempik committed Sep 6, 2023
1 parent 5cbff24 commit 5d3fdc1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/hotspot/cpu/riscv/riscv.ad
Original file line number Diff line number Diff line change
Expand Up @@ -6864,6 +6864,21 @@ instruct mulHiL_rReg(iRegLNoSp dst, iRegL src1, iRegL src2)
ins_pipe(lmul_reg_reg);
%}

instruct umulHiL_rReg(iRegLNoSp dst, iRegL src1, iRegL src2)
%{
match(Set dst (UMulHiL src1 src2));
ins_cost(IMUL_COST);
format %{ "mulhu $dst, $src1, $src2\t# umulhi, #@umulHiL_rReg" %}

ins_encode %{
__ mulhu(as_Register($dst$$reg),
as_Register($src1$$reg),
as_Register($src2$$reg));
%}

ins_pipe(lmul_reg_reg);
%}

// Integer Divide

instruct divI(iRegINoSp dst, iRegIorL2I src1, iRegIorL2I src2) %{
Expand Down

1 comment on commit 5d3fdc1

@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.