From patchwork Mon Jul 31 13:47:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 795771 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-459375-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="YVPEQUks"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xLgls47rnz9sN7 for ; Mon, 31 Jul 2017 23:48:56 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=MdP2wCDLp0R1gykW4I/+/OgCt7e52 ZEJgV/bh870kkx6y1QPFmDabQVGOH+gslUnoSWKfS02n4RBJD+KrCHJTaDcthjdc YpDqRLO9WwQmhtGBbakfnEGw4QooCqgxW5E/KrtY7pzAYwxBDWt089sS7T+ahpT3 dXGSrHJ/DXss/E= 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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=Zlj89JNy5/QFa8Wm2hhR6p/wx+8=; b=YVP EQUksWR+hxn7GJ1IegIsOcFBDjZ01byBDmuGjmNJWvNpPTTzyF/2SA4f8E9EUvmP rwHxrIPxvp9JzHb9p3k609O75cRQOrrh40lqDNVormmlPSCYFdzpJSoL/R6mzBgU QB589FUBbaLiM5d/59WCVDt4QXgSR98tRZWsv0qY= Received: (qmail 91906 invoked by alias); 31 Jul 2017 13:48:41 -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 90968 invoked by uid 89); 31 Jul 2017 13:48:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mga11.intel.com Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 31 Jul 2017 13:48:04 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jul 2017 06:47:58 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([172.25.70.218]) by orsmga002.jf.intel.com with ESMTP; 31 Jul 2017 06:47:57 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 1000) id A58DFC1BB7; Mon, 31 Jul 2017 06:47:57 -0700 (PDT) Date: Mon, 31 Jul 2017 06:47:57 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: [PATCH] Compile pr79793-[12].c with -mtune=generic Message-ID: <20170731134757.GA16450@gmail.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) pr79793-1.c and pr79793-2.c are failed when GCC is configured with --with-cpu=slm since lea is used to adjust stack, instead of sub/add. This patch uses -mtune=generic to always generate sub and add. OK for trunk? H.J. ---- * gcc.target/i386/pr79793-1.c: Compile with -mtune=generic. * gcc.target/i386/pr79793-2.c: Likewise. --- gcc/testsuite/gcc.target/i386/pr79793-1.c | 2 +- gcc/testsuite/gcc.target/i386/pr79793-2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/pr79793-1.c b/gcc/testsuite/gcc.target/i386/pr79793-1.c index a382fe9c5e2..1cc67a83ba3 100644 --- a/gcc/testsuite/gcc.target/i386/pr79793-1.c +++ b/gcc/testsuite/gcc.target/i386/pr79793-1.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */ -/* { dg-options "-O2 -mgeneral-regs-only" } */ +/* { dg-options "-O2 -mgeneral-regs-only -mtune=generic" } */ void __attribute__ ((interrupt)) diff --git a/gcc/testsuite/gcc.target/i386/pr79793-2.c b/gcc/testsuite/gcc.target/i386/pr79793-2.c index f6ae5aed33a..e1e6463e120 100644 --- a/gcc/testsuite/gcc.target/i386/pr79793-2.c +++ b/gcc/testsuite/gcc.target/i386/pr79793-2.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */ -/* { dg-options "-O2 -mgeneral-regs-only" } */ +/* { dg-options "-O2 -mgeneral-regs-only -mtune=generic" } */ typedef unsigned int uword_t __attribute__ ((mode (__word__)));