public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Harald Anlauf <anlauf@gmx.de>
To: Jerry D <jvdelisle2@gmail.com>
Cc: Manfred Schwarb <manfred99@gmx.ch>, fortran <fortran@gcc.gnu.org>
Subject: Re: Invalid "dg-do run" in the testsuite (with 2 blanks)
Date: Mon, 25 Mar 2024 20:53:00 +0100	[thread overview]
Message-ID: <trinity-3b9c65f5-ce94-4b1b-966c-e22fe83263bf-1711396380038@3c-app-gmx-bs10> (raw)
In-Reply-To: <30b68ddc-3233-4ece-9df8-b2ad93800686@gmail.com>

> >>> I noticed by chance that we have quite a lot of improperly specified do-do
> >>> directives in the testsuite.
> >>>
> >>> % grep "dg-do  run" gcc/testsuite/gfortran.dg/ -rl|wc -l
> >>> 83
> >>>
> > 
> > I think this is on purpose.
> > The idea to use a "feature" in dejagnu to only iterate once and not
> > over all possible options. So execution time can be lowered a bit.
> > 
> > But I don't know if this hack still works, it definitely did work some years ago.
> > 
> > Cheers,
> > Manfred

Is this "feature" documented somewhere?  I don't see it on

https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gccint/Directives.html

Given that the dg-directives are important and possibly fragile,
and since we had issues in the past, can we check that a test
that was added works the way intended?

> >>> Note that with two blanks instead of just one a testcase does not get executed.
> >>>
> >>> Does anybody want to earn the honors to change the directives and
> >>> check for "fallout" in the testsuite?
> >>>
> >>> Cheers,
> >>> Harald
> >>>
> >>
> >> One failure after fixing all the spaces ( sed is our friend ).
> >>
> >> FAIL: gfortran.dg/inline_matmul_1.f90   -O0   scan-tree-dump-times optimized "_gfortran_matmul" 0

This does actually point to an issue with the testcase:
it only works properly with optimization enabled.

Manual inspection of this test and the expected dump suggests
that e.g. -O1 could have been added to the dg-options directive.

Shouldn't we fix at least the dg-options of that testcase?

Cheers,
Harald

> >> Jerry -
> > 
> 
> Yes it still works, I noticed the tests will do two passes each rather 
> than 12 per file.
> 
> I will hold off on doing anything with these.
> 
> Regards,
> 
> Jerry -
>

  reply	other threads:[~2024-03-25 19:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-24 20:19 Harald Anlauf
2024-03-24 23:26 ` Jerry D
2024-03-25  4:53 ` Jerry D
2024-03-25  8:27   ` Manfred Schwarb
2024-03-25 17:38     ` Jerry D
2024-03-25 19:53       ` Harald Anlauf [this message]
2024-03-25 20:52         ` Jerry D
2024-03-25 22:30           ` Aw: " Harald Anlauf
2024-03-26  1:24             ` Jerry D
2024-03-26  7:49               ` Richard Biener
2024-03-26  8:53             ` Mikael Morin
2024-04-02  6:46 ` Andrew Pinski
2024-04-02 17:44   ` Jerry D

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=trinity-3b9c65f5-ce94-4b1b-966c-e22fe83263bf-1711396380038@3c-app-gmx-bs10 \
    --to=anlauf@gmx.de \
    --cc=fortran@gcc.gnu.org \
    --cc=jvdelisle2@gmail.com \
    --cc=manfred99@gmx.ch \
    /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).