From patchwork Thu Jul 6 21:35:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 116849 Return-Path: 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 (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 ; 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 ; 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 ; 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" To: Rainer Orth , Mike Stump cc: gcc-patches@gcc.gnu.org Subject: [PATCH 1/3] testsuite: Add check for vectors of 128 bits being supported In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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?1770708689757537745?= X-GMAIL-MSGID: =?utf-8?q?1770708689757537745?= 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 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 { } { From patchwork Thu Jul 6 21:36:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 116850 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2848499vqx; Thu, 6 Jul 2023 14:37:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlEEH+QOU4UVtGBhO7a5a6lp2ikiHnRO7vV4OD8PpfFtK6GVy6ZEb2kuBcekaJXygISIPm+7 X-Received: by 2002:a2e:3507:0:b0:2b6:b611:64e9 with SMTP id z7-20020a2e3507000000b002b6b61164e9mr1841886ljz.52.1688679434736; Thu, 06 Jul 2023 14:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688679434; cv=none; d=google.com; s=arc-20160816; b=yrSdJNroP6gwYF+VWQgRMfB7kKqImGG6UZ3QeOXfFw9o7W/5ohjqM4NiYQ4Pe1wQEI 589hyAGTvbILzg+yYUNohHTHpB8EnJrS/2I2gGcz3WISSwLFDGKE+lCw3Ck7r2ZKqoAU 1s71Jm1xmvDYg979bMGxFMSWp1xMaT1emJp2qH8APuM0kvqz6tvbD8jKuFdYrjFsZ8/2 kn8IH8f4Idx6GR7cVkDiU0I0W8hOMB4VBmU5Fe78TwJyABEG+GjlZDFWUyyYbVYCzUNg aPuI8kONBb3SatyqkUHEPSm//L2a02txxQ+sAl3reQOZqdaUf1m3R0nJaRD/jQdNZipK 0djg== 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=EwEikqF28TJFiNhgNE+epdWXNulkKR3KvfIJCtLW8Vs=; fh=t3lE6tP4OFFScdyp9Q21zIlkKocPOm4DCGwxv6w9iRc=; b=I6QYIvqKK7JgpeWSt2UMvlHhH3uCE4ZZc+vTEKl8YadOkD6E3EJTws4ELQG9Kl0QXg Qu7+NTygL7R9qSxxmRHgKPaRRuZZdqHOqZv8pY4HRv/Go67PA51kfvIhfmMYuFFq/Jpj sJ+oYRbEe+xrCGmTJz1qcyKx93GKpLM8lhw8RnMDvbv5Jji1wfk+fCyxkSaKvD3Lxnl4 iRzzeXSRfiWS/VwH7xHyNZlhIo38ckomUjY4nMs9RhAv4MQGAsCwhC4TxFExH1yI5B34 4wFotnOA1/WKs4VidADm57ngJHNYbREPkMbMnP+5mFfmEQomJaek0E0O6iQdfjEIm0It 3ySA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=W6CUTGNm; 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 a22-20020aa7cf16000000b0051de2e74786si1237428edy.266.2023.07.06.14.37.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 14:37:14 -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=W6CUTGNm; 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 72A783855581 for ; Thu, 6 Jul 2023 21:36:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id BB7A13853D3D for ; Thu, 6 Jul 2023 21:36:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB7A13853D3D 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-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b6fbf0c0e2so18047491fa.2 for ; Thu, 06 Jul 2023 14:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1688679376; x=1691271376; 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=EwEikqF28TJFiNhgNE+epdWXNulkKR3KvfIJCtLW8Vs=; b=W6CUTGNmoiRO2C/ljjqMf3yoWmUuzQaLJdELrMU9hzDi5vWnViZmRgaBedDVZpvCp/ 0WPXhmbqATlZl4zPEe+/jaWpSs7Njp1spaH5snSV74R/CKigDd2AmlXWpmPaAvieWKQv 86LQMN0209NKuNao4wpP4KHsr9DcBbLCJKSDJjhKLOM+HlmmXE+5G3NgZUwuzvw3VYcR CK4wsfLTW1SBBUW7w8tYbAMY3renAlTRNxuIqv/iK+sm7CMI6Xyb0vcG4aDN3JkKq2hi mYUX8IgtEFJu1+9PKozTAkFyrZTIxd+6gkcMYxkGeJGoFA6GtTAESFJbUFDn2AgQVgRb wcRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688679376; x=1691271376; 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=EwEikqF28TJFiNhgNE+epdWXNulkKR3KvfIJCtLW8Vs=; b=euvvg9sJk7kI0LvEEs3I8nNEPDDJF3qdyUEDf4rMM7ou0/3zykdyZrM26oKvT2x6vB 25IBvJaXfzBv2oQuAswK7PLj3rhnxwvExE8CgUy3bkRTudKXgKbSTlz0BpaZF+3UMOdw LYreDC87VLI0ACzOAOG8CPB156HiD3OyLP8LhTlGZSr9z3hQKkfgvSgcI60oizmPkIh4 Y1wI9wnp7eOGXNk4btPpxbdbJtmUT2zqr+VZKNXGO0l2jz1icqSb+W0lKBnk8ouWu88w Ik4G0lCf4Hv3vni2AcE1gRXyN9Zm2CR+LKV+PUCyPmR/CxIrZP/0LZ4kDDsCgf2q3iED kn7Q== X-Gm-Message-State: ABy/qLbwH6Rxe8Rscf5hB95Tn11UcOJinYxFtkmjcwef5bhEg5FKzVMh nHThlmqMV0/kfiqCh4nayYSNgw== X-Received: by 2002:a05:6512:2309:b0:4fb:740a:81ae with SMTP id o9-20020a056512230900b004fb740a81aemr2772335lfu.16.1688679376218; Thu, 06 Jul 2023 14:36:16 -0700 (PDT) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id y11-20020a05600c364b00b003f90b9b2c31sm612427wmq.28.2023.07.06.14.36.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2023 14:36:15 -0700 (PDT) Date: Thu, 6 Jul 2023 22:36:12 +0100 (BST) From: "Maciej W. Rozycki" To: Rainer Orth , Mike Stump cc: gcc-patches@gcc.gnu.org Subject: [PATCH 2/3] testsuite: Require 128-bit vectors for bb-slp-pr95839.c In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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: , 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?1770708726710329053?= X-GMAIL-MSGID: =?utf-8?q?1770708726710329053?= The bb-slp-pr95839.c test assumes quad-single float vector support, but some targets only support pairs of floats, causing this test to fail with such targets. Limit this test to targets that support at least 128-bit vectors then, and add a complementing test that can be run with targets that have support for 64-bit vectors only. There is no need to adjust bb-slp-pr95839-2.c as 128 bits are needed even for the smallest vector of doubles, so support is implied by the presence of vectors of doubles. gcc/testsuite/ * gcc.dg/vect/bb-slp-pr95839.c: Limit to `vect128' targets. * gcc.dg/vect/bb-slp-pr95839-v8.c: New test. --- gcc/testsuite/gcc.dg/vect/bb-slp-pr95839-v8.c | 14 ++++++++++++++ gcc/testsuite/gcc.dg/vect/bb-slp-pr95839.c | 1 + 2 files changed, 15 insertions(+) gcc-test-bb-slp-pr95839-vect128.diff Index: gcc/gcc/testsuite/gcc.dg/vect/bb-slp-pr95839-v8.c =================================================================== --- /dev/null +++ gcc/gcc/testsuite/gcc.dg/vect/bb-slp-pr95839-v8.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target vect_float } */ +/* { dg-require-effective-target vect64 } */ +/* { dg-additional-options "-w -Wno-psabi" } */ + +typedef float __attribute__((vector_size(8))) v2f32; + +v2f32 f(v2f32 a, v2f32 b) +{ + /* Check that we vectorize this CTOR without any loads. */ + return (v2f32){a[0] + b[0], a[1] + b[1]}; +} + +/* { dg-final { scan-tree-dump "optimized: basic block" "slp2" } } */ Index: gcc/gcc/testsuite/gcc.dg/vect/bb-slp-pr95839.c =================================================================== --- gcc.orig/gcc/testsuite/gcc.dg/vect/bb-slp-pr95839.c +++ gcc/gcc/testsuite/gcc.dg/vect/bb-slp-pr95839.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_float } */ +/* { dg-require-effective-target vect128 } */ /* { dg-additional-options "-w -Wno-psabi" } */ typedef float __attribute__((vector_size(16))) v4f32; From patchwork Thu Jul 6 21:36:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 116851 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2848698vqx; Thu, 6 Jul 2023 14:37:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlG/9H2dFTAepp++YizrVOL26AO/ADLF/xATToxyOi0Z2G6JvWxeBfjPxFBo0DtrqFOGbsrM X-Received: by 2002:a17:906:5b:b0:974:56aa:6dce with SMTP id 27-20020a170906005b00b0097456aa6dcemr2428074ejg.46.1688679467451; Thu, 06 Jul 2023 14:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688679467; cv=none; d=google.com; s=arc-20160816; b=rjkGqozTuqE22B3vUmgesfIZpjILPyvFGbeQ/r/Ue/Ba0zPvWFcqtQgiHUKhX/ZRQf Yhl0GSKk27eFzHSt0YGAOM3suOIVCFZJEz0Fg4C3FEJnotbETHMdYpu/aSxOsSAEB00M rvEuhk5lNhRw2YLIWqay0OLXiDfUlcIR6MdHJi+rIHAnejy/QXz9RSrnZc6DNK98P/0x wXnGuE37+p3b7RglDOsVyeOeq15w79E3CGH4o9n+fg+98s0kXmjviXlwgJ66QKnMZXZ7 YWItLjFu/Gyrs+oKidi/HV8Tb0oXAUn7aGBtW5B1qXv1kP7Qd/4gl4SyGyWrCfR0y5Cs 9hPQ== 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=FiqhV0JEggauN+ONd/W27P4WCmG/LgThYnDDc4n1TLg=; fh=t3lE6tP4OFFScdyp9Q21zIlkKocPOm4DCGwxv6w9iRc=; b=NAN3M0TP4XVbVvaS8akLi594Xq3GG0Np06oj1OsBZDNd/jzPBs8g+sqb8KQNzq0rVy pUu0Umj2cecL5VfF/LUNc0ZQsXqP+P5GR13lyb8H2zdY+++dqaQ4WtNHMRg+t0dDkVPe 8MLfk2cxtRKYxXWixXSILGSrOHkeHxe6i8tko371UqWKP1ianmMqWpa3XNC4rU9qpHPH Lnq/xjbadexzNhYsGB3ncfbZ+WIAIht+XbgHghzukZvUyoCM30yV9mf7Jrx/8opQr4oo od9V2fyYhHwucZADTyGk/oYYZO4fJuXaw47nGxjB60dPTJXXgqBs8uapB29ld+u361bM KElQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=VP1ImDSf; 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" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e25-20020a170906c01900b0098e3698905fsi1414331ejz.625.2023.07.06.14.37.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 14:37:47 -0700 (PDT) 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=@embecosm.com header.s=google header.b=VP1ImDSf; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9A348385B53C for ; Thu, 6 Jul 2023 21:37:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 91540385DC00 for ; Thu, 6 Jul 2023 21:36:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 91540385DC00 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-x432.google.com with SMTP id ffacd0b85a97d-3143b88faebso1248341f8f.3 for ; Thu, 06 Jul 2023 14:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1688679398; x=1691271398; 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=FiqhV0JEggauN+ONd/W27P4WCmG/LgThYnDDc4n1TLg=; b=VP1ImDSfkprEmX/BhyKX8qVSPU6dmQZhCzKmbFUZJ+uqc1zp9MojXVwcjiskKlDwa5 dtaBCxzbDW1C/JGyAVDg+FiTJ5nTCmhUfrY94fPT7gvfvOFEZzFnzRhOmfHOeXmfO+Fv HZsrx9YSUTcL5j0369eOibaSNXhvtjnh040olbzrvP7IV3itp31v0id57LWnlHBvrJUZ 5r4VpwPrMLCu9A+Ddocc/kwSynsLfDMLyKCS+Uk7KLD/kl6pDt9HO2aymwj6a+vTuiOW Cvr3D/wAdolsIaCK0JrNKV0BAs0s3VW7GdpweEUziUUZAUq6qUDyE0tgGCMoWeqh7ThK GGQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688679398; x=1691271398; 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=FiqhV0JEggauN+ONd/W27P4WCmG/LgThYnDDc4n1TLg=; b=a8faPph2nhwj2PpLkU2scWVNnSKGcwv6h4V4aM8dS8ancK+fVBq+IRJR0Ijabk5/PK oRtFMH+B3sSw+37NoNQdlv4X0sn5h5+X1w8gQCPuyrkv63K6Ux8lzEXqwXb4CliCneq/ erD86uSgO/Tuf2vqXN5fAzpYr5yu0+BfwXcevni0lk4K8LEJK7nUkXCb4YcTMs+lM/jx NRNzHCTD+KU11f1wcecKFljmiJYH+GVqrVPrWWaaxZeYFViR6+bmUahnjXBRlPYSHIEE 2iYSa7iL85xxZDJuF3bo5/SOAvmv5qx3b3YxQv+yrv1ny+f782IIQtob3FFuxkJMVDdF DTUg== X-Gm-Message-State: ABy/qLbS+6fYc+NZWgM05gH+QkAprwvqL4R01axZRFAa+WnRdZcXBj9u oEr3FORr/pxxgaTDq5a382wH0w== X-Received: by 2002:a5d:4d0b:0:b0:313:e20c:b8e0 with SMTP id z11-20020a5d4d0b000000b00313e20cb8e0mr2564104wrt.23.1688679398208; Thu, 06 Jul 2023 14:36:38 -0700 (PDT) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id o5-20020a056000010500b0030c4d8930b1sm2774430wrx.91.2023.07.06.14.36.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2023 14:36:37 -0700 (PDT) Date: Thu, 6 Jul 2023 22:36:32 +0100 (BST) From: "Maciej W. Rozycki" To: Rainer Orth , Mike Stump cc: gcc-patches@gcc.gnu.org Subject: [PATCH 3/3] testsuite: Require vectors of doubles for pr97428.c In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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?1770708760917095588?= X-GMAIL-MSGID: =?utf-8?q?1770708760917095588?= The pr97428.c test assumes support for vectors of doubles, but some targets only support vectors of floats, causing this test to fail with such targets. Limit this test to targets that support vectors of doubles then. gcc/testsuite/ * gcc.dg/vect/pr97428.c: Limit to `vect_double' targets. --- gcc/testsuite/gcc.dg/vect/pr97428.c | 1 + 1 file changed, 1 insertion(+) gcc-test-pr97428-vect-double.diff Index: gcc/gcc/testsuite/gcc.dg/vect/pr97428.c =================================================================== --- gcc.orig/gcc/testsuite/gcc.dg/vect/pr97428.c +++ gcc/gcc/testsuite/gcc.dg/vect/pr97428.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target vect_double } */ typedef struct { double re, im; } dcmlx_t; typedef struct { double re[4], im[4]; } dcmlx4_t;