From patchwork Tue Jul 25 14:12:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Huber X-Patchwork-Id: 793425 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-458923-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="PDPW4zgH"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xH0Yy6mp4z9s7M for ; Wed, 26 Jul 2017 00:12:38 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; q=dns; s= default; b=ilJtm4apP+iKbl2tP4qRKkMkcpwef/Ndac/jtEHGP2FX1Zh7VuC+k cCwy/tjqOMzW/BgEePqnmff2L0VzPw1D3VLSdPW6nzAEJmUkDk7wxvdVY4jdhV9n LyvW3IIS0bhXZ9nJvh+saXNfv2vNTMNZrLTWtSflgosA2JD35bez4g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=default; bh=08mcbYnCSdXXm6MxjNmBhiGWY38=; b=PDPW4zgHZ2Hqi7yq9TyI/metyzrr DK3MmbQL3Z6rcmFULRrgyGQyqLvoKbmn3JiFv7+itIBiA9cPrEDzlxgn/wW3Vo+Q 8lujel7jgW65WGoYC3mcWYigkfnlvsz4u1eti7ckK6QxXe184OW6U3rvHoNApvTU 8GHdvE4cs+sEgaI= Received: (qmail 117517 invoked by alias); 25 Jul 2017 14:12:25 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 117393 invoked by uid 89); 25 Jul 2017 14:12:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-19.2 required=5.0 tests=AWL, BAYES_00, FOREIGN_BODY, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, T_FILL_THIS_FORM_SHORT autolearn=ham version=3.3.2 spammy=Hx-languages-length:1205, Fax, Phone, phone X-HELO: dedi548.your-server.de Received: from dedi548.your-server.de (HELO dedi548.your-server.de) (85.10.215.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Jul 2017 14:12:22 +0000 Received: from [78.47.166.52] (helo=sslproxy04.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1da0ZQ-0007Gh-1E; Tue, 25 Jul 2017 16:12:20 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy04.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1da0ZP-0004l0-Qv; Tue, 25 Jul 2017 16:12:19 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 893FF2A004F; Tue, 25 Jul 2017 16:12:26 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pWDhQdoGma4x; Tue, 25 Jul 2017 16:12:24 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 7BA1F2A1677; Tue, 25 Jul 2017 16:12:24 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3vw8v1G3wN5y; Tue, 25 Jul 2017 16:12:24 +0200 (CEST) Received: from [192.168.96.129] (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 1D8852A004F; Tue, 25 Jul 2017 16:12:24 +0200 (CEST) Subject: Re: [PATCH] [SPARC] Disable muldf3_extend for LEON/LEON3 To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org, software@gaisler.com References: <20170725114502.5055-1-sebastian.huber@embedded-brains.de> <8ac71592-480e-2bc9-3ce6-a301b75e72d6@embedded-brains.de> <58e5c679-cbe9-c191-c0b3-8e40579af6c8@embedded-brains.de> <6918688.j2vpWkJNjP@arcturus.home> From: Sebastian Huber Message-ID: Date: Tue, 25 Jul 2017 16:12:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <6918688.j2vpWkJNjP@arcturus.home> X-IsSubscribed: yes On 25/07/17 15:42, Eric Botcazou wrote: >> What is your opinion with respect to a -mno-fsmuld option or something >> similar? > Far better in my opinion (at least for LEON3). > How should I add this option? For example: In this case I have to update the cpu_table. I guess all (MASK_V8 || MASK_V9) && MASK_FPU entries should then get a MASK_FSMULD in the enable field (except leon)? diff --git a/gcc/config/sparc/sparc.opt b/gcc/config/sparc/sparc.opt index ae63d2018e3..7a582f3a870 100644 --- a/gcc/config/sparc/sparc.opt +++ b/gcc/config/sparc/sparc.opt @@ -93,6 +93,10 @@ mfmaf Target Report Mask(FMAF) Use UltraSPARC Fused Multiply-Add extensions. +mfsmuld +Target Report Mask(FSMULD) +Use V8+ Floating-point Multiply Single to Double (FsMULd) instruction. + mpopc Target Report Mask(POPC) Use UltraSPARC Population-Count instruction.