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: #597
  • Loading branch information
JinZhonghui authored and JoshuaZhuwj committed Nov 6, 2023
1 parent 6c5f1f6 commit 86346c6
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 86346c6

Please sign in to comment.