From patchwork Tue Mar 23 14:32:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1457243 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=GRFeCFLE; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F4Ykn6mN0z9sSC for ; Wed, 24 Mar 2021 01:33:21 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 10C233861821; Tue, 23 Mar 2021 14:33:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10C233861821 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1616509981; bh=pZRDYFtoV+PGU2jMLy7Z2PmCHyr7k5hgGviT5smNAC4=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=GRFeCFLEM6hkknjOLDrkezWHX7ZJMb18R/9+KijHGbmXbau1cxMrRBm6sU9RQWrIl aISSMr7aRLpZp12twYxC54Wr5A9ZrL+ZjfEc+1KrwiKRK9pYXJ91WKsdnhndw1gkXl VpIYCs8j7uzEBesygxQWNlZXYTmtpmin2wwBt8uE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id D0FD43850432 for ; Tue, 23 Mar 2021 14:32:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D0FD43850432 Received: by mail-wr1-x42a.google.com with SMTP id x16so20993529wrn.4 for ; Tue, 23 Mar 2021 07:32:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=pZRDYFtoV+PGU2jMLy7Z2PmCHyr7k5hgGviT5smNAC4=; b=nO3LeyzMOqY6YyPCucaPMErD4BDYyogN+P/HWkE6RW2wo8/hlPRuzqHnF6TJ+/hjHd TFCHIz3ZYewDtUjfRE3oN78y3YVS+DNE+lxM8UgtSfj7G3v9GpKa3CW1Ee32cSliGa3f mnngTMHf/VQj0X3iWJ4OYASAsMCu6ROFhcEDmQE4AmSsLScMEbVeBgWZsPqIiNUFQk7y 1LZwAZdSZ8g82RBDIwTAphd3lZDldH0sgYRee5GNKG6eyBUv28NStcgfdarnpSDL26QK ZzBcIB3+bsalnPgemcF+VVVV7j94WG9pLghVfhgGNaYfvyexxLm+qX1UHzFj6nC0kYEX e8yw== X-Gm-Message-State: AOAM5305p2v7MmZ2jkwriAzkFmbp1XRQCFpuudbC/GSiyta9IMOa6XTr eqe35zJpoxYtSal+o8g5jq3gyhVrk7l9aWvt X-Google-Smtp-Source: ABdhPJwvioNA7CitQUKI1xVTBUvYWhDwXb9SfKhwkyah2fLsK6VtD09VQeXQ7OxOlHuP2QWktWnOlw== X-Received: by 2002:a5d:6ccb:: with SMTP id c11mr4383519wrc.122.1616509976418; Tue, 23 Mar 2021 07:32:56 -0700 (PDT) Received: from localhost.localdomain (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id h62sm3312102wmf.37.2021.03.23.07.32.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Mar 2021 07:32:55 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [PATCH 5/8] testsuite/arm: Add arm_hard_ok check in armv8_2-fp16-scalar-2.c Date: Tue, 23 Mar 2021 14:32:47 +0000 Message-Id: <1616509970-26398-6-git-send-email-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616509970-26398-1-git-send-email-christophe.lyon@linaro.org> References: <1616509970-26398-1-git-send-email-christophe.lyon@linaro.org> X-Spam-Status: No, score=-14.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 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" This test relies on -mfloat-abi=hard to pass (otherwise test_mov_imm_[12] directly build the 1.0 fp16 representation via movw r0, #15360 rather than using vmov.f16 s0, #1.0e+0 as expected by scan-assembler-times) Adding the arm_hard_ok check makes the test unsupported eg. on arm-linux-gnueabi instead of reporting a failure. 2021-03-20 Christophe Lyon gcc/testsuite/ * gcc.target/arm/armv8_2-fp16-scalar-2.c: Add arm_hard_ok. --- gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c b/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c index fa4828d..de5adf3 100644 --- a/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c +++ b/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c @@ -1,7 +1,9 @@ /* { dg-do compile } */ +/* { dg-require-effective-target arm_hard_ok } */ /* { dg-require-effective-target arm_v8_2a_fp16_scalar_ok } */ /* { dg-options "-O2 -std=c11" } */ /* { dg-add-options arm_v8_2a_fp16_scalar } */ +/* { dg-additional-options "-mfloat-abi=hard" } */ /* Test compiler use of FP16 instructions. */ #include