Re: Re: [PATCH] test regression fix: Remove xfail for variable length targets

2024-01-15 Thread juzhe.zh...@rivai.ai
mp; mask__4.12_197; vect_patt_158.14_199 = .VCOND_MASK (mask_patt_157.13_198, { 1, 1, 1, 1, 1, 1, 1, 1 }, { 0, 0, 0, 0, 0, 0, 0, 0 }); vect_patt_159.15_200 = [vec_unpack_lo_expr] vect_patt_158.14_199; vect_patt_159.15_201 = [vec_unpack_hi_expr] vect_patt_158.14_199; juzhe.zh...@rivai.ai From: R

Re: [PATCH 1/2] RISC-V: delete all the vector psabi checking.

2024-01-15 Thread juzhe.zh...@rivai.ai
LGTM. I think removing riscv_vector_abi can be another separate followup patch. But plz make sure you have passed the regression before committed. Thanks. juzhe.zh...@rivai.ai From: yanzhang.wang Date: 2024-01-15 14:00 To: gcc-patches CC: juzhe.zhong; kito.cheng; pan2.li; lehua.ding

Re: [PATCH 1/2] RISC-V: delete all the vector psabi checking.

2024-01-14 Thread juzhe.zh...@rivai.ai
I think you should also remove riscv_vector_abi since vector ABI is ratified and we should by default enable vector calling convention by default. juzhe.zh...@rivai.ai From: yanzhang.wang Date: 2024-01-15 14:00 To: gcc-patches CC: juzhe.zhong; kito.cheng; pan2.li; lehua.ding; yanzhang.wang

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-12 Thread juzhe.zh...@rivai.ai
. */ if (!loop_vinfo) record_stmt_cost (cost_vec, 1, vec_to_scalar, stmt_info, NULL_TREE, 0, vect_epilogue); Since it's stage 4, I guess we can't change this now. juzhe.zh...@rivai.ai From: Richard Biener Date: 2024-01-11 17:57 To: Robin Dapp CC: juzhe.zh

Re: [PATCH v5] RISC-V: Rewrite some instructions using ASM targethook

2024-01-11 Thread juzhe.zh...@rivai.ai
ok. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-12 11:24 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v5] RISC-V: Rewrite some instructions using ASM

Re: [PATCH v6] RISC-V: Fix register overlap issue for some xtheadvector instructions

2024-01-11 Thread juzhe.zh...@rivai.ai
ok. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-12 11:23 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v6] RISC-V: Fix register overlap issue for some

Re: [PATCH v6] RISC-V: Handle differences between XTheadvector and Vector

2024-01-11 Thread juzhe.zh...@rivai.ai
ok juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-12 11:22 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v6] RISC-V: Handle differences between XTheadvector

Re: [PATCH v5] RISC-V: Adds the prefix "th." for the instructions of XTheadVector.

2024-01-11 Thread juzhe.zh...@rivai.ai
OK. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-12 11:21 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v5] RISC-V: Adds the prefix &qu

Re: [PATCH v4] RISC-V: Introduce XTheadVector as a subset of V1.0.0

2024-01-11 Thread juzhe.zh...@rivai.ai
This patch needs kito review. I can't approve that. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-12 11:20 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; kito.cheng; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject

Re: [PATCH v1] RISC-V: Update the comments of riscv_v_ext_mode_p [NFC]

2024-01-11 Thread juzhe.zh...@rivai.ai
OK juzhe.zh...@rivai.ai From: pan2.li Date: 2024-01-12 10:52 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Update the comments of riscv_v_ext_mode_p [NFC] From: Pan Li gcc/ChangeLog: * config/riscv/riscv.cc (riscv_v_ext_mode_p): Update

Re: [PATCH] RISC-V: Modify ABI-name length of vfloat16m8_t

