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 Netto X-Patchwork-Id: 56323 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 595A6385697F for ; Mon, 6 Nov 2023 13:27:32 +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-Google-Smtp-Source: AGHT+IHlF3N8yK5aayIDh0KmEbbknOajTXs7mEVlvBIHOkaQsFRp/gUjr4j7bneUeRCFrn5yvPvsqw== 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+patchwork=sourceware.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