From: Lulu Cheng <chenglulu@loongson.cn>
To: Xi Ruoyao <xry111@xry111.site>, gcc-patches@gcc.gnu.org
Cc: i@xen0n.name, xuchenghua@loongson.cn
Subject: Re: [PATCH v3] LoongArch: Modify fp_sp_offset and gp_sp_offset's calculation method when frame->mask or frame->fmask is zero.
Date: Thu, 7 Jul 2022 20:06:59 +0800 [thread overview]
Message-ID: <1e1a11f6-64b5-1ec3-c069-f8a52fd41f18@loongson.cn> (raw)
In-Reply-To: <9ef83ca077557a038cc0d774352303e910e8fee1.camel@xry111.site>
在 2022/7/7 下午7:51, Xi Ruoyao 写道:
> On Thu, 2022-07-07 at 18:30 +0800, Lulu Cheng wrote:
>
> /* snip */
>
>
>> diff --git a/gcc/testsuite/gcc.target/loongarch/prolog-opt.c
>> b/gcc/testsuite/gcc.target/loongarch/prolog-opt.c
>> new file mode 100644
>> index 00000000000..c7bd71dde93
>> --- /dev/null
>> +++ b/gcc/testsuite/gcc.target/loongarch/prolog-opt.c
>> @@ -0,0 +1,15 @@
>> +/* Test that LoongArch backend stack drop operation optimized. */
>> +
>> +/* { dg-do compile } */
>> +/* { dg-options "-O2 -mabi=lp64d" } */
>> +/* { dg-final { scan-assembler "addi.d\t\\\$r3,\\\$r3,-16" } } */
>> +
>> +#include <stdio.h>
> It's better to hard code "extern int printf(char *, ...);" here, so the
> test case won't unnecessarily depend on libc header.
>
> LGTM otherwise.
>
OK! Thanks!:-)
prev parent reply other threads:[~2022-07-07 12:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 10:30 Lulu Cheng
2022-07-07 11:51 ` Xi Ruoyao
2022-07-07 12:06 ` Lulu Cheng [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e1a11f6-64b5-1ec3-c069-f8a52fd41f18@loongson.cn \
--to=chenglulu@loongson.cn \
--cc=gcc-patches@gcc.gnu.org \
--cc=i@xen0n.name \
--cc=xry111@xry111.site \
--cc=xuchenghua@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).