Re: Re: [PATCH] RISC-V: Normalize user vsetvl intrinsics[PR112092]

2023-11-07 Thread juzhe.zh...@rivai.ai
e32m1TU bb 2: ... vle vle vse juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-11-08 14:16 To: Juzhe-Zhong CC: gcc-patches; kito.cheng; jeffreyalaw; rdapp.gcc Subject: Re: [PATCH] RISC-V: Normalize user vsetvl intrinsics[PR112092] I thought vsetvli insertion will try to merge them into one for

Re: Re: [PATCH] RISC-V: Normalize user vsetvl intrinsics[PR112092]

2023-11-07 Thread juzhe.zh...@rivai.ai
) | bb 3 I don't think we should do this on VSETVL PASS. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-11-08 14:16 To: Juzhe-Zhong CC: gcc-patches; kito.cheng; jeffreyalaw; rdapp.gcc Subject: Re: [PATCH] RISC-V: Normalize user vsetvl intrinsics[PR112092] I thought vsetvli insertion wil

Re: Re: [PATCH] RISC-V: Normalize user vsetvl intrinsics[PR112092]

2023-11-07 Thread juzhe.zh...@rivai.ai
: __riscv_vsetvl_ratio64 I am no proposing it since it has been used for a long time. Just raise my concern. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-11-08 14:33 To: juzhe.zh...@rivai.ai CC: gcc-patches; Kito.cheng; jeffreyalaw; Robin Dapp Subject: Re: Re: [PATCH] RISC-V: Normalize user vsetvl

Re: [PATCH] RISC-V: Eliminate unused parameter warning.

2023-11-08 Thread juzhe.zh...@rivai.ai
OK juzhe.zh...@rivai.ai From: Li Xu Date: 2023-11-08 17:09 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; xuli Subject: [PATCH] RISC-V: Eliminate unused parameter warning. From: xuli The parameter orig_fndecl is not used, use anonymous parameters instead. ../.././gcc/gcc/config

Re: [PATCH] Middle-end: Fix bug of induction variable vectorization for RVV

2023-11-08 Thread juzhe.zh...@rivai.ai
Sorry for wrong description on the log: After this patch, the IR is: _36 = .SELECT_VL (ivtmp_34, POLY_INT_CST [4, 4]); _22 = (int) _36; vect_cst__21 = [vec_duplicate_expr] _22; juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-08 18:53 To: gcc-patches CC: richard.sandiford

Re: [PATCH v1] RISC-V: Refine frm emit after bb end in succ edges

2023-11-08 Thread juzhe.zh...@rivai.ai
OK。 juzhe.zh...@rivai.ai From: pan2.li Date: 2023-11-09 14:50 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Refine frm emit after bb end in succ edges From: Pan Li This patch would like to fine the frm insn emit when we meet abnormal edge

Re: [PATCH] Middle-end: Fix bug of induction variable vectorization for RVV

2023-11-09 Thread juzhe.zh...@rivai.ai
Bootstrap + regression on X86 passed. Ok for trunk ? juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-08 18:53 To: gcc-patches CC: richard.sandiford; rguenther; kito.cheng; kito.cheng; Juzhe-Zhong Subject: [PATCH] Middle-end: Fix bug of induction variable vectorization for RVV PR: https

Re: Re: [PATCH] Middle-end: Fix bug of induction variable vectorization for RVV

2023-11-09 Thread juzhe.zh...@rivai.ai
info) || !LOOP_VINFO_VECT_FACTOR (loop_vinfo).is_constant ())) LOOP_VINFO_USING_SELECT_VL_P (loop_vinfo) = true; } The problem is SELECT_VL may produce non-VF in non-final iteration, wheras MIN_EXPR always has VF on non-final iteration. Maybe add an assertion to assert non-slp if s

Re: Re: [PATCH] RISC-V: Move cond_copysign from combine pattern to autovec pattern

2023-11-09 Thread juzhe.zh...@rivai.ai
Yes. No regression. Committed. juzhe.zh...@rivai.ai From: Jeff Law Date: 2023-11-10 07:56 To: Juzhe-Zhong; gcc-patches CC: kito.cheng; kito.cheng; rdapp.gcc Subject: Re: [PATCH] RISC-V: Move cond_copysign from combine pattern to autovec pattern On 11/9/23 16:33, Juzhe-Zhong wrote

Re: Re: [PATCH] RISC-V/testsuite: Fix zvfh tests.

2023-11-09 Thread juzhe.zh...@rivai.ai
it can fix the issue. juzhe.zh...@rivai.ai From: Jeff Law Date: 2023-11-10 07:58 To: 钟居哲; rdapp.gcc; gcc-patches; palmer; kito.cheng Subject: Re: [PATCH] RISC-V/testsuite: Fix zvfh tests. On 11/9/23 15:43, 钟居哲 wrote: > Hi. Robin. [ ... ] You may need a development version of binutils to ge

Re: Re: [PATCH] RISC-V/testsuite: Fix zvfh tests.

2023-11-09 Thread juzhe.zh...@rivai.ai
How to fix it ? I am pretty noob on testing CI. Can Robin fix that? juzhe.zh...@rivai.ai From: Jeff Law Date: 2023-11-10 09:11 To: juzhe.zh...@rivai.ai; Robin Dapp; gcc-patches; palmer; kito.cheng Subject: Re: [PATCH] RISC-V/testsuite: Fix zvfh tests. On 11/9/23 18:09, juzhe.zh

