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 21, 2023
1 parent 689b90d commit 21a003a
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 @@ -8985,9 +8985,9 @@ instruct vmask_cmp_node(rRegI dst, vec src1, vec src2, kReg mask, kReg ktmp1, kR
%}


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 21a003a

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