Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread 钟居哲
:47 To: Richard Biener CC: zhongjuzhe; gcc-patches; richard.earnshaw; jakub; kenner; jlaw; gnu; jason; davem; joseph; bernds_cb1; ian; wilson Subject: Re: [PATCH 1/1] Fix bit-position comparison Richard Biener writes: > On Wed, 27 Jul 2022, juzhe.zh...@rivai.ai wrote: > >> From

Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread 钟居哲
-V backend insert vsetvli after RA (register allocation) so that it will not enlarge the spill size. Thank you so much. juzhe.zh...@rivai.ai From: Richard Biener Date: 2022-07-27 20:56 To: juzhe.zh...@rivai.ai CC: gcc-patches; vmakarov Subject: Re: Re: [PATCH 1/1] Fix bit-position comparison

Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread Richard Biener via Gcc-patches
Biener > Date: 2022-07-27 16:12 > To: juzhe.zh...@rivai.ai > CC: gcc-patches > Subject: Re: Re: [PATCH 1/1] Fix bit-position comparison > On Wed, 27 Jul 2022, juzhe.zh...@rivai.ai wrote: > > > Let's take look at these 2 cases: https://godbolt.org/z/zP16frPnb. In &

Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Wed, 27 Jul 2022, juzhe.zh...@rivai.ai wrote: > >> From: zhongjuzhe >> >> gcc/ChangeLog: >> >> * expr.cc (expand_assignment): Change GET_MODE_PRECISION to >> GET_MODE_BITSIZE >> >> --- >> gcc/expr.cc | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-)

Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread juzhe.zh...@rivai.ai
...@rivai.ai CC: gcc-patches Subject: Re: Re: [PATCH 1/1] Fix bit-position comparison On Wed, 27 Jul 2022, juzhe.zh...@rivai.ai wrote: > Let's take look at these 2 cases: https://godbolt.org/z/zP16frPnb. In > RVV, we have vle8 and vsetvli to specify loading vint8mf2 (vsetvli a1, >

Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread Richard Biener via Gcc-patches
zh...@rivai.ai > > From: Richard Biener > Date: 2022-07-27 15:35 > To: juzhe.zh...@rivai.ai > CC: gcc-patches > Subject: Re: Re: [PATCH 1/1] Fix bit-position comparison > On Wed, 27 Jul 2022, juzhe.zh...@rivai.ai wrote: > > > Thank you so much for the fast reply. Ok

Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread juzhe.zh...@rivai.ai
I want to define the machine_mode for `vint8mf2` with smaller element-size but same byte-size from `vint8m1'. Thank you for your reply. juzhe.zh...@rivai.ai From: Richard Biener Date: 2022-07-27 15:35 To: juzhe.zh...@rivai.ai CC: gcc-patches Subject: Re: Re: [PATCH 1/1] Fix bit-posi

Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread Richard Biener via Gcc-patches
; From: Richard Biener > Date: 2022-07-27 14:46 > To: zhongjuzhe > CC: gcc-patches; richard.earnshaw; jakub; kenner; jlaw; gnu; jason; davem; > joseph; richard.sandiford; bernds_cb1; ian; wilson > Subject: Re: [PATCH 1/1] Fix bit-position comparison > On Wed, 27 Jul 2022, juz

Re: Re: [PATCH 1/1] Fix bit-position comparison

2022-07-27 Thread juzhe.zh...@rivai.ai
ay. Can you help me with this? This is important for the following RVV upstream support. Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2022-07-27 14:46 To: zhongjuzhe CC: gcc-patches; richard.earnshaw; jakub; kenner; jlaw; gnu; jason; davem; joseph; richard.sandiford; bernds_cb1;

Re: [PATCH 1/1] Fix bit-position comparison

2022-07-26 Thread Richard Biener via Gcc-patches
On Wed, 27 Jul 2022, juzhe.zh...@rivai.ai wrote: > From: zhongjuzhe > > gcc/ChangeLog: > > * expr.cc (expand_assignment): Change GET_MODE_PRECISION to > GET_MODE_BITSIZE > > --- > gcc/expr.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/expr.cc b/gcc/

[PATCH 1/1] Fix bit-position comparison

2022-07-26 Thread juzhe . zhong
From: zhongjuzhe gcc/ChangeLog: * expr.cc (expand_assignment): Change GET_MODE_PRECISION to GET_MODE_BITSIZE --- gcc/expr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/expr.cc b/gcc/expr.cc index 80bb1b8a4c5..ac2b3c07df6 100644 --- a/gcc/expr.cc +++ b/gcc/