From patchwork Tue Apr 16 03:50:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 1923968 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=TiAdFytv; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VJVSN6HLCz1yYB for ; Tue, 16 Apr 2024 13:50:44 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2A8113858410 for ; Tue, 16 Apr 2024 03:50:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 5EEDC3858D32 for ; Tue, 16 Apr 2024 03:50:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EEDC3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5EEDC3858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::432 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713239425; cv=none; b=oH9NKmDjROmpMenX4SB7APT5YwvyDnJeTqE8ceHw9UNzyzm+Cefl1H+XtVihEhviBWgUxVVu9J81r8zo43r8ZEp5+EzIxqqSrh6vlDOzbEd2gsMiT6vWyOQNO5PONTRA2E6Yrb+fkkH0JkteOWTg3R7jaRglWsFByVMehH4V9Zw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713239425; c=relaxed/simple; bh=SwYk4PFl7S3cPyQFd6vNz1LD6uEsu5/CFJVm3B464lk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Uc39rA6Pa9Se882IWqxNDLIQYpP/ecfqrW7Vz4+o2zG2dNrTYuWmzBruu6/VMstduZVgYDHhoIAuwnGmaPliRXe28V+WAPVAf91t4GAmkmBvab9xVnrDOQhaFoaD2/PGgmi9tatxlU7Ku8S9pWKe8zkLtqfwcxLZ+EFzHvS3wBw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6ecf406551aso3192643b3a.2 for ; Mon, 15 Apr 2024 20:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1713239421; x=1713844221; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=LuWIyUW+XEh2o1Rf43Yeohyo4GwjCcSY1BtdDcwPocA=; b=TiAdFytvOwt2ST4xqWvFcJ00Akjv01REzi8nn+dzlgZU5xtnNoD6hGQnPq6oJejJ1Y chZtj3xO80gKCFlxiKzS/f5nhGVyEYHMu7xa+a6mTVixx0gndj5ir4kH009RJO7U1cZS kiT2aZYOOCbNYxb+dix6MEa+1CadySl1VCyFXyn80omk1CRnkGYiqXAeXfWhO2v1P721 OypEZ3hfYQaBIW1Mkjn8YPPLnRTgAaCdpefVB9YeOw71eF9rLfZ7LZ67UOfsxbxF8enE /8qdOTMjoao7dyPNjF9A9qOjQTACrYZpwzIDlPNLax7hj7WC25X56A2nQQvN56rQGIOw hpiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713239421; x=1713844221; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LuWIyUW+XEh2o1Rf43Yeohyo4GwjCcSY1BtdDcwPocA=; b=rJSz/oZIHBb2VPf/rk+vcPSi7k5V3z+jqOhxbVZEpiu+VVQ9fWdPvt+5qFsVufSbXZ Nm0qMIKWkcaOWRtl8EgPZtfyk9c7UypaIgAsZWm+fBaoJ3w5fWz5cY1kMg7ZdtrO76KP QGk5F7ipvwG2FN7fUXVETc5wSvAzVkiQ2yBFpDqEYxWg5Ci7cSkFV8bwdS9sdHp+8ERR 2AO9TOZudvFMt3t5Dgu5+0IXbCtOJmHLLDdMTJ8q38twmtgnvumykp3MLLJHuGJ7aPRy t8wNCVGSjx76WBipo9ZQLcKZsd3JB4ivnfKmmjewoIz6t1iBU/8BTu9mV4g8cu5U0Xlb RGmQ== X-Gm-Message-State: AOJu0Ywv7HN9u0icZWUFQmuSKLbaBDlsxMFQG9aelhYwvVx5YsECZlav Y7GDHYiFyF8PfLsWgDZ32dEnwoqBcRxb9Azg0gDAV1hcHEC8IZqT+IL051cyIk3dMq0VSna24bL Hew== X-Google-Smtp-Source: AGHT+IFTDtvKt68scWUjT8RpMWTTU0Ui+lMMIdKErTqVaXfq1V73OZZwpCR+MIQKILOPxCcnljHGWw== X-Received: by 2002:a05:6a20:5659:b0:1a7:34c5:d141 with SMTP id is25-20020a056a20565900b001a734c5d141mr10767284pzc.24.1713239421104; Mon, 15 Apr 2024 20:50:21 -0700 (PDT) Received: from free.home ([2804:7f1:218b:5e2:c43b:e0c4:71a:241b]) by smtp.gmail.com with ESMTPSA id n10-20020a170902d2ca00b001d8f81ecea1sm8714633plc.172.2024.04.15.20.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 20:50:20 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 43G3oBdB2388212 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 16 Apr 2024 00:50:11 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump , Nick Clifton , Richard Earnshaw , Ramana Radhakrishnan Subject: [PATCH] [testsuite] [arm] accept empty init for bfloat16 Organization: Free thinker, does not speak for AdaCore Date: Tue, 16 Apr 2024 00:50:11 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_QUOTING 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Complete r13-2205, adjusting an arm-specific test that expects a no-longer-issued error at an empty initializer. Regstrapped on x86_64-linux-gnu. Also tested with gcc-13 on arm-, aarch64-, x86- and x86_64-vxworks7r2. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/arm/bfloat16_scalar_typecheck.c: Accept C23 empty initializers. --- .../gcc.target/arm/bfloat16_scalar_typecheck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c index 8c80c55bc9f4c..04ede93bda152 100644 --- a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c +++ b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c @@ -42,7 +42,7 @@ bfloat16_t footest (bfloat16_t scalar0) short initi_1_4 = glob_bfloat; /* { dg-error {invalid conversion from type 'bfloat16_t'} } */ double initi_1_5 = glob_bfloat; /* { dg-error {invalid conversion from type 'bfloat16_t'} } */ - bfloat16_t scalar2_1 = {}; /* { dg-error {empty scalar initializer} } */ + bfloat16_t scalar2_1 = {}; bfloat16_t scalar2_2 = { glob_bfloat }; bfloat16_t scalar2_3 = { 0 }; /* { dg-error {invalid conversion to type 'bfloat16_t'} } */ bfloat16_t scalar2_4 = { 0.1 }; /* { dg-error {invalid conversion to type 'bfloat16_t'} } */ @@ -94,7 +94,7 @@ bfloat16_t footest (bfloat16_t scalar0) /* Compound literals. */ - (bfloat16_t) {}; /* { dg-error {empty scalar initializer} } */ + (bfloat16_t) {}; (bfloat16_t) { glob_bfloat }; (bfloat16_t) { 0 }; /* { dg-error {invalid conversion to type 'bfloat16_t'} } */ (bfloat16_t) { 0.1 }; /* { dg-error {invalid conversion to type 'bfloat16_t'} } */