From patchwork Wed May 1 17:55:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1930307 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Uu/0dD+k; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VV4W53gf9z1ymp for ; Thu, 2 May 2024 03:56:17 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C4D363858416 for ; Wed, 1 May 2024 17:56:15 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id E7A713858D20 for ; Wed, 1 May 2024 17:55:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E7A713858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E7A713858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::629 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714586161; cv=none; b=KMq0NuChtdpmbZnUO52F1ZsmMEvTsFbSrLIuJziPRrCefUGY8y4lPfBQ38Mfl1IfOQiJ+b7j1IitMwPjgtMkUHFCMoq2s0OeNtOSM/D1x8EJ9hpQKQgfsAR8mcNjcs0qJYYLyVLXEEgwNfrJw1jZOqv0tAUCqs0x4redAG0z8ac= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714586161; c=relaxed/simple; bh=fN7d+tHjBFOuUaGJoeDMUMmVcmwqDGI7EdYVEwc2btE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wsgsctux5CXTvuzyKZyLnQ6FxexFEBCUv3cqpA6H1KMPgK1ehB1CxeleF47pnoVadWd0iJyt9qD2n/+rRkQJQRGJ0NfC6Y9CpbvXu8sLxugcNaeGSPxvpr81016ZXpm7MqPBB0ZTPtUVKDIwHTXbf6sG9Hs1TlA/tA+u4vlCh2M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1ecc23e6c9dso3403895ad.2 for ; Wed, 01 May 2024 10:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714586159; x=1715190959; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=SGcFqIsPfOW2jK3ZXFD70pozu4b9CI4iSizF68NWz8k=; b=Uu/0dD+kYt25MBwWMG7C1YYAJhseBExhCTNRbjmKew+qohaoMRE5acVPw5MUU6oiKa neI+MvRoabig4G333DJ2USunA7HyhIc2MEv2tbxGAWLGfyXOzkP0K6ZoHEO53kLlwv3w GYdzCjVT/7xAMR94II5aPe+1Z8op3l2KOpW8t8JugkeHpNZsU9cY9bJcA9dSOABA31fT QwC32kOXSMcYqf0XW3vLFWuFYLxHr00frvrtlE7ehv1mwbRxApXfAns3jJgX/IwsXDaP xSYjZmBNtg/6JDfbMYs3eALm+Sm8nOyNXIPRBsY0tu7UUVCZRB55z5lC9sVWnYo4xfrj xSdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714586159; x=1715190959; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SGcFqIsPfOW2jK3ZXFD70pozu4b9CI4iSizF68NWz8k=; b=WqseaMAM2KIhaGxVouiINthvy45QWz5xBz4BWfmVlK/AqaIkz9iKNHxJmANSke55Ju qQN+BX40fBKhOfsUAM0fYjH+yq2arA5fhJG7vNfiUGaVh9JAS8S6AYYdOW/2SKpCh7wk tK7i3EcG4QZJ1QMx4Pd1ulo3be6hPJYOw5rMSZuMEM6jYJtqYXWzzKVaxRWsns4Df6tA BJpK14k7bG+euWJ5WZJUF+XieOvlLie9bX7sarSE2uZNQ3PsaB5rH6XTTebi621hSTHi scnfGEaZ/tFIXLe50nc/ai/EEFleAyJ6np4GzTPf3uI+NDgFapBOevhCnl88cbRwP6WG 1DYw== X-Gm-Message-State: AOJu0YwKr3DKZtw94n1H2drRKHx+11AUSvonU+5yDUpAonj6OX+hoEKj /d3sXosYdlEfY03fLVgcX7Rz6xxLnxYwInMR/XZzVym8QdeY8qlgkxfmUg== X-Google-Smtp-Source: AGHT+IFnknSg2+9U9iR4pN6gkFFPLDVH2KWJmIZPbOnW/Uhr/RXpeYMQDHK0JvrUmEUijdeVF5ZcmQ== X-Received: by 2002:a17:902:c213:b0:1eb:3d68:fc38 with SMTP id 19-20020a170902c21300b001eb3d68fc38mr2892057pll.6.1714586158635; Wed, 01 May 2024 10:55:58 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.56.168.158]) by smtp.gmail.com with ESMTPSA id j3-20020a170903028300b001eab1258197sm1324977plr.144.2024.05.01.10.55.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:55:58 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id E7ECE740151 for ; Wed, 1 May 2024 10:55:56 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH v2] soft-fp: Rename trunchfbf2.c to extendhfbf2.c Date: Wed, 1 May 2024 10:55:56 -0700 Message-ID: <20240501175556.594548-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3022.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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+incoming=patchwork.ozlabs.org@sourceware.org Since bfloat16 has the same range as float32, _Float16 to bfloat16 conversion is an extension, not a truncation. Rename trunchfbf2.c to extendhfbf2.c to provide __extendhfbf2, instead of __trunchfbf2. This fixes BZ #31690. --- soft-fp/{trunchfbf2.c => extendhfbf2.c} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename soft-fp/{trunchfbf2.c => extendhfbf2.c} (96%) diff --git a/soft-fp/trunchfbf2.c b/soft-fp/extendhfbf2.c similarity index 96% rename from soft-fp/trunchfbf2.c rename to soft-fp/extendhfbf2.c index ad5fbbd654..3443948da3 100644 --- a/soft-fp/trunchfbf2.c +++ b/soft-fp/extendhfbf2.c @@ -1,5 +1,5 @@ /* Software floating-point emulation. - Truncate IEEE half into bfloat16. + Extend IEEE half into bfloat16. Copyright (C) 2022-2024 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -36,7 +36,7 @@ truncate to BFtype. */ BFtype -__trunchfbf2 (HFtype a) +__extendhfbf2 (HFtype a) { FP_DECL_EX; FP_DECL_H (A);