2024-01-11 Thread juzhe.zh...@rivai.ai
Good catch. LGTM. juzhe.zh...@rivai.ai From: Feng Wang Date: 2024-01-12 09:35 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH] RISC-V: Modify ABI-name length of vfloat16m8_t The length of vfloat16m8_t ABI-name should be 17. gcc/ChangeLog: * config/riscv

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
ocal count: 359464610]: goto ; [100.00%] } Final ASM: main: lui a5,%hi(a) li a4,19 sb a4,%lo(a)(a5) li a0,0 ret juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 20:56 To: juzhe.zh...@rivai.ai; Richard Biener CC: rdapp.gcc; gcc-patches; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: [PATCH

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
e later pass failed to CSE it... juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 19:15 To: juzhe.zh...@rivai.ai; Richard Biener CC: rdapp.gcc; gcc-patches; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3 > I think we sho

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
for this test. Is it reasonable ? IMHO, scalar move (vmv.v.x or vfmv.v.f) should be more costly than normal vadd.vv since it is transferring data between different pipeline/register class. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 19:15 To: juzhe.zh...@rivai.ai; Richard Biener CC

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
times scalar_to_vec costs 3 in prologue 32872 spends 2 scalar instructions + 1 scalar_to_vec cost: li a4,-32768 addiw a4,a4,104 vmv.v.x v16,a4 It seems reasonable but only can fix test with -march=rv64gcv_zvl256b but failed on -march=rv64gcv_zvl4096b. juzhe.zh...@rivai.ai From: Robin Dapp Da

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 19:15 To: juzhe.zh...@rivai.ai; Richard Biener CC: rdapp.gcc; gcc-patches; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3 > I think we shouldn't vectorize it with any vlen, since the

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
b, RVV Clang also doesn't vectorize it. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 18:40 To: juzhe.zh...@rivai.ai; Richard Biener CC: rdapp.gcc; gcc-patches; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3 On 1/11/24 11:

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
t_26 1 times scalar_to_vec costs 1 in prologue This cost should be higher since it cost 3 instructions: li a4,-32768 addiw a4,a4,104 vmv.v.x v16,a4 Am I correct ? I guess if we cost 1 case as 1 cost and 2 case as 3 cost. Then we will be good. juzhe.zh...@rivai.ai From: Robi

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
And also I have investigate LLVM cost model. They don't cost vsevli in vectorization cost model. But their cost model does a good job... juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 18:09 To: Richard Biener CC: rdapp.gcc; juzhe.zh...@rivai.ai; gcc-patches; kito.cheng; Kito.cheng

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
>> That said, we also don't really cost all our vsetvls yet (difficult...). If cost vsetvl, we will need to cost 1 more for each STMT. However, it is not accurate. Since our VSETVL PASS will eliminate redundancy... juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 18:09 To: R

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
t;seem that bad. Yeah... I just noticed. I should set it as 4 to fix it with biggest VLEN size, that is, -march=rv64gcv_zvl4096b --param=riscv-autovec-lmul=m8... I am confused now how to fix this case. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-11 17:52 To: juzhe.zh...@rivai.ai; R

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
XTRACT (vect_patt_27.14_145, _147); b_5 = _148; a = 19; _14 = b_5 != 0; _15 = (int) _14; return _15; The vect dump tree only compute cost include vector_stmt and scalar_to_vec. It seems it didn't consider VEC_EXTRACT cost ? juzhe.zh...@rivai.ai From: Richard Biener Date: 2024-01-11 1

Re: Re: [PATCH] RISC-V: Increase scalar_to_vec_cost from 1 to 3

2024-01-11 Thread juzhe.zh...@rivai.ai
Thanks Richard. So you think increase scalar_to_vec cost is not the correct approach to fix this case? Or could you give me a suggestion to fix this case ? Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2024-01-11 17:18 To: Juzhe-Zhong CC: gcc-patches; kito.cheng; kito.cheng

[PATCH] RISC-V: Documnet the list of supported extensions

2024-01-11 Thread juzhe.zh...@rivai.ai
problem if they tried to use RVV GCC with like zvl8192b. juzhe.zh...@rivai.ai

Re: [PATCH v5] RISC-V: Fix register overlap issue for some xtheadvector instructions

2024-01-10 Thread juzhe.zh...@rivai.ai
Ok from myside. CCing Robin to see whether he has any more concerns. Thanks. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-11 10:39 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma

Re: Re:[PATCH v5] RISC-V: Add support for xtheadvector-specific intrinsics.

2024-01-10 Thread juzhe.zh...@rivai.ai
So vlb has not only sew = 8 ? But why do you add intrinsics as follows ? +DEF_RVV_FUNCTION (th_vlb, th_loadstore_width, full_preds, i8_v_scalar_const_ptr_ops) Why it is not : DEF_RVV_FUNCTION (th_vlb, th_loadstore_width, full_preds, all_v_scalar_const_ptr_ops) ? juzhe.zh...@rivai.ai   发件人

Re: Re:[PATCH v5] RISC-V: Handle differences between XTheadvector and Vector

2024-01-09 Thread juzhe.zh...@rivai.ai
Why do you need to invade existing shapes ? juzhe.zh...@rivai.ai 发件人: joshua 发送时间: 2024-01-10 15:16 收件人: juzhe.zh...@rivai.ai; gcc-patches 抄送: Jim Wilson; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; jinma; cooper.qu 主题: Re:Re:[PATCH v5] RISC-V: Handle differences

Re: Re:[PATCH v5] RISC-V: Handle differences between XTheadvector and Vector

2024-01-09 Thread juzhe.zh...@rivai.ai
Foundation, Inc. Incorrect copyright juzhe.zh...@rivai.ai 发件人: joshua 发送时间: 2024-01-10 10:57 收件人: juzhe.zh...@rivai.ai; gcc-patches 抄送: Jim Wilson; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; jinma; cooper.qu 主题: Re:[PATCH v5] RISC-V: Handle differences between XTheadvector

Re: Re:[PATCH v5] RISC-V: Handle differences between XTheadvector and Vector

2024-01-09 Thread juzhe.zh...@rivai.ai
https://gcc.gnu.org/pipermail/gcc-patches/2024-January/641733.html This patch is ok from my side. juzhe.zh...@rivai.ai 发件人: joshua 发送时间: 2024-01-10 10:57 收件人: juzhe.zh...@rivai.ai; gcc-patches 抄送: Jim Wilson; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; jinma

Re: [PATCH v5] RISC-V: Fix register overlap issue for some xtheadvector instructions

2024-01-09 Thread juzhe.zh...@rivai.ai
LGTM from myside. Give another a few more days that some one want to chime in. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-10 14:51 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma

Re: [PATCH v5] RISC-V: Fix register overlap issue for some xtheadvector instructions

2024-01-09 Thread juzhe.zh...@rivai.ai
ing "no") + ] Change it into: + (and (eq_attr "group_overlap" "thv_disabled") + (match_test "TARGET_XTHEADVECTOR")) + (const_string "no") + + (and (eq_attr "group_overlap" "rvv_disabled") + (match_test "TARGET

Re: Re:[PATCH v5] RISC-V: Handle differences between XTheadvector and Vector

2024-01-09 Thread juzhe.zh...@rivai.ai
vi, vi, vr, vr, vi, vi")]) + (match_operand: 2 "vector_merge_operand"" vu,0, vu,0, vu,0, vu,0")))] "TARGET_VECTOR && riscv_vector::cmp_lmul_le_one (mode)" "vms%B3.v%o5\t%0,%4,%v5%p1" [(set_attr &qu

Re: [PATCH v5] RISC-V: Handle differences between XTheadvector and Vector

2024-01-09 Thread juzhe.zh...@rivai.ai
of RV32 an RV64 of GCC testsuite. Do you have more patches of theadvector that I didn't review ? plz point them to me again. Thanks. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2024-01-10 10:22 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw

Re: Re: [PATCH] RISC-V: Teach liveness computation loop invariant shift amount[Dynamic LMUL]

2024-01-08 Thread juzhe.zh...@rivai.ai
Yes. It does sufficient. Send a patch: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642216.html juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-09 00:45 To: 钟居哲; gcc-patches CC: rdapp.gcc; kito.cheng; kito.cheng; Jeff Law Subject: Re: [PATCH] RISC-V: Teach liveness computation

Re: [PATCH] RISC-V: Fix avl-type operand index error for ZVBC

2024-01-05 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: Feng Wang Date: 2024-01-05 17:23 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH] RISC-V: Fix avl-type operand index error for ZVBC This patch fix the rtl-checking error for crypto vector. The root cause is the avl-type

Re: [PATCH v7 1/2] RISC-V: Add crypto vector builtin function.

2024-01-05 Thread juzhe.zh...@rivai.ai
nst_int 5) Ah, I knew something go wrong in case of attribute bugs. I think it should be a separate patch which is "Fix vlmax type attribute bugs of vclmul and vclmulh instructions". juzhe.zh...@rivai.ai From: Feng Wang Date: 2024-01-05 16:51 To: gcc-patches CC: kito.cheng; jeffreyalaw

