From patchwork Wed Jan 24 09:12:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 1890119 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=hSrnqb+i; 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 4TKdYj0qK6z23dy for ; Wed, 24 Jan 2024 20:14:01 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 170033858C66 for ; Wed, 24 Jan 2024 09:13:59 +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 E32DC3858C36 for ; Wed, 24 Jan 2024 09:12:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E32DC3858C36 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 E32DC3858C36 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=1706087579; cv=none; b=QjaclDz3/mmo/9K7xpWsb5vnCaVxeyFBw0MI+nf4vKLk9zMYbx5UqADPPCAFkAofrBg1XDOda/Pw9WWSsLhz2SWFQS1MRnpnV4vBMkY5gAvWyeAGd9/p1XXXeFDxSTSMjCJJKys0iQg7H+R9QFLeTNd7R4EBHOerCqtg/WFzrZY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706087579; c=relaxed/simple; bh=Z4xFlAKzKupmis+hswyOgdtVzuAqSXXuX/58m/IsVyA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rPTFxAc/21FoYsARy6mBq0n5O9MHIdXWzcxT+7zTfzrxi6dTAhXEBn3FmLLHw/VVtPE6pETRD9HaFUig0hQnL3TX+zLgc/WwhaDl6RMyi6YqIkDtMytEAqdtKk9UGBH5ItOegNFKjQVwL4fqJaOLDDblvhViF+4n1eXLMv4lP7A= 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 06054AB420; Wed, 24 Jan 2024 10:12:56 +0100 (CET) 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=1706087575; bh=Z4xFl AKzKupmis+hswyOgdtVzuAqSXXuX/58m/IsVyA=; b=hSrnqb+iuIURktukHdxzr 576zWCmRJWho7lUAC1JlmYZl+gTNJaIqn1aKvQBPSrzfdILtryHY2dRJ8/wUDeTU 2wR3XDxBngJNvrF6K58uv5Ud8mMhIbF66yTeP3aZLLpZLzzUx5uSVbxvpAWrXGOs iPAvzXFyQth1tR8ReOfiMbHCBtGgw+qV79O8SY/l7nwjd2rOBByZ58Edpigo2JNj nVckDR4ghSXX0OSoQPdxqC8cTIxkgJq6XZeFV4f4p7kt5wzLI3kLEg17XlwZqCic 4GLB5vUIYbkiX/TtgTbV6zKaohpv/3z2u/tnczhYhWz9UXcVbflXyEhOL01SWu8a 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 vQXIdmuanRP0; Wed, 24 Jan 2024 10:12:55 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p5085539e.dip0.t-ipconnect.de [80.133.83.158]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id A216AAAF69; Wed, 24 Jan 2024 10:12:55 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Roger Sayle Subject: [PATCH] testsuite: i386: Fix gcc.target/i386/avx512vl-stv-rotatedi-1.c on 32-bit Solaris/x86 Date: Wed, 24 Jan 2024 10:12:55 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3791.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, 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.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.target/i386/avx512vl-stv-rotatedi-1.c FAILs on 32-bit Solaris/x86 since its introduction in commit 4814b63c3c2326cb5d7baa63882da60ac011bd97 Author: Roger Sayle Date: Mon Jul 10 09:04:29 2023 +0100 i386: Add AVX512 support for STV of SI/DImode rotation by constant. FAIL: gcc.target/i386/avx512vl-stv-rotatedi-1.c scan-assembler-times vpro[lr]q 29 While the test depends on -mstv, 32-bit Solaris/x86 defaults to -mstackrealign which is incompatible. The patch thus specifies -mstv -mno-stackrealign explicitly. Tested on i386-pc-solaris2.11 and i686-pc-linux-gnu. Ok for trunk? Rainer # HG changeset patch # Parent b787665f90dfbd5be1b00d411675d6fd896f7a9a testsuite: i386: Fix gcc.target/i386/avx512vl-stv-rotatedi-1.c on 32-bit Solaris/x86 diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-stv-rotatedi-1.c b/gcc/testsuite/gcc.target/i386/avx512vl-stv-rotatedi-1.c --- a/gcc/testsuite/gcc.target/i386/avx512vl-stv-rotatedi-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512vl-stv-rotatedi-1.c @@ -1,5 +1,5 @@ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -mavx512vl" } */ +/* { dg-options "-O2 -mavx512vl -mstv -mno-stackrealign" } */ unsigned long long rot1(unsigned long long x) { return (x>>1) | (x<<63); } unsigned long long rot2(unsigned long long x) { return (x>>2) | (x<<62); }