From patchwork Fri Dec 2 09:34:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 28821 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp735555wrr; Fri, 2 Dec 2022 01:35:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bvSRJRwOTbWWC0Ue9Shnfy/P3z6OW2aHyyJTRaQTIrku8QnEeQ/jThDpO3hZ6IdI90X48 X-Received: by 2002:a17:906:ce49:b0:7bd:2800:9ac6 with SMTP id se9-20020a170906ce4900b007bd28009ac6mr28577744ejb.386.1669973724704; Fri, 02 Dec 2022 01:35:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669973724; cv=none; d=google.com; s=arc-20160816; b=p8pUeVeajtVVzwbe1vdkvTzpKoY6YX8dy4MusMF808MHXwvMp93tg1tGB15Wc5lJzH 22bPwpvHkurDvY2iDpQtj03/pV3qxwYkUdUeMPOfNDxb3LcEHBZZDEXBu61Mu6rgvEgY LL07zxf2MeqBTCdnGHAtOV84iBdcfkc2P0A/nROmjbWuUuW0NBEdQnFhchxHepM8eUj0 cSOc8oRYO8pFuMErFfZ45C5AhprdKyzFaQT4bjo7/qBkGAcuHZIoX11RDiuoDkqPYdKO mGz9g9hHmaaHJEEe3VgVWtQ1jvIN69hga5m/KKyY4uUmiSP2YFBKq8vUM0DcG6Eicy7m h3SQ== 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:mime-version :user-agent:message-id:date:organization:subject:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=Dv8YhH3VKFJiE/uGI6JGfXw85Hn4U2ECmMX771aCvjo=; b=L30t5W3r8EIKuxOV8WPtzekpEnpXhabQV2V3cVPVhgfVefj4s8TkNdzw5dnCJDVaIA ftuqaPPGTXIIXwVMQ6hLiR9UGBpp7Jd8xJpUq+z1PfO9IYbtvBmGScYisZ29lgY7B7+j E5IzHC5PwvS/w18/7oEQqqnHvP2433grGLdrbVcFn/D/V7OCA6PFlBp9lU7s41wd1l5H 1YRWjOG9DiKS8IM/Tm8TvsLSldzr7qW9tSCPe9cCfVVwtgUq5AXqY6mow6x7fpwD/m4m kO2zBrMjUYNOh35J2gw4M+fxG6FqYSngVjLPhb/dWtYj22vOz8aAARKgfnoEw+UGVhnI EjgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yJpoG0lE; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i15-20020a05640242cf00b00469f14100ecsi6351537edc.375.2022.12.02.01.35.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 01:35:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yJpoG0lE; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 AD4083858407 for ; Fri, 2 Dec 2022 09:35:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD4083858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669973723; bh=Dv8YhH3VKFJiE/uGI6JGfXw85Hn4U2ECmMX771aCvjo=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=yJpoG0lELMWNBQxvjQ2TZgwbcp9fztOvymqJw5vJDFBXT7jV/l6Ug1yllGtNbTvC7 AL3wqK6jIzI6L3LHF4+hpigbUVeUCjAN0wk5i3seosR2sRjwpSpIittn1uBGhiyXme SXX81qkHn4zD3gEDwpzmOk8tHufIJmNSdxkGFqLg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from rock.gnat.com (rock.gnat.com [IPv6:2620:20:4000:0:a9e:1ff:fe9b:1d1]) by sourceware.org (Postfix) with ESMTPS id 115D1385840F for ; Fri, 2 Dec 2022 09:34:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 115D1385840F Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C47DE116B25; Fri, 2 Dec 2022 04:34:37 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EDBWG5F1Z6Fx; Fri, 2 Dec 2022 04:34:37 -0500 (EST) Received: from free.home (tron.gnat.com [IPv6:2620:20:4000:0:46a8:42ff:fe0e:e294]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPS id 7BCC8116B12; Fri, 2 Dec 2022 04:34:37 -0500 (EST) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 2B29YUhG1291501 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 2 Dec 2022 06:34:30 -0300 To: gcc-patches@gcc.gnu.org Cc: Nick Clifton , Richard Earnshaw , Ramana Radhakrishnan , Kyrylo Tkachov , Rainer Orth , Mike Stump Subject: [PATCH] [arm] xfail fp-uint64-convert-double tests Organization: Free thinker, does not speak for AdaCore Date: Fri, 02 Dec 2022 06:34:30 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP 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: Alexandre Oliva via Gcc-patches From: Alexandre Oliva Reply-To: Alexandre Oliva 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?1751094368436809122?= X-GMAIL-MSGID: =?utf-8?q?1751094368436809122?= The FP emulation on ARM doesn't take rounding modes into account. The tests require hard_float, but that only tests for calls when adding doubles. There are arm targets that support hardware adds, but that emulate conversions. Regstraped on x86_64-linux-gnu, also tested with crosses to riscv64-elf and arm-eabi. Ok to install? PS: I've pondered changing hard_float instead, but decided that could impact other tests that rely on its current behavior. Then I considered adding a variant of hard_float that tested for conversions, but thought that it was overkill. for gcc/testsuite/ChangeLog * gcc.dg/torture/fp-uint64-convert-double-1.c: Expect fail on arm-*-eabi*. * gcc.dg/torture/fp-uint64-convert-double-2.c: Likewise. --- .../gcc.dg/torture/fp-uint64-convert-double-1.c | 2 +- .../gcc.dg/torture/fp-uint64-convert-double-2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-1.c b/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-1.c index 0c7bf003e93ed..61cfa96374631 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-1.c +++ b/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-1.c @@ -1,5 +1,5 @@ /* PR84407 */ -/* { dg-do run } */ +/* { dg-do run { xfail { arm-*-eabi* } } } */ /* { dg-require-effective-target fenv } */ /* { dg-require-effective-target hard_float } */ /* { dg-additional-options "-frounding-math -fexcess-precision=standard" } */ diff --git a/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-2.c b/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-2.c index ac24b351a46d6..b32b28a329580 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-2.c +++ b/gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-2.c @@ -1,5 +1,5 @@ /* PR84407 */ -/* { dg-do run } */ +/* { dg-do run { xfail { arm-*-eabi* } } } */ /* { dg-require-effective-target fenv } */ /* { dg-require-effective-target hard_float } */ /* { dg-additional-options "-frounding-math" } */