From patchwork Thu Jan 18 07:39:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 189026 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp181626dyb; Wed, 17 Jan 2024 23:40:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKKUepC0vdz03VerGMB2IrkCkyNXbg0bgxWatGznw15JPHnfjEzQCw1IzDNYJbPuKT8Dk/ X-Received: by 2002:a81:5ec3:0:b0:5ff:592c:2c8a with SMTP id s186-20020a815ec3000000b005ff592c2c8amr370420ywb.94.1705563634010; Wed, 17 Jan 2024 23:40:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705563633; cv=pass; d=google.com; s=arc-20160816; b=U8ORV7E6ASyXFMz1/TIqYcWcwtluh3s24tcK+DYsdvPuoz1RPy5q0mdv44ETXfBaje 9mBfgXm+s05quQtODZF+lphNk3ycHBTq8FOFtL2SNVYoA39A2HWoOITwEPqeXQMlubCv eaOd0fPS+nt6HYmYfXuxgz54GBqCfby9U11lFt1uRo32c6UQ2VTZKx7tTYFXCsroLuk4 V1bnOQ6M4l120bUhaPPY8R7zUcRWch3PJFfqg2YEIb7YY4x1GhVqD906Uk0VmuK0ovjm cYMmLsCXRA2Ly6zt/Y2hdB+AxxelKWG/Tp8ipmWhlHoMd+kOWTVJKB9bySSHNkVLc8TN exTg== 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-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=bUpxz2PqOYRTe/NNk2V/PmCKOi/129nm29PDunlE44I=; fh=ZT9SsN1l/LxS8OHt2np/WzpnhOjMhkay7F0y69jvDLA=; b=iHAHzbxSIkSbQJ3IsaAZk6NE83asQjbvKGzlt1taizrlqBdNEuQxFWzVR1IowBJyuw pI/RO2Wc4PQhia7O0alsRmaOiXT8q0Zz5SIBYpJB29nAmirOe921DTewjeqbXZiHZ/6C oJCVmpCkGELI+ONsyI5USE/qpUFDNWNbOjxlsOPoFzeTIZZ7Oca0qMFcfeG130+OXtMa JB8wYo/K88H71+z7tmcM0hPKigZAjq2CW/5GrbJZrAMpkOS9D1DzjA51Tev+rLW0ayF9 /oWW3kfoqAqU9/oq68/BLUOWF8Xz2IaPG20xKSY1c1vXSyDsBBVm4wowoodr6ccyv1YD v0/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Vw8rQGgh; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id da34-20020a05620a362200b007833d16dea2si12936628qkb.488.2024.01.17.23.40.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 23:40:33 -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=@redhat.com header.s=mimecast20190719 header.b=Vw8rQGgh; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B26763858409 for ; Thu, 18 Jan 2024 07:40:33 +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 52B613858D33 for ; Thu, 18 Jan 2024 07:39:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 52B613858D33 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 52B613858D33 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=1705563587; cv=none; b=fzrh/3AQWYg5XVfAHZVPEW4JKAlxU5byBxpYS8U3JCmL9hqreurNmrHosk2//GO3qYD11hptytMEi5IuZheIoWj7f6xQnpk888FrZXOiq/B0D0MXCMcmbeAs8mik/OhyHN4AN/DjzEpteNDDIOzp+tmeev+dfGAfeaZP2ca91TM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705563587; c=relaxed/simple; bh=hlKLyq1XFJ4ULSd1+nyarqE257VPOwq0cngPdSAHqE0=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=EovFmMungpXR024Zr7tByHYPwhWMQZF22WjeZ+ttOAPmL5MXf4PQR9bRZnTsDEIp4iOWUhlTQPP7fpwVjvfLeBcsQb38YH85TAyzmjwc0/MHxBUyesgZJBDyJxBa9ug5uOnXl7mduN0PbKgD6r++QABEWpNKWwp5MwEriLgz3uQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705563586; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type; bh=bUpxz2PqOYRTe/NNk2V/PmCKOi/129nm29PDunlE44I=; b=Vw8rQGghzQFIIqxXKWAjZKq29wvwUtRtXagpJARwz+auZCvvgaSxLvUfk8CYbwzS0p+IQv sFpC1eE9cFQijbMW1sxc2OuQ1cHOZweXZguQ+Bmjf0ES7egTBbl0ZPTzUWz3bOHZogQRDw mljzGNjbVWjV+v0eMcZeCYwHQiE9wUA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-410-6-zc5ocDPXWw9OgY_kLqww-1; Thu, 18 Jan 2024 02:39:44 -0500 X-MC-Unique: 6-zc5ocDPXWw9OgY_kLqww-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (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 0F50583B828; Thu, 18 Jan 2024 07:39:44 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B704E40C95AD; Thu, 18 Jan 2024 07:39:43 +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 40I7dewV226860 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 18 Jan 2024 08:39:41 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 40I7ddDx226859; Thu, 18 Jan 2024 08:39:39 +0100 Date: Thu, 18 Jan 2024 08:39:38 +0100 From: Jakub Jelinek To: Richard Biener , Uros Bizjak , Tamar Christina , Roger Sayle Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite: Fix up gcc.target/i386/sse4_1-stv-1.c test [PR113452] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, 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: 1788413092973893159 X-GMAIL-MSGID: 1788413092973893159 Hi! From what I can see, this test has been written for a backend fix and assumes the loop isn't vectorized (at least, it wasn't when the test was added, it contains an early exit), but that is no longer true and because of the vectorization it now contains an instruction which the test scans for not being present. I think we should just disable vectorization here. Regtested on x86_64-linux and i686-linux, ok for trunk? 2024-01-18 Jakub Jelinek PR testsuite/113452 * gcc.target/i386/sse4_1-stv-1.c: Add -fno-tree-vectorize to dg-options. Jakub --- gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c.jj 2022-05-31 11:33:51.603250042 +0200 +++ gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c 2024-01-17 17:46:21.999689350 +0100 @@ -1,5 +1,5 @@ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -msse4.1 -mstv -mno-stackrealign" } */ +/* { dg-options "-O2 -msse4.1 -mstv -mno-stackrealign -fno-tree-vectorize" } */ long long a[1024]; long long b[1024];