From patchwork Wed Nov 8 15:55:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 163095 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp1005198vqo; Wed, 8 Nov 2023 07:56:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHd4ed4F4SaVTj5nlYzFYv2RWsqkP/kPLcie7zMHzKKC9gBFbSbU8mqOVCLzYpjWz3qfpu2 X-Received: by 2002:a05:620a:4304:b0:775:9c23:1da9 with SMTP id u4-20020a05620a430400b007759c231da9mr1929014qko.49.1699458966919; Wed, 08 Nov 2023 07:56:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699458966; cv=pass; d=google.com; s=arc-20160816; b=THCdKVcpT3Jx3o8X5QO4CyYb6Hes+SbCA6r+X7GXm0HDIfWRo+FOn8uYYj1ZNHgNmM zFuFcmDL6SDN8hxfDl4OxCvkaJUHbCtRjFGcdhnj7J0w1sCqz1xlYVGODNAWSgLIpbFW HcVtHyoiitoumpQA+BSi+ptnZ7dOXiJcoBPUYPE4wtsCGyibTpB2iuGCmCuuEUUsn5co BOAnB1E3QAwiSAkA4jXlAthGj1k/xCcS9bHNyRiyd8bQhPMPk30+z3wBEGiXgYrSeYSs WBMzknJYysvpUZSv6glki4s5VzttnCRoahbPXGqKHiXDYGXXt/2dVMSXtDra5jpbOnmW hi5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:organization:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=8NyDJ+h8fgjsHBI4wfIhAW2FPGRlG+b55Cuq1DCNaRU=; fh=O0AWNgiT2/mxAiDz8ccK6QOzXFBCZlQNsrm3ENe/YGc=; b=SXwnparNJHF5eRWpnMrPepzOd0VcOxa/ZZ3JEeXj4XJpbfq88ZkNe6aDY7eSWcbqY2 FHMWc6d0G9Jou5U58gvqOMpui/+PG4YB0y17sT1m1hpZ3sqzjEq7dp2I+t4FpcPffq94 l9Py40g96DG6Dm8a9U8rctQtis7tRFUEXJrCPEgV9fFTEO5g0mPZkclWv+QZC9p7wcyg LcHIOWPsPmfdTXLs4Z1pglcSx6z2t05WrY/C0G62VSy0Ygs4bFP9ZoczPsaDV5Vc/oF+ 0NPIljkoZeUDX2viQAU2n5uFddJ65iJRNKbLkT6aworr2gYlGjbVDizOea7oXRVhlJz3 JVcw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=I0DgnL87; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j17-20020a37ef11000000b007756924fe18si1338136qkk.681.2023.11.08.07.56.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 07:56:06 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=I0DgnL87; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A979F385841E for ; Wed, 8 Nov 2023 15:56:06 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by sourceware.org (Postfix) with ESMTPS id 0B2A53858D37 for ; Wed, 8 Nov 2023 15:55:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0B2A53858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0B2A53858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::112a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699458942; cv=none; b=j/n9Z26LXBZhaw9MD75tceCG7feUHiPAMZKEia2Y7yow/TaShzNYnr2tbSscTYOrPkvVwY3QuBCxSWvxrBjJSgfNvzy1rzqEk7rLRcOXCd9kN0E+LpLH56QCh5AK0v1KahDuPTIlMIAkcGHPXFJCTOdIeOzDad2pdVhcACcowSA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699458942; c=relaxed/simple; bh=Ok9AI+ZM41MZADWb4l3Gnocw9ey1JHxkp3L/BJXIeFk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QRWkOq/dI029v+mPxxBAeRfN6Ks/8EMbBz6Ye7AyGGSqynGSbripEkliOXUhx63iBpiwNKa87Dk3Pg3LoT/7uCNLJUFg7LFYu5b/S2ULuQ3dKd0PyuzskGadtmNBAwYv2bBfU9cRIdSas6IJE9TkjYHx2PDRPFZXyH+Fr1iM80I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5a7b3d33663so86276567b3.3 for ; Wed, 08 Nov 2023 07:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1699458940; x=1700063740; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=8NyDJ+h8fgjsHBI4wfIhAW2FPGRlG+b55Cuq1DCNaRU=; b=I0DgnL87oj3exN9wKFCDyORT50ZjjEWgBfSdmeNrpiZm5UPmW63GrF5jMOVdO/tisQ +DgjltKpLUgNlHo8vnG9ts59YJlYMhLk9vYnn6NZvnEDd8/KhyrR6CQ8SYVCkh0zzf1H 4GJSGY6uUA5DyGyb0UZlb/f+joX46C/euCeq/DsnHyQ/tvJZJoknHuFGME3oQSglfKLr 0EppeO07naOl/nvi2vJ/Rokmeq8IIJV0GPtzgBQkOQILOYsESVGdlhBPS33UytXWZ32E LaypX/Zi1eV+EAk4pTIgyDgDCRfoVJy+8GxabudhBXgoo/cR7v6nf/J4otJXGY71W5H+ Ziqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699458940; x=1700063740; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8NyDJ+h8fgjsHBI4wfIhAW2FPGRlG+b55Cuq1DCNaRU=; b=u9toyoVVqLBQ8mifDauincQJw714Mqyj8frxcBgi2rOtSVYw76wh6OVD6vjwSR2EvF OpTRZABxYsj1NMtLJljD9zZJZNe8R7ekzBd2BmKuJ3+Ss1srI4jmfqNx1EMny+b71MWG 7sNTAZSQ2/MD/4QimFuLg8MNztupfR5510W3s7qvs2EvLf9PyGwUbat15VGEHO4Ripar 8SdM+sQ6A43xJJ0z/AcjiTxvgMiTTIgpLKW36ziAtiJbEa/isZqI/qNUqxj6M/fnwjL/ CA17dwoCRW/xUE1YI/LQMQChAD0nzDfvbSq81CHMBqcycItCh9kbIMakdNFhY5hhRO3d WhJA== X-Gm-Message-State: AOJu0YwxGjhfO13V6CCcjGPYdL0/oKJdDOefwsC4+Kjkub7pArmf4Wbg wL7+i7qPSZ2SecXFyqZh23jNPmq9PPtBwYvpDB7CPQ== X-Received: by 2002:a0d:eb01:0:b0:59f:4f56:59bc with SMTP id u1-20020a0deb01000000b0059f4f5659bcmr2054180ywe.42.1699458940337; Wed, 08 Nov 2023 07:55:40 -0800 (PST) Received: from free.home ([2804:7f1:2080:e9c8:ff5e:88e8:a900:d7b4]) by smtp.gmail.com with ESMTPSA id p64-20020a819843000000b005a7e6a68f0fsm7025828ywg.25.2023.11.08.07.55.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 07:55:40 -0800 (PST) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 3A8FtTxb2214810 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 8 Nov 2023 12:55:29 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump , Jan Hubicka , Uros Bizjak Subject: [PATCH] testsuite: arg-pushing reqs -mno-accumulate-outgoing-args Organization: Free thinker, does not speak for AdaCore Date: Wed, 08 Nov 2023 12:55:29 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_QUOTING 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782011885795302918 X-GMAIL-MSGID: 1782011885795302918 gcc.target/i386/pr95126-m32-[34].c expect push instructions that are only present with -mno-accumulate-outgoing-args, so make that option explicit rather than dependent on tuning. Regstrapped on x86_64-linux-gnu, also tested with gcc-13 on i686- and x86_64-. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/i386/pr95126-m32-3.c: Add -mno-accumulate-outgoing-args. * gcc.target/i386/pr95126-m32-4.c: Likewise. --- gcc/testsuite/gcc.target/i386/pr95126-m32-3.c | 2 +- gcc/testsuite/gcc.target/i386/pr95126-m32-4.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/pr95126-m32-3.c b/gcc/testsuite/gcc.target/i386/pr95126-m32-3.c index cc2fe9480093b..91608f86206d2 100644 --- a/gcc/testsuite/gcc.target/i386/pr95126-m32-3.c +++ b/gcc/testsuite/gcc.target/i386/pr95126-m32-3.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { ia32 } } } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mno-accumulate-outgoing-args" } */ struct small{ short a; }; diff --git a/gcc/testsuite/gcc.target/i386/pr95126-m32-4.c b/gcc/testsuite/gcc.target/i386/pr95126-m32-4.c index e82933525450c..85b30f69eca3c 100644 --- a/gcc/testsuite/gcc.target/i386/pr95126-m32-4.c +++ b/gcc/testsuite/gcc.target/i386/pr95126-m32-4.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { ia32 } } } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mno-accumulate-outgoing-args" } */ struct small{ short a,b; };