public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: [committed] testsuite: Fix up ext-floating2.C on powerpc64-linux
Date: Tue, 25 Apr 2023 16:11:26 +0200	[thread overview]
Message-ID: <ZEffjoGtOosBVKcZ@tucnak> (raw)

Hi!

Another testcase that is failing on powerpc64-linux.  The test expects
a diagnostics when float64 && float128 or in another spot when
float32 && float128.  Now, float128 effective target is satisfied on
powerpc64-linux, despite __CPP_FLOAT128_T__ not being defined, because
one needs to add some extra options for it.  I think 32-bit arm has
similar case for float16.

Tested on x86_64-linux, i686-linux, powerpc64-linux -m32/-m64 and
powerpc64le-linux, committed to trunk as obvious, queued for 13.2.

2023-04-25  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/cpp23/ext-floating2.C: Add dg-add-options for
	float16, float32, float64 and float128.

--- gcc/testsuite/g++.dg/cpp23/ext-floating2.C.jj	2022-09-27 08:03:27.116982776 +0200
+++ gcc/testsuite/g++.dg/cpp23/ext-floating2.C	2023-04-25 15:27:09.204863869 +0200
@@ -1,6 +1,10 @@
 // P1467R9 - Extended floating-point types and standard names.
 // { dg-do compile { target c++23 } }
 // { dg-options "" }
+// { dg-add-options float16 }
+// { dg-add-options float32 }
+// { dg-add-options float64 }
+// { dg-add-options float128 }
 
 #include "ext-floating.h"
 

	Jakub


                 reply	other threads:[~2023-04-25 14:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ZEffjoGtOosBVKcZ@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.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).