t At:2023 May 6 (Sat.) 16:53
>Recipient:Sinan
>Cc:jiawei ; gcc-patches
>Subject:Re: Re: [PATCH 4/5] RISC-V: Add Zcmp extension supports.
>On 2023-05-05 23:57 Sinan wrote:
>>
>>> hi Jiawei
>>>
>>> Please ignore my previous reply. I accidently sent t
so we could use `-1` to calculate how many registers are saved/restored here.
BR,
Sinan
--------------
Sender:Kito Cheng
Sent At:2023 May 4 (Thu.) 17:04
Recipient:Jiawei
Cc:gcc-patches ; kito.cheng ;
palmer ; christoph.muellner ;
jeremy.bennett
i Gao
Sent At:2023 May 6 (Sat.) 16:53
Recipient:Sinan
Cc:jiawei ; gcc-patches
Subject:Re: Re: [PATCH 4/5] RISC-V: Add Zcmp extension supports.
On 2023-05-05 23:57 Sinan wrote:
>
>> hi Jiawei
>>
>> Please ignore my previous reply. I accidently sent the email before I
>>
>BR,
>Sinan
hi Sinan
Thanks for your reply.
I posted my codes at
https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg306921.html
In the cover letter, i did some comparision.
Could you please review?
Thanks & BR,
Fei
>--
k, and
CC jiawei to help test it.
BR,
Sinan
------------------
Sender:Fei Gao
Sent At:2023 Apr. 25 (Tue.) 18:12
Recipient:jiawei
Cc:gcc-patches
Subject:[PATCH 4/5] RISC-V: Add Zcmp extension supports.
hi Jiawei
Please ignore my previous reply
Could you rebase this patch, we have some changes on
> All "zcmpe" means Zcmp with RVE extension.
Use zcmp_rve instead, zcmpe seems like a new ext. name
> diff --git a/gcc/config/riscv/riscv-zcmp-popret.cc
> b/gcc/config/riscv/riscv-zcmp-popret.cc
> new file mode 100644
> index 000..d7b
hi Jiawei
Please ignore my previous reply. I accidently sent the email before I finished
it.
Sorry for that!
I downloaded the series of patches from you and found in some cases
it fails to generate zcmp push and pop insns.
TC:
char my_getchar();
int test_s0()
{
int a = my_getchar();
hi Jiawei
I downloaded the series of patches from you and found in some cases
it fails to generate zcmp push and pop insns.
test.c
char my_getchar();
int test_s0()
{
int a = my_getchar();
int b = my_getchar();
return a+b;
}
On Thu Apr 6 06:21:17 GMT 2023 Jiawei jia.
Add Zcmp extension instructions support. Generate push/pop
with follow steps:
1. preprocessing:
1.1. if there is no push rtx, then just return. e.g.
(note 5 1 22 2 [bb 2] NOTE_INSN_BASIC_BLOCK)
(insn/f 22 5 23 2 (set (reg/f:SI 2 sp)
(plus:SI (reg/f:SI 2 sp)
(const_int -