public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Iain Sandoe <iain@sandoe-acoustics.co.uk>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Peter Bergner <bergner@linux.ibm.com>,
	GCC Patches	<gcc-patches@gcc.gnu.org>,
	David Edelsohn <dje.gcc@gmail.com>
Subject: Re: [PATCH] rs6000: Fix 2 for PR92661, Do not define builtins that overload disabled builtins
Date: Thu, 05 Dec 2019 08:45:00 -0000	[thread overview]
Message-ID: <6DF8E0E8-61D3-42AB-A736-A75FD1092A7C@sandoe-acoustics.co.uk> (raw)
In-Reply-To: <20191204230331.GG3152@gate.crashing.org>

Segher Boessenkool <segher@kernel.crashing.org> wrote:

> On Wed, Dec 04, 2019 at 03:53:30PM -0600, Peter Bergner wrote:
>> On 12/4/19 2:50 PM, Segher Boessenkool wrote:
>>> It would be nice to keep *some* dfp test(s) to make sure we don't ICE.
>>> If we disabled all such tests already, like with this patch, we wouldn't
>>> have ICEd or seen this problem.  That can be a separate test of course
>>> (and could be outside gcc.target/powerpc/dfp/).
>> 
>> Sure, I can add a test in gcc.target/powerpc/ that uses both a builtin
>> and an overloaded builtin to make sure we don't ICE when DFP is disabled.
> 
> Great, thanks!

so that would be a/some dg-do compile test(s), then?
(presumably, gated on effective_target_dfp … see below)

>>> Making such changes to the testsuite needs testing on *all* subtargets :-(
>> 
>> Right.  I'll come up with a patch and hopefully Iain and David can test
>> on Darwin and AIX and I can test on Linux with --enable-decimal-float
>> and --disable-decimal-float.  That should cover the major subtargets and
>> if it works there, I'd expect it to work on the minor subtargets too.
> 
> Sure, this is just testsuite, that will work fine.  As long as there is
> a plan :-)

(on r278957, with the system assembler which doesn’t support DFP insns
 and gcc.target dfp.exp not yet renamed)

# Skip these tests for targets that don't support this extension.
if { ![check_effective_target_dfp] } {
    return;
}

Works on Darwin to skip the entire set  (not too much of a  surprise, since
it’s used for the GCC and G++ cases already).

---

It’s possible (even likely) that Darwin can be built with an assembler that
supports DFP instructions, even tho it has no OS support.  Usually, my policy
is that we would do compile tests then, since that excercises more code.

..but then we need to gate run tests on the availability of runtime support.

I see that the GCC and G++ testsuites have also….

# If the decimal float is supported in the compiler but not yet in the
# runtime, treat all tests as compile-only.
global dg-do-what-default
set save-dg-do-what-default ${dg-do-what-default}
if { ![check_effective_target_dfprt] } {
    verbose "dfp.exp: runtime support for decimal float does not exist" 2
    set dg-do-what-default compile
} else {
    verbose "dfp.exp: runtime support for decimal float exists, use it" 2
    set dg-do-what-default run
}
verbose "dfp.exp: dg-do-what-default is ${dg-do-what-default}” 2

Do you think there’s any merit in doing something like that here too?

(I guess a finer-grained alternative is check_effective_target_dfprt in any
 run-tests)

.. or I can just force a false return from effective_target_dfp as we
 do for other cases where assembler support does not imply system 
 support.

cheers
Iain



  reply	other threads:[~2019-12-05  8:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6129bc8a-18f3-3c25-22c0-f26e4358c5b3@linux.ibm.com>
2019-12-04 19:16 ` Segher Boessenkool
2019-12-04 19:57   ` Peter Bergner
2019-12-04 20:47     ` Iain Sandoe
2019-12-04 21:40       ` Peter Bergner
2019-12-04 22:59         ` Segher Boessenkool
2019-12-04 22:58       ` Segher Boessenkool
2019-12-04 20:51     ` Segher Boessenkool
2019-12-04 21:53       ` Peter Bergner
2019-12-04 23:03         ` Segher Boessenkool
2019-12-05  8:45           ` Iain Sandoe [this message]
2019-12-05 16:06             ` Peter Bergner
2019-12-06 23:12             ` Segher Boessenkool
2019-12-09 20:16               ` Peter Bergner
2019-12-12  9:23                 ` Segher Boessenkool
2019-12-10 18:27           ` Peter Bergner
2019-12-10 19:12             ` Peter Bergner
2019-12-10 19:59               ` Iain Sandoe
2019-12-18 14:19             ` Segher Boessenkool
2019-12-18 15:31               ` Peter Bergner

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=6DF8E0E8-61D3-42AB-A736-A75FD1092A7C@sandoe-acoustics.co.uk \
    --to=iain@sandoe-acoustics.co.uk \
    --cc=bergner@linux.ibm.com \
    --cc=dje.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=segher@kernel.crashing.org \
    /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).