Re: Re: [PATCH] RISC-V/testsuite: Fix zvfh tests.

2023-11-09 Thread juzhe.zh...@rivai.ai
I am using --with-arch=rv32gcv --with-abi=ilp32d I change dg-additional-option into dg-option of all those tests. Issues gone. juzhe.zh...@rivai.ai From: Jeff Law Date: 2023-11-10 09:15 To: juzhe.zh...@rivai.ai; Robin Dapp; gcc-patches; palmer; kito.cheng Subject: Re: [PATCH] RISC-V

Re: Re: [PATCH V3] test: Fix FAIL of pr97428.c for RVV

2023-11-09 Thread juzhe.zh...@rivai.ai
Thanks Jeff. Committed. juzhe.zh...@rivai.ai From: Jeff Law Date: 2023-11-10 09:26 To: Juzhe-Zhong; gcc-patches CC: rguenther Subject: Re: [PATCH V3] test: Fix FAIL of pr97428.c for RVV On 11/7/23 08:18, Juzhe-Zhong wrote: > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/pr974

Re: [PATCH v1] RISC-V: Add HFmode for l/ll round and rint autovec

2023-11-10 Thread juzhe.zh...@rivai.ai
No test? juzhe.zh...@rivai.ai From: pan2.li Date: 2023-11-10 16:14 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Add HFmode for l/ll round and rint autovec From: Pan Li The internal-fn has support the FLOATN already. This patch would like

Re: Re: [PATCH] Middle-end: Fix bug of induction variable vectorization for RVV

2023-11-10 Thread juzhe.zh...@rivai.ai
Hi, Richard. >> For nested_in_vect_loop we never have LOOP_VINFO_USING_SELECT_VL_P? Could you give me an example of nested loop ? For now, I can't produce a case. Thanks a lot for the comments, I will try to refactor as you suggested. juzhe.zh...@rivai.ai From: Richard Biener Da

Re: Re: [PATCH] Middle-end: Fix bug of induction variable vectorization for RVV

2023-11-10 Thread juzhe.zh...@rivai.ai
ep_vectype, > + LOOP_VINFO_USING_SELECT_VL_P (loop_vinfo) ? &si : NULL); again this makes the flow hard to follow. I suppose refactoring this overall to if (nested_in_vect_loop) ... else if (LOOP_VINFO_USING_SELECT_VL_P (..)) ... else ... and duplicate this tail into th

Re: Re: [PATCH] Middle-end: Fix bug of induction variable vectorization for RVV

2023-11-10 Thread juzhe.zh...@rivai.ai
INFO_USING_SELECT_VL_P to be false if ncopies > 1. */ + gcc_assert (!LOOP_VINFO_USING_SELECT_VL_P (loop_vinfo)); If it is Ok for you. I am gonna testing it on X86 bootstrap + regtest. Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-11-10 18:19 To: juzhe.zh...@riva

Re: [PATCH V2] VECT: Support mask_len_strided_load/mask_len_strided_store in loop vectorize

2023-11-12 Thread juzhe.zh...@rivai.ai
on RISC-V no regression. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-06 14:55 To: gcc-patches CC: richard.sandiford; rguenther; Juzhe-Zhong Subject: [PATCH V2] VECT: Support mask_len_strided_load/mask_len_strided_store in loop vectorize This patch adds strided load/store support on

Re: Re: [PATCH 0/7] ira/lra: Support subreg coalesce

2023-11-12 Thread juzhe.zh...@rivai.ai
no >= FIRST_PSEUDO_REGISTER; +} It depends on how targets configure REGMODE_NATURAL_SIZE target hook. If we return QImode size, his patch is enable tracking bit ranges 7 bits subreg. juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-11-12 19:53 To: 钟居哲 CC: Jeff Law; 丁乐华; gcc-patches; vm

Re: [PATCH v1] RISC-V: Support FP l/ll round and rint HF mode autovec

2023-11-12 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-11-12 21:47 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Support FP l/ll round and rint HF mode autovec From: Pan Li This patch would like to support the FP below API auto vectorization

Re: [PATCH v1] RISC-V: Fix RVV dynamic frm tests failure

2023-11-12 Thread juzhe.zh...@rivai.ai
OK juzhe.zh...@rivai.ai From: pan2.li Date: 2023-11-13 11:10 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Fix RVV dynamic frm tests failure From: Pan Li The hancement of mode-switching performs some optimization when emit the frm backup

Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality.

2023-11-13 Thread juzhe.zh...@rivai.ai
Does this patch fixes exposed bugs in current tests? Or could you add test for it ? juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 16:06 To: gcc-patches; palmer; Kito Cheng; jeffreyalaw; juzhe.zh...@rivai.ai CC: rdapp.gcc Subject: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality. Hi

Re: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality.

2023-11-13 Thread juzhe.zh...@rivai.ai
I know the root cause is: (reg:DI 15 a5 [orig:175 _103 ] [175])(reg:DI 15 a5 [orig:174 _100 ] [174]) is considered as true on rtx_equal_p. I think return note1 == note2; will simplify your codes and fix this issue. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 16:12 To: juzhe.zh

Re: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality.

2023-11-13 Thread juzhe.zh...@rivai.ai
Sorry. It should be return note1 && note2 && note1 == note2; juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 16:12 To: juzhe.zh...@rivai.ai; gcc-patches; palmer; kito.cheng; jeffreyalaw CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality. &

