From patchwork Fri Nov 3 12:24:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1858888 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=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=LQ5t2V6L; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4SMKgb3LMyz1yQx for ; Fri, 3 Nov 2023 23:24:43 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 23A9C3858284 for ; Fri, 3 Nov 2023 12:24:41 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) by sourceware.org (Postfix) with ESMTPS id 7D6163858D37 for ; Fri, 3 Nov 2023 12:24:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7D6163858D37 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 7D6163858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::a34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699014272; cv=none; b=eQza156Bbt5hHvIRaXw0gZgq+j2ZV2NZllnmjaCbudPEkasSprC/Fz1zHmsJhFwBe9YWh76Isan20DA/dG5EeGG+R3UbbEPWCaehv7WgJ3ZEZ9HnrR5u2D+ERbNR4bRgUSxw55+MsAqvxuUZNcipat4rRw3FL2PaEyNfsb3lThM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699014272; c=relaxed/simple; bh=abx33JCbOI9mrh1IC1k6vCZeI96bOBJLMlNSiE7M7js=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=kq20VM++hkha9SWnIpSpNtRxTeJ4mqyqo3JqQeASvjGTw8MpAq1YRbj2VMjKIzkE9JJ79DqSDKOg9N6IioYBm1bbGVT9ZH7QFv2uXYL7az7jrfz3Y6dL0/hB7YuBTLN3ruKZAgNIXWrB2g0Q3mtqNVUOmw8T9JPcaD6yTk5iEIw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-vk1-xa34.google.com with SMTP id 71dfb90a1353d-4a40c8dd9b0so857996e0c.0 for ; Fri, 03 Nov 2023 05:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699014261; x=1699619061; 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=Tpj34Mf4AL/fS6M0PgjmMq2ilEI8M6ClH76QxhFN3V0=; b=LQ5t2V6L182iXywvsTejZpE3HGGrCBEKfWBD+J7bn3pkAoFdvg187cNwCsT1uF5gc+ D0YJBx2kUy1Z3a7kemTlBVCjZmGb/U9uN+2v74+/Yc88t84gG+qnhlTMJELKpfuoY2f0 qeuNNED6Ku00vm62m2yC+Xj8KytJxembrHmIL8EcEt3m/qsizJInoCy6AlIUfDk8g4B+ 2/XigLGlAvsIS2aiF871P4UBlNGHzVoO/HBLVsv0lLTtHdMwtrgOJ/FY9PvW+slTwqS2 0dhRATNx15m7B8jECrTiAQlgxhW4OKLCe535gP2DXflPHBjaD5wzrTEAqJZpXHB8fkfk qYgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699014261; x=1699619061; 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=Tpj34Mf4AL/fS6M0PgjmMq2ilEI8M6ClH76QxhFN3V0=; b=k6iQufAGy9QchLDewbcVyJQq1bevVvDfo3rwoNe1poHDjpdAY4XgVpPiBaZMnC3IFX X3rBv36jH9je/9nHwNkz1XuKJcSTERZ7jjbTkCCga+Iq1WgCb+m6iYmTTk5V0p/RqLYC eLxup8bLTYef5LvnNk0WucXe8LuTLbyE7tV0wCKMAZUdZ/MkyP2aUHxT781E45TjQySh pfvdeDRLseKzF2UtHy+X+nQjwm2ATz3MoH7IAd+TKugjvnRZi2RYrvEIwExl1vc4nlmV /HnUQjyTtB0jyAbzAc0vkP4YW293YHpe55ulqLazlvpe88Do5m2QUJ5ljWRavh43ldvZ QobA== X-Gm-Message-State: AOJu0YyNCPcshfhb9AZFLl1wY37YFn+w7TOaNTuUagGDME8bLnTnaFl9 JYKYdkcf00WR7L1GjxPDvIth7LU9wUvbgGf+dRNgXQ== X-Google-Smtp-Source: AGHT+IHh50ZLlQ/aJDDtJ5gw93RyOmy7X3ADabMJqLTm+RAOASUxo3e+yZPdcKwUY2R1j660L9PDIA== X-Received: by 2002:a1f:a18a:0:b0:495:be1c:5be9 with SMTP id k132-20020a1fa18a000000b00495be1c5be9mr19490390vke.1.1699014261089; Fri, 03 Nov 2023 05:24:21 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:a715:dd81:f992:f726:338a]) by smtp.gmail.com with ESMTPSA id e15-20020a05620a12cf00b0076eee688a95sm693833qkl.0.2023.11.03.05.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 05:24:20 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Bruno Haible Subject: [PATCH 0/7] Multiple floating-point environment fixes Date: Fri, 3 Nov 2023 09:24:09 -0300 Message-Id: <20231103122416.2724355-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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+incoming=patchwork.ozlabs.org@sourceware.org Bruno Haible has uncovered multiple issues with floating point environment functions on multiple platforms. He already added gnulib modules to overrides some functions, so some of theses fixes arealready being used on some projects. There are still some issues where I am not confortable to fix or install a patch without proper hardware testing (BZ# 31023 for hppa and BZ# 30993 for alpha), and there also one that would require a lot of working since it requires fixing the compiler (BZ# 30973 for sh4). Adhemerval Zanella (3): powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag (BZ 30988) i686: Do not raise exception traps on fesetexcept (BZ 30989) riscv: Fix feenvupdate with FE_DFL_ENV (BZ 31022) Bruno Haible (4): x86: Do not raises floating-point exception traps on fesetexceptflag (BZ 30990) manual: Clarify undefined behavior of feenableexcept (BZ 31019) alpha: Fix fesetexceptflag (BZ 30998) hppa: Fix undefined behaviour in feclearexcept (BZ 30983) manual/arith.texi | 6 ++ math/test-fenv.c | 132 +++++++++++++++++++++-- math/test-fesetexcept-traps.c | 37 +++++-- math/test-fexcept-traps.c | 33 ++++-- sysdeps/alpha/fpu/fsetexcptflg.c | 2 +- sysdeps/hppa/fpu/fclrexcpt.c | 2 +- sysdeps/i386/fpu/fesetexcept.c | 46 +++++++- sysdeps/i386/fpu/fsetexcptflg.c | 63 +++++++---- sysdeps/i386/fpu/math-tests-trap-force.h | 29 +++++ sysdeps/powerpc/fpu/fesetexcept.c | 5 + sysdeps/powerpc/fpu/fsetexcptflg.c | 9 +- sysdeps/riscv/rvf/fenv_private.h | 6 +- sysdeps/x86/fpu/test-fenv-sse-2.c | 23 +--- sysdeps/x86_64/fpu/fsetexcptflg.c | 24 +++-- 14 files changed, 332 insertions(+), 85 deletions(-) create mode 100644 sysdeps/i386/fpu/math-tests-trap-force.h