RFR: 8248191: [PPC64] Replace lxvd2x/stxvd2x with lxvx/stxvx for Power10

Ziviani github.com+670087+jrziviani at openjdk.java.net
Wed Dec 2 22:08:54 UTC 2020


On Tue, 1 Dec 2020 17:01:01 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> Then, I don't understand
> "These should benefit the Vector API because lxvd2x/stxvd2x may require
> xxswapd, leading to a more difficult code generation."
> I think this should get removed from the description if nobody can explain it.
> And please describe the benefits a bit more detailed than only "more modern".

Hallo Martin

Actually, it's "more modern" in the sense that it was introduced by PowerISA 3.0 (it works on P9 as well), the main advantage is that lxvd2x might require xxswapd instruction (or before it in case of stxvd2x), which is basically what gcc did (https://gcc.gnu.org/legacy-ml/gcc-patches/2015-12/msg02172.html). I didn't find patterns to generate code using lxvx like gcc does, but anyway, it seems a good idea to use it instead of lxvd2x (but nothing great or important). :-D

About the vector api, it was my misunderstanding of the load functions. I'll remove from the rationale if you think this patch makes sense.

Thank you!!

-------------

PR: https://git.openjdk.java.net/jdk/pull/1086


More information about the hotspot-compiler-dev mailing list