Re: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality.

2023-11-13 Thread juzhe.zh...@rivai.ai
regression of such issue even if I didn't build toolchain with "zbb". juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 16:12 To: juzhe.zh...@rivai.ai; gcc-patches; palmer; kito.cheng; jeffreyalaw CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality. &g

Re: Re: [PATCH] RISC-V: testsuite: Fix 32-bit FAILs.

2023-11-13 Thread juzhe.zh...@rivai.ai
lation terminated. My compile option is : --with-arch=rv32gcv_zfh_zvfh --with-abi=ilp32d I am using SPIKE but I don't think simulator cause such issue since it is compile issue. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 16:52 To: 钟居哲; gcc-patches; palmer; kito.cheng; Jeff

Re: Re: [PATCH] RISC-V: testsuite: Fix 32-bit FAILs.

2023-11-13 Thread juzhe.zh...@rivai.ai
Also, I didn't enable multi-lib. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 16:52 To: 钟居哲; gcc-patches; palmer; kito.cheng; Jeff Law CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: testsuite: Fix 32-bit FAILs. > FAIL: gcc.target/riscv/rvv/autovec/slp-mask-run-1.c -O3 -ftree-v

Re: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality.

2023-11-13 Thread juzhe.zh...@rivai.ai
I just checked definition of REG_EQUAL and REG_EQUIV. As you said, REG_EQUIV is more reasonable. Agree with use rtx_equal_p on REG_EQUIV and skip REG_EQUAL. Could you check whether it does fix your issues ? juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 17:25 To: juzhe.zh

Re: Re: [PATCH] RISC-V: testsuite: Fix 32-bit FAILs.

2023-11-13 Thread juzhe.zh...@rivai.ai
Ok. Lehua is going to take care of this issue. He has reproduced it. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 17:31 To: juzhe.zh...@rivai.ai; gcc-patches; palmer; kito.cheng; jeffreyalaw CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: testsuite: Fix 32-bit FAILs. > I'm

Re: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality.

2023-11-13 Thread juzhe.zh...@rivai.ai
a constant is loaded into a register that is never assigned any other value, this kind of note is used. I think REG_QEUIV is what I want. So I think you can test it to see if there is regression on current tests. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 17:34 To: juzhe.zh...@riv

Re: Re: [PATCH] RISC-V: testsuite: Fix 32-bit FAILs.

2023-11-13 Thread juzhe.zh...@rivai.ai
If there is a difference between them. I think we should fix riscv-common.cc. Since I think "zvfh_zfh" should not be different with "zfh_zvfh" juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 18:17 To: Lehua Ding; juzhe.zh...@rivai.ai; gcc-patches; palmer; kito.ch

Re: Re: [PATCH V2] RISC-V: Optimize combine sequence by merge approach

2023-11-13 Thread juzhe.zh...@rivai.ai
Thanks for noticing it. Will commit it with adjusting the testcase. Thanks. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 18:05 To: Juzhe-Zhong; gcc-patches CC: rdapp.gcc; kito.cheng; kito.cheng; jeffreyalaw Subject: Re: [PATCH V2] RISC-V: Optimize combine sequence by merge approach

Re: Re: [PATCH] RISC-V: vsetvl: Refine REG_EQUAL equality.

2023-11-13 Thread juzhe.zh...@rivai.ai
test (with assembly check) instead of run test ? If I don't build toolchain with "zbb" then we can't test such issue (VSETVL BUG). I may cause regression again if I change VSETVL pass in the future. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-13 18:31 To: juzhe.zh...

Re: Re: [PATCH V2] VECT: Support mask_len_strided_load/mask_len_strided_store in loop vectorize

2023-11-13 Thread juzhe.zh...@rivai.ai
x27;s even a FIXME comment). Address comments. The following patch doesn't change vect_check_gather_scatter Also, I think RVV only needs to lower invariant stride into stride load/store. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-11-13 20:17 To: juzhe.zh...@rivai.ai CC: gcc-patc

Re: [PATCH v1] RISC-V: Refine the mask generation for vec_init case 2

2023-11-14 Thread juzhe.zh...@rivai.ai
Could you test it v4096qi ? Also, VLS modes need to be tested. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-11-15 11:48 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Refine the mask generation for vec_init case 2 From: Pan Li We take

Re: [PATCH] RISC-V: fix vsetvli pass testsuite failure [PR/112447]

2023-11-14 Thread juzhe.zh...@rivai.ai
LGTM. You can commit it. Thanks. juzhe.zh...@rivai.ai From: Vineet Gupta Date: 2023-11-15 14:41 To: gcc-patches CC: Jeff Law; Robin Dapp; gnu-toolchain; Patrick O'Neill; Juzhe-Zhong; Vineet Gupta Subject: [PATCH] RISC-V: fix vsetvli pass testsuite failure [PR/112447] From: Juzhe-

Re: Re: [PATCH] RISC-V: Disallow RVV mode address for any load/store[PR112535]

2023-11-14 Thread juzhe.zh...@rivai.ai
. I think it should be COST MODEL issue. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-11-15 15:24 To: Juzhe-Zhong CC: gcc-patches; kito.cheng; jeffreyalaw; rdapp.gcc Subject: Re: [PATCH] RISC-V: Disallow RVV mode address for any load/store[PR112535] Curious about the code gen impact, does

