Skip to content

Commit

Permalink
[Backport] 8267652: c2 loop unrolling by 8 results in reading memory …
Browse files Browse the repository at this point in the history
…past array

Summary: Although 8267652 has already been ported in OpenJDK11,
OpenJDK11 has no vpternlog_mem() which exists in Dragonwell11. Hence
I have to introduce the missing fix of vpternlog_mem() in 8267652.

Test Plan: ci jtreg
  • Loading branch information
JoshuaZhuwj committed Dec 1, 2023
1 parent 87ca29e commit b405eea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/cpu/x86/x86.ad
Original file line number Diff line number Diff line change
Expand Up @@ -8103,6 +8103,7 @@ instruct vpternlog(vec dst, vec src2, vec src3, immU8 func) %{
%}

instruct vpternlog_mem(vec dst, vec src2, memory src3, immU8 func) %{
predicate(vector_length_in_bytes(n->in(1)) > 8);
match(Set dst (MacroLogicV (Binary dst src2) (Binary (LoadVector src3) func)));
effect(TEMP dst);
format %{ "vpternlogd $dst,$src2,$src3,$func\t! vector ternary logic" %}
Expand Down

0 comments on commit b405eea

Please sign in to comment.