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 X-Patchwork-Id: 737302 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1735528wrl; Mon, 23 Oct 2023 14:37:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNMOpvv4tFqBhFPWKBU85aLD6EPS4aApfECNHdIiV3+jIGRXEYkb8ENK/aefk4b38pWU5G X-Received: by 2002:a05:620a:4094:b0:773:a83f:4170 with SMTP id f20-20020a05620a409400b00773a83f4170mr10432955qko.63.1698097031869; Mon, 23 Oct 2023 14:37:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698097031; cv=pass; d=google.com; s=arc-20160816; b=rVUFVf9qmWDb1EvS7meds3GZUCU5ylc8W7sgn52xvrDIyAqAajC8f4N6+tcbWIUCS0 V74O6c6U+cytNSTlLQRpu8kcFTKAKpXHEeeID8i6bQ77VTRueeGteOPrYt6VAD/exmOe 7qeUDKl6rYQ2pNs6v0t2TF9Y4xv1hB45OOmLx6NWv0i+rQ6ggGdhaCt9F04/5y5ZazlE 8LKQHdrg0c6di2EvSoF3mcqFfJQHU6UR7cbpmM1qSsYWHYyl/jdkkupT6Y31MnddYSuh ocW+ld7uUQ4nNXhUk3qp0Cu2940VymmsrXOya0KyKMkIkd7+IhC7+Ya5KBHlYEqH21RC scAQ== 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:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=+yvUWY3TGnSvblZz4us6SCYDuOzwg2fWRpEz/5n9Fls=; fh=Rk9vnpDApgYog/EhmGDFyutcQpHXbdLZmc0l8HNU7lw=; b=SeYZ5iTh6gLJHPVL1L9tzyE2E4XAxc1Ta9Osz1M+1o919poyLimcMdcavo7oabmxwQ kK/6Pd/1K2JjO0mwCXdTGv6Y1xVdCgy6bk6fMe7REAeqSYDaQbzoE5gTdVHTc6fR7Dxd IEXDaIgZFVvM7aVxUcxoNqNkgkUyp2OpQCJcSOApXDuwEpyEi2lTHMHkQTd/kYVkMI/+ zZYVIEFp2mTwm/nz2vCIkSOLtsNfJIrnBiLnwQxTOGNmLeYwaJi9xCDYiqdXr739lrBx z1lJluT9+5+LcALB3SzSJiihFofXCPGJGHOXQ8cgxcKfEKjym0YKTrnyHhsumC26vsrn z18A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BZKR/75a"; 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 t5-20020a05620a450500b00773a23eb2a8si6547913qkp.671.2023.10.23.14.37.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:37:11 -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="BZKR/75a"; 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 8118E3857806 for ; Mon, 23 Oct 2023 21:37:11 +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-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+patch=linaro.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