Re: [PATCH] DOC/IFN/OPTAB: Add mask_len_strided_load/mask_len_strided_store DOC/OPTAB/IFN

2023-11-15 Thread juzhe.zh...@rivai.ai
Update just finished test CI. Tested on aarch64 QEMU no regression. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-14 11:39 To: gcc-patches CC: richard.sandiford; rguenther; Juzhe-Zhong Subject: [PATCH] DOC/IFN/OPTAB: Add mask_len_strided_load/mask_len_strided_store DOC/OPTAB/IFN This

Re: [PATCH] VECT: Add MASK_LEN_STRIDED_LOAD/MASK_LEN_STRIDED_STORE into loop vectorizer

2023-11-15 Thread juzhe.zh...@rivai.ai
Just finished X86 bootstrap && regtest no regression And tested on aarch64 no regression. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-14 11:46 To: gcc-patches CC: richard.sandiford; rguenther; Juzhe-Zhong Subject: [PATCH] VECT: Add MASK_LEN_STRIDED_LOAD/MASK_LEN_STRIDED_ST

RISC-V: Support XTheadVector extensions

2023-11-17 Thread juzhe.zh...@rivai.ai
not new features, all same as RVV1.0. Why do you invent the such ISA doesn't include any features that RVV1.0 doesn't satisfy ? I am not explicitly object this patch. But I should know the reason. Btw, stage 1 will close soon. So I will review this patch on GCC-15 as long as all other RISC-V maintainers agree. juzhe.zh...@rivai.ai

Re: Re: [PATCH] RISC-V: Fix bug of tuple move splitter[PR112561]

2023-11-17 Thread juzhe.zh...@rivai.ai
e memory address is changed into "a7" which is wrong. So. we should emit vsetvl, let GCC known the AVL "a7" used is a different value. Then bug will be fixed. But you remind me a thing, is that for whole register mode , we don't need this. So, the code should be adjusted:

Re: RISC-V: Support XTheadVector extensions

2023-11-17 Thread juzhe.zh...@rivai.ai
. So with compile option "-S", you will still see ASM as "vmulh.vv". but with objdump, you will see th.vmulh.vv. After this change, you can send V2, then I can continue to review on GCC-15. Thanks. juzhe.zh...@rivai.ai From: juzhe.zh...@rivai.ai Date: 2023-11-17 19:39 To:

Re: Re: [PATCH] RISC-V: Implement -mmemcpy-strategy= options[PR112537]

2023-11-19 Thread juzhe.zh...@rivai.ai
Jeff has approved your patch. You can commit it now. Btw, CC Robin to let him know this patch. Since he will support strcpy/strlenetc builtin with RVV instruction sequence. He will definitely needs compile option like this patch introduce. Thanks. juzhe.zh...@rivai.ai From: Li Xu Date

Re: Re: RISC-V: Support XTheadVector extensions

2023-11-19 Thread juzhe.zh...@rivai.ai
(a4)' /tmp/cc2KYYTs.s:3324: Error: unrecognized opcode `th.vse8.v v1,0(a4)' But we need binutils support theadvector first, otherwise, it will fail during building. 3. Add theadvector gating on target-support.exp. We don't want to run theadvector test when we don't

Re: [BUG FIX] RISC-V: Fix VLS DI mode of slide1 instruction attribute

2023-11-19 Thread juzhe.zh...@rivai.ai
Oh. I suddenly realize this fix was included by Robin's indexed load/store fix patch. https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636654.html juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-20 12:12 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc;

回复: Re: [PATCH] DOC/IFN/OPTAB: Add mask_len_strided_load/mask_len_strided_store DOC/OPTAB/IFN

2023-11-20 Thread juzhe.zh...@rivai.ai
Hi, Richi. strided load/store has been posted for a while. Can this feature be available on GCC-14 ? Or postpone it to GCC-15 ? Thanks. juzhe.zh...@rivai.ai 发件人: juzhe.zh...@rivai.ai 发送时间: 2023-11-16 15:21 收件人: 钟居哲; gcc-patches 抄送: richard.sandiford; rguenther 主题: Re: [PATCH] DOC/IFN/OPTAB

Re: [PATCH] RISC-V: testsuite: Remove redundant vector_hw and zvfh_hw.

2023-11-21 Thread juzhe.zh...@rivai.ai
I don't get it. Why do we need remove them ? juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-22 03:43 To: gcc-patches; palmer; Kito Cheng; jeffreyalaw; juzhe.zh...@rivai.ai CC: rdapp.gcc Subject: [PATCH] RISC-V: testsuite: Remove redundant vector_hw and zvfh_hw. Hi, this remove

Re: Re: [PATCH] RISC-V: testsuite: Remove redundant vector_hw and zvfh_hw.

2023-11-21 Thread juzhe.zh...@rivai.ai
LGTM。 juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-22 14:03 To: juzhe.zh...@rivai.ai; gcc-patches; palmer; kito.cheng; jeffreyalaw CC: rdapp.gcc Subject: Re: [PATCH] RISC-V: testsuite: Remove redundant vector_hw and zvfh_hw. > I don't get it. Why do we need remove them ? I

[PATCH 0/5] Add support for operand-specific alignment requirements

