From patchwork Wed Dec 7 08:11:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 86985 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp195870qgi; Wed, 7 Dec 2016 00:12:01 -0800 (PST) X-Received: by 10.84.196.164 with SMTP id l33mr145243733pld.150.1481098321780; Wed, 07 Dec 2016 00:12:01 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id e1si23151809pfb.241.2016.12.07.00.12.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 00:12:01 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-443658-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-443658-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-443658-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=MHUQNIb33JxNo4sT+CCGKWZmhc6GBXUTyRvtsa5p1VWBXcpIvH savJ2Et0+YPZLgZxol5dVEO+83U8WkLr2iL5eLvAB8oheOJjfP2e2O2wvCnvaf49 l95APcae8Nd0euiR0sFamDmn1vlG0sgD9icdGb4/PveKTKD4IE/+dwVGI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=d5e5pJKrPtu/EA4pksyZfC74RT4=; b=HrVj0jO/AXe3d1yEbkyD Jf3vGdFPIm/Do1/LkOQKYq/vY8vb26auEtasvKd8Rr21doO6msqaGAUruOwB2Gv+ vConGyYqcEZMV2YXs/JFsEJSh9psbYvCsKZ0zSAyZToyIrg3+I+n7mkKZeEfvshu gIgVivfKNmGWAg9+I6zzDOQ= Received: (qmail 37027 invoked by alias); 7 Dec 2016 08:11:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 37009 invoked by uid 89); 7 Dec 2016 08:11:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_20, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:3097, H*r:LMTP, sk:rocebi, Orth X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Dec 2016 08:11:29 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 4B1883A4; Wed, 7 Dec 2016 09:11:26 +0100 (CET) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iI7LcoqamSxS; Wed, 7 Dec 2016 09:11:23 +0100 (CET) Received: from fuego.CeBiTec.Uni-Bielefeld.DE (p5DCE3021.dip0.t-ipconnect.de [93.206.48.33]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id A16443A3; Wed, 7 Dec 2016 09:11:22 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: [testsuite, i386] Compile gcc.target/i386/pr70322-?.c with -mno-stackrealign Date: Wed, 07 Dec 2016 09:11:21 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes Between 20161202 and 20161205, a couple of testcases started to FAIL on 32-bit Solaris/x86: +FAIL: gcc.target/i386/pr70322-1.c scan-assembler pandn +FAIL: gcc.target/i386/pr70322-2.c scan-assembler pandn +FAIL: gcc.target/i386/pr70322-3.c scan-assembler por +FAIL: gcc.target/i386/pr70322-3.c scan-assembler pxor +FAIL: gcc.target/i386/pr70322-4.c scan-assembler por +FAIL: gcc.target/i386/pr70322-4.c scan-assembler psub This is the same issue as PR target/77483, as is the solution. The following patch implements it. Bootstrapped without regressions on i386-pc-solaris2.12 and x86_64-pc-linux-gnu (both 32 and 64-bit multilibs). Ok for mainline? Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2016-12-06 Rainer Orth * gcc.target/i386/pr70322-1.c: Add -mno-stackrealign to dg-options. * gcc.target/i386/pr70322-2.c: Likewise. * gcc.target/i386/pr70322-3.c: Likewise. * gcc.target/i386/pr70322-4.c: Likewise. # HG changeset patch # Parent 803dbc1539b116e06f7ec76ef3258b07ffa01b80 Compile gcc.target/i386/pr70322-?.c with -mno-stackrealign diff --git a/gcc/testsuite/gcc.target/i386/pr70322-1.c b/gcc/testsuite/gcc.target/i386/pr70322-1.c --- a/gcc/testsuite/gcc.target/i386/pr70322-1.c +++ b/gcc/testsuite/gcc.target/i386/pr70322-1.c @@ -1,6 +1,6 @@ /* PR target/70322 */ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -msse2 -mstv -mbmi" } */ +/* { dg-options "-O2 -msse2 -mstv -mbmi -mno-stackrealign" } */ /* { dg-final { scan-assembler "pandn" } } */ extern long long z; diff --git a/gcc/testsuite/gcc.target/i386/pr70322-2.c b/gcc/testsuite/gcc.target/i386/pr70322-2.c --- a/gcc/testsuite/gcc.target/i386/pr70322-2.c +++ b/gcc/testsuite/gcc.target/i386/pr70322-2.c @@ -1,6 +1,6 @@ /* PR target/70322 */ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -msse2 -mstv -mno-bmi" } */ +/* { dg-options "-O2 -msse2 -mstv -mno-bmi -mno-stackrealign" } */ /* { dg-final { scan-assembler "pandn" } } */ extern long long z; diff --git a/gcc/testsuite/gcc.target/i386/pr70322-3.c b/gcc/testsuite/gcc.target/i386/pr70322-3.c --- a/gcc/testsuite/gcc.target/i386/pr70322-3.c +++ b/gcc/testsuite/gcc.target/i386/pr70322-3.c @@ -1,6 +1,6 @@ /* PR target/70322 */ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -msse2 -mstv" } */ +/* { dg-options "-O2 -msse2 -mstv -mno-stackrealign" } */ /* { dg-final { scan-assembler "pxor" } } */ /* { dg-final { scan-assembler "por" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr70322-4.c b/gcc/testsuite/gcc.target/i386/pr70322-4.c --- a/gcc/testsuite/gcc.target/i386/pr70322-4.c +++ b/gcc/testsuite/gcc.target/i386/pr70322-4.c @@ -1,6 +1,6 @@ /* PR target/70322 */ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -msse2 -mstv" } */ +/* { dg-options "-O2 -msse2 -mstv -mno-stackrealign" } */ /* { dg-final { scan-assembler "psub" } } */ /* { dg-final { scan-assembler "por" } } */