Skip to content

Commit

Permalink
[Backport] 8265816: Handle new VectorMaskCast node for x86
Browse files Browse the repository at this point in the history
Summary: 8265816: Handle new VectorMaskCast node for x86

Test Plan: ci jtreg

Reviewed-by: JoshuaZhuwj

Issue: dragonwell-project#597
  • Loading branch information
JinZhonghui committed Nov 2, 2023
1 parent 4f7bcb3 commit bda3c23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/hotspot/cpu/x86/x86.ad
Original file line number Diff line number Diff line change
Expand Up @@ -7589,6 +7589,18 @@ instruct vstoreMask8B_evex(vec dst, vec src, immI_8 size) %{
ins_pipe( pipe_slow );
%}

instruct vmaskcast(vec dst) %{
predicate((vector_length(n) == vector_length(n->in(1))) &&
(vector_length_in_bytes(n) == vector_length_in_bytes(n->in(1))));
match(Set dst (VectorMaskCast dst));
ins_cost(0);
format %{ "vector_mask_cast $dst" %}
ins_encode %{
// empty
%}
ins_pipe(empty);
%}

//-------------------------------- Load Iota Indices ----------------------------------

instruct loadIotaIndices(vec dst, immI_0 src, rRegP scratch) %{
Expand Down

0 comments on commit bda3c23

Please sign in to comment.