From patchwork Sat Mar 4 09:46:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 64188 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp851372wrd; Sat, 4 Mar 2023 01:47:22 -0800 (PST) X-Google-Smtp-Source: AK7set/IOP6CoRXlygVSHEFn8BtYboGRmOFwb8e5Jx+adRTyrsguda8MoYiufRaaOVDAvMBSJSs5 X-Received: by 2002:a17:906:8d86:b0:8b1:22af:b39f with SMTP id ry6-20020a1709068d8600b008b122afb39fmr4760554ejc.13.1677923242578; Sat, 04 Mar 2023 01:47:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677923242; cv=none; d=google.com; s=arc-20160816; b=J2HS2RzxZ3K120Ninl3Hr2xGbdboSjyviDe+2Vu3K4rlCKEAj5ru00R8GH63Pf39K+ HvoxVnd6vA0MhtMVsYqKmmuE6jyzqjhDZeJk0y20k7lTpPCT4fIVFnQJflg3iWYKa1H1 cO3DBQQcurRjcg6+azFvH1nvGae3yPA4CjOhdybZQbOqon8dWoRbvJysaLKFIfu2rP4I QZVTvs80+M9pG8WG3qjy3S0bmBT21MuE2TPsOQMCvJZbo5Y6KOWGLr8Eg08ZalqkrAae aT7jxB5BwujYJsfkZurUjLuf6a3jTgOe5YRTSJw4uidwvP2oPQ3XhEXohmY++3zUHdIK 6OPA== 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 :content-disposition:in-reply-to:mime-version:references:message-id :subject:cc:to:date:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=jt9ojKqVuAs8B75YIIW9IltMDd86bpuZgrS8qibP9Ko=; b=JBdmUOT3YfZHAmCTonm/9LbpdEbmIeE+o5JBAD0msWskTMjvrUaPsjcd9foQIGNLA5 kba47owgHMAI90mueKVZL3IsBJP6ze6X0LE4feQs//+mphK0fdU73uHPsQmLcIc0SKgO YqOvPiCkeBQgLxgAGIjQHYfsjHIovMsCpru+iKoO0k0cbasB6x7fnTc8ddEKqVQ9WNgv BScqCZbWrTjkK91VG34EX8cdNCDVd3d1D8lQI9dVrBH7TQimA8oD3JsDrZRNOuTQ74kY 2ekqkZYhzTs4h/l/wLnSbxkjQb7CUHo7u9Mw/TRvejSaGjEqEXk+w4KNoo4b2N6bZp2A 77hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DiYUDX6j; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x11-20020a170906298b00b008d1305ef060si4676472eje.965.2023.03.04.01.47.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 01:47:22 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DiYUDX6j; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 5BC043857803 for ; Sat, 4 Mar 2023 09:47:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BC043857803 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677923241; bh=jt9ojKqVuAs8B75YIIW9IltMDd86bpuZgrS8qibP9Ko=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=DiYUDX6jmxLXXVmeXZeUt1hditbGfhMtywOxXCuWEzcvTMT3ehu8PuxoVFoiuZIpD w2p/2plNBMtkJ/tggrUzhnf8J0gKZZYsE/4zsOnp/iPBMoU42iZbqofc//oNe+00zR uEh5wgGpdAB0YHtBcc9S2GfkxYMdf3zg/p69YHvQ= 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 830F53858D28 for ; Sat, 4 Mar 2023 09:46:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 830F53858D28 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-510-wp0ie-QnOmqBNj_EdJMFsQ-1; Sat, 04 Mar 2023 04:46:36 -0500 X-MC-Unique: wp0ie-QnOmqBNj_EdJMFsQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 67617802C18; Sat, 4 Mar 2023 09:46:36 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 275692026D76; Sat, 4 Mar 2023 09:46:36 +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 3249kSrR465661 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 4 Mar 2023 10:46:34 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3249kR9C465660; Sat, 4 Mar 2023 10:46:27 +0100 Date: Sat, 4 Mar 2023 10:46:27 +0100 To: Robin Dapp Cc: GCC Patches , Andreas Krebbel Subject: [committed] testsuite: Fix up syntax errors in scan-tree-dump-times target selectors Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.4 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_H2, SPF_HELO_NONE, SPF_NONE, 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: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek 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?1759430042214212599?= X-GMAIL-MSGID: =?utf-8?q?1759430042214212599?= Hi! On Thu, Mar 02, 2023 at 07:23:32PM +0100, Robin Dapp via Gcc-patches wrote: > this patch changes SLP test expectations. As we only vectorize when no > more than one rgroup is present, no vectorization is performed. This broke the tests, I'm seeing syntax errors: ERROR: gcc.dg/vect/slp-3.c -flto -ffat-lto-objects: error executing dg-final: syntax error in target selector "target ! vect_partial_vectors || vect32 || s390_vx" ERROR: gcc.dg/vect/slp-3.c: error executing dg-final: syntax error in target selector "target ! vect_partial_vectors || vect32 || s390_vx" ERROR: gcc.dg/vect/slp-multitypes-11.c -flto -ffat-lto-objects: error executing dg-final: syntax error in target selector "target vect_unpack && vect_partial_vectors_usage_1 && ! s390_vx" ERROR: gcc.dg/vect/slp-multitypes-11.c: error executing dg-final: syntax error in target selector "target vect_unpack && vect_partial_vectors_usage_1 && ! s390_vx" The following patch fixes those. Tested on x86_64-linux with make check-gcc RUNTESTFLAGS="--target_board=unix\{-m32,-m64\} vect.exp='slp-3.c slp-multitypes-11.c'" and committed to trunk as obvious. 2023-03-04 Jakub Jelinek * gcc.dg/vect/slp-3.c: Fix up syntax errors in scan-tree-dump-times target selectors. * gcc.dg/vect/slp-multitypes-11.c: Likewise. Jakub --- gcc/testsuite/gcc.dg/vect/slp-3.c.jj 2023-03-03 16:08:17.707264399 +0100 +++ gcc/testsuite/gcc.dg/vect/slp-3.c 2023-03-04 10:35:04.670752344 +0100 @@ -141,8 +141,7 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { target { ! { vect_partial_vectors || vect32 } || s390_vx } } } } */ -/* { dg-final { scan-tree-dump-times "vectorized 4 loops" 1 "vect" { target { vect_partial_vectors || vect32 } && { ! s390_vx } } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "vect" { target { ! { vect_partial_vectors || vect32 } || s390_vx } } } }*/ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { target { { ! { vect_partial_vectors || vect32 } } || s390_vx } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 4 loops" 1 "vect" { target { { vect_partial_vectors || vect32 } && { ! s390_vx } } } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "vect" { target { { ! { vect_partial_vectors || vect32 } } || s390_vx } } } } */ /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 4 "vect" { target { vect_partial_vectors || vect32 } && { ! s390_vx } } } } */ - --- gcc/testsuite/gcc.dg/vect/slp-multitypes-11.c.jj 2023-03-03 16:08:17.707264399 +0100 +++ gcc/testsuite/gcc.dg/vect/slp-multitypes-11.c 2023-03-04 10:39:39.195748813 +0100 @@ -50,6 +50,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_unpack } } } */ /* The epilogues are vectorized using partial vectors. */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_unpack && { {! vect_partial_vectors_usage_1 } || s390_vx } } xfail { vect_variable_length && vect_load_lanes } } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target { vect_unpack && vect_partial_vectors_usage_1 && { ! s390_vx } } xfail { vect_variable_length && vect_load_lanes } } } } */ - +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_unpack && { { ! vect_partial_vectors_usage_1 } || s390_vx } } xfail { vect_variable_length && vect_load_lanes } } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target { { vect_unpack && vect_partial_vectors_usage_1 } && { ! s390_vx } } xfail { vect_variable_length && vect_load_lanes } } } } */