From patchwork Mon Nov 6 13:27:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 741390 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1083568wrr; Mon, 6 Nov 2023 05:27:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTibUchJKixFFZMhI0gW4kDnuSh8iBUX/OezHneERMO7iKAdCTzOyIL9gmXsAc78Vd0tan X-Received: by 2002:a05:622a:18a:b0:418:1565:ed49 with SMTP id s10-20020a05622a018a00b004181565ed49mr34970521qtw.41.1699277245492; Mon, 06 Nov 2023 05:27:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699277245; cv=pass; d=google.com; s=arc-20160816; b=Quacikwg5qLUy/BQpP1pOHSdYM8yPPZVJxtyDvbO0GXbrEbuNM4/3CQUD6uEv4Y7qn WLMEgJlEmaA6BvbrTVkD+I6Nd3bQvK82N1i3/VczlDXW0wf0+il2d9iViXO+mOjwv2al LMJThgN7Z1FFtidC7FgQzyvL9QSx0gB/zFNGIovVFwa6t0nEXdpUefjZgzZd4tNDCrER F2ntMf100T/HyEEb/HWosHj2ooSn7E2odYd6fm85L9zwGtTpNo8dyNxFVgzmCNuCPVE1 fSyMVq4udWC22Vi4b6m95G+mFd2oOGt/bJmU3+M9lQFNAWaMV86ETFIyucHzv1bzUXBO zxwQ== 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=6ERMJSbnkfUiZJ2qQApIo5WVuZdrPjukzcB8NwpaJdo=; fh=01HD8dtuIqmy9rV/eMJuvD8dAGq4TXBqBjIxWaMzNQI=; b=EMdUdPMA4Q/BBFV1MW06LKrJ6gtlWqzZn/LUUV35VVZZz+DGbDlhuBg15aEk5WEYJe DWGpmK/rtGl2+WmFdnQEhtcAs1Brh6I5zirhd66g24+p5H2EGDJczQuGJtw9aFUUayQn YDZdjOteAjdje5Gj0Es6JbhHjy+axrZ4qHUbG6GQ4A+NZVXubD9I0VhIjp5x6+WY2uWf Q/L/msg60UcTJplSleTw0chZ+DiAIf8OHUi4FKD4wVCtzqvwo+HUdbDj2KrnFi786Jfs VLFxbO5ettf+ncmO5Z9Ap4WEMrL3RpcwX2tdEAdlsmJmxIzBka73CBO/Lon3LraF6bSD nFTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xzewpt/N"; 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 o21-20020a05622a009500b00417b7e010c4si5721901qtw.305.2023.11.06.05.27.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:27:25 -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="Xzewpt/N"; 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 2EFCA385773A for ; Mon, 6 Nov 2023 13:27:25 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by sourceware.org (Postfix) with ESMTPS id 97FF93858D28 for ; Mon, 6 Nov 2023 13:27:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 97FF93858D28 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 97FF93858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::736 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699277240; cv=none; b=wuOvGDhVInvnAw6zE68LYTTUIa8WCPJql9VLgH8C6jLcf4u6XuewDI6F3UhwN1UINz6iKtIsG1dNlO9HJXcdrnxGwuN6pF7GPA79OXYZSOI0RmsZRt9Fj+hkilAC3zXkqHvnl4CCRicA7rpco22DGMB3PIX80XJesecanfN9YkA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699277240; c=relaxed/simple; bh=qbDLogkUNV1UwftuNsyTmw/XZGYpFIvPUaQk3RDPwkg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=MHq4PL4cwoUuk7qf3jGZhBfWaOBdAbob0+usA4EyIx2ar25NC4QAJ7aCT4g9c3YTndZvlIzbTK5W5BAZTzg6d3vk7iABRoJkOQ4LSZkc42ypzaZZwABHUJ9/eNI1Fo0ZibT1meRL5aJt9g/vmgOi3rPLR3L7Sovex4lExk04kLU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7789a4c01ddso295543685a.1 for ; Mon, 06 Nov 2023 05:27:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699277237; x=1699882037; 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=6ERMJSbnkfUiZJ2qQApIo5WVuZdrPjukzcB8NwpaJdo=; b=Xzewpt/NYvp45EXDrS/OTyxVfTCC1XcWLP2glvjc/o8O/KF/rC6KyrETXrwD4XcbhA jV9YcBNTIKL/yzJtoYkIraeAhWOtfRH2K+qtcjRB2HTwlv2iKYcAbunNGFcL0hmVgPI5 evk+4Uoo0NA3uaq41h1qa2pKuXMdn/TBtd8HzO4bN+qk0Wv42DL9XTAniC+xLCw1Fbfw vtbLVX2ARQolTny2RGq8XCX2B+EiIrrqZhZqojD+nKOvSXPaa6VbIKAZ0hympy6dA65u GshmfS0NSgvRAXsWlT0RwZ/8sYaor9BY8T4lWlnkIjSsK/cWskmNcA4eS4QqV/NbHXTH F6Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699277237; x=1699882037; 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=6ERMJSbnkfUiZJ2qQApIo5WVuZdrPjukzcB8NwpaJdo=; b=acwCn8GUd7EL6CFQ4JNGx157+0q5cnl1e28/oGK8vZ3npp1uVkTD/ihHDYW31UH7of GiH0rj1WPwPDAs/31dQV7tol+/PNz/hHF8WO61SQnrO186VzwkPlkLsKj17bKOxic1TP lwjjngZA76Usae7kxLCfnOGunkGsCbBvnUOOyR4NfO1r6ravPFcL8CyTxE5CoCj6PW/3 OMN/klVsGtQWZ01/BFT8AGvwb1+VRexfZIVOqNekFloPciMKkhS63V2zJb15FQf1ccls c8ZNv2hTPmve4rCLFEOYe/RJMQS8Qna6UPWAoC6Hlr5AN6C4a62eax7QrUmhaZuwMZxO 2oKA== X-Gm-Message-State: AOJu0YzKrBHIH6P/mXazaC1rDPOP4EcATtAYkCbgfKOps4NC7Vhmbq3E EcYn42IpK3Q+RhsGA8fkCJn20zzYJl+dAR9o0iGHvA== X-Received: by 2002:a05:620a:1a05:b0:774:2915:d180 with SMTP id bk5-20020a05620a1a0500b007742915d180mr36767770qkb.37.1699277237227; Mon, 06 Nov 2023 05:27:17 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c0:a715:c1a0:7281:6384:2ee9]) by smtp.gmail.com with ESMTPSA id k3-20020a05620a142300b0076f12fcb0easm3272722qkj.2.2023.11.06.05.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 05:27:16 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Bruno Haible Subject: [PATCH v2 0/7] Multiple floating-point environment fixes Date: Mon, 6 Nov 2023 10:27:06 -0300 Message-Id: <20231106132713.953501-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 | 131 +++++++++++++++++++++-- math/test-fesetexcept-traps.c | 37 +++++-- math/test-fexcept-traps.c | 34 ++++-- 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 | 8 +- sysdeps/x86/fpu/test-fenv-sse-2.c | 23 +--- sysdeps/x86_64/fpu/fsetexcptflg.c | 24 +++-- 14 files changed, 330 insertions(+), 89 deletions(-) create mode 100644 sysdeps/i386/fpu/math-tests-trap-force.h