2023-11-22 Thread juzhe.zh...@rivai.ai
want to support the highpart overlap above. (Currently, we don't any overlap between source and dest in such instructions). So, I wonder whether we can pass "machine_mode" into register filter. Ok, I think it's too late since stage 1 closes. I wonder we can add it in GCC-15?

Re: [PATCH] RISC-V: Fix incorrect use of vcompress in permutation auto-vectorization

2023-11-22 Thread juzhe.zh...@rivai.ai
Committed as it is obvious bug fix. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-22 18:53 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [PATCH] RISC-V: Fix incorrect use of vcompress in permutation auto-vectorization This patch fixes

Re: Re: [PATCH] RISC-V: Disable AVL propagation of vrgather instruction

2023-11-23 Thread juzhe.zh...@rivai.ai
Oh. You mean this patch also fixes FLTO failed case ? juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-11-23 19:55 To: Juzhe-Zhong; gcc-patches CC: rdapp.gcc; kito.cheng; kito.cheng; jeffreyalaw Subject: Re: [PATCH] RISC-V: Disable AVL propagation of vrgather instruction I was just about to

Re: Re: [PATCH] RISC-V: Disable AVL propagation of vrgather instruction

2023-11-23 Thread juzhe.zh...@rivai.ai
Thanks Robin. I have sent V2: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637921.html with adding PR/target 112670 Could you commit it for me ? I am sorry that make you doing redundant work. I didn't realize they are same issue :) juzhe.zh...@rivai.ai From: Robin Dapp

Re: Re: [PATCH 0/5] Add support for operand-specific alignment requirements

2023-11-23 Thread juzhe.zh...@rivai.ai
d 1: V16QI "vr"))) That is, same mode, same instruction pattern. We want the constraint to be different according to TARGET_MIN_VLEN. Currently, I don't know whether we can have an approach to support this feature. Thanks. juzhe.zh...@rivai.ai From: Richard Sandiford Date: 202

PR111754

2023-11-27 Thread juzhe.zh...@rivai.ai
checked the dump is : F foo (F a, F b) { [local count: 1073741824]: = { 0.0, 9.0e+0, 0.0, 0.0 }; return ; } The dump IR seems reasonable to me. I wonder whether we should walk around in RISC-V backend to generate the same IR as ARM SVE ? Or we should adjust the test ? Thanks. juzhe.zh...@rivai.ai

Re: [PATCH v1] RISC-V: Bugfix for ICE in block move when zve32f

2023-11-28 Thread juzhe.zh...@rivai.ai
pr112743-0.c -> pr112743-1.c for consistent. Otherwise LGTM. No need to send V2. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-11-29 14:37 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Bugfix for ICE in block move when zve32f From: Pan

Re: [PATCH] RISC-V: Support highpart register overlap for vwcvt

2023-11-29 Thread juzhe.zh...@rivai.ai
Sorry for sending it twice. Add Co-authored-by: kito-cheng Co-authored-by: kito-cheng in changelog. No other difference. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-29 16:34 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [PATCH] RISC-V

Re: [PATCH] RISC-V: Add explicit braces to eliminate warning.

2023-11-29 Thread juzhe.zh...@rivai.ai
LGTM. Thanks for fixing it. juzhe.zh...@rivai.ai From: Li Xu Date: 2023-11-29 16:46 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; xuli Subject: [PATCH] RISC-V: Add explicit braces to eliminate warning. From: xuli ../.././gcc/gcc/config/riscv/riscv.cc: In function ‘void

[PATCH 9/21]middle-end: implement vectorizable_early_exit for codegen of exit code

2023-11-29 Thread juzhe.zh...@rivai.ai
; } This is a prototype. Is this idea reasonable to Richi ? Thanks. juzhe.zh...@rivai.ai

Re: [PATCH v1] RISC-V: Bugfix for legitimize move when get vec mode in zve32f

2023-11-29 Thread juzhe.zh...@rivai.ai
Why does get_vector_mode doesn't exist a vector mode ? It must exist a vector mode, otherwise, it will cause ICE in other situations. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-11-30 15:21 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] R

Re: [PATCH] RISC-V: Add vcreate intrinsics for RVV tuple types

2023-09-11 Thread juzhe.zh...@rivai.ai
Thanks for support it. LGTM from my side. Wait for kito's more comments. juzhe.zh...@rivai.ai From: Li Xu Date: 2023-09-12 10:08 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; pan2.li; gaofei; wangfeng; xuli Subject: [PATCH] RISC-V: Add vcreate intrinsics for RVV tuple types From:

Re: Re: [PATCH V3] RISC-V: Support Dynamic LMUL Cost model

2023-09-11 Thread juzhe.zh...@rivai.ai
ec[i]; } } Could you revise this piece of codes ? Other comments has been addressed in V4: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629959.html juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-12 04:31 To: Juzhe-Zhong; gcc-patches CC: rdapp.gcc; kito.cheng; kit

Re: [PATCH v2] RISC-V: Implement RESOLVE_OVERLOADED_BUILTIN for RVV intrinsic

2023-09-12 Thread juzhe.zh...@rivai.ai
uld you run your rvv intrinsic api ci with this patch? I am worrying that the resolve stuff will destroy the existing APi support. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-12 15:20 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v

Re: [PATCH v3] RISC-V: Implement RESOLVE_OVERLOADED_BUILTIN for RVV intrinsic

