* [PATCH] C-SKY: Fix for gcc.dg/torture/stackalign/builtin-return-2.c.
@ 2021-04-30 13:02 Geng Qi
2021-05-26 6:38 ` Cooper Qu
0 siblings, 1 reply; 2+ messages in thread
From: Geng Qi @ 2021-04-30 13:02 UTC (permalink / raw)
To: gcc-patches, cooper.qu; +Cc: Geng Qi
gcc/ChangeLog:
* config/csky/csky.md (untyped_call): Emit clobber for return
registers to mark them used.
---
gcc/config/csky/csky.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/config/csky/csky.md b/gcc/config/csky/csky.md
index b980d4c..f91d851 100644
--- a/gcc/config/csky/csky.md
+++ b/gcc/config/csky/csky.md
@@ -3258,6 +3258,10 @@
emit_call_insn (gen_call (operands[0], const0_rtx));
+ for (int i = 0; i < XVECLEN (operands[2], 0); i++)
+ emit_clobber (SET_SRC (XVECEXP (operands[2], 0, i)));
+ emit_insn (gen_blockage ());
+
for (i = 0; i < XVECLEN (operands[2], 0); i++)
{
rtx set = XVECEXP (operands[2], 0, i);
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] C-SKY: Fix for gcc.dg/torture/stackalign/builtin-return-2.c.
2021-04-30 13:02 [PATCH] C-SKY: Fix for gcc.dg/torture/stackalign/builtin-return-2.c Geng Qi
@ 2021-05-26 6:38 ` Cooper Qu
0 siblings, 0 replies; 2+ messages in thread
From: Cooper Qu @ 2021-05-26 6:38 UTC (permalink / raw)
To: Geng Qi, gcc-patches
Pushed.
On 4/30/21 9:02 PM, Geng Qi wrote:
> gcc/ChangeLog:
>
> * config/csky/csky.md (untyped_call): Emit clobber for return
> registers to mark them used.
> ---
> gcc/config/csky/csky.md | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/gcc/config/csky/csky.md b/gcc/config/csky/csky.md
> index b980d4c..f91d851 100644
> --- a/gcc/config/csky/csky.md
> +++ b/gcc/config/csky/csky.md
> @@ -3258,6 +3258,10 @@
>
> emit_call_insn (gen_call (operands[0], const0_rtx));
>
> + for (int i = 0; i < XVECLEN (operands[2], 0); i++)
> + emit_clobber (SET_SRC (XVECEXP (operands[2], 0, i)));
> + emit_insn (gen_blockage ());
> +
> for (i = 0; i < XVECLEN (operands[2], 0); i++)
> {
> rtx set = XVECEXP (operands[2], 0, i);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-26 6:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 13:02 [PATCH] C-SKY: Fix for gcc.dg/torture/stackalign/builtin-return-2.c Geng Qi
2021-05-26 6:38 ` Cooper Qu
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).