From patchwork Thu Nov 30 10:15:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 81006 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7553F3857828 for ; Thu, 30 Nov 2023 10:16:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 74B0C385840E for ; Thu, 30 Nov 2023 10:15:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 74B0C385840E 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 74B0C385840E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701339360; cv=none; b=m7B8BX/SkE2gOOlxiCEAUqtuST93vDES4lioT9Bbu6ja1v0iLj1h0jKCYiU0tMKjz9iOrg/6nklPWcnJSMy4lipxCoHKIb+70IMZKTERomxnxpn/ZA2eilJqUbfmsrd7LV/ofCF2CN5HLJlyWALlirevSudBOM5yqHH2bq/M3d8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701339360; c=relaxed/simple; bh=EShCSS805P2rYj4rH8G8HaQkQEItTCXVxEHfNzURZzQ=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=EJNkbuu/WG8MhieUkTc3lTTxCZVW40qe2U2kn9Wxns5F7cNy84ajZDbOkvLe2nBhUFhBYkax6sHic0m2KPsy+mAv+iHpx4kwpmdHgc6OLEUv8yr7NktbOAvDF0mquLFmh6Z1zJFZA1ocEHv3Mt4aOkkESncWLLsrtz4X0W1oXec= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6d812988394so435682a34.3 for ; Thu, 30 Nov 2023 02:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701339354; x=1701944154; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dQPNa03Y0/+17MeDew8C6xrGG9vtQeaNOAXYqrXwovY=; b=NiHteIp2260FLlFyKCmnhc25IHWH+lGVyoKuT5e/ESc1YfqRnm67yulSG//IdFMhDT yxHxgtr5QDPlDrnf8XtlzVPMEfM/Y+OE2sQspZ0UfEIn3MyzeW7dPHNFZADSYUJsZchK Bi5PKJpdgc93yq0BT8KR8J/HHGyGaayO3EzKaoiQYUr7nMWkM5EGH7LDbx+7vrA36m5I KlUcrX7oG3pP4Oo3prjdY2Y7XxjB0ELO9mF8BIuE4mRDWtLAMVKP74BGZlE+opDxKcYw c+N0+5CmbQhIwIukyN62Ci1PiwmoVEDXF3JWPzYuTDgAyvPHMPF0wcOCL1FC9bdeZgOA HFbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701339354; x=1701944154; 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=dQPNa03Y0/+17MeDew8C6xrGG9vtQeaNOAXYqrXwovY=; b=Wbna+w863H8Zdg1vVGFXpLtZPBb1ELcD+gsi8veyoMKhqf7xNOOlESSTFqrfZiNAIm p90Ri+vExo2sc4N8Z1dv8G7XeNdvFn6s7GTZGN1cr+ef+hftQMV0WcfinJNDn5MHskFj DjEUG9a1s4+LDCo3m9VzH55PPJ9XED/72KeLly9t0EGV/eUluoyn5BtYhxmKCsYyjFn9 XOSFzuu6RRa55L/MxoV4aocVSCvzdkYg2j8KhkkFJj+D1gAgxmwSdPUtptG3+H06e3dW 5OpjnLQD/BkC3dYVE1TYaAIH4VaLp7Bx0Pc3BittufwSw3lx+yTbeOeSOApnPMWnDi4O huIA== X-Gm-Message-State: AOJu0YyXAR/Sbx1RcJG1RKf1tuSvC9BnUKWvbr+IC7JcEgoReYqPBPi4 CDIQvnhcZIhTvqNk+2UzcQ/xZAqHpZdkuheKufJERg== X-Google-Smtp-Source: AGHT+IHYsFdzTHKYWqZB9hqFvEPqoQOJAEUcwzHSH4Ft150xOu6INjXR4SyIqAFSQst2PkAKxiQCkA== X-Received: by 2002:a05:6870:2486:b0:1fa:16f3:d0a8 with SMTP id s6-20020a056870248600b001fa16f3d0a8mr21128648oaq.20.1701339353908; Thu, 30 Nov 2023 02:15:53 -0800 (PST) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id na10-20020a0568706c0a00b001fa54ae35e0sm174084oab.12.2023.11.30.02.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 02:15:53 -0800 (PST) From: Christophe Lyon To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com, richard.earnshaw@arm.com, kyrylo.tkachov@arm.com Cc: Christophe Lyon Subject: [PATCH] testsuite/arm: Fix bfloat16_vector_typecheck_[12].c tests Date: Thu, 30 Nov 2023 10:15:45 +0000 Message-Id: <20231130101545.3206213-1-christophe.lyon@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, KAM_SHORT, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org After commit r14-5617-gb8592186611, int32x[24]_t types now use elements of 'long int' type instead of 'int' on arm-eabi (it's still 'int' on arm-linux-gnueabihf). Both are 32-bit types anyway. This patch adjust the two tests so that they optionnally accept 'long ' before 'int' in the expected error message. 2023-11-30 Christophe Lyon gcc/testsuite/ * gcc.target/arm/bfloat16_vector_typecheck_1.c: Update expected error message. * gcc.target/arm/bfloat16_vector_typecheck_2.c: Likewise. --- gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c | 4 ++-- gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c index f3c350b4cfc..470c13125fb 100644 --- a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c +++ b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c @@ -119,9 +119,9 @@ bfloat16x4_t footest (bfloat16x4_t vector0) (bfloat16x4_t) { is_a_short_vec }; /* { dg-error {incompatible types when initializing type '__bf16' using type 'int16x4_t'} } */ (bfloat16x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type '__bf16' using type 'bfloat16x4_t'} } */ - (int32x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type 'int' using type 'bfloat16x4_t'} } */ + (int32x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type '(?:long )?int' using type 'bfloat16x4_t'} } */ (float32x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type 'float' using type 'bfloat16x4_t'} } */ - (int32x2_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type 'int' using type 'bfloat16x4_t'} } */ + (int32x2_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type '(?:long )?int' using type 'bfloat16x4_t'} } */ (float16x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type '__fp16' using type 'bfloat16x4_t'} } */ (int16x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type 'short int' using type 'bfloat16x4_t'} } */ diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c index de0ade52c10..4e0d37907ce 100644 --- a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c +++ b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c @@ -111,7 +111,7 @@ bfloat16x8_t footest (bfloat16x8_t vector0) (bfloat16x8_t) { is_a_short_vec }; /* { dg-error {incompatible types when initializing type '__bf16' using type 'int16x8_t'} } */ (bfloat16x8_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type '__bf16' using type 'bfloat16x8_t'} } */ - (int32x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type 'int' using type 'bfloat16x8_t'} } */ + (int32x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type '(?:long )?int' using type 'bfloat16x8_t'} } */ (float32x4_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type 'float' using type 'bfloat16x8_t'} } */ (int64x2_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type 'long long int' using type 'bfloat16x8_t'} } */ (float16x8_t) { glob_bfloat_vec }; /* { dg-error {incompatible types when initializing type '__fp16' using type 'bfloat16x8_t'} } */