2023-09-12 Thread juzhe.zh...@rivai.ai
It looks reasonable to me now. But let's wait for kito's more comments. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-12 16:46 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v3] RISC-V: Implement RESOLVE_OVERLOADED_BUILTIN for RVV intrinsic

Re: [PATCH] RISC-V: Add missed cond autovec testcases

2023-09-12 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: Lehua Ding Date: 2023-09-12 16:57 To: gcc-patches CC: juzhe.zhong; kito.cheng; rdapp.gcc; palmer; jeffreyalaw; lehua.ding Subject: [PATCH] RISC-V: Add missed cond autovec testcases This patch adds all missed cond autovec testcases. For not support cond

Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
Thanks Robin. I have tried your codes. It works fine and tests passes. Does your code O(nlogn) complexity ? juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-12 16:19 To: Juzhe-Zhong; gcc-patches CC: rdapp.gcc; kito.cheng; kito.cheng; jeffreyalaw Subject: Re: [PATCH V4] RISC-V: Support

Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
tree lhs = gimple_get_lhs (stmt); mode = TYPE_MODE (TREE_TYPE (lhs)); If it is not a STORE, I assume it always has a LHS. Turns out that my original thought is incorrect. I think I know the fix. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-12 17:17 To: Juzhe-Zh

Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
GCC testsuite (I belive we can reproduce with some case in GCC testsuite in the future). Is that reasonable ? If yes, I will fix all your comments and send V5. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-12 17:31 To: juzhe.zh...@rivai.ai; gcc-patches CC: rdapp.gcc; kito.cheng; Kito.

Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
Then you don't need to waste time on reduce the case from SPEC. juzhe.zh...@rivai.ai From: juzhe.zh...@rivai.ai Date: 2023-09-12 17:36 To: Robin Dapp; gcc-patches CC: Robin Dapp; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model Th

Re: Re: [PATCH] RISC-V: Support VECTOR BOOL vcond_mask optab[PR111337]

2023-09-12 Thread juzhe.zh...@rivai.ai
Ok add it in V2: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630048.html juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-12 21:29 To: Juzhe-Zhong; gcc-patches CC: rdapp.gcc; kito.cheng; kito.cheng; jeffreyalaw Subject: Re: [PATCH] RISC-V: Support VECTOR BOOL vcond_mask

gimple-match: Do not try UNCOND optimization with COND_LEN.

2023-09-13 Thread juzhe.zh...@rivai.ai
ation: negate + cond_len_fma -> cond_len_fnma/cond_len_fms/cond_len_fnms. That's what I want to support in gimple fold. Let's see more comments from Richard and Richi. juzhe.zh...@rivai.ai

Re: Re: [PATCH] RISC-V: Support VLS modes VEC_EXTRACT auto-vectorization

2023-09-13 Thread juzhe.zh...@rivai.ai
>> Do we need the additional helper function? Yes. We need the additional helper function since I will cal emit_insn (gen_vec_extract (mode, mode) in the following patch which fixes PR111391 ICE. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-13 20:31 To: Juzhe-Zhong; gcc-patc

Re: [PATCH] RISC-V: Expand VLS mode to scalar mode move[PR111391]

2023-09-13 Thread juzhe.zh...@rivai.ai
Just realize this patch cause some unexpected ICE FAILs in GCC regression. Now, V2: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630194.html has fully passed the regression. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-09-13 21:01 To: gcc-patches CC: kito.cheng

Re: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode move[PR111391]

2023-09-14 Thread juzhe.zh...@rivai.ai
create_integer_operand (&ops[2], index); + expand_insn (icode, 3, ops); This code is copied from optabs-query.cc juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-09-14 16:11 To: Juzhe-Zhong CC: gcc-patches; kito.cheng; jeffreyalaw; rdapp.gcc Subject: Re: [PATCH V3] RISC-V: Expand VLS mode to

Re: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode move[PR111391]

2023-09-14 Thread juzhe.zh...@rivai.ai
Is it Ok for trunk ? Or you want me send a separate patch to remove "@" in vec_extract optab ? juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-09-14 16:11 To: Juzhe-Zhong CC: gcc-patches; kito.cheng; jeffreyalaw; rdapp.gcc Subject: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar

Re: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode move[PR111391]

2023-09-14 Thread juzhe.zh...@rivai.ai
You mean try pr111391.c that I added with rv64gcv_zve32x ? juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-09-14 17:20 To: juzhe.zh...@rivai.ai CC: gcc-patches; Kito.cheng; jeffreyalaw; Robin Dapp Subject: Re: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode move[PR111391] Could you

Re: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode move[PR111391]

2023-09-14 Thread juzhe.zh...@rivai.ai
../../../../gcc/gcc/cfgexpand.cc:4044 0x10699f3 expand_gimple_basic_block Thanks for catching this. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-09-14 17:20 To: juzhe.zh...@rivai.ai CC: gcc-patches; Kito.cheng; jeffreyalaw; Robin Dapp Subject: Re: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode

Re: Re: [PATCH V3] RISC-V: Expand VLS mode to scalar mode move[PR111391]

2023-09-14 Thread juzhe.zh...@rivai.ai
} } return true; } ASM: vsetivli zero,2,e32,mf2,ta,ma vslidedown.vi v2,v1,1 vmv.x.s a5,v2 slli a5,a5,32 vmv.x.s a0,v1 or a0,a5,a0 juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-09-14 17:26 To: juzhe.zh...@rivai.ai CC: gcc-patches; Kito.cheng; jeffreyalaw; Robin Dap

