From patchwork Tue Jan 9 19:40:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 761070 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp1532286wrz; Tue, 9 Jan 2024 11:40:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/VNdjrWoCqXXWX/NN8I5Z4CiPL0LBV7jgiOHO041+/vsEznIdby17izgow8bCVS7wkigp X-Received: by 2002:a81:5406:0:b0:5e8:6e8f:d47a with SMTP id i6-20020a815406000000b005e86e8fd47amr5523432ywb.75.1704829251001; Tue, 09 Jan 2024 11:40:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704829250; cv=pass; d=google.com; s=arc-20160816; b=kFS/0v9p+2OzdzXJszOrZ8BqKWPJKYvJHIbfQVkJtLAHRKWedyMosm4KNumxPzDldB DtZJ1praEyQK7nAxDJUBlsyVVhniGnEg74XawIWP6Tu1ifQ2PHahPgvUyj5orrEpOfG/ lWGM5ywdjXHXOeF5RYPERgm6JW9DiRXqdLdzVIhUcZalChrUJxUyruDpCTHL0ji3X9OD F7XIf1T+B3/HLynAfiXRLR9pY7lRAf/yQfu6bt95pnnHsnGevCjEW7O9/dC8LmnDqrFC JLuekEB7D7TQYhJH9t+yEUnp4HI2Xxq1fdj9PR8cSip55qfY7IOCVkxcpwgmJzZ6v6nu wYug== 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=aj9xgJ3JwVshQXCA7xdvx8D6/3oNcBsgNzD5e2u/kaU=; fh=RpnbCZOi9pb0FkWx9hosYzQESzaBuU3/nWTCqb1SfyU=; b=cVWAsvUMMATPj2CPxcoUniu5iPrXtnY70hPQXKIZD1E6VKD3sHvmoQF3jfwAmwBGGc 7PmekWZCj6AGezrF74fR4Fj6wyp5AFwvdRbxEg5S/SdN0VYtA8aS87drPe2/Hxu/BRYq 76eERc3M1jRbKXRfD5EHqO0LoApGPuTXcoMrwKlJ8j6jlBAQafTjmsjq/lXBDqN5zgCa QCk91tbLw3QBNa77RxbHNFFJLxPo5hUvYHjSMuRhCulzTSnzK5LC9UwXwEL0G5X8xX03 2IqN7k7rSCe5b1hkn1NKHuHkAcLw7h3CSbaYxo5uTnEn1TgmknRb7Pc+UEWRC+bqt25l /kRg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o0EKkscO; 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 f7-20020a05622a104700b004299526a77dsi2604670qte.792.2024.01.09.11.40.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 11:40:50 -0800 (PST) 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=o0EKkscO; 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 9F49E3858296 for ; Tue, 9 Jan 2024 19:40:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id CE4D73858C74 for ; Tue, 9 Jan 2024 19:40:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE4D73858C74 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 CE4D73858C74 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::430 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704829241; cv=none; b=O7yVp4GDeCOsh7PsQZFa5LkS5ulv5A6R1iQmjorJ+lAo10rijWHYJi8lsbMjrt2hLBSmIwVyx9SpUSqHUtismO7ckTxhxGGqivqJotUmRTncbzllGtp80ZbSJ8ZWX66nMziRrLmYCpgRHS8dfD2hcRMsMH2Z23oqtfsasa/xVEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704829241; c=relaxed/simple; bh=lJf1QMX2QFg2HNp+XTAFrqrjrT793m5mZTowgm2oaUk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=JFO/gJhBug+4axHV7hUNmb4qVqj/ETJEopbetka10BkvnU2s9I3N6CRyykouT6OwnC0g7i+rztOqeYXUqMuO72Vh+Vd/nucvZfffyVee8AUWv16jDLGfhWztqtdByi8LfUb++RSoEdRzwimxvbGLLZOoBFlUflAgeZCcc+bFtvg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6d9bba6d773so2820836b3a.1 for ; Tue, 09 Jan 2024 11:40:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704829238; x=1705434038; 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=aj9xgJ3JwVshQXCA7xdvx8D6/3oNcBsgNzD5e2u/kaU=; b=o0EKkscOdpQqD7KlhLcNmp80BSwNlb//GiJRsjN3fHbXYkFWi97nksmsYLMwRsfDoO xG9/OGmfSR73dGxPaLS9ZFr8PZk6yHRlWIptFDz1lRiHZFdGBSi+Jtuv3+AnTsX6Rz61 kMTt5UrNwsam1BO7O/91eV8niEAIqLTM4Fumlp77TJ8Xn5PanvfSDzUVBMaoVLhfraac Jdu1lyxZrmDqatZEhAMUhlUHj4S3c6xPKOI6Wsuifd3ZNOIH7A1bQgMIg3m1eb4H2kFt 8vdKYHzYYCjbtOv/DP38lxCefQiGwuwIEFCv7Pt1MZtTleHvm0PZnmI5RqdlNygFekak tecQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704829238; x=1705434038; 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=aj9xgJ3JwVshQXCA7xdvx8D6/3oNcBsgNzD5e2u/kaU=; b=RhGdXeok2ftt4W8SaC26jad1uuy3avrUtg3pQgZ6pK+hA/eoM6QknhngNLqZ1qmwNB u2SEDfE331GAD5sR4Zw9ngfOY4xPUl1kEyqdzhsF3X8Uh0koyGehZhFru0lBt9PLHr7c rTtCsTT+KCDU9iKgdpKOuoEiSOqc4oQVctk9vJFvDH6vNUjkjxHv5BcRWuYH0opTpX7l wlaA8wfjDN+YcI7LM7IWp2hx/A2o0oXF4eS2oXj80dO5cByQkrJht4KrxgVP2lrm84QB 6MpHOHe/8275lMdGw65nknySEO9xVoVHKxyRSwJVpz5nfEfq5ExxHranaI1u2zUQ6Vcw LkMA== X-Gm-Message-State: AOJu0YxwZvcDt8h0bMISgoBp8cVkDSCUt7H5kDR0IiwOhkv5RXQc0KoO fjMVq8SfyY4Y7AIZACD6AnPiuMprkhTIgphBqvJMGQsvg34= X-Received: by 2002:aa7:8e91:0:b0:6da:56cb:d8c8 with SMTP id a17-20020aa78e91000000b006da56cbd8c8mr3068pfr.30.1704829238189; Tue, 09 Jan 2024 11:40:38 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c1:9dd2:23f7:ce7b:cae8:108]) by smtp.gmail.com with ESMTPSA id j18-20020aa78d12000000b006da550512d8sm2026887pfe.126.2024.01.09.11.40.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 11:40:37 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Szabolcs Nagy Subject: [PATCH] math: Fix test-fenv.c feupdateenv tests Date: Tue, 9 Jan 2024 16:40:33 -0300 Message-Id: <20240109194033.909210-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 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 The feupdateenv tests added by 802aef27b2 do not restore the floating point mask, which might keep some floating point exception enabled and thus make the feupdateenv_single_test raise an unexpected signal. Checked on x86_64-linux-gnu and aarch64-linux-gnu (on Apple M1 trapping is supported). Reviewed-by: Szabolcs Nagy --- math/test-fenv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/math/test-fenv.c b/math/test-fenv.c index 9db6789e64..8d39181b14 100644 --- a/math/test-fenv.c +++ b/math/test-fenv.c @@ -659,6 +659,7 @@ static void feupdate_single_test (const char *flag_name, int fe_exc) { feenv_nomask_test (flag_name, fe_exc, feupdateenv); + fesetenv (FE_DFL_ENV); feenv_mask_test (flag_name, fe_exc, feupdateenv); } #endif