From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101829 invoked by alias); 2 Apr 2017 07:29:16 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 101815 invoked by uid 89); 2 Apr 2017 07:29:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 02 Apr 2017 07:29:14 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3vwn150DtQz1qrN5; Sun, 2 Apr 2017 09:29:12 +0200 (CEST) Received: from localhost (dynscan01.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3vwn145ZgKz3jgYb; Sun, 2 Apr 2017 09:29:12 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan01.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 2Z20CL9QEo3K; Sun, 2 Apr 2017 09:29:12 +0200 (CEST) X-Auth-Info: swZUzGd/7uIeL+AEGM3UQVFilvETps1HoJ7e3nGctgIawhIq0QNSdwFs2QDN/oJQ Received: from igel.home (ppp-88-217-29-236.dynamic.mnet-online.de [88.217.29.236]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 2 Apr 2017 09:29:11 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 9054E2C2071; Sun, 2 Apr 2017 09:29:11 +0200 (CEST) From: Andreas Schwab To: Peter Bergner Cc: Segher Boessenkool , GCC Patches , David Edelsohn , Bill Schmidt Subject: Re: [PATCH, rs6000] Fix PR target/80246, DFP builtins using the wrong types References: <20170329222858.GZ4402@gate.crashing.org> <530c97bd-1669-dd67-528e-3f879efa8bac@vnet.ibm.com> X-Yow: .. Now I think I just reached the state of HYPERTENSION that comes JUST BEFORE you see the TOTAL at the SAFEWAY CHECKOUT COUNTER! Date: Sun, 02 Apr 2017 07:29:00 -0000 In-Reply-To: (Peter Bergner's message of "Thu, 30 Mar 2017 09:37:05 -0500") Message-ID: <87o9wfz2rc.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2017-04/txt/msg00038.txt.bz2 On Mär 30 2017, Peter Bergner wrote: > Index: gcc/testsuite/gcc.target/powerpc/pr80246.c > =================================================================== > --- gcc/testsuite/gcc.target/powerpc/pr80246.c (nonexistent) > +++ gcc/testsuite/gcc.target/powerpc/pr80246.c (working copy) > @@ -0,0 +1,35 @@ > +/* { dg-do compile { target { powerpc*-*-linux* } } } */ > +/* { dg-require-effective-target dfp } */ > +/* { dg-options "-O2" } */ > +/* { dg-final { scan-assembler-times "dxex " 1 } } */ > +/* { dg-final { scan-assembler-times "dxexq " 1 } } */ > +/* { dg-final { scan-assembler-times "diex " 1 } } */ > +/* { dg-final { scan-assembler-times "diexq " 1 } } */ > +/* { dg-final { scan-assembler-not "bl __builtin" } } */ > +/* { dg-final { scan-assembler-not "drintn" } } */ > +/* { dg-final { scan-assembler-not "dctfix" } } */ > +/* { dg-final { scan-assembler-not "dcffix" } } */ > + > +long long > +do_xex (_Decimal64 arg) > +{ > + return __builtin_dxex (arg); > +} > + > +long long > +do_xexq (_Decimal128 arg) > +{ > + return __builtin_dxexq (arg); > +} > + > +_Decimal64 > +do_iex (long long exp, _Decimal64 arg) > +{ > + return __builtin_diex (exp, arg); > +} > + > +_Decimal128 > +do_iexq (long long exp, _Decimal128 arg) > +{ > + return __builtin_diexq (exp, arg); > +} FAIL: gcc.target/powerpc/pr80246.c (test for excess errors) Excess errors: /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:18:10: error: Builtin function __builtin_dxex requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:24:10: error: Builtin function __builtin_dxexq requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:30:10: error: Builtin function __builtin_diex requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:36:10: error: Builtin function __builtin_diexq requires the -mhard-dfp option Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."