From patchwork Fri Nov 3 12:24:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 740662 Delivered-To: patch@linaro.org Received: by 2002:a5d:538f:0:b0:32d:baff:b0ca with SMTP id d15csp1335425wrv; Fri, 3 Nov 2023 05:25:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE57t0nAT1hWcBse7BJkHiGuqxiSrqQrCk3xPEAMkXcKAfMUul4QguEB0WrQ5aBUPhQxqx6 X-Received: by 2002:ac8:5c09:0:b0:41e:204b:f953 with SMTP id i9-20020ac85c09000000b0041e204bf953mr24245026qti.64.1699014336800; Fri, 03 Nov 2023 05:25:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1699014336; cv=pass; d=google.com; s=arc-20160816; b=WIe42wcRbMM7eEVR14ixocBCLitX994dhrKprcfEPItREaZPBwWM5RhlEYOujZjnwh /sKRJoAfOYBxRRvxgGAPx+SPaQ7F7yf0n43lIpipa2MABohcvez1sRRulb0dJdzerUnH u0ZWpthLjPV4Qz0GbfnVZorJQQxmZxUEp4r/+byoSKvdOclIMigM6fRlE/hH3qfFsocE djErZOd03QTaqpZDDMcPXL/Iwp4+/0yx1qTLJnV+m5X93rX91gXvE5UqRkc1mpSfXAff hRP40lT1TfID1yT0WeMqgyM36l3vRrgMQgDOFiesPqKvrdzYlYLFV4JhPMosw5qtf2rC DUmg== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=ifhyVU0xuLEi9GZ7tRCQR01OfHuW0wdjDKCoj9nK3Cw=; fh=01HD8dtuIqmy9rV/eMJuvD8dAGq4TXBqBjIxWaMzNQI=; b=lNQvwHM6BRTl2I4mPx5BDWNfbE/dNS2pjtb45RbqgXCfAfx4Fw7LdARUd1nJDW0MP1 3zotpfQ6NQWTm1Rm7KuWDkoklIDQvJRjX5wKoaYASVp/GWx5vc/Sz1kNhF45WaAuNUsS xK6Mh9QcoodGAl3PuOaqZ47RPTtWGTRIAI/o/HwemhYAGW4Z76gyr3Ej9Z79NJD9LJOr yh4QbPYFzgteprU/mRamlT02wsVxtc2lh3JK+kEK0ZGv8ixmat88vjh9nJoxguEcWa5e Gr9ddyPuZU3V+25l7ad9jpeKeXIoLRqaL1pdp5hKiKSU9be5tWKtszyUsZAgYxBrRAji 6U2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qp3lf9Hh; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 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. [8.43.85.97]) by mx.google.com with ESMTPS id 9-20020ac85909000000b004179519a8c5si1352596qty.677.2023.11.03.05.25.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 05:25:36 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qp3lf9Hh; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 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 76DF23858000 for ; Fri, 3 Nov 2023 12:25:29 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by sourceware.org (Postfix) with ESMTPS id BA9D73858C01 for ; Fri, 3 Nov 2023 12:24:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BA9D73858C01 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 BA9D73858C01 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::72f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699014285; cv=none; b=e2YLmK3+JYHnGcEBo9CfCTJ3jSJY6/VlCe2/VTlepeHeQWcdITsfy5a3LsDXVTGbjYpzPhjaZ/EpnjJJHS2OWORLqJRHJhQLvxdTpSff3Vpw+pm8fFEuJJ85HgAWWLgqc/5KYkAgf9oCouBj22Sq6Diu7EJ3q2Y9LhedYMxsUzE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699014285; c=relaxed/simple; bh=U3TO7U68zV/VH1gLF1OEP+gE10yWlon2iqsc+5Y+0PU=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=CW/pMlp6w8/TaPSrfVaAUDml0dIkOJwtnKBRPJlR7siBVBkAYUgWfT0lGPUYFLCS7xy3Ibq//sPJk+VQ9QCOLfkwaprXuRJhg8GroNUYxv7KWxAYftNwrH47rgTkoHU5E2PV1OG3gFUYuqS7CKDSclXW5ytlJBIXAgFoL6KFu10= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-7789aed0e46so114617685a.0 for ; Fri, 03 Nov 2023 05:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699014273; x=1699619073; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ifhyVU0xuLEi9GZ7tRCQR01OfHuW0wdjDKCoj9nK3Cw=; b=qp3lf9Hh3DxeGzgQLilIXVrRIXf1Leg0+7lPrBFMVR5lg6GYwB0jdLRF72yeDdGpAN ADnLQoi95fVaeTytNbr7mgMvB9zMnGlLNIOZUKIT7BHao7n6MqvoNanEDWx13RmtmBL/ nY7AYjRp2gp58/Ogeg3RNo8QLGTv/aHz4ItV8tMVvyPUbn3H7AhPpaXzLnham1TYnsKj x6gQdmYdcaWs9EcfCR3ystZFAMTRrIaG4F6lEnEQTCgFzqcmFDkGBM7P8dRR8eork/SP eG+xtn0yCcVKCsvcBghpng6FXUO7DhmkQcyuy2iEm1xbrI7fYTmjpXqwEf1So1HZvsoq zpTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699014273; x=1699619073; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ifhyVU0xuLEi9GZ7tRCQR01OfHuW0wdjDKCoj9nK3Cw=; b=qbtnL7wZMIyY1Mk8gzWky5esyn267d5bQFFYXRXkZDBgz1ueKWoWEk+1ceu97dFHoR V9+cMGGQ7A5k3vSQQRmlbxaWzfU/04kjx0uwfzJD5R4ylLMh3BzB20RSn6XobZcRepkQ PjHz8G7gpb4adAgZ7n7ltMAZOUUpf+1Ohbi3DJbTDWQ1HVtKcu+YzkHAbrWd7tZbQ34z QPMvN8UVsjvko27sg2+TIDFW5Sed2Hn5YUlp22OM03+qhYop+hZ68tKWrscN9+XgJvyt R25SJOtCAKLlUy8KgOnB2HLheNyeM2qgDRbB+68dYWVBXCPK9AhOUCz/3rJwluSg+EtM fVMw== X-Gm-Message-State: AOJu0Yw2zLFoEU+vhXThhPuDUUx/vWrYClfr4J/Y0ZPGbYGuY19lH0Mf j0afw1p1mfJXwWes3IoDVOwntl5UOfYV2ceuqDM3QA== X-Received: by 2002:a05:620a:1446:b0:778:903a:f832 with SMTP id i6-20020a05620a144600b00778903af832mr18399623qkl.78.1699014273544; Fri, 03 Nov 2023 05:24:33 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 05:24:32 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Bruno Haible Subject: [PATCH 6/7] alpha: Fix fesetexceptflag (BZ 30998) Date: Fri, 3 Nov 2023 09:24:15 -0300 Message-Id: <20231103122416.2724355-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231103122416.2724355-1-adhemerval.zanella@linaro.org> References: <20231103122416.2724355-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 From: Bruno Haible It clears some exception flags that are outside the EXCEPTS argument. It fixes math/test-fexcept on qemu-user. --- sysdeps/alpha/fpu/fsetexcptflg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/alpha/fpu/fsetexcptflg.c b/sysdeps/alpha/fpu/fsetexcptflg.c index 70f3666a6e..63eb06845d 100644 --- a/sysdeps/alpha/fpu/fsetexcptflg.c +++ b/sysdeps/alpha/fpu/fsetexcptflg.c @@ -27,7 +27,7 @@ __fesetexceptflag (const fexcept_t *flagp, int excepts) tmp = __ieee_get_fp_control (); /* Set all the bits that were called for. */ - tmp = (tmp & ~SWCR_STATUS_MASK) | (*flagp & excepts & SWCR_STATUS_MASK); + tmp ^= (tmp ^ *flagp) & excepts & SWCR_STATUS_MASK; /* And store it back. */ __ieee_set_fp_control (tmp);