public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Oleg Endo <oleg.endo@t-online.de>
To: Jeff Law <jeffreyalaw@gmail.com>,
	"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [committed] Remove compromised sh test
Date: Thu, 27 Jun 2024 10:27:10 +0900	[thread overview]
Message-ID: <9ab0ed971ab0851a6d40cfe24260e3efd7bf9380.camel@t-online.de> (raw)
In-Reply-To: <4210b775-a58d-42e1-af2b-2bbe893f75e7@gmail.com>

On Wed, 2024-06-26 at 18:30 -0600, Jeff Law wrote:
> > > 
> > 
> > OK, then what's the default config of your test setup / triplet?
> > Can you please show the generated code that you get?  Because - like I said
> > - I can't reproduce it.
> test01:
>          sts.l   pr,@-r15        ! 31    [c=4 l=2]  movsi_i/10
>          add     #-4,r15 ! 32    [c=4 l=2]  *addsi3/0
>          mov.l   .L3,r0  ! 26    [c=10 l=2]  movsi_i/0
>          jsr     @r0     ! 12    [c=5 l=2]  call_valuei
>          mov.l   r6,@r15 ! 4     [c=4 l=2]  movsi_i/8
>          mov.l   @r15,r1 ! 29    [c=1 l=2]  movsi_i/5
>          add     r1,r0   ! 30    [c=4 l=2]  *addsi3/0
>          add     #4,r15  ! 36    [c=4 l=2]  *addsi3/0
>          lds.l   @r15+,pr        ! 38    [c=1 l=2]  movsi_i/14
>          rts
>          nop             ! 40    [c=0 l=4]  *return_i
> 
> 
> Note that there's a scheduling barrier in the RTL between insns 30 and 
> 36.  So instructions prior to insn 36 can't be used to fill the delay slot.
> 

Thanks.  Now I'm also seeing the same result.  Needed to specify -O2 to get
that.  -O1 was not enough it seems.

I don't know why you said that the code for this case improved -- it has
not?!

I think the test is still valid.  The reason for the failure might be
different from the original one (the scheduling barrier for whatever
reason), but the end result is the same -- the last delay slot is not
stuffed, although the 'add r1,r0' could go in there.

I'd like to revert the removal of this test case, as it catches a valid
issue.

Best regards,
Oleg Endo






  reply	other threads:[~2024-06-27  1:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-26 13:22 Jeff Law
2024-06-26 22:12 ` Oleg Endo
2024-06-26 22:39   ` Jeff Law
2024-06-26 22:44     ` Oleg Endo
2024-06-27  0:30       ` Jeff Law
2024-06-27  1:27         ` Oleg Endo [this message]
2024-06-27  1:54           ` Jeff Law
  -- strict thread matches above, loose matches on Subject: below --
2024-06-26 13:21 Jeff Law

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=9ab0ed971ab0851a6d40cfe24260e3efd7bf9380.camel@t-online.de \
    --to=oleg.endo@t-online.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jeffreyalaw@gmail.com \
    /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).