From patchwork Mon Oct 23 21:36:56 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: 1854045 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=BZKR/75a; 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 4SDpSF4gpNz23jn for ; Tue, 24 Oct 2023 08:37:16 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7D5A0385700D for ; Mon, 23 Oct 2023 21:37:14 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 6EF373858C2A for ; Mon, 23 Oct 2023 21:37:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6EF373858C2A 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 6EF373858C2A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698097026; cv=none; b=vSL6zHKH9cnHMnG96DxnDsnmuTRFxgKs0K990BLIHRYJ6hWzu8URDtuRp5rfoaOtk+3iknP3OQfFI4vJHs9MDdbMUA5WVTBnDJ6Iysor6LPEsbM/kp79lsBJV81OGEgEAHaGUdKMUkyyvG3fwaNbC/XWXKhgU7BkA1ZsHkCPf6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698097026; c=relaxed/simple; bh=s6fEdRkV6oMeH7V9H3ouzDVxxaQg4hUOnDnUQcasEIk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=jTfOj8GeGON41a4TttBzGTfSTyP4GaPcgViXavAEzJ00qpNS7tOfMCvSCebb6DddkebKk6pODOAQEj+75xJzNiksPZx4v1mpiPY6lO7DRGF2mozCxOv8olVEPYrBNb7GpDpq0tKT5+4wfL44q3XqbtUVjem/TTR3nld9/8+r8CY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6b87c1edfd5so2916182b3a.1 for ; Mon, 23 Oct 2023 14:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698097024; x=1698701824; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+yvUWY3TGnSvblZz4us6SCYDuOzwg2fWRpEz/5n9Fls=; b=BZKR/75aA68TAeQCmW0RJGkB3fs/taLl2gqG/JMp+xjxyv/EdrbKH18WjWUwsP25Yp Fu16FdhHfNl5QF74D/upDKA/R48204ey4rJpJx7piBECEZdUAmeNEVHlbpCsB9vUWDP6 W/BgCDk4X+uzRoMl+GeXcLvib8kFdj9UemK9eZD/fa06cb3uBjhqbOKayd5jUSN5xp9k VhXkX8DkA+5iyfpLEkyQO7FZl92bNrIE3A3HW48/NAoc8JXMaUdZAFAgIwCcVXxkShqQ gE9B17VWnJ+uQ9MLkfEDwUDYnQzvAkAyYqzq1cEIKmUyzDKCgBW13HGDpNq8HRe/Iqha 4BFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698097024; x=1698701824; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+yvUWY3TGnSvblZz4us6SCYDuOzwg2fWRpEz/5n9Fls=; b=Dj5JWtdQXl6PUO3Uom3t4y0nsYUqkKU1p1p8fXwgTzXsyYjFUcDMxrAllACnwv4Vbj HDqbSkZgFzz2K2aUbX2qTxlWSD9t2Ya9YtcOxtyLdvl6rA1FcQd/2gVyQ5A+dLQX0fkM Ws9heMZ39Kot/nEuG5215z93mM16sCbWKxoYyabu45asNHsDV3aQVG7KgXbhcUF5ZDv6 MQx55L5hSLLk/gEJOR8CBVfxWRrjHZvhJdJ+f2L7E7Sn/KyVZm1heTB6ER0T+K7Oes6S y1fNRoYdJecl4RKBQYg3VJFsWBu03JjT+46SjtlGTIHIkXxGPGe8dSkd5LxPde9EzP2s /Bdw== X-Gm-Message-State: AOJu0Yy8so6+fEqE62xxFNEeGZmfCdyRRGquXltwhdTkpbcB9x/i6PI/ FfJ6H0Y6GNRpuXlK9QN4jMctRtsg3WVPDMyJdhkSoQ== X-Google-Smtp-Source: AGHT+IFGhMk8wlBrsp/Hi4ishS+l2xBVWC2IyyfmM5AAnpw8pQo4yZZtjPpNP4hBxI1/PdM9WOsv3Q== X-Received: by 2002:a05:6a20:734c:b0:156:851e:b167 with SMTP id v12-20020a056a20734c00b00156851eb167mr848978pzc.44.1698097023819; Mon, 23 Oct 2023 14:37:03 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:a647:232:4b54:1e33:3494]) by smtp.gmail.com with ESMTPSA id fe12-20020a056a002f0c00b0066a4e561beesm6819443pfb.173.2023.10.23.14.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:37:03 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Bruno Haible Subject: [PATCH 0/3] Fix fesetexcept/fesetexceptflag on powerpc and x86 Date: Mon, 23 Oct 2023 18:36:56 -0300 Message-Id: <20231023213659.3236496-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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 has found fesetexcept/fesetexceptflag wrongly raise floating-point exception flags on x86 and powerpc. Adhemerval Zanella (2): powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag (BZ 30988) i686: Do not raise exception traps on fesetexcept (BZ 30989) Bruno Haible (1): x86: Do not raises floating-point exception traps on fesetexceptflag (BZ 30990) math/test-fesetexcept-traps.c | 22 ++++++--- math/test-fexcept-traps.c | 22 ++++++--- sysdeps/i386/fpu/fesetexcept.c | 43 +++++++++++++++++- sysdeps/i386/fpu/fsetexcptflg.c | 58 +++++++++++++++--------- sysdeps/i386/fpu/math-tests-trap-force.h | 29 ++++++++++++ sysdeps/powerpc/fpu/fesetexcept.c | 5 ++ sysdeps/powerpc/fpu/fsetexcptflg.c | 9 +++- sysdeps/x86_64/fpu/fsetexcptflg.c | 24 ++++++---- 8 files changed, 164 insertions(+), 48 deletions(-) create mode 100644 sysdeps/i386/fpu/math-tests-trap-force.h