From patchwork Thu Apr 14 00:00:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 1616994 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=yDozp7fO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kf04t6zBTz9sG6 for ; Thu, 14 Apr 2022 10:02:06 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0CA14385801B for ; Thu, 14 Apr 2022 00:02:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CA14385801B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1649894525; bh=wNT2HULACVze9CbaeGiytWtljTOEAwRaBY8mobR/Eug=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=yDozp7fO2PNbiiiiz/pVn9F8nJe9DXtknDbHAxjCDpM8czYGaOjGo97R0SvW7zmtQ TlJYATNiQ/HUsi96gSFokq6M44fo+R4Rs/OVs1vmGbtTEDiv4rgv42ez6o9MMSj+lE LjxTEls9laBUDsOpX6NX9MbvLnI6+7K42sRucptE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from rock.gnat.com (rock.gnat.com [IPv6:2620:20:4000:0:a9e:1ff:fe9b:1d1]) by sourceware.org (Postfix) with ESMTPS id 556773857418 for ; Thu, 14 Apr 2022 00:00:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 556773857418 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 2ACC9116FB8; Wed, 13 Apr 2022 20:00:07 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HvIT7CWC+9BU; Wed, 13 Apr 2022 20:00:07 -0400 (EDT) Received: from free.home (tron.gnat.com [IPv6:2620:20:4000:0:46a8:42ff:fe0e:e294]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPS id E62C4116D8A; Wed, 13 Apr 2022 20:00:06 -0400 (EDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 23E000I12133402 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Apr 2022 21:00:01 -0300 To: Segher Boessenkool Subject: [PATCH] ppc: testsuite: enable _Float128 type Organization: Free thinker, does not speak for AdaCore References: <20210412210424.GK26583@gate.crashing.org> Date: Wed, 13 Apr 2022 21:00:00 -0300 In-Reply-To: (Alexandre Oliva's message of "Wed, 13 Apr 2022 20:37:40 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alexandre Oliva via Gcc-patches From: Alexandre Oliva Reply-To: Alexandre Oliva Cc: gcc-patches@gcc.gnu.org, David Edelsohn Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" [sorry, I failed to add [PATCH] to the subject of the two previous patches] Though -mpower9-vector makes float128 support possible, some target systems such as vxworks disable float128 types by default (TARGET_FLOAT128_ENABLE_TYPE is defined to 0), so explicit -mfloat128 is needed to enable it, and then the fact that the full support may be unavailable is flagged with a warning. This patch adds -mfloat128 and prunes the warning in two tests that use the _Float128 type without explicitly enabling it. Tested on x86_64-linux-gnu x ppc64-vx7r2 with gcc-11. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/powerpc/pr82748-1.c: Add -mfloat128 and prune its warning. * gcc.target/powerpc/pr82748-2.c: Likewise. --- gcc/testsuite/gcc.target/powerpc/pr82748-1.c | 3 ++- gcc/testsuite/gcc.target/powerpc/pr82748-2.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/pr82748-1.c b/gcc/testsuite/gcc.target/powerpc/pr82748-1.c index 15a746bcf63ea..2bb6be1183a59 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr82748-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pr82748-1.c @@ -1,6 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-options "-mpower9-vector -O2 -mabi=ieeelongdouble -Wno-psabi" } */ +/* { dg-options "-mpower9-vector -O2 -mfloat128 -mabi=ieeelongdouble -Wno-psabi" } */ +/* { dg-prune-output ".-mfloat128. option may not be fully supported" } */ /* Make sure the old 'q' builtin functions work correctly when the long double default has been changed to be IEEE 128-bit floating point. */ diff --git a/gcc/testsuite/gcc.target/powerpc/pr82748-2.c b/gcc/testsuite/gcc.target/powerpc/pr82748-2.c index 0079394b1016e..c031ae037dd8d 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr82748-2.c +++ b/gcc/testsuite/gcc.target/powerpc/pr82748-2.c @@ -1,6 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-options "-mpower9-vector -O2 -mabi=ibmlongdouble -Wno-psabi" } */ +/* { dg-options "-mpower9-vector -O2 -mfloat128 -mabi=ibmlongdouble -Wno-psabi" } */ +/* { dg-prune-output ".-mfloat128. option may not be fully supported" } */ /* Make sure the old 'q' builtin functions work correctly when the long double default uses the IBM double-double format. */