Re: [PATCH v3] RISC-V: Implement RESOLVE_OVERLOADED_BUILTIN for RVV intrinsic

2023-09-14 Thread juzhe.zh...@rivai.ai
ot;vadd", bases::vadd, shapes::alu should already known since it is a known function_base. The last 3 arguments may need some elegant analysis or map table to quickly grep. So, I think we should consider this framework seriously. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-12 1

Re: Re: [PATCH v3] RISC-V: Implement RESOLVE_OVERLOADED_BUILTIN for RVV intrinsic

2023-09-14 Thread juzhe.zh...@rivai.ai
f the function_instance. Then we can get the non-overloaeded function. juzhe.zh...@rivai.ai From: juzhe.zh...@rivai.ai Date: 2023-09-15 10:02 To: pan2.li; gcc-patches CC: pan2.li; yanzhang.wang; kito.cheng Subject: Re: [PATCH v3] RISC-V: Implement RESOLVE_OVERLOADED_BUILTIN for RVV intrinsic

Re: [PATCH] RISC-V: Remove phase 6 of vsetvl pass in GCC13[PR111412]

2023-09-17 Thread juzhe.zh...@rivai.ai
Thanks for fixing it. I am ok remove phase 6 optimization which has many latent bugs (in GCC 14 kito has refactored it) there. But I think we need kito's more comments about that. juzhe.zh...@rivai.ai From: Li Xu Date: 2023-09-18 12:19 To: gcc-patches CC: kito.cheng; palmer; juzhe.

Re: Re: [PATCH V2] internal-fn: Support undefined rtx for uninitialized SSA_NAME

2023-09-17 Thread juzhe.zh...@rivai.ai
Thanks Richard. Address comments on V3: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630699.html juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-09-17 23:29 To: Juzhe-Zhong CC: gcc-patches; rguenther Subject: Re: [PATCH V2] internal-fn: Support undefined rtx for

Re: [PATCH] RISC-V: Add fixed PR111255 testcase by other patch

2023-09-18 Thread juzhe.zh...@rivai.ai
LGTM。 juzhe.zh...@rivai.ai From: Lehua Ding Date: 2023-09-18 20:13 To: gcc-patches CC: juzhe.zhong; kito.cheng; rdapp.gcc; palmer; jeffreyalaw; lehua.ding Subject: [PATCH] RISC-V: Add fixed PR111255 testcase by other patch This patch add the missed PR111255 testcase which is fixed by this

Re: [PATCH] RISC-V: Removed misleading comments in testcases

2023-09-18 Thread juzhe.zh...@rivai.ai
LGTM juzhe.zh...@rivai.ai From: Lehua Ding Date: 2023-09-18 20:29 To: gcc-patches CC: juzhe.zhong; kito.cheng; rdapp.gcc; palmer; jeffreyalaw; lehua.ding Subject: [PATCH] RISC-V: Removed misleading comments in testcases This patch removed the misleading comments in testcases since we support

Re: [PATCH] RISC-V: Fix RVV can change mode class bug

2023-09-18 Thread juzhe.zh...@rivai.ai
Sorry for I made a mistake here. Change 'mayb_lt' into '!ordered_p' in V2: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630835.html juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-09-19 10:25 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rd

Re: [PATCH] RISC-V: Refactor and cleanup fma patterns

2023-09-18 Thread juzhe.zh...@rivai.ai
Thanks for the refactoring. This patch is needed in VLS fma support and undefined value enabling support. LGTM. juzhe.zh...@rivai.ai From: Lehua Ding Date: 2023-09-18 19:37 To: gcc-patches CC: juzhe.zhong; kito.cheng; rdapp.gcc; palmer; jeffreyalaw; lehua.ding Subject: [PATCH] RISC-V

Re: Re: [PATCH v1] RISC-V: Fix one ICE for vect test vect-multitypes-5

2023-09-19 Thread juzhe.zh...@rivai.ai
ve (dest, XEXP (XEXP (src, 0), 0)); + riscv_legitimize_poly_move (mode, dest_tmp, tmp, XEXP (XEXP (src, 0), 1)); If it can fix your issue, plz send a patch and commit it. Thanks. juzhe.zh...@rivai.ai From: Patrick O'Neill Date: 2023-09-19 01:38 To: Li, Pan2; Kito Cheng CC: gc

Re: Re: [Committed] RISC-V: Support VLS unary floating-point patterns

2023-09-19 Thread juzhe.zh...@rivai.ai
I didn't see this issue. They should be the bogus FAILs. We should either fix testcases or ignore them. juzhe.zh...@rivai.ai From: Patrick O'Neill Date: 2023-09-20 08:34 To: Juzhe-Zhong; Robin Dapp; gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; Palmer Dabbelt; Edwin Lu; joer

Re: Re: [Committed] RISC-V: Support VLS unary floating-point patterns

2023-09-19 Thread juzhe.zh...@rivai.ai
/testsuite/gcc.target/riscv/rvv/autovec/vls/def.h @@ -1,5 +1,4 @@ #include -#include and commit it. Thanks. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-09-20 08:52 To: 钟居哲 CC: Patrick O'Neill; Robin Dapp; gcc-patches; Kito.cheng; jeffreyalaw; palmer; Edwin Lu; joern.ren