Re: Re: [committed] RISC-V: Add crypto vector builtin function.

2024-01-04 Thread juzhe.zh...@rivai.ai
I have reverted those 2 commits: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=960c2620db254a1edc2cd61e608df73073b3de0d https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=b3ec98d458f2b285bb7b3fa4fcd93fd830fee069 juzhe.zh...@rivai.ai From: Palmer Dabbelt Date: 2024-01-05 11:24 To: juzhe.zhong

Re: Re: [committed] RISC-V: Add crypto vector builtin function.

2024-01-04 Thread juzhe.zh...@rivai.ai
he patch, then commit it after he fixes the ICE with enabling RTL check. juzhe.zh...@rivai.ai From: Palmer Dabbelt Date: 2024-01-05 11:24 To: juzhe.zhong CC: gcc-patches; Kito Cheng; Kito.cheng Subject: Re: [committed] RISC-V: Add crypto vector builtin function. On Thu, 04 Jan 2024 19:17:21 PS

[committed] RISC-V: Add crypto vector builtin function.

2024-01-04 Thread juzhe.zh...@rivai.ai
: ../../configure --enable-gcc-checking=rtl. Plz enable rtl check in the regression tests. juzhe.zh...@rivai.ai

Re: Re: [PATCH v4] RISC-V: Adds the prefix "th." for the instructions of XTheadVector.

2024-01-04 Thread juzhe.zh...@rivai.ai
\ No newline at end of file Each file needs newline. I am not able to review arch stuff. This needs kito. Besides, Andrew Pinski want us defer theadvector to GCC-15. I have no strong opinion here. juzhe.zh...@rivai.ai 发件人: joshua 发送时间: 2024-01-04 17:15 收件人: 钟居哲; Jeff Law; gcc-patches 抄送

Re: [PATCH] RISC-V: Fix bug of earliest fusion for infinite loop[VSETVL PASS]

2024-01-03 Thread juzhe.zh...@rivai.ai
While working on PR113209, I noticed it is same issue so this patch not only fixes PR113206 bug, but also fixes PR113209. Send V2 with adding PR113209 test and PR target/113209: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/641740.html juzhe.zh...@rivai.ai From: Juzhe-Zhong Date

Re: [PATCH v7 2/2] RISC-V: Add crypto vector api-testing cases.

