Skip to content

Commit

Permalink
8320209: VectorMaskGen clobbers rflags on x86_64
Browse files Browse the repository at this point in the history
Backport-of: b05e69f789fa8c9a5320be5a841317abd3b3a235
  • Loading branch information
Sandhya Viswanathan authored and shipilev committed Nov 28, 2023
1 parent d335f04 commit 770b3d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/x86/x86.ad
Original file line number Diff line number Diff line change
Expand Up @@ -8195,9 +8195,9 @@ instruct vmasked_load64(vec dst, memory mem, kReg mask) %{
ins_pipe( pipe_slow );
%}

instruct vmask_gen(kReg dst, rRegL len, rRegL temp) %{
instruct vmask_gen(kReg dst, rRegL len, rRegL temp, rFlagsReg cr) %{
match(Set dst (VectorMaskGen len));
effect(TEMP temp);
effect(TEMP temp, KILL cr);
format %{ "vector_mask_gen32 $dst, $len \t! vector mask generator" %}
ins_encode %{
__ genmask($dst$$KRegister, $len$$Register, $temp$$Register);
Expand Down

1 comment on commit 770b3d6

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