From patchwork Thu May 23 07:54:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 1938215 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=jbdcgHf/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VlL761wmqz1ynR for ; Thu, 23 May 2024 17:54:58 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 86AE53858C62 for ; Thu, 23 May 2024 07:54:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 220E73864C5B for ; Thu, 23 May 2024 07:54:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 220E73864C5B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 220E73864C5B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716450877; cv=none; b=G2HFIK5egZ2Av0HTWamlHW9HiE806cQlBJQ1APelbr4AggLoYs49FpAcpe6lDXM/cnn5E5PQ61ILjMD/jLDtDhXk4TR4v8V9AH8lLjbHNboyNHCIZORiMxTxWiGadRhzyi+VfFPAbEYWPSpcQgKEDS5YEckdKSOvIRvTQtPf0Bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716450877; c=relaxed/simple; bh=UOAaWdJx8786OjDnQ1zR4PpK88dgHYpgA74pn67rpx8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Dp2x5IQTZWp8y/kmp+6qFmrmOqQ0chmsepsik+fXGnEUS6sDifeUfz7PFmFjHx3NOziDiaFxbQPWUOVwVb+VMbxEZV1blXdFcTxQNZlKdUsbo5WwC3V+wOXOMZnatnFCkZoicu0MKgAxY8lQ0KHsSpkT/+5OwANm0y4bcmfFyCY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 07F2FBD5D1 for ; Thu, 23 May 2024 09:54:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1716450872; bh=UOAaW dJx8786OjDnQ1zR4PpK88dgHYpgA74pn67rpx8=; b=jbdcgHf/RNoCZdf8IiYvC ukuBMk5ooWAxyxdqJ3S+KWVF3DxnrItjEQoa9wrTxwvMMwqilqRrI/4waysRI+un iAeJh4ax/Gx2Axpdl36szYpfOL7rKuXHXzo0A4Q6nvFvbHLcpNuC5fvlg/KELxkb 8wZnlx4veJ12d7/Q3aPacjsiCggEP5NgjhWjtymJVLHHCbiTns7BM+0VQeg+kQ8O E+ahZSZq5xbi5BwKZwiMQoSSoWvKjE43TcbxgDMLPmjV0xQ6PGkIb8nA2g4E3Li6 jCdKFQmv/bBQbOlnQSLmAXtZTLF1eIkZSXW96TX+VppeljtGqMfMbiWSUHtCHB3B g== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ENycGwlQTQqQ for ; Thu, 23 May 2024 09:54:32 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508551cc.dip0.t-ipconnect.de [80.133.81.204]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 9843BBD379 for ; Thu, 23 May 2024 09:54:32 +0200 (CEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [COMMITTED] testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072] Date: Thu, 23 May 2024 09:54:32 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3789.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org gcc.dg/vect/vect-pr111779.c FAILs on 32 and 64-bit Solaris/SPARC: FAIL: gcc.dg/vect/vect-pr111779.c -flto -ffat-lto-objects scan-tree-dump vect "LOOP VECTORIZED" FAIL: gcc.dg/vect/vect-pr111779.c scan-tree-dump vect "LOOP VECTORIZED" This patch implements Richard's analysis from the PR, skipping the scan-tree-dump part for big-endian targets without vect_shift_char support. Tested on sparc-sun-solaris2.11 and i386-pc-solaris2.11 (32 and 64-bit each). Committed to trunk as pre-approved in the PR. Rainer # HG changeset patch # Parent 1f3d09b9a831993fdfb155ebf7a4e540201d9f76 testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072] diff --git a/gcc/testsuite/gcc.dg/vect/vect-pr111779.c b/gcc/testsuite/gcc.dg/vect/vect-pr111779.c --- a/gcc/testsuite/gcc.dg/vect/vect-pr111779.c +++ b/gcc/testsuite/gcc.dg/vect/vect-pr111779.c @@ -53,4 +53,4 @@ main () return 0; } -/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target vect_int } } } */ +/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { vect_int && { le || { be && vect_shift_char } } } } } } */