public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <rguenther@suse.de>
To: Alexandre Oliva <oliva@adacore.com>
Cc: Hans-Peter Nilsson <hp@axis.com>,
	Eric Botcazou <botcazou@adacore.com>,
	 jeffreyalaw@gmail.com, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>,
	 gcc-patches@gcc.gnu.org, mikestump@comcast.net
Subject: Re: [PATCH] testsuite: scev: expect fail on ilp32
Date: Thu, 30 Nov 2023 09:32:15 +0100 (CET)	[thread overview]
Message-ID: <60s842q0-01r1-q0pp-q606-p6q8p4s1o269@fhfr.qr> (raw)
In-Reply-To: <ormsuv26p8.fsf@lxoliva.fsfla.org>

On Thu, 30 Nov 2023, Alexandre Oliva wrote:

> On Nov 29, 2023, Hans-Peter Nilsson <hp@axis.com> wrote:
> 
> >> XPASS: gcc.dg/tree-ssa/scev-3.c scan-tree-dump-times ivopts "&a" 1
> >> XPASS: gcc.dg/tree-ssa/scev-4.c scan-tree-dump-times ivopts "&a" 1
> >> XPASS: gcc.dg/tree-ssa/scev-5.c scan-tree-dump-times ivopts "&a" 1
> 
> > It XPASSes on the ilp32 targets I've tried - except "ia32"
> > (as in i686-elf) and h8300-elf.  Notably XPASSing targets
> > includes a *default* configuration of arm-eabi, which in
> > part contradicts your observation above.
> 
> My arm-eabi testing then targeted tms570 (big-endian cortex-r5).
> 
> I borrowed the ilp32 vs lp64 line from an internal patch by Eric that
> we've had in gcc-11 and gcc-12, when I hit this fail while transitioning
> the first and then the second of our 32-bit targets to gcc-13.
> 
> Eric, would you happen to recall where the notion that lp64 was a good
> heuristic for these tests?
> 
> > Alex, can you share the presumably plural set of targets
> > where you found gcc.dg/tree-ssa/scev-[3-5].c to fail before
> > your patch, besides "ia32"?
> 
> I haven't even seen scev-4.c fail, I only got reports that it did.
> 
> I'm not even claiming it fails, I'm only claiming it has been observed
> to fail on some ilp32 targets, and nobody seems to have a good sense of
> when it's supposed to pass or fail, so my reasoning was that making it
> an expected fail is less alarming than seeing actual failures on some
> targets.  It was known to be imprecise, but to be an improvement over
> getting a FAIL for some reasonably common targets when there was no
> reason to expect it to actually pass, or even to have ever passed.
> 
> > So, ilp32 is IMO a really bad approximation for the elusive
> > property.
> 
> Yeah.  Maybe we should just drop the ilp32, so that it's an unsurprising
> fail on any targets?
> 
> > Would you please consider changing those "ilp32" to a
> > specific set of targets where these tests failed?
> 
> I'd normally have aimed for that, but the challenge is that arm-eabi is
> not uniform in the results for this test, and there doesn't seem to be
> much support or knowledge to delineate on which target variants it's
> meant to pass or not.  The test expects the transformation to take
> place, as if it ought to, but there's no strong reason to expect that it
> should.  There's nothing wrong if it doesn't.  Going about trying to
> match the expectations to the current results may be useful, but
> investigating the reasons why we get the current results for each target
> is beyond my available resources for a set of tests that used to *seem*
> to pass uniformly only because of a bug in the test pattern.
> 
> I don't see much value in these tests as they are, TBH.

As I said the tests are really testing IVOPTs costing which is
target specific.  Maybe we should move them to gcc.target/$X
and figure what target they were originally intended to cover ...

Richard.

  reply	other threads:[~2023-11-30  8:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-19  7:30 Alexandre Oliva
2023-11-19 15:12 ` Jeff Law
2023-11-20  7:35   ` Richard Biener
2023-11-28 15:13     ` Rainer Orth
2023-11-29 18:00       ` Hans-Peter Nilsson
2023-11-30  4:41         ` Alexandre Oliva
2023-11-30  8:32           ` Richard Biener [this message]
2023-11-30 17:09           ` Hans-Peter Nilsson
2023-12-01  2:38             ` Hans-Peter Nilsson
2023-12-01  3:35             ` Hans-Peter Nilsson
2023-12-01  7:07               ` Richard Biener
2023-12-01 23:18                 ` Hans-Peter Nilsson
2023-12-04 11:58                   ` Richard Biener
2023-12-07 16:33                     ` Hans-Peter Nilsson
2023-12-07 21:03                       ` Jeff Law
2023-12-08  6:46                       ` Richard Biener
2023-12-01  3:41             ` Hans-Peter Nilsson

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=60s842q0-01r1-q0pp-q606-p6q8p4s1o269@fhfr.qr \
    --to=rguenther@suse.de \
    --cc=botcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hp@axis.com \
    --cc=jeffreyalaw@gmail.com \
    --cc=mikestump@comcast.net \
    --cc=oliva@adacore.com \
    --cc=ro@CeBiTec.Uni-Bielefeld.DE \
    /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).