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 X-Patchwork-Id: 740656 Delivered-To: patch@linaro.org Received: by 2002:a5d:538f:0:b0:32d:baff:b0ca with SMTP id d15csp1335003wrv; Fri, 3 Nov 2023 05:24:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6QlFX9uD/4zT0grwWQ9sN6atLZTOI15z58VcrAgS5AnqYc5v6FE0LUqoo9xdci/h1Lh/O X-Received: by 2002:a05:6214:1c41:b0:64f:4e64:5962 with SMTP id if1-20020a0562141c4100b0064f4e645962mr28595502qvb.31.1699014278583; Fri, 03 Nov 2023 05:24:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1699014278; cv=pass; d=google.com; s=arc-20160816; b=SKJ84cmc1c6St7IgdW84Q4C+sd9B34Q8KcWm5HczC7mKAAjKrrE0CQ6j/WCQld/pwE GOU7MCgXosrAmRLGnalpKE8wowQoagd012f8OmoGUoBaL5rKUCK1i94ZQJkodEbAuB8t PcKbvzOVqAazd4UuHLYC9zZBopiCwDIczESFC4zTNGcyPsiQ8c9NakxBeH0kQAGBv7qI U0Azc5d+5nyS5CsMtDfjRg3j00wnjXXRvbfQTghbjv4cBWo7W7U3Cf/j3nGbnOxEKrTB HinVTGHvvc1t0pXUXGO+Ya62jNX+EVzwulmDKoTndOZj7ELB87KPIcTZAPkSlAJGAB/4 ZDcA== 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:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=Tpj34Mf4AL/fS6M0PgjmMq2ilEI8M6ClH76QxhFN3V0=; fh=01HD8dtuIqmy9rV/eMJuvD8dAGq4TXBqBjIxWaMzNQI=; b=tOlxmWS7y26QK9MGv3JFM3Zbv28PU0fuD03kEO26jVovvjoo1KPUFv/YWXHyVDmE1f 7Xm9CHJSxBmjFZYNzrY6h1dh9lkSd8ml/JEsgbh3eso0MTcEOUqMS4wMpUQDXSBg6sMv c39tdXdi/aNenFVmHErrSo0cObEevHYOkbd0brdj3i0IQobtFhEmnbYuKbHX/JlcFeM7 rhwmzN4/G0B8UnAjFO9MdKqtyGUyPrl5DQT8MCGiv4OKdlY1Y4olZV16knqXtPWGwu8Y ygMmOCPV098FRShsKqrwdOKQs5ytqzhZ4bO/lO37Qza61JE/UCoMG2qR0EJgYHNlKeCl 3iNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LQ5t2V6L; 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 f18-20020ad442d2000000b00668da56152csi1408908qvr.506.2023.11.03.05.24.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 05:24:38 -0700 (PDT) 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=LQ5t2V6L; 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 39F053858404 for ; Fri, 3 Nov 2023 12:24:38 +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-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+patch=linaro.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