Message ID | alpine.DEB.2.20.2307062144220.28892@tpp.orcam.me.uk |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2848254vqx; Thu, 6 Jul 2023 14:36:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEZOebJHb1Cr5vx3ucJoTaYAN4lN2SOU0aHSJ7ZN8sUiGSz4nYumnK3cf3PqoURCS4W+XNe X-Received: by 2002:a17:906:3582:b0:992:5135:4112 with SMTP id o2-20020a170906358200b0099251354112mr2342685ejb.32.1688679399396; Thu, 06 Jul 2023 14:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688679399; cv=none; d=google.com; s=arc-20160816; b=Ut99Dpb++N4W9W8jOMVPQnGeVrpUzmj5p8CrxUO8iZvq5H2WdfUCjboYZ3NfXL19v6 BbSHa565tt8zgmPshyijTRlTTZn1mqMhIwucwdQeUD6LQYAOfFcWZg0k1X7y5jeKFKYj ZvN9INM6y7dVoj1S6EmwBYPu+TfZ65KLfkqDakUrmLrrQLRwAOruoH3RD2NiKnzO7X8g ksviFsz56PDNw/1IWLZgGAMcUBWeC2jp2NckvKuk75VErgWSsuENeUpQPb73RNcUJd+B vzjlYnzzLLgnHl1fH4V4gT7QDNJsjisEh60wJ4SXMhVHBde059KzgbpqbbSk24WQ6m0t irnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:dmarc-filter:delivered-to; bh=7p56ThHUxIKZjUuD3BxjmKmmMFXD71mj6P+gFxu/Kdo=; fh=t3lE6tP4OFFScdyp9Q21zIlkKocPOm4DCGwxv6w9iRc=; b=fCjgCRypwWtL9YlGZ7umGI383sMkdIM8xqJcvVr+0WQwdbSmoCOA+15H2wMxo0tmmB XcVEnbPCNCEOeK168cMgTgBdsomxgn0N+OB3rGLes5z+tgWAy3bML1bKPT4VURYkSchb H1aQJ0vvr6i34fG8EbC7YT/fYcAUt8MKWr69cYEHmtUGzUm+izx6psW6dWaBCIGq3OQB j14GGg+BQKj4JCicdbzOYEuG8u1kX2hzu3+JITjdaim/3mRSwFIxecT9O2mi04ozHyPi YQhhAD4imHkbt7f+hCrzbi0u6If/iS2YuaQ44E87rgD+IgKH4PuIsNcUwPLY7zXme2ne KnZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=XfuyWlpE; 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" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a9-20020a1709064a4900b0098d2f715b89si1108854ejv.102.2023.07.06.14.36.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 14:36:39 -0700 (PDT) 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=@embecosm.com header.s=google header.b=XfuyWlpE; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B1041385E037 for <ouuuleilei@gmail.com>; Thu, 6 Jul 2023 21:36:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 2F5CB3854152 for <gcc-patches@gcc.gnu.org>; Thu, 6 Jul 2023 21:35:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F5CB3854152 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-307d20548adso1195119f8f.0 for <gcc-patches@gcc.gnu.org>; Thu, 06 Jul 2023 14:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1688679357; x=1691271357; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7p56ThHUxIKZjUuD3BxjmKmmMFXD71mj6P+gFxu/Kdo=; b=XfuyWlpEBYO1yoFRBC6IsdWVQaaZtigayEqypgxaIyEwQRbedf/RPDWcXG2kyAsU5t Bj+hEM6C99+wcCuMViaNSI1OaVk+hPLFdjv31MU8X14ZDDQjKZE99gMFkMGg0hH+7u02 3hvh9A1T4K0pm7jLQ1nBlmUngYODVpf3KPLC2cJNrKoQvTX7S/zrvn2jH+3kD5/KHIdT mF8E1Jt9HLxgGi9i0SbS23wiN/sXJ9GJJGTq4Cosmc87BWt8xTuUnx36/CuzehirD20U bHBeNCwc+KVgQSfyfRgLM6+MkqvcZb1ORhrkZ4mVXHekhal46HFbKWAIpmVg0+Esjhjr uPaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688679357; x=1691271357; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7p56ThHUxIKZjUuD3BxjmKmmMFXD71mj6P+gFxu/Kdo=; b=jwNMNsTWaNB+slocu66svdQFNJ4UINU2UWhAqe7kE6fA/obo9GFFTJSOzV8bfGYig5 lhsb2Id0ksHEvVj0OXn2AKliAtlXaUVYf7qm1rpHw2Buio3IEqE+Ax7YZAcD8nOLDKVn ninmiRnMbVnfS9B+Gs+R8sjlKqWqGOefBYlPoFPqInyUDLcQ7iQCtkJ3ix8JgAmPkm+0 CFvdM5QxrAjLGLUPRl1MFc42o1BtU6BTCZMkt75fxtDs3yT3dzDqm6Xa7LNd7rp/ZvVK l1xX24o/1awlWf40bEHN+mfWfIT2VITZIo6zWd+ppz+E0U4U3BUM8iIb185+FJloxLcV tXpw== X-Gm-Message-State: ABy/qLanta4lzAdvteAu0VoaU9mb9Qk5huOZ60U2ewmaLLRdadtrdJ8z N6wdQdtTPS1FS42GlgzaISZuFw== X-Received: by 2002:a5d:62d1:0:b0:314:17cc:31d0 with SMTP id o17-20020a5d62d1000000b0031417cc31d0mr2368043wrv.34.1688679356844; Thu, 06 Jul 2023 14:35:56 -0700 (PDT) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id p5-20020adff205000000b003062b2c5255sm2772772wro.40.2023.07.06.14.35.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2023 14:35:56 -0700 (PDT) Date: Thu, 6 Jul 2023 22:35:54 +0100 (BST) From: "Maciej W. Rozycki" <macro@embecosm.com> To: Rainer Orth <ro@cebitec.uni-bielefeld.de>, Mike Stump <mikestump@comcast.net> cc: gcc-patches@gcc.gnu.org Subject: [PATCH 1/3] testsuite: Add check for vectors of 128 bits being supported In-Reply-To: <alpine.DEB.2.20.2307062118070.28892@tpp.orcam.me.uk> Message-ID: <alpine.DEB.2.20.2307062144220.28892@tpp.orcam.me.uk> References: <alpine.DEB.2.20.2307062118070.28892@tpp.orcam.me.uk> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770708689757537745?= X-GMAIL-MSGID: =?utf-8?q?1770708689757537745?= |
Series |
testsuite: Exclude vector tests for unsupported targets
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Maciej W. Rozycki
July 6, 2023, 9:35 p.m. UTC
Similarly to checks for vectors of 32 bits and 64 bits being supported add one for vectors of 128 bits. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_vect128): New procedure. --- gcc/testsuite/lib/target-supports.exp | 6 ++++++ 1 file changed, 6 insertions(+) gcc-test-effective-target-vect128.diff
Comments
On Thu, Jul 6, 2023 at 11:36 PM Maciej W. Rozycki <macro@embecosm.com> wrote: > > Similarly to checks for vectors of 32 bits and 64 bits being supported > add one for vectors of 128 bits. OK > gcc/testsuite/ > * lib/target-supports.exp (check_effective_target_vect128): New > procedure. > --- > gcc/testsuite/lib/target-supports.exp | 6 ++++++ > 1 file changed, 6 insertions(+) > > gcc-test-effective-target-vect128.diff > Index: gcc/gcc/testsuite/lib/target-supports.exp > =================================================================== > --- gcc.orig/gcc/testsuite/lib/target-supports.exp > +++ gcc/gcc/testsuite/lib/target-supports.exp > @@ -8599,6 +8599,12 @@ proc check_effective_target_vect_variabl > return [expr { [lindex [available_vector_sizes] 0] == 0 }] > } > > +# Return 1 if the target supports vectors of 128 bits. > + > +proc check_effective_target_vect128 { } { > + return [expr { [lsearch -exact [available_vector_sizes] 128] >= 0 }] > +} > + > # Return 1 if the target supports vectors of 64 bits. > > proc check_effective_target_vect64 { } {
On Fri, 7 Jul 2023, Richard Biener wrote: > > Similarly to checks for vectors of 32 bits and 64 bits being supported > > add one for vectors of 128 bits. > > OK Thanks for the review, however this is only needed for 2/3 at this point, so I'll only push it if 2/3 gets a go-ahead (and still needs this change). Maciej
Index: gcc/gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc.orig/gcc/testsuite/lib/target-supports.exp +++ gcc/gcc/testsuite/lib/target-supports.exp @@ -8599,6 +8599,12 @@ proc check_effective_target_vect_variabl return [expr { [lindex [available_vector_sizes] 0] == 0 }] } +# Return 1 if the target supports vectors of 128 bits. + +proc check_effective_target_vect128 { } { + return [expr { [lsearch -exact [available_vector_sizes] 128] >= 0 }] +} + # Return 1 if the target supports vectors of 64 bits. proc check_effective_target_vect64 { } {