Message ID | 20231103122416.2724355-7-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> 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=qp3lf9Hh; 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 4SMKhg5tj3z1yQx for <incoming@patchwork.ozlabs.org>; Fri, 3 Nov 2023 23:25:39 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6D46F3858C78 for <incoming@patchwork.ozlabs.org>; Fri, 3 Nov 2023 12:25:32 +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 <libc-alpha@sourceware.org>; 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 <libc-alpha@sourceware.org>; 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-Google-Smtp-Source: AGHT+IHqmW6Tyh3emKDEsWe8YD5HxHhbweD4BuVUcokoVOcWQA38dOQnbeNrdlbFvS4CfchSWDcepg== 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 <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org, Bruno Haible <bruno@clisp.org> 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 Content-Transfer-Encoding: 8bit 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 <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org |
Series |
Multiple floating-point environment fixes
|
expand
|
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);
From: Bruno Haible <bruno@clisp.org> 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(-)