From patchwork Thu Dec 28 17:20:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 758598 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp4114561wrw; Thu, 28 Dec 2023 09:20:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOIqbP/JW0D0ebxY2S4Ah+ofy4U7Zx7EEGJ5B+E8OHmH/hOsSSQTfLnxjlVCjM4ls00I2A X-Received: by 2002:a05:6808:2204:b0:3bb:6d95:8b28 with SMTP id bd4-20020a056808220400b003bb6d958b28mr12152660oib.46.1703784052221; Thu, 28 Dec 2023 09:20:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703784052; cv=pass; d=google.com; s=arc-20160816; b=uU2s/AeTxApG4PMMK7RZTUjTteHqpjYHqs8avkejL2kUBD9IzhDq50rDB60dOr1N4Q 6mIzSjBnp3NbrQ1ZJOlf4/5fhsIicFiGba6XfJNkYF3wyMBCtb1v5UZ9a9QInyPXwKnW q3t+OjCvy25/nwE7LSoLQGaYj04e723mhfj0602+RlA16+SJM3Mpw9y2UTR8bz0a+4d0 4fgMi0nFIIIA7rTEh23mXvSMmCRobNqvqnX5xncg0C++ZEjecOX0KAmgNTiecJ3C1FFp y7zUj+pMKgHPpyeyoAoehpUBRrJsa5JPmUgQgnVJVe6ac5ZAI3oe/39J9DX2dZhLyNVl q3LQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=Huesn2m2L4ex/SQtx9e/pU9r+ZSuhfpItQ8FOCLXjKk=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=Pe95PKvbmqyzArY4nYLkctzdTdKcDdY+eIjNSQNPIwTXQoTQfJ03HPGnIeUtynbPNG 72J79/bHsYFiXmFsLNcMiY1YrqoA8a4mj658vaIYlm8zU5iXCatmD9E81n1LSGAC6vT/ Rf27iS+sybkadaKi/OAPscKg+AVHCsv7CV3ZBeguo5fytw5dU8HnC5/3ROKwkMwjPPNs n5kVrFjgy2Acuq+8mXxlTWwgxG/d/gIjJ/DzT+ygHd2MnZjAlKN99V8zUCR8PkH2fnIO EYaJFE+Xg3YAxdmWykgByRDwxzi44M6YJyVb6ECYhEkhzccnIU4Sf31HAgkJtEveXjNn Qm/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BolqM8BB; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id r17-20020a0c9e91000000b0067f79531c05si17170241qvd.593.2023.12.28.09.20.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 09:20:52 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BolqM8BB; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B8A0538582A9 for ; Thu, 28 Dec 2023 17:20:51 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 561453858285 for ; Thu, 28 Dec 2023 17:20:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 561453858285 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 561453858285 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703784036; cv=none; b=PwpQ125AesEZTHv4XsbtZuZuJeVT+73q71S6H9mnutULoVgu18yEvUngZpH7Jl+ByX4fvn+uGi1PwWEAKR6N/gSwHW0NWFCHKhFAZqVCJ1YdCr6o2hrmlDaopYCjs4YKklFyja97UT1vvoOHPNA8ON55ckv2toAnOE6R7dAGiEs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703784036; c=relaxed/simple; bh=icbRRebo28bwbUjUPuHOu3TxXraa51y2/MbekaP6VW0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=HAb3z7j54+Hdqi2MOAqOgrCYWqYpIVMZYfXQrZMK9OlISEIa8kp8bH5yWLcdmEjZZXSrIKn9/GCsP3HNrhtAFbCNNvylev6hlINT2DKw20zJUBrdb2jrdqjWa98Br+yOZjK1rlhsKsnLSmBKdp1KJ9xdIz0cpb3qwuX5W7DSbJs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6d9ac5bd128so1319177b3a.0 for ; Thu, 28 Dec 2023 09:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703784033; x=1704388833; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Huesn2m2L4ex/SQtx9e/pU9r+ZSuhfpItQ8FOCLXjKk=; b=BolqM8BB1EGpYGIcONVeiMPhiZp7Lk0r5MzbsTbc6+NJYX4IKuib4dmI2ifCNNEAnM 1NZ2GJl9U7vCjvNrGeQFstqFGpjMV18c37v/DMjQEcO2NqoOdxoPht4MI9qB02sOFLTV s8Qay3P2VkXuYLl/Hx/zjNESWqxFvQUn6adtXyeY8xaHA5xqKvpdtIxtQtXpJ9FMH8I+ 9pe5z3wm+a8hf24x6XUXRtNAw+fAipaFJTFUoDNAPFBFMoLf/qeEKOT9z+NdOX4mOYiA o1lPeCqwpDXSWk6RML3pz4LqdBXXQSV39O0ZCyuwH7p3aVenjJfoa45ZMrsNaBAUqmRz jmtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703784033; x=1704388833; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Huesn2m2L4ex/SQtx9e/pU9r+ZSuhfpItQ8FOCLXjKk=; b=k6VScDrE3HNA+/GE+cF0OXOVrjxkiKtB2sPu4NOvh5laZsFbARpnqdxETrQ/H9anSt 54P0Kq1ibHjuswJsBT0IGfERWE5BM8Vp5/0Uanrz5c3X87mkERo0P8CEut9Go73UJpe7 ofB5G76v0ov554kWeoT9JZPSgWCGJQPyIYRP0gUrpNptmCPdlqtmmXpXgqLIe0bXVB7h gLKXibXQegCuZV56dW1vlFELn7dXu6i8Xe6GTiZvm76Nlwc9g4JDHYrvpLVc8RDlFcTN 6TQo99BMlpveko0ZTjE6w08wDoxPfwdEc6E7RGzL4otdMFa0i7GhWvZPHl9Se+dWsLD2 OhmQ== X-Gm-Message-State: AOJu0Yw9BxrYhxxMqj3LGLlXeJkY+H3ioiZkTB/NJDDDjUpSpFGNGln1 uNtFkiv8at1C/Yqfs8a5i62zLB9kxdEsOrVW3pX1/sfLWGg= X-Received: by 2002:a05:6a20:734d:b0:196:65bd:7855 with SMTP id v13-20020a056a20734d00b0019665bd7855mr502116pzc.53.1703784033664; Thu, 28 Dec 2023 09:20:33 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c1:bd9:84dc:8a87:ea0:57d7]) by smtp.gmail.com with ESMTPSA id q7-20020aa79827000000b006d9a94a03a8sm9593839pfl.77.2023.12.28.09.20.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 09:20:32 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 02/12] powerpc: Add missing arch flags on rounding ifunc variants Date: Thu, 28 Dec 2023 14:20:16 -0300 Message-Id: <20231228172026.2013007-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231228172026.2013007-1-adhemerval.zanella@linaro.org> References: <20231228172026.2013007-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org The ifunc variants now uses the powerpc implementation which in turn uses the compiler builtin. Without the proper -mcpu switch the builtin does not generate the expected optimization. Checked on powerpc-linux-gnu. Reviewed-by: H.J. Lu Reviewed-by: Peter Bergner --- sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile index 64317506c6..2f5c0eded6 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile @@ -34,6 +34,12 @@ CFLAGS-s_modff-power5+.c = -mcpu=power5+ CFLAGS-s_logbl-power7.c = -mcpu=power7 CFLAGS-s_logb-power7.c = -mcpu=power7 CFLAGS-s_logbf-power7.c = -mcpu=power7 +CFLAGS-s_round-power5+.c += -mcpu=power5+ +CFLAGS-s_roundf-power5+.c += -mcpu=power5+ +CFLAGS-s_floor-power5+.c += -mcpu=power5+ +CFLAGS-s_floorf-power5+.c += -mcpu=power5+ +CFLAGS-s_trunc-power5+.c += -mcpu=power5+ +CFLAGS-s_truncf-power5+.c += -mcpu=power5+ # These files quiet sNaNs in a way that is optimized away without # -fsignaling-nans.