From patchwork Tue Dec 12 12:09:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 177289 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7675985vqy; Tue, 12 Dec 2023 04:10:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3GrWsoSItwvav5Zquc1VOIBrvPE43Jz5RbZ9MGy79xKDSTQJOoYBSYfLG9wUeAZpJOqUT X-Received: by 2002:ac8:7fcf:0:b0:423:759e:2b58 with SMTP id b15-20020ac87fcf000000b00423759e2b58mr8863146qtk.4.1702383000373; Tue, 12 Dec 2023 04:10:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702383000; cv=pass; d=google.com; s=arc-20160816; b=mhZXqgb7gOzAvQyL91NSGET994ZNgQCxyr9HCancN9DIPglqq4aNl5yATa66dUgUi3 3BcP6pcR7AIdDwCgGW1htChMmK2VY4REuAMrpEt/mwCA6yWeFCCzWRTxCjrjTrcpzAXn efkNB3Eefe39mUHZLdjJh5eSeyAZogZpWfGTsvVnDxYMNQo2qmSXyM78Q1R3MYaaJTbF 3+OOiKXd8PalS8XfL65VnauF5micFW2t77DwF5ZkD31D8gg1s8Sf6a6BU5wS/553rQy6 Be7fM/6PGycTnMeKsmKvbbzsKr9sNxk9AEMdbkieLd+yZVp+VrWjLBWr8tAFStj40HL3 CLOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-disposition:mime-version:message-id:subject:to:from:date :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=kdAaUSWIeIb7YTWHTrlv2POpE/LIqDPzaKQ2faEniqA=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=u9N5iLFUeJtk2hYP9Sb9giiUU27JEl3uk/LzhYniknpl7mn4eqhg2JPjsyLv9W03NX 2Xw4vRfwQuiwRetzhRepqsFQnPAG3uQtcowlN40PNmidPOSYysBAUhKAkozxa86evCQi yPpyRoUnONAqUMHJ/VACW/GcmvYrM9fO3DQV1bhnbsD3V37l8g4x+qW4mVQG4O6STlwh 8UY9N2L+ifnNxEqpWxhcrrq0NOgiRmiHMdnBg8IeP+RAlHvP7gWAZw5XP0BgqLuP5mzk t2jEfC/MUqV+5l3GQBtQckkhMu3h5ygAy7kdEN6QJs4fJaoKGyUo5zWSFNhfoyabiEQl gA2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Yxlrpkl5; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id kg16-20020a05622a761000b004238a6e25fbsi9843734qtb.77.2023.12.12.04.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:10:00 -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=@redhat.com header.s=mimecast20190719 header.b=Yxlrpkl5; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 224233857C60 for ; Tue, 12 Dec 2023 12:10:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 12B133858C78 for ; Tue, 12 Dec 2023 12:09:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12B133858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 12B133858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702382978; cv=none; b=dzxiAVNTNYKzEMSfLRDz5Dxxo10iO6HBl018fQORWtHPWscH3L2Rb/a5rZq93QbI7L5dQ4jhgg5UJ4yqQk7hEd/yysE2tOOgDGjqKMQOHKOpjklOASiuPVTNGrYA0rIYgoo9BzsP5o17gKDtQ5QZ1CSAKQzvBZ9px8ZjMrwSroE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702382978; c=relaxed/simple; bh=p7HsVTcuUv+TafQU5/LuZL2ve+BFSE6T9y6dFl4LvLU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=FVnu6gr1TzNjYt0dmNHTG0gxna8aciednFY2/WLWWXSx3uyur/74hmtDOLpSRoag11juzRzWixOgpVfVvJ/oQYstYg8GA0W9yDgknJk/2sMv16gS6TLNCB5+B/H3nwBpKCRJNzbvcNifW5J02y5EsuxPClR+m+Mb+Wd6kZ6yaAk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702382967; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kdAaUSWIeIb7YTWHTrlv2POpE/LIqDPzaKQ2faEniqA=; b=Yxlrpkl5rtW4z81B13na9Ygqy/U/3kOZuQ7tSVKQF2D5O3UrleUDmZQBDvmqjM0rKdtd+Y vTd0C9jq9UDpZPdh2YYfRjDslZxR3OT+xCm+QYazv9/DMUbJSdUkwygH7DAeTv2DWAEEMp cvwVE4Eb0ilZzhoYqyR/qA1UbQui4t4= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-296-y4IZLIw5MKe5DZm112sIrQ-1; Tue, 12 Dec 2023 07:09:26 -0500 X-MC-Unique: y4IZLIw5MKe5DZm112sIrQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 376953C0FC80 for ; Tue, 12 Dec 2023 12:09:26 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ED53F3C25 for ; Tue, 12 Dec 2023 12:09:25 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 3BCC9Nd51726956 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 12 Dec 2023 13:09:23 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3BCC9NSh1726955 for gcc-patches@gcc.gnu.org; Tue, 12 Dec 2023 13:09:23 +0100 Date: Tue, 12 Dec 2023 13:09:22 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up test directive syntax errors Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785077956721515011 X-GMAIL-MSGID: 1785077956721515011 Hi! I've noticed +ERROR: gcc.dg/gomp/pr87887-1.c: syntax error in target selector ".-4" for " dg-warning 13 "unsupported return type ‘struct S’ for ‘simd’ functions" { target aarch64*-*-* } .-4 " +ERROR: gcc.dg/gomp/pr87887-1.c: syntax error in target selector ".-4" for " dg-warning 13 "unsupported return type ‘struct S’ for ‘simd’ functions" { target aarch64*-*-* } .-4 " +ERROR: gcc.dg/gomp/pr89246-1.c: syntax error in target selector ".-4" for " dg-warning 11 "unsupported argument type ‘__int128’ for ‘simd’ functions" { target aarch64*-*-* } .-4 " +ERROR: gcc.dg/gomp/pr89246-1.c: syntax error in target selector ".-4" for " dg-warning 11 "unsupported argument type ‘__int128’ for ‘simd’ functions" { target aarch64*-*-* } .-4 " +ERROR: gcc.dg/gomp/simd-clones-2.c: unmatched open quote in list for " dg-final 19 { scan-tree-dump "_ZGVnN2ua32vl_setArray" "optimized { target aarch64*-*-* } } " +ERROR: gcc.dg/gomp/simd-clones-2.c: unmatched open quote in list for " dg-final 19 { scan-tree-dump "_ZGVnN2ua32vl_setArray" "optimized { target aarch64*-*-* } } " regressions. The following patch fixes those. Tested on x86_64-linux, committed to trunk. 2023-12-12 Jakub Jelinek * gcc.dg/gomp/pr87887-1.c: Add missing comment argument to dg-warning. * gcc.dg/gomp/pr89246-1.c: Likewise. * gcc.dg/gomp/simd-clones-2.c: Add missing " after dump name. Jakub --- gcc/testsuite/gcc.dg/gomp/pr87887-1.c.jj 2023-12-11 23:52:03.761510740 +0100 +++ gcc/testsuite/gcc.dg/gomp/pr87887-1.c 2023-12-12 13:02:14.831706007 +0100 @@ -10,7 +10,7 @@ foo (int x) { return (struct S) { x }; } -/* { dg-warning "unsupported return type ‘struct S’ for ‘simd’ functions" { target aarch64*-*-* } .-4 } */ +/* { dg-warning "unsupported return type ‘struct S’ for ‘simd’ functions" "" { target aarch64*-*-* } .-4 } */ #pragma omp declare simd int @@ -18,7 +18,7 @@ bar (struct S x) { return x.n; } -/* { dg-warning "unsupported argument type ‘struct S’ for ‘simd’ functions" { target aarch64*-*-* } .-4 } */ +/* { dg-warning "unsupported argument type ‘struct S’ for ‘simd’ functions" "" { target aarch64*-*-* } .-4 } */ #pragma omp declare simd uniform (x) int --- gcc/testsuite/gcc.dg/gomp/pr89246-1.c.jj 2023-12-11 23:52:03.768510643 +0100 +++ gcc/testsuite/gcc.dg/gomp/pr89246-1.c 2023-12-12 13:02:37.375394079 +0100 @@ -8,7 +8,7 @@ int foo (__int128 x) { return x; } -/* { dg-warning "unsupported argument type ‘__int128’ for ‘simd’ functions" { target aarch64*-*-* } .-4 } */ +/* { dg-warning "unsupported argument type ‘__int128’ for ‘simd’ functions" "" { target aarch64*-*-* } .-4 } */ #pragma omp declare simd extern int bar (int x); --- gcc/testsuite/gcc.dg/gomp/simd-clones-2.c.jj 2023-12-11 23:52:03.768510643 +0100 +++ gcc/testsuite/gcc.dg/gomp/simd-clones-2.c 2023-12-12 13:03:37.654560017 +0100 @@ -16,12 +16,12 @@ float setArray(float *a, float x, int k) } /* { dg-final { scan-tree-dump {(?n)^__attribute__\(\(omp declare simd \(notinbranch uniform\(0\) aligned\(0:32\) linear\(2:1\)\)\)\)$} "optimized" } } */ -/* { dg-final { scan-tree-dump "_ZGVnN2ua32vl_setArray" "optimized { target aarch64*-*-* } } } */ -/* { dg-final { scan-tree-dump "_ZGVnN4ua32vl_setArray" "optimized { target aarch64*-*-* } } } */ -/* { dg-final { scan-tree-dump "_ZGVnN2vvva32_addit" "optimized { target aarch64*-*-* } } } */ -/* { dg-final { scan-tree-dump "_ZGVnN4vvva32_addit" "optimized { target aarch64*-*-* } } } */ -/* { dg-final { scan-tree-dump "_ZGVnM2vl66u_addit" "optimized { target aarch64*-*-* } } } */ -/* { dg-final { scan-tree-dump "_ZGVnM4vl66u_addit" "optimized { target aarch64*-*-* } } } */ +/* { dg-final { scan-tree-dump "_ZGVnN2ua32vl_setArray" "optimized" { target aarch64*-*-* } } } */ +/* { dg-final { scan-tree-dump "_ZGVnN4ua32vl_setArray" "optimized" { target aarch64*-*-* } } } */ +/* { dg-final { scan-tree-dump "_ZGVnN2vvva32_addit" "optimized" { target aarch64*-*-* } } } */ +/* { dg-final { scan-tree-dump "_ZGVnN4vvva32_addit" "optimized" { target aarch64*-*-* } } } */ +/* { dg-final { scan-tree-dump "_ZGVnM2vl66u_addit" "optimized" { target aarch64*-*-* } } } */ +/* { dg-final { scan-tree-dump "_ZGVnM4vl66u_addit" "optimized" { target aarch64*-*-* } } } */ /* { dg-final { scan-tree-dump "_ZGVbN4ua32vl_setArray" "optimized" { target i?86-*-* x86_64-*-* } } } */ /* { dg-final { scan-tree-dump "_ZGVbN4vvva32_addit" "optimized" { target i?86-*-* x86_64-*-* } } } */