From patchwork Thu Jun 13 18:57:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Clarke" X-Patchwork-Id: 1115563 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=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-102693-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=us.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="BWH4kDMo"; 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 45PtKD0XJ7z9sBr for ; Fri, 14 Jun 2019 04:57:35 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=fD+NOfQSPQSfjh3GWoTMNVAgOJY2Z9Xh16Scp82gd867dz6K49a1C lYV3mkQcx5p8r74r17+vsj3YUXHVTJa8eJZAUPZlx0+2c5M24zFpMe7FTu5g3UGM aUL8W1ThJy0TXplYwBKhK/YUS0yIPbgE86omZWbm2R2wHtBs8P4Mbk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=AQHrpYsHqz6Mcw0tXZZGKEfZa8E=; b=BWH4kDMoqMV+pKNPrqKRmbsMLo6T D0Un4MG9ICkchmVxb24nMRV5ZW3cttTGb5o1afCep96o6rM97r+lx2iRBINsbjjc 2iyDF4XwXIpLwlLc++N3gx4sKHBJMEKt+vUq2cUfclI++D8stTztf+wPN/hhQYh0 DYNdfALoP8CecTc= Received: (qmail 116897 invoked by alias); 13 Jun 2019 18:57:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 116884 invoked by uid 89); 13 Jun 2019 18:57:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=1.8.3.1, 1831 X-HELO: mx0a-001b2d01.pphosted.com From: "Paul A. Clarke" To: libc-alpha@sourceware.org Cc: tuliom@ascii.art.br, fweimer@redhat.com, joseph@codesourcery.com Subject: [PATCH 0/2 v2] [powerpc] utilize faster method to get FPSCR Date: Thu, 13 Jun 2019 13:57:19 -0500 x-cbid: 19061318-8235-0000-0000-00000EA7801D X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011256; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01217495; UDB=6.00640233; IPR=6.00998606; MB=3.00027297; MTD=3.00000008; XFM=3.00000015; UTC=2019-06-13 18:57:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19061318-8236-0000-0000-000046023787 Message-Id: <1560452241-11638-1-git-send-email-pc@us.ibm.com> From: "Paul A. Clarke" Using 'mffs' instruction to read the Floating Point Status Control Register (FPSCR) can force a processor flush in some cases, with undesirable performance impact. If the values of the bits in the FPSCR which force the flush are not needed, an instruction that is new to POWER9 (ISA version 3.0), 'mffsl' can be used instead. Paul A. Clarke (2): [powerpc] add 'volatile' to asm [powerpc] Use faster means to access FPSCR when possible in some cases sysdeps/powerpc/bits/fenvinline.h | 22 +++++++++++++------ sysdeps/powerpc/fpu/fegetexcept.c | 2 +- sysdeps/powerpc/fpu/fegetmode.c | 2 +- sysdeps/powerpc/fpu/fenv_libc.h | 23 ++++++++++++++++++-- sysdeps/powerpc/fpu_control.h | 45 +++++++++++++++++++++------------------ 5 files changed, 63 insertions(+), 31 deletions(-)