From patchwork Fri Jan 27 11:46:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xi Ruoyao X-Patchwork-Id: 49308 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp788807wrn; Fri, 27 Jan 2023 03:47:46 -0800 (PST) X-Google-Smtp-Source: AK7set+G0co47zJYvqQ9GBJ4Rq3b8tgYXtnIXRnsBPxxoMxZZJLENqZgZtqv4jTUKJKB7ky1DY7S X-Received: by 2002:a17:907:77cf:b0:87b:d4e8:5f9a with SMTP id kz15-20020a17090777cf00b0087bd4e85f9amr1509861ejc.50.1674820066390; Fri, 27 Jan 2023 03:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674820066; cv=none; d=google.com; s=arc-20160816; b=F2Xbgm1JbzkGPmmPycarJGyJ6cfIi6DEtdZkJYdZNHyYfLIAl4zNV1pA/3p01L6vyc bI4F62/I08Z+dwaDbMCvRCJdLCSOkHbWFTnPKAJOr8LHO1jdO5xSYcoETVia7uZ1VDFG UB8jcF5eQgO24GJVWmJ05/57JvAINssf9D00nvsc9xLoBqvf+I2Bs5vyvZKYOa4cSIvU hKwm+jX+Ky3Z/yJkVpf9OLMhD+ofXfhsoKjjFjOIwKYN2hqIhBZRvjSyGPUpZ5MkC60T BeSG9C4qYJPBIhNp4F8jNjS10ElUZVuNhJOw0yGJZwqcpvX6znMWGOSr09JyyCNyUlSa w8rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=BrPlohQ/u0q9NlpzWLZxHhfJFQLoA2iqDUMx9AlKUKw=; b=EzxDO1LmnqBvW7UMOd4bOwHVSFrf5HWitLd/6tfS+aZrHRb8HNl//Zgr+XmGSWk887 Atgtk2xPikcwexxyUY29TWBFojFMgJUZN4AOUGhuyzZB3Jbxfw4gn5a2FC2avO8sN5sV 1I+UQ5jnjUGtdT0hQgHPh79/VYE1qXa/vTU/EbUUJhLBkGefJ2qPLh6KwPiFKgKanCsg xp1vtFhI6jjohE2TmpObuVt99H5O9JrRkveYACcb9AJ88vEY3uAcQ4c+WVxWSdkdQEpT 0RzorQt8IEcaqb1TW/IOXr2D0d7dkbeo7AS1OLC4nmzbLirkhyIoiq8bLbp9qs832XcJ RLNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=nPmQnYb0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bf10-20020a170906c50a00b007c31c5206c5si4879217ejb.436.2023.01.27.03.47.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 03:47:46 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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=@gcc.gnu.org header.s=default header.b=nPmQnYb0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6499F38582B0 for ; Fri, 27 Jan 2023 11:47:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6499F38582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674820062; bh=BrPlohQ/u0q9NlpzWLZxHhfJFQLoA2iqDUMx9AlKUKw=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=nPmQnYb0LgOhcpwpMIUcrnaRY0Mz28zfePSy6KWuaE4YgOJmMtbeCUgRJG60YfsTC YpWpn2RjYvsR3UF78CHgeUNNxYNRIARwyOElPkz4o7hcVdmIdVkkyfb5kAsyYVxznC gjgAAI+fITwKEUDBXIEPtT07ktb08nyzgJj9tpUQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 2E0DB3858C74 for ; Fri, 27 Jan 2023 11:46:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E0DB3858C74 Received: from xry111-x57s1.. (unknown [IPv6:240e:358:11ca:f700:dc73:854d:832e:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 0C35E6688D; Fri, 27 Jan 2023 06:46:53 -0500 (EST) To: gcc-patches@gcc.gnu.org Cc: Richard Biener , Jakub Jelinek , Xi Ruoyao Subject: [PATCH] testsuite: Use noipa and noinline attributes for pr95115 test Date: Fri, 27 Jan 2023 19:46:27 +0800 Message-Id: <20230127114627.243812-1-xry111@xry111.site> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP, GIT_PATCH_0, LIKELY_SPAM_FROM, SPF_HELO_PASS, SPF_PASS, TXREP, T_PDS_OTHER_BAD_TLD 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Xi Ruoyao via Gcc-patches From: Xi Ruoyao Reply-To: Xi Ruoyao Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756176126352593741?= X-GMAIL-MSGID: =?utf-8?q?1756176126352593741?= They prevent the compiler from deeming the NaN result "unused" and remove the calculation raising INVALID exception. See the discussion in PR107608 for details. Tested on x86_64-linux-gnu where the change fixes the test failure. Ok for trunk? gcc/testsuite/ChangeLog: * gcc.dg/pr95115.c (x): Add noipa and noinline attributes. --- gcc/testsuite/gcc.dg/pr95115.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr95115.c b/gcc/testsuite/gcc.dg/pr95115.c index 69c4f83250c..11620acccae 100644 --- a/gcc/testsuite/gcc.dg/pr95115.c +++ b/gcc/testsuite/gcc.dg/pr95115.c @@ -6,7 +6,7 @@ #include #include -double +__attribute__ ((noipa, noinline)) double x (void) { double d = __builtin_inf ();