2024-01-02 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: Feng Wang Date: 2024-01-03 13:21 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH v7 2/2] RISC-V: Add crypto vector api-testing cases. Patch v7: Add newline at the end of file. Patch v6: Move intrinsic tests into rvv/base

Re: Re: [PATCH v4] RISC-V: Adds the prefix "th." for the instructions of XTheadVector.

2024-01-02 Thread juzhe.zh...@rivai.ai
No. It will need to change all patterns in vector.md. It's a nightmare. You should note I will refine vector.md in GCC-15, mixing theadvector things make me impossible to maintain RVV1.0. juzhe.zh...@rivai.ai From: Andrew Pinski Date: 2024-01-03 11:19 To: juzhe.zh...@rivai.ai CC

Re: Re: [PATCH v4] RISC-V: Adds the prefix "th." for the instructions of XTheadVector.

2024-01-02 Thread juzhe.zh...@rivai.ai
We have no choice. You should know theadvector is totally unrelated with RVV1.0 standard ISA. Adding `%^' which missing totally unrelated ISA makes no sens to me. juzhe.zh...@rivai.ai From: Andrew Pinski Date: 2024-01-03 10:54 To: 钟居哲 CC: Jeff Law; cooper.joshua; gcc-patches; jim.wilson.gcc

Re: [PATCH v6 2/2] RISC-V: Add crypto vector api-testing cases.

2024-01-02 Thread juzhe.zh...@rivai.ai
\ No newline at end of file All files Need newline. juzhe.zh...@rivai.ai From: Feng Wang Date: 2024-01-03 09:01 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH v6 2/2] RISC-V: Add crypto vector api-testing cases. Patch v6: Move intrinsic tests into rvv/base

Re: [PATCH v5 2/2] RISC-V: Add crypto vector api-testing cases.

2024-01-02 Thread juzhe.zh...@rivai.ai
Move all tests into gcc.target/riscv/rvv/base All of these: #include change them into: #include "riscv_vector.h" juzhe.zh...@rivai.ai From: Feng Wang Date: 2024-01-02 15:47 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH v5 2/2] RISC-V: Add cry

Re: [PATCH v6 1/2] RISC-V: Add crypto vector builtin function.

2024-01-02 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: Feng Wang Date: 2024-01-02 17:18 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH v6 1/2] RISC-V: Add crypto vector builtin function. Patch v6:Remove unused code. Patch v5:Rebase. Patch v4:Merge crypto vector function.def

Re: [PATCH v5 1/2] RISC-V: Add crypto vector builtin function.

2024-01-01 Thread juzhe.zh...@rivai.ai
+/* Static information about a set of crypto vector functions. */ +struct crypto_function_group_info +{ + struct function_group_info rvv_function_group_info; + /* Whether the function is available. */ + unsigned int (*avail) (void); +}; What is this used for ? juzhe.zh...@rivai.ai From

Re: [PATCH v4] RISC-V: Change csr_operand into vector_length_operand for vsetvl patterns.

2024-01-01 Thread juzhe.zh...@rivai.ai
LGTM assume you have passed the regression. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2023-12-29 12:10 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v4] RISC-V

Re: [PATCH v4] RISC-V: Change csr_operand into

2024-01-01 Thread juzhe.zh...@rivai.ai
LGTM assume you have passed the regression. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2023-12-29 12:06 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v4] RISC-V

Re: [PATCH] RISC-V: Disallow transformation into VLMAX AVL for cond_len_xxx when length is in range [0, 31]

2023-12-26 Thread juzhe.zh...@rivai.ai
send V2 with test tweak: https://gcc.gnu.org/pipermail/gcc-patches/2023-December/641447.html juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-12-27 09:52 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [PATCH] RISC-V: Disallow transformation

Re: [PATCH v4 4/6] RISC-V: Adds the prefix "th." for the instructions of XTheadVector.

2023-12-25 Thread juzhe.zh...@rivai.ai
OK. juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2023-12-25 16:14 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v4 4/6] RISC-V: Adds the prefix &qu

Re: 回复:[PATCH v4 4/6] RISC-V: Adds the prefix "th." for the instructions of XTheadVector.

2023-12-24 Thread juzhe.zh...@rivai.ai
OK. This sub-patch is ok to commit after adding new line to prefix.c juzhe.zh...@rivai.ai 发件人: joshua 发送时间: 2023-12-25 15:08 收件人: juzhe.zh...@rivai.ai; gcc-patches 抄送: Jim Wilson; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; jinma; cooper.qu 主题: 回复:[PATCH v4 4/6] RISC-V

Re: [PATCH v4 4/6] RISC-V: Adds the prefix "th." for the instructions of XTheadVector.

2023-12-24 Thread juzhe.zh...@rivai.ai
e New line should be added into prefix.c juzhe.zh...@rivai.ai From: Jun Sha (Joshua) Date: 2023-12-25 14:25 To: gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; jeffreyalaw; christoph.muellner; juzhe.zhong; Jun Sha (Joshua); Jin Ma; Xianmiao Qu Subject: [PATCH v4 4/6] RISC-

Re: 回复:[PATCH v3 0/6] RISC-V: Support XTheadVector extension

2023-12-22 Thread juzhe.zh...@rivai.ai
(reg:SI VL_REGNUM) (reg:SI VTYPE_REGNUM)] UNSPEC_VPREDICATE)] UNSPEC_VMSBC))] "TARGET_VECTOR" "vmsbc.vvm\t%0,%1,%2,%3" [(set_attr "type" "vicalu") (set_attr "mode" "") (set_attr "vl_op_idx" "4&qu

Re: 回复:[PATCH v3 0/6] RISC-V: Support XTheadVector extension

2023-12-22 Thread juzhe.zh...@rivai.ai
constraint using attribute, More details you can learn from (set_attr "group_overlap" juzhe.zh...@rivai.ai 发件人: joshua 发送时间: 2023-12-22 11:33 收件人: 钟居哲; gcc-patches 抄送: jim.wilson.gcc; palmer; andrew; philipp.tomsich; Jeff Law; Christoph Müllner; jinma; Cooper Qu 主题: 回复:[PATCH v3 0

Re: [PATCH] RISC-V: Add crypto machine descriptions

2023-12-21 Thread juzhe.zh...@rivai.ai
Machine description part is ok from my side. But I don't know the plan of vector crypto. I'd like to wait kito or Jeff to make sure we allow vector-crypto intrinsics as part of GCC-14 release. Thanks. juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-22 09:59 To: gcc-patches CC

Re: [PATCH v7 2/3] RISC-V: Add crypto machine descriptions

2023-12-21 Thread juzhe.zh...@rivai.ai
Also the copy right is incorrect: +;; Copyright (C) 2022-23 Free Software Foundation, Inc. It should be: Copyright (C) 2023 Free Software Foundation, Inc. juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-22 09:38 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject

Re: [PATCH v7 2/3] RISC-V: Add crypto machine descriptions

2023-12-21 Thread juzhe.zh...@rivai.ai
\ No newline at end of file Still no new line in vector-iterator.md juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-22 09:38 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH v7 2/3] RISC-V: Add crypto machine descriptions Patch v7: Remove mode

Re: [PATCH v6 2/3] RISC-V: Add crypto machine descriptions

2023-12-21 Thread juzhe.zh...@rivai.ai
ntrinsics s + (match_operand 5 "const_int_operand" " i, i") + (match_operand 6 "const_int_operand" " i, i") \ No newline at end of file Each file needs a newline. + (match_operand:VSI 1 "vector_merge_operand"

Re: [PATCH v5 2/3] RISC-V: Add crypto machine descriptions

2023-12-20 Thread juzhe.zh...@rivai.ai
erand")) (match_operand:SVE_FULL_I 4 "aarch64_simd_reg_or_zero")] UNSPEC_SEL))] "TARGET_SVE" ) Otherwise, LGTM. But I'd like to expect Kito chime in. Thanks. juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-21 10:48 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzh

Re: Re: [PATCH v3 0/6] RISC-V: Support XTheadVector extension

2023-12-20 Thread juzhe.zh...@rivai.ai
OK. Sounds reasonable. But from my side, I used to commit patches after full coverage testing. juzhe.zh...@rivai.ai From: Jeff Law Date: 2023-12-21 11:28 To: 钟居哲; cooper.joshua; gcc-patches CC: jim.wilson.gcc; palmer; andrew; philipp.tomsich; Christoph Müllner; jinma; Cooper Qu Subject: Re

Re: Re: [PATCH] RISC-V: Fix calculation of max live vregs

2023-12-20 Thread juzhe.zh...@rivai.ai
I see. LGTM. Thanks for explanation. I will ask Li Pan commit it for you. Thanks. juzhe.zh...@rivai.ai From: Demin Han Date: 2023-12-20 19:10 To: juzhe.zh...@rivai.ai; gcc-patches CC: pan2.li Subject: Re: [PATCH] RISC-V: Fix calculation of max live vregs Hi juzhe, The live ranges

Re: [PATCH] RISC-V: Fix calculation of max live vregs

2023-12-20 Thread juzhe.zh...@rivai.ai
(I am happy with those 2 cases be changed as using larger LMUL )? It seems this patch is ignoring the first vectorized statement during the live calculation ? Thanks. juzhe.zh...@rivai.ai From: demin.han Date: 2023-12-20 16:15 To: gcc-patches@gcc.gnu.org CC: juzhe.zh...@rivai.ai; pan2

Re: [PATCH v3] RISC-V: Bugfix for the const vector in single steps

2023-12-20 Thread juzhe.zh...@rivai.ai
OK。 juzhe.zh...@rivai.ai From: pan2.li Date: 2023-12-20 17:35 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng; jeffreyalaw Subject: [PATCH v3] RISC-V: Bugfix for the const vector in single steps From: Pan Li This patch would like to fix the below execution failure when

Re: Re: [PATCH v4 2/3] RISC-V: Add crypto machine descriptions

2023-12-20 Thread juzhe.zh...@rivai.ai
>> The description in the spec is"Each bit of Op1 is inverted and logically >> ANDed with the corresponding bits in vs2", >> so I think the "and" should be placed outside. Ah. Yes. juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-20 16:09 To

Re: [PATCH v4 2/3] RISC-V: Add crypto machine descriptions

2023-12-19 Thread juzhe.zh...@rivai.ai
tch_operand: 4 "register_operand" " r, r, r, r"))) -> + (and:VI_QHS+ (not:VI_QHS+(vec_duplicate:VI_QHS +(match_operand: 4 "register_operand" " r, r, r, r"))) + (match_operand:VI_QHS 3 "register_operand" "vr, v

Re: [PATCH v2] RISC-V: Bugfix for the const vector in single steps

2023-12-19 Thread juzhe.zh...@rivai.ai
ass rvv_builder juzhe.zh...@rivai.ai From: pan2.li Date: 2023-12-20 14:56 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng; jeffreyalaw Subject: [PATCH v2] RISC-V: Bugfix for the const vector in single steps From: Pan Li This patch would like to fix the below execution fail

Re: [PATCH v1] RISC-V: Bugfix for the const vector in single steps

2023-12-19 Thread juzhe.zh...@rivai.ai
+ if (known_eq (ele_0 - 0, ele_n - v.npatterns ())) -> for (i = 0; i < v.npatterns (); ) check each nelt of npatterns is equal to vid. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-12-20 10:39 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PA

Re: Re: [PATCH] fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971].

2023-12-19 Thread juzhe.zh...@rivai.ai
? juzhe.zh...@rivai.ai From: Andrew Pinski Date: 2023-12-20 10:04 To: Richard Biener; juzhe.zh...@rivai.ai; Robin Dapp; gcc-patches; pan2.li; Richard Biener; pinskia; richard.sandiford Subject: Re: [PATCH] fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971]. On Tue, Dec 19, 2023

Re: Re: [PATCH] fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971].

2023-12-19 Thread juzhe.zh...@rivai.ai
or RVV. juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-12-19 18:40 To: Richard Biener CC: juzhe.zhong\@rivai.ai; Robin Dapp; gcc-patches; pan2.li; Richard Biener; pinskia Subject: Re: [PATCH] fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971]. Richard Biener writes: > O

Re: Re: [PATCH] fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971].

2023-12-19 Thread juzhe.zh...@rivai.ai
| code == BIT_IOR_EXPR || code == BIT_XOR_EXPR); juzhe.zh...@rivai.ai From: Jakub Jelinek Date: 2023-12-19 17:45 To: juzhe.zh...@rivai.ai CC: rguenther; Robin Dapp; gcc-patches; pan2.li; richard.sandiford; Richard Biener; pinskia Subject: Re: Re: [PATCH] fold-const: Handle AND,

Re: Re: [PATCH] fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971].

2023-12-19 Thread juzhe.zh...@rivai.ai
|| code == BIT_IOR_EXPR || code == BIT_XOR_EXPR); juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-12-19 17:12 To: juzhe.zh...@rivai.ai CC: Robin Dapp; gcc-patches; pan2.li; richard.sandiford; Richard Biener; pinskia Subject: Re: Re: [PATCH] fold-const: Handle AND, IOR, XOR with st

Re: Re: [PATCH] fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971].

2023-12-19 Thread juzhe.zh...@rivai.ai
ng at the implementation it's odd that we can handle VECTOR_CST_NELTS_PER_PATTERN == 1 (duplicate) and == 3 (stepped) but not == 2 (not sure what that would be). Maybe the tests can be re-formulated in terms of VECTOR_CST_NELTS_PER_PATTERN? Richard. > Thanks. > > > > juzhe.zh.

Re: [PATCH] testsuite: Fix cpymem-2.c dump checks under different riscv-sim for RVV.

2023-12-18 Thread juzhe.zh...@rivai.ai
OK。 juzhe.zh...@rivai.ai From: Li Xu Date: 2023-12-19 09:44 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; xuli Subject: [PATCH] testsuite: Fix cpymem-2.c dump checks under different riscv-sim for RVV. From: xuli gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/cpymem

Re: [PATCH] RISC-V: Add required_extensions in function_group

2023-12-18 Thread juzhe.zh...@rivai.ai
Thanks for refactor it. You can commit it today. Thanks. juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-18 11:28 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH] RISC-V: Add required_extensions in function_group In order to add other vector related

Re: [PATCH] RISC-V: Support one more overlap for wv instructions

2023-12-18 Thread juzhe.zh...@rivai.ai
Update in V2 with more information in commit log: https://gcc.gnu.org/pipermail/gcc-patches/2023-December/640863.html juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-12-18 18:59 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [PATCH] RISC-V

Re: [PATCH v2] RISC-V: Bugfix for the RVV const vector

2023-12-17 Thread juzhe.zh...@rivai.ai
OK. LGTM. It's an obvious fix and not easy to add the test (No need to add such test). juzhe.zh...@rivai.ai From: pan2.li Date: 2023-12-18 15:35 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v2] RISC-V: Bugfix for the RVV const vector From: Pan Li

Re: [PATCH v1] RISC-V: Bugfix for the RVV const vector

2023-12-17 Thread juzhe.zh...@rivai.ai
check according to this suggestion. Also, rename the test from const-vector-0.c into bug-7.c juzhe.zh...@rivai.ai From: pan2.li Date: 2023-12-18 15:04 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Bugfix for the RVV const vector From:

Re: [PATCH v2] testsuite: Fix cpymem-1.c dump checks under different riscv-sim for RVV.

2023-12-17 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: Li Xu Date: 2023-12-18 15:05 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; xuli Subject: [PATCH v2] testsuite: Fix cpymem-1.c dump checks under different riscv-sim for RVV. From: xuli gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base

Re: [PATCH] testsuite: Fix cpymem-1.c dump checks under different riscv-sim for RVV.

2023-12-17 Thread juzhe.zh...@rivai.ai
Could you add -fno-schedule-insns -fno-schedule-insns2 ? So that the test won't be fragile to break a again when we tune the scheduling model and cost model. juzhe.zh...@rivai.ai From: Li Xu Date: 2023-12-18 14:40 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; xuli Subject: [PATCH

Re: [PATCH] RISC-V: Add required_extensions in function_group

2023-12-17 Thread juzhe.zh...@rivai.ai
LGTM from my side. Give kito 1 day to chime in, juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-18 11:28 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; Feng Wang Subject: [PATCH] RISC-V: Add required_extensions in function_group In order to add other vector related extensions

Re: Re: [PATCH] RISC-V: Fix vmerge optimization bug in vec_perm vectorization

2023-12-15 Thread juzhe.zh...@rivai.ai
r_p && !vec_len.is_constant ()) return false; juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-15 20:44 To: juzhe.zh...@rivai.ai; gcc-patches CC: rdapp.gcc; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: [PATCH] RISC-V: Fix vmerge optimization bug in vec_perm vectorization > Oh. I t

Re: Re: [PATCH] RISC-V: Fix vmerge optimization bug in vec_perm vectorization

2023-12-15 Thread juzhe.zh...@rivai.ai
<< GET_MODE_BITSIZE (GET_MODE_INNER (vmode))); if (GET_MODE_BITSIZE (GET_MODE_INNER (vmode)) == 8 && indices_not_fit_selector_p && !vec_len.is_constant ()) return false; juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-15 20:25 To: juzhe.zh...@rivai.ai; gcc

Re: Re: [PATCH] RISC-V: Fix vmerge optimization bug in vec_perm vectorization

2023-12-15 Thread juzhe.zh...@rivai.ai
ITSIZE (GET_MODE_INNER (vmode)) == 8、 && indices_fit_selector_p && !vec_len.is_constant ()) return false; juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-12-15 20:25 To: juzhe.zh...@rivai.ai; gcc-patches CC: rdapp.gcc; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: [PAT

Re: Re: [PATCH] RISC-V: Fix vmerge optimization bug in vec_perm vectorization

2023-12-15 Thread juzhe.zh...@rivai.ai
s but that will probably clash if there are more than >>two npatterns. No, we definitely can not use this. more details you can see the current test vmerge-*.c . We have various patterns: E.g. 0, nunits + 1, nunits+ 2, ... it is 011 nunits, 1, 2 it 100. .... Many different kinds of patte

Re: [PING^1][PATCH] RISC-V: Add Zvfbfmin extension to the -march= option

2023-12-14 Thread juzhe.zh...@rivai.ai
CCing Kito. I am sorry I can't review ABI even though it is vector related, this patch needs kito's review. But I will be available on reviewing the following real vector BF16 intrinsic and auto-vectorization support. Thanks. juzhe.zh...@rivai.ai From: Xiao Zeng Date: 2023-12-15 09:22

Re: Re: [PATCH] Middle-end: Do not model address cost for SELECT_VL style vectorization

2023-12-14 Thread juzhe.zh...@rivai.ai
Thanks Richard. Committed. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-12-14 23:10 To: Juzhe-Zhong CC: gcc-patches; richard.sandiford Subject: Re: [PATCH] Middle-end: Do not model address cost for SELECT_VL style vectorization On Thu, 14 Dec 2023, Juzhe-Zhong wrote: > Fol

Re: Re: [PATCH] Middle-end: Adjust decrement IV style partial vectorization COST model

2023-12-14 Thread juzhe.zh...@rivai.ai
is better than COST=2. Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-12-14 18:46 To: juzhe.zhong CC: gcc-patches; richard.sandiford; jeffreyalaw Subject: Re: [PATCH] Middle-end: Adjust decrement IV style partial vectorization COST model Am 14.12.2023 um 09:28 schrieb

Re: Re: [PATCH] Middle-end: Adjust decrement IV style partial vectorization COST model

2023-12-14 Thread juzhe.zh...@rivai.ai
ion is the COST should be 1 or 2. It seems that COST = 1 is better for using SELECT_VL. Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-12-13 18:17 To: Juzhe-Zhong CC: gcc-patches; richard.sandiford; jeffreyalaw Subject: Re: [PATCH] Middle-end: Adjust decrement IV style partial

Re: Re: [PATCH v3 2/4] RISC-V: Add crypto vector builtin function.

2023-12-13 Thread juzhe.zh...@rivai.ai
APE, PREDS, OPS_INFO}, 3. Recover all DEF_RVV_FUNCTION back to the original. 4. In the following vector crypto intrinsic, you should add like DEF_RVV_CRYPTO_FUNCTION like aarch64 does for SME. juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-13 21:00 To: juzhe.zh...@rivai.ai; gcc-patches CC:

Re: [PATCH v2] RISC-V: Fix dynamic lmul tests depended on abi

2023-12-13 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: demin.han Date: 2023-12-13 19:12 To: gcc-patches@gcc.gnu.org CC: juzhe.zh...@rivai.ai; pan2...@intel.com Subject: [PATCH v2] RISC-V: Fix dynamic lmul tests depended on abi Some toolchain configs would report: fatal error: gnu/stubs-ilp32.h: No such file

Re: Re: [PATCH v2 1/4] RISC-V:Add crypto vector implied ISA info.

2023-12-13 Thread juzhe.zh...@rivai.ai
-intrinsic v0.11)? Intrinsics stuff should be very safe. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-12-13 18:09 To: Feng Wang CC: gcc-patches; jeffreyalaw; juzhe.zhong; zhusonghe; panciyan Subject: Re: [PATCH v2 1/4] RISC-V:Add crypto vector implied ISA info. LGTM On Wed, Dec 13, 2023 at 5:14

Re: [PATCH v3 2/4] RISC-V: Add crypto vector builtin function.

2023-12-13 Thread juzhe.zh...@rivai.ai
for (unsigned int i = 0; i < ARRAY_SIZE (function_groups); ++i) if (avail) builder.register_function_group (function_groups[i]); juzhe.zh...@rivai.ai From: Feng Wang Date: 2023-12-13 17:12 To: gcc-patches CC: kito.cheng; jeffreyalaw; juzhe.zhong; zhusonghe; panciyan; Feng Wang Subje

Re: [PATCH v3 3/4] RISC-V: Add crypto machine descriptions

2023-12-13 Thread juzhe.zh...@rivai.ai
ot: + (match_operand: 4 "register_operand" " r, r, r, r"))) + (match_operand:VI 2 "vector_merge_operand" "vu, vu, 0, 0")))] + "TARGET_ZVBB || TARGET_ZVKB" + "vandn.vx\t%0,%3,%4%p1" + [(set_attr "type" "v

Re: [PATCH] RISC-V: Fix dynamic lmul tests depended on abi

2023-12-12 Thread juzhe.zh...@rivai.ai
disable multilib. */ #ifndef _RISCV_VECTOR_WRAP_H #define _GCC_WRAP_STDINT_H #include "stdint-gcc.h" #include_next #define _RISCV_VECTOR_WRAP_H #endif juzhe.zh...@rivai.ai From: demin.han Date: 2023-12-12 18:01 To: gcc-patches@gcc.gnu.org CC: juzhe.zh...@rivai.ai; pan2...@intel.c

Re: [PATCH v1] RISC-V: Disable RVV VCOMPRESS avl propagation

2023-12-12 Thread juzhe.zh...@rivai.ai
lgtm. juzhe.zh...@rivai.ai From: pan2.li Date: 2023-12-12 16:28 To: gcc-patches CC: juzhe.zhong; pan2.li; yanzhang.wang; kito.cheng Subject: [PATCH v1] RISC-V: Disable RVV VCOMPRESS avl propagation From: Pan Li This patch would like to disable the avl propagation for the follow reasons

Re: Re: [PATCH] RTL-SSA: Fix ICE on record_use of RTL_SSA for RISC-V VSETVL PASS

2023-12-11 Thread juzhe.zh...@rivai.ai
Thanks Richard. Committed with V2: https://gcc.gnu.org/pipermail/gcc-patches/2023-December/640172.html juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-12-11 20:12 To: juzhe.zhong\@rivai.ai CC: Robin Dapp; gcc-patches Subject: Re: [PATCH] RTL-SSA: Fix ICE on record_use of RTL_SSA

Re: Re: [PATCH] RTL-SSA: Fix ICE on record_use of RTL_SSA for RISC-V VSETVL PASS

2023-12-11 Thread juzhe.zh...@rivai.ai
else if (partial_subreg_p (use->mode (), mode)) use->set_mode (mode); } use->record_reference (ref, false); } Is it reasonable to you ? Thanks. juzhe.zh...@rivai.ai From: Richard Sandiford Date: 2023-12-11 19:45 To: juzhe.zhong\@rivai.ai CC: Robin Dapp; g

[PATCH 2/3] RISC-V: setmem for RISCV with V extension

2023-12-11 Thread juzhe.zh...@rivai.ai
. */ + +static bool +select_appropriate_lmul (HOST_WIDE_INT length_in, +HOST_WIDE_INT _out) +{ I don't think we need this, you only need to use TARGET_MAX_LMUL juzhe.zh...@rivai.ai

<    1   2   3   4   5   6   7   8   9   10   >