From patchwork Mon Apr 17 09:21:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 84069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1985792vqo; Mon, 17 Apr 2023 02:22:51 -0700 (PDT) X-Google-Smtp-Source: AKy350ZMmV3a6QYSympgwnVxAcY3uz2SS6aZ64eElmBo22mdpkjSgDrrNwSXbPE+tvaFvLR0mfsS X-Received: by 2002:a17:906:b0c7:b0:94e:e97b:c65 with SMTP id bk7-20020a170906b0c700b0094ee97b0c65mr6130838ejb.60.1681723371515; Mon, 17 Apr 2023 02:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681723371; cv=none; d=google.com; s=arc-20160816; b=TEXGlnQxUtUMAoxiwnG1YvZyLFB+qLh9km+QV1FcnoIUPZcrIg+b3fYjWHzhFVvwQ9 AVALCfMUXN+lZbRM+foyK1Bpdz91941lalr6N9iE3x+UC7+vPfTBfqAUqgokk0eaA7QK 4dwL3NWerDoG5uZbTK3JCiFaBncGPbo4+Sy8H1lXsbxFRtvlsy3Ub6N+j7Rr9+za1/Mh eWutYKFpWfQMAE8iVfc2FhsYvLe0cUcYboKpXT95e9kCrB5DZLgGnc/DDinn9VGeIAlE rwhCOrUXCBg2pZADCvGsC1vlSls3imQHuKPTMKGWGNF8iat7xTthbg7DF3gzWQuGXIYH 1tyQ== 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:mime-version:message-id:subject:cc:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=FW+kNtxkVhfQwn2uiEzcdQh/y2X5vuffE6tYQyNDqCA=; b=C7GOTmlnGPEiTKcgJzOj4NZgwf8iTUcYBX1i8KCEAdAjF7rbxIxFS5zHaTppsacjWg q/f0PMHe4SrVuaAsQ3bVCCW/UcHWGoMmaumXxcwew7Vva2W3yt4zA91XxYT9D9yD0U+2 0cXHNnvF8USArsUn0hQGLUZMyGQBq4pN97oghQuSZ37zv6Jry2Jq35ZGDz872DHjsruO aA7VFOzQ1hxUSdNQeuQxx5E4w8XzzF8Aj+wjweZ3nRqa8dUJi/k+gukxxoCoL2Qoo+mA wP5omydPeEvxdE6DrA+VJ0mdmHBeN9J4cQn/pwKjcshoWZO2tY0pRgd0Far9z8oNpcK8 EdSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mlZQPCDn; 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=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id fm23-20020a1709072ad700b0094f7edff33dsi1241075ejc.228.2023.04.17.02.22.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 02:22:51 -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=@gcc.gnu.org header.s=default header.b=mlZQPCDn; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 733A63858428 for ; Mon, 17 Apr 2023 09:22:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 733A63858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681723370; bh=FW+kNtxkVhfQwn2uiEzcdQh/y2X5vuffE6tYQyNDqCA=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=mlZQPCDnPU9YMSPz3LBZykBXBulEwMjZsRZxEGyrze8PmjVSl27HXlyF2UYpECii0 bxJlsjekJSxlCqLPSKqDwhpg6dBZIzTZy4WM2mExk0Kcr47YWrtESxRGDN1xd37N5X WaYRG1nFsyCJKCVHkzsr0Vjjs3lVnOruw3UsRTCA= 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.129.124]) by sourceware.org (Postfix) with ESMTPS id 907583858C2F for ; Mon, 17 Apr 2023 09:22:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 907583858C2F 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-549-ABPcVbvAPumzeIdpdUPiKg-1; Mon, 17 Apr 2023 05:22:01 -0400 X-MC-Unique: ABPcVbvAPumzeIdpdUPiKg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 64435802535; Mon, 17 Apr 2023 09:22:01 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.194.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 034632166B26; Mon, 17 Apr 2023 09:22:00 +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 33H9LwP92372400 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 17 Apr 2023 11:21:58 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 33H9LvM42372399; Mon, 17 Apr 2023 11:21:57 +0200 Date: Mon, 17 Apr 2023 11:21:57 +0200 To: Richard Biener Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite: Fix up vect-simd-clone-1[678]f.c tests some more Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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, 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: , 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?1763414765546916969?= X-GMAIL-MSGID: =?utf-8?q?1763414765546916969?= Hi! With make check-gcc check-g++ -j32 -k RUNTESTFLAGS='--target_board=unix\{-m32,-m32/-mavx,-m32/-mavx512f,-m32/-march=cascadelake,-m64,-m64/-mavx,-m64/-mavx512f,-m64/-march=cascadelake\} vect.exp=vect-simd-clone*' the vect-simd-clone-1[678]f.c tests fail with -m32/-mavx512f and -m32/-march=cascadelake, in that case there are zero matches rather than the 4 expected for ia32. -m64/-mavx512f and -m64/-march=cascadelake works fine though (2 expected matches). So, the following patch just adds -mno-avx512f for x86 non-lp64. Tested on x86_64-linux using the above command, ok for trunk? 2023-04-17 Jakub Jelinek * gcc.dg/vect/vect-simd-clone-16f.c: Add -mno-avx512f for non-lp64 x86. * gcc.dg/vect/vect-simd-clone-17f.c: Likewise. * gcc.dg/vect/vect-simd-clone-18f.c: Likewise. Jakub --- gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c.jj 2023-04-15 12:05:43.728131002 +0200 +++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c 2023-04-17 10:41:16.856503509 +0200 @@ -1,6 +1,7 @@ /* { dg-require-effective-target vect_simd_clones } */ /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ +/* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */ #define TYPE __INT64_TYPE__ #include "vect-simd-clone-16.c" --- gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c.jj 2023-04-15 12:05:43.747130726 +0200 +++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c 2023-04-17 10:41:32.746272142 +0200 @@ -1,6 +1,7 @@ /* { dg-require-effective-target vect_simd_clones } */ /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ +/* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */ #define TYPE __INT64_TYPE__ #include "vect-simd-clone-17.c" --- gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c.jj 2023-04-15 12:05:43.758130566 +0200 +++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c 2023-04-17 10:41:47.555056516 +0200 @@ -1,6 +1,7 @@ /* { dg-require-effective-target vect_simd_clones } */ /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ +/* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */ #define TYPE __INT64_TYPE__ #include "vect-simd-clone-18.c"