Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-09-02 Thread Ningsheng Jian
On 9/2/20 9:58 PM, Andrew Dinn wrote: Hi Ningsheng, On 02/09/2020 07:40, Ningsheng Jian wrote: Thanks a lot for the reviews! I think I have addressed the review comments from Andrew, Vladimir and Erik. This is the new webrev: Full: http://cr.openjdk.java.net/~njian/8231441/webrev.05/ Incremen

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-09-02 Thread Andrew Dinn
Hi Ningsheng, On 02/09/2020 07:40, Ningsheng Jian wrote: > Thanks a lot for the reviews! I think I have addressed the review > comments from Andrew, Vladimir and Erik. This is the new webrev: > > Full: > http://cr.openjdk.java.net/~njian/8231441/webrev.05/ > > Incremental: > http://cr.openjdk.ja

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-09-01 Thread Ningsheng Jian
Hi, Thanks a lot for the reviews! I think I have addressed the review comments from Andrew, Vladimir and Erik. This is the new webrev: Full: http://cr.openjdk.java.net/~njian/8231441/webrev.05/ Incremental: http://cr.openjdk.java.net/~njian/8231441/webrev.05-vs-04/ Tests: Tested with jtreg h

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-25 Thread Ningsheng Jian
Hi Erik, On 8/24/20 11:26 PM, Erik Österlund wrote: Hi Ningsheng, On 2020-08-24 11:59, Ningsheng Jian wrote: Hi Erik, Thanks for the review! On 8/22/20 12:21 AM, Erik Österlund wrote: Hi, Have you tried this with ZGC on AArch64? It has custom code for saving live registers in the load barr

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-24 Thread Erik Österlund
Hi Ningsheng, On 2020-08-24 11:59, Ningsheng Jian wrote: Hi Erik, Thanks for the review! On 8/22/20 12:21 AM, Erik Österlund wrote: Hi, Have you tried this with ZGC on AArch64? It has custom code for saving live registers in the load barrier slow path. I can't see any code changes there, so

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-24 Thread Ningsheng Jian
Hi Erik, Thanks for the review! On 8/22/20 12:21 AM, Erik Österlund wrote: Hi, Have you tried this with ZGC on AArch64? It has custom code for saving live registers in the load barrier slow path. I can't see any code changes there, so assuming this will just crash instead. The relevant code is

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-21 Thread Erik Österlund
Hi, Have you tried this with ZGC on AArch64? It has custom code for saving live registers in the load barrier slow path. I can't see any code changes there, so assuming this will just crash instead. The relevant code is in ZBarrierSetAssembler on aarch64. Maybe I missed something? Thanks, /E

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Magnus Ihse Bursie
On 2020-08-20 12:38, Andrew Dinn wrote: On 20/08/2020 11:14, Magnus Ihse Bursie wrote: On 2020-08-20 11:40, Nick Gasson wrote: http://cr.openjdk.java.net/~ngasson/asmtest/webrev.0/ Then you'd run it with    make exploded-test TEST="gtest:AssemblerAArch64" The downside is that it won't run o

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Andrew Haley
On 20/08/2020 11:38, Andrew Dinn wrote: > Well, perhaps this check ought to be done as a standalone test rather > than as debug build validation. I don't really have any deep commitment > either way. However, if we do proceed with this I think it ought to be > in a separate follow-up patch and with

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Andrew Dinn
On 20/08/2020 11:14, Magnus Ihse Bursie wrote: > On 2020-08-20 11:40, Nick Gasson wrote: >> http://cr.openjdk.java.net/~ngasson/asmtest/webrev.0/ >> >> Then you'd run it with >> >>    make exploded-test TEST="gtest:AssemblerAArch64" >> >> The downside is that it won't run on every startup of a debu

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Magnus Ihse Bursie
On 2020-08-20 11:40, Nick Gasson wrote: On 08/20/20 17:08 pm, Andrew Haley wrote: I meant move the test itself - entry() and asm_check() in assembler_aarch64.cpp - under test/hotspot/gtest. The generator would move with it. Hmm. I'm still not sure how this would work. Let's see the patch and we

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Nick Gasson
On 08/20/20 17:08 pm, Andrew Haley wrote: >> >> I meant move the test itself - entry() and asm_check() in >> assembler_aarch64.cpp - under test/hotspot/gtest. The generator would >> move with it. > > Hmm. I'm still not sure how this would work. Let's see the patch and > we can talk about it. It sti

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Andrew Haley
Hi, On 20/08/2020 09:58, Nick Gasson wrote: > > On 08/20/20 16:48 pm, Andrew Dinn wrote: >>> >>> It is perhaps a bit strange to have the test code under src/ and >>> embedded in the assembler implementation. How about we move it under >>> test/ using the existing gtest framework for native code te

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Nick Gasson
Hi Andrew, On 08/20/20 16:48 pm, Andrew Dinn wrote: >> >> It is perhaps a bit strange to have the test code under src/ and >> embedded in the assembler implementation. How about we move it under >> test/ using the existing gtest framework for native code tests? That >> runs in tier1 and also for

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Andrew Haley
On 20/08/2020 05:48, Nick Gasson wrote: > On 08/19/20 19:10 pm, Andrew Haley wrote: >> On 19/08/2020 11:05, Magnus Ihse Bursie wrote: >>> This is maybe not relevant, but I was surprised to find >>> src/hotspot/cpu/aarch64/aarch64-asmtest.py, because a) it's python code, >>> and b) the name implies

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Andrew Dinn
On 20/08/2020 05:48, Nick Gasson wrote: > On 08/19/20 19:10 pm, Andrew Haley wrote: >> On 19/08/2020 11:05, Magnus Ihse Bursie wrote: >>> This is maybe not relevant, but I was surprised to find >>> src/hotspot/cpu/aarch64/aarch64-asmtest.py, because a) it's python code, >>> and b) the name implies

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Andrew Haley
On 20/08/2020 03:27, Ningsheng Jian wrote: > // Note that a vector register with 4 slots, denotes a 128-bit NEON Lose the comma. :-) Never known to miss a trivial point, -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhale

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-20 Thread Andrew Dinn
Hi Ningsheng, >> postaloc.cpp:312 & 322 >> >> 311 if (lrgs(val_idx).is_scalable()) { >> 312   assert(val->ideal_reg() == Op_VecA, "scalable vector >> register"); >> >> . . . >> >> 321   if (lrgs(val_idx).is_scalable()) { >> 322 assert(val->ideal_reg() == Op_VecA, "scal

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-19 Thread Nick Gasson
On 08/19/20 19:10 pm, Andrew Haley wrote: > On 19/08/2020 11:05, Magnus Ihse Bursie wrote: >> This is maybe not relevant, but I was surprised to find >> src/hotspot/cpu/aarch64/aarch64-asmtest.py, because a) it's python code, >> and b) the name implies that it is a test, even though that it resides

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-19 Thread Ningsheng Jian
Hi Andrew, On 8/19/20 9:01 PM, Andrew Dinn wrote: Hi Ningsheng, On 19/08/2020 10:53, Ningsheng Jian wrote: I have updated the patch based on the review comments. Would you mind taking another look? Thanks! Full: http://cr.openjdk.java.net/~njian/8231441/webrev.04/ Incremental: http://cr.open

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-19 Thread Andrew Dinn
Hi Ningsheng, On 19/08/2020 10:53, Ningsheng Jian wrote: > I have updated the patch based on the review comments. Would you mind > taking another look? Thanks! > > Full: > http://cr.openjdk.java.net/~njian/8231441/webrev.04/ > > Incremental: > http://cr.openjdk.java.net/~njian/8231441/webrev.04-

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-19 Thread Andrew Haley
On 19/08/2020 11:05, Magnus Ihse Bursie wrote: > This is maybe not relevant, but I was surprised to find > src/hotspot/cpu/aarch64/aarch64-asmtest.py, because a) it's python code, > and b) the name implies that it is a test, even though that it resides > in src. Is this really proper? I have no id

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-19 Thread Ningsheng Jian
Hi Magnus, Thanks for the review! On 8/19/20 6:05 PM, Magnus Ihse Bursie wrote: On 2020-08-19 11:53, Ningsheng Jian wrote: Hi Andrew, I have updated the patch based on the review comments. Would you mind taking another look? Thanks! Full: http://cr.openjdk.java.net/~njian/8231441/webrev.04/

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-19 Thread Magnus Ihse Bursie
On 2020-08-19 11:53, Ningsheng Jian wrote: Hi Andrew, I have updated the patch based on the review comments. Would you mind taking another look? Thanks! Full: http://cr.openjdk.java.net/~njian/8231441/webrev.04/ Build changes look good. Thank you for remembering to cc build-dev! This is may

Re: [aarch64-port-dev ] RFR(L): 8231441: AArch64: Initial SVE backend support

2020-08-19 Thread Ningsheng Jian
Hi Andrew, I have updated the patch based on the review comments. Would you mind taking another look? Thanks! Full: http://cr.openjdk.java.net/~njian/8231441/webrev.04/ Incremental: http://cr.openjdk.java.net/~njian/8231441/webrev.04-vs-03/ Also add build-dev, as there's a makefile change.