Re: [PATCH v1] RISC-V: Support ceil and ceilf auto-vectorization

2023-09-19 Thread juzhe.zh...@rivai.ai
t;VF" so that you could also support VLS CEIL. Besides, I want to see this following case: a[i] = cond[i] ? CEIL (b[i]): c[i]; Ideally, we should be able to combine vfcvt + vmerge into vfcvt with mask. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-20 10:30 To: gcc-patches CC: juzhe.

Re: [PATCH] RISC-V: Reorganize and rename combine patterns in autovec-opt.md

2023-09-20 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: Lehua Ding Date: 2023-09-20 15:03 To: gcc-patches CC: juzhe.zhong; kito.cheng; rdapp.gcc; palmer; jeffreyalaw; lehua.ding Subject: [PATCH] RISC-V: Reorganize and rename combine patterns in autovec-opt.md This patch reorganize and rename the combine patterns

Re: Re: [PATCH V2] RISC-V: Support combine cond extend and reduce sum to widen reduce sum

2023-09-20 Thread juzhe.zh...@rivai.ai
more reasonable. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-20 17:14 To: Lehua Ding; gcc-patches CC: rdapp.gcc; juzhe.zhong; kito.cheng; palmer; jeffreyalaw Subject: Re: [PATCH V2] RISC-V: Support combine cond extend and reduce sum to widen reduce sum Hi Lehua, I think this is bette

Re: Re: [Committed] RISC-V: Fix Demand comparison bug[VSETVL PASS]

2023-09-20 Thread juzhe.zh...@rivai.ai
Yes. We could wait for a more few days to backport. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-09-21 00:41 To: Juzhe-Zhong CC: GCC Patches; Kito Cheng; Jeff Law; Robin Dapp Subject: Re: [Committed] RISC-V: Fix Demand comparison bug[VSETVL PASS] Does it also happened on gcc 13 branch? If

Re: [PATCH] RISC-V: Optimized for strided load/store with stride == element width[PR111450]

2023-09-20 Thread juzhe.zh...@rivai.ai
Thanks a lot. LGTM. juzhe.zh...@rivai.ai From: Li Xu Date: 2023-09-21 11:12 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; xuli Subject: [PATCH] RISC-V: Optimized for strided load/store with stride == element width[PR111450] From: xuli When stride == element width, vlsse should be

Re: [PATCH] RISC-V: Rename predicate vector_gs_scale_operand_16/32 to more generic names

2023-09-20 Thread juzhe.zh...@rivai.ai
LGTM juzhe.zh...@rivai.ai From: Lehua Ding Date: 2023-09-21 11:44 To: gcc-patches CC: juzhe.zhong; kito.cheng; rdapp.gcc; palmer; jeffreyalaw; lehua.ding Subject: [PATCH] RISC-V: Rename predicate vector_gs_scale_operand_16/32 to more generic names This little rename

Re: [PATCH v2] RISC-V: Support ceil and ceilf auto-vectorization

2023-09-21 Thread juzhe.zh...@rivai.ai
operand")] "(TARGET_USE_FANCY_MATH_387 && (!(SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH) || TARGET_MIX_SSE_I387) && flag_unsafe_math_optimizations && (flag_fp_int_builtin_inexact || !flag_trapping_math)) || (SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MAT

Re: [PATCH v2] RISC-V: Support ceil and ceilf auto-vectorization

2023-09-21 Thread juzhe.zh...@rivai.ai
Also。 Remove math.h include。 Instead, plz use __builtin_ceil. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-21 18:32 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v2] RISC-V: Support ceil and ceilf auto-vectorization From: Pan Li This patch would

Re: [Committed] RISC-V: Remove math.h import to resolve missing stubs failures

2023-09-21 Thread juzhe.zh...@rivai.ai
Hi, Patrick. GNU rvv intrinsic api test-generator has been merged: https://github.com/riscv-non-isa/rvv-intrinsic-doc/commits/main Could you include the full RVV intrinsic API test in your test CI? Currently, we don't include all API test in the GCC testsuite since it's too big.

Re: [PATCH v4] RISC-V: Support ceil and ceilf auto-vectorization

2023-09-21 Thread juzhe.zh...@rivai.ai
LGTM juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-22 08:12 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v4] RISC-V: Support ceil and ceilf auto-vectorization From: Pan Li Update in v4: * Add test for _Float16. * Remove unnecessary macro in def.h

Re: [PATCH v1] RISC-V: Leverage __builtin_xx instead of math.h for test

2023-09-21 Thread juzhe.zh...@rivai.ai
LGTM。 juzhe.zh...@rivai.ai From: pan2.li Date: 2023-09-22 09:12 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Leverage __builtin_xx instead of math.h for test From: Pan Li The math.h may have problems in some environment, take __builtin__xx

Re: [PATCH] RISC-V: Optimization of vrgather.vv into vrgatherei16.vv[PR111451]

2023-09-21 Thread juzhe.zh...@rivai.ai
LMUL_8)) change it into: else if (CONST_VECTOR_P (sel) && GET_MODE_BITSIZE (GET_MODE_INNER (sel_mode)).to_constant () > 16 && riscv_get_v_regno_alignment (data_mode) > LMUL_1) juzhe.zh...@rivai.ai From: Li Xu Date: 2023-09-22 09:33 To: gcc-patches CC: kito.cheng; pal

<    4   5   6   7   8   9   10   11   >