From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id 875613854157; Wed, 26 Apr 2023 08:37:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 875613854157 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682498272; bh=SBwCuEsz8nELlLK7sD13/76fxKw9byCKhQDdILLFGok=; h=From:To:Subject:Date:From; b=d6MEofI/XnHOXRr32HloygF9arGls6ZyBpt8UEAkGLjNFgHOxww+wtfyxKLbotbjn PmT4lfOduPlwJZPWjqoG1riS16EWmJCvdc4QjaL4nk+JSjyVEV7j0QrVyAG4x481K5 8fAvuYQG5VtHp6sTgb8xg5THtwXINz8nHst81ht0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-7248] testsuite: Fix up ext-floating2.C on powerpc64-linux X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: 4aeefba6cd657010a395dd187f9136cd152aac95 X-Git-Newrev: 60e0164a371de9129ec0bfdc49a93381cf79c965 Message-Id: <20230426083752.875613854157@sourceware.org> Date: Wed, 26 Apr 2023 08:37:52 +0000 (GMT) List-Id: https://gcc.gnu.org/g:60e0164a371de9129ec0bfdc49a93381cf79c965 commit r13-7248-g60e0164a371de9129ec0bfdc49a93381cf79c965 Author: Jakub Jelinek Date: Tue Apr 25 16:00:48 2023 +0200 testsuite: Fix up ext-floating2.C on powerpc64-linux 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. 2023-04-25 Jakub Jelinek * g++.dg/cpp23/ext-floating2.C: Add dg-add-options for float16, float32, float64 and float128. (cherry picked from commit 78aaaf862e70cea45f3a2be7cb855cfe1a4ead21) Diff: --- gcc/testsuite/g++.dg/cpp23/ext-floating2.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/testsuite/g++.dg/cpp23/ext-floating2.C b/gcc/testsuite/g++.dg/cpp23/ext-floating2.C index 41e9a54ada5..6ae5c6cd247 100644 --- a/gcc/testsuite/g++.dg/cpp23/ext-floating2.C +++ b/gcc/testsuite/g++.dg/cpp23/ext-floating2.C @@ -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"