From patchwork Thu Nov 16 18:07:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Coplan X-Patchwork-Id: 1864867 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=8vQUDRna; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=8vQUDRna; 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 4SWSgZ6xWPz1yS1 for ; Fri, 17 Nov 2023 05:07:54 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 83E1E383A606 for ; Thu, 16 Nov 2023 18:07:52 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2041.outbound.protection.outlook.com [40.107.104.41]) by sourceware.org (Postfix) with ESMTPS id DBF18383E71E for ; Thu, 16 Nov 2023 18:07:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DBF18383E71E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DBF18383E71E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.104.41 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1700158061; cv=pass; b=eL7JvSpV68cQELgx9mu5Upisg5ec7pFQ1agRGxVTM+dHPpi2KTAKfwYBc13EuOr+L2kvdNJ/CkUot6kd1BBlqZZJnXmw645aT+YY2AShF9Utf4A+ipRtOVjEwuSuhufkjargxrSJ08FEWRuNZY50qmKcDRXBFkwLdponvCMnD0c= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1700158061; c=relaxed/simple; bh=J7BbB+8CSgWeyDk95am6fyDn2ZTUlP6exfb+SqqE4/w=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=gDLmK83FWV9BZdGHSjX+kPJ9S0tChGbkei8NUsdb7E0/KRkzA6ksUBewD2Pvj62FrsrkLy6p0z3HdlmQ0D3ne1aemGSG0lpzpwmKJkgemjIcR8IrCUuvqCFBOPv2PWCqkP9CvO/3phrcwpxAr5trOHjBwtQByQqYuOeJcDJyL4M= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=GZIO5RhL2OlRugrZR1O10CZVoRlpZryqb0FWNtthsci9EvwE+Mnf9Zmp7Lf2Y66yvLv7BppGdbUqGGYCOvzILBC/XY5i/DK1LP6let1uB0t+mjMRDEpVo3FmAQ/JAAhfdRojWcxTEx88vi0weROWSYQJTqTquAKkGrGOmR6BaeieTzrzkOEmAUQmIIQM0mftw8u+2F6cWvGc9TH2xQd1XyaIARIAeQ/FmAeLDZT/q1FDA/gbozMCHTOe8JkEJXGh9+2HZXZ1l1hccZC4Wy+5GWKIUlTaLPvNJuL9uVzKnNJTxcJbMNmLwfiWOxInW7YsOWqSMyrCyPKRDdDxjvwd/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ROIhS7MZ/13Rp1vndjq3sK9s/aOjfxtgIUi6aHRaIpI=; b=dKMKRV4KJ/37WSx4tbGnRhkqnLsM5sKr+Fylqe7p3+F944sudRLiBq1BrbzT2GqK8Sv0uH6xpELqN8PK/ltBKDknohB4tQZcfssHdgzcsxQP81L+F5zLjZiPIiusdi4tZD3ZZ6Y3Rb0I9ZPULAA8oD5Rjh+Mc1UytRGYBygQub1wq4i9TaWHa5h6T6QepGoCHgCI54nLr/ZKS7Pos/EGhXEU+aKdLJGRWElsY2yDP4ERkpnBYagpdGpw6eoeuE7q2VRR0oFRJ0NnidDH0DmwWlfJ5++bv39e/J2VtJuLrqBbF9AGlXL+8EvPlCkqrrqByo26P+/v2EeXwfpptMvGAg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ROIhS7MZ/13Rp1vndjq3sK9s/aOjfxtgIUi6aHRaIpI=; b=8vQUDRnapia7xqkLm/ZHoVtqXxIZpQhWj1i0+2/utlJXyXr9Evr1ZI/rDaSvnAJ6ChM3sdPUYRrXZFBWPSuAwBl4rjGzwwnQ/6k1Urx1DhXGjdwD7Y74MRjAjx8QAkpVDslnt71iAr55iBRJQAAEwjWJAA3HJnqufTi0MznYlQk= Received: from AS9PR06CA0694.eurprd06.prod.outlook.com (2603:10a6:20b:49f::7) by PAVPR08MB9747.eurprd08.prod.outlook.com (2603:10a6:102:31e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.18; Thu, 16 Nov 2023 18:07:37 +0000 Received: from AMS1EPF00000044.eurprd04.prod.outlook.com (2603:10a6:20b:49f:cafe::7c) by AS9PR06CA0694.outlook.office365.com (2603:10a6:20b:49f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.21 via Frontend Transport; Thu, 16 Nov 2023 18:07:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS1EPF00000044.mail.protection.outlook.com (10.167.16.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.20 via Frontend Transport; Thu, 16 Nov 2023 18:07:37 +0000 Received: ("Tessian outbound 8289ea11ec17:v228"); Thu, 16 Nov 2023 18:07:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 39d2571c7df41fcf X-CR-MTA-TID: 64aa7808 Received: from 6ae9a4459328.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B0C56C97-F8FA-4944-B5F2-F82E1E7DFBB5.1; Thu, 16 Nov 2023 18:07:30 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 6ae9a4459328.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 16 Nov 2023 18:07:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oaIU7U3+hjtR1UpYPCctW7e8yeSHJq3btKqE8g5BfG1YlLmSGbp3drCKB2KcNIxGBHm8j/Fd5rmZh6AFfU4/O15XnNijJlrMHoW5o02tpDGJFaQmTDOSfF4xZRdhFZ1n4Teb6nbLiYyqhnLivEZzsdHA7yWkgUcUIg32782LQJCgEnLDTQZe9dQxLnix/JqcJPx2J77nM7ArcwAhevLYpuU22tcFuyVRCQhHOdE3HXZ5z+7I+MbEQcebB9TY0S/p/+Veyv4S9BJ0R0/n+1194QwZabK5GHEC5rkzU5VASDx2/f7cALKYi6K1VVeHlXmf8q33ZLMfVQrEPsmhZ6GFYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ROIhS7MZ/13Rp1vndjq3sK9s/aOjfxtgIUi6aHRaIpI=; b=COIQYwJWoBX6rQdWRmvvIDn3sWvZTUeo9keAwkVjSRuAL6Ja7QSdbrIHF1YtoV6xtTYfOnUHZmRq5KBIlwjHST3jTNoOJPhpm/dkbNGEq5YGhXX8mGWniEMKRZ4emox8sxVP5LF+W3b4AfLmizYtTcm5Qvolu9m2HorQKseMgphV7mHASzIoxstkBtMmsCJ0+L5AyIAngQh1BDglayHC+lX8R7aVglEntdOqJn3Ylrj6s3l19oXkxLVtTCzykpt4K+WFQ7aQo/RwuMy2XZovLCTxfBCIYyebL2G2qjDJ/XL9YJRsFxV/oGj4wMRperL1KEzwR68I9FQ9gQP9aJpTBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ROIhS7MZ/13Rp1vndjq3sK9s/aOjfxtgIUi6aHRaIpI=; b=8vQUDRnapia7xqkLm/ZHoVtqXxIZpQhWj1i0+2/utlJXyXr9Evr1ZI/rDaSvnAJ6ChM3sdPUYRrXZFBWPSuAwBl4rjGzwwnQ/6k1Urx1DhXGjdwD7Y74MRjAjx8QAkpVDslnt71iAr55iBRJQAAEwjWJAA3HJnqufTi0MznYlQk= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from PAWPR08MB8958.eurprd08.prod.outlook.com (2603:10a6:102:33e::15) by GV1PR08MB7378.eurprd08.prod.outlook.com (2603:10a6:150:22::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.21; Thu, 16 Nov 2023 18:07:28 +0000 Received: from PAWPR08MB8958.eurprd08.prod.outlook.com ([fe80::8512:cc10:24d4:1919]) by PAWPR08MB8958.eurprd08.prod.outlook.com ([fe80::8512:cc10:24d4:1919%5]) with mapi id 15.20.6977.029; Thu, 16 Nov 2023 18:07:28 +0000 Date: Thu, 16 Nov 2023 18:07:24 +0000 From: Alex Coplan To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Kyrylo Tkachov Subject: [PATCH 03/11] aarch64, testsuite: Fix up auto-init-padding tests Message-ID: Content-Disposition: inline X-ClientProxiedBy: LO2P123CA0084.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:138::17) To PAWPR08MB8958.eurprd08.prod.outlook.com (2603:10a6:102:33e::15) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: PAWPR08MB8958:EE_|GV1PR08MB7378:EE_|AMS1EPF00000044:EE_|PAVPR08MB9747:EE_ X-MS-Office365-Filtering-Correlation-Id: 623f6309-2669-4304-b6f9-08dbe6ceea80 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: lIeH24LlzRTKkWlwYabWwXW70jtPiuNxE3mVKxf9hwZnB2ga30bo7ZQW4TGJvB8/ZaE+BXWNHV8BKRBqQ0+dz9EmcbEiYzM/Sac3p5Ob3ow8gyRL8L9UD5aI8RYxHB0CfxZxG700Fihbp4af/ZcdIm8ICXNDoH7NhwaWKMEy1ecpndADtWd7yPmPLuV3aELR2pLt96qWR60y4tXcKZWkXEjsDMPagpMGFo07Zou4kQsHRuPOM+3hu+IR62jC34mGerkwzM2D6GheDMmrpsPliRHRQarmLAyPHk7r0U7HqZ/rEyj6UzuRsNEjlzSutOldPyUTWHNmT2OP+SubvRf/o5sTA9H9z0kEMTfRXPt5/bFoq/Qfw/j0wX3Sl9r/xKwW8M5HBJ7lc44pNSt9lyQd8pNtOolCivpvi7uBOrOpC870s0ktC32lxUHlEEXYOifM4uRYEbR9sYggovMB/i0Wfc276uPrUhYi+GMT9ueo7CMTWO8DFXVdq1QCHeFJd0cTS+n60Oat0E74mpoE2p3EBNcrlHoOh97kcC55SOAa54De+vXZx208yBchEgJdMTlUEJFduqOgBbw7Eu0ZhjdiNDv9nqxCTiaZNMZ2/RPbh/dH9b8L3bsrOWuEqOaW4AQjwxZ6UfEILz2wBzvNgcmNgg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAWPR08MB8958.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(136003)(39860400002)(376002)(346002)(396003)(230922051799003)(1800799009)(64100799003)(186009)(451199024)(2906002)(84970400001)(41300700001)(316002)(66476007)(66556008)(54906003)(6916009)(36756003)(8936002)(8676002)(66946007)(4326008)(38100700002)(478600001)(235185007)(5660300002)(44832011)(6486002)(86362001)(83380400001)(26005)(6512007)(2616005)(6666004)(6506007)(44144004)(33964004)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7378 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS1EPF00000044.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 00fede20-7579-4805-c93f-08dbe6cee52e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yCd1l4MQdxC6PN7EvAoN4ywmmPxpf+yo+45TPLPvWnGEpLYDy9y3icVhSen9CXK4vwRn+MNJSGe5re4VtfwH/CJT+ySux3Scpr9wBOq34G/fV0sFpqfVo8Vn8D/0Ox/SZ0qH+LAnogjtLSU8A8ucjaudwzG/SV79BNf/WxuzzrIVx7gEjFFrlg0CRfmB6XLhDLBYtbp2LTZNnLkC7jRjDsEoDsAm8J4TU4ZpMOs6z33ZwE2McLJJrrwyhwLMTzKgvw8F3bcZfZFwyOJ21Broukl3p2J2mqP4KQp7uJJctvigXTNh7UxiZ9Iwi6FxVvocWPdlg1MvE1FUKDWvbDgPEbDnXkXq9D00gFEtWWMb2Q3AXllnrN0g+3FswKZv7p863XPk509ZBQX8maU4e3y8WpEQp4oRHzYYWWtKvdsZWPRGYGHhkT+zI9MqVjQVMC+QAOWQzbCAVnOiCfixcIg1BiIblMpL7ZOzO001iYZm7GcbdayT9Jb8mRDMxTvFfQKtHXv8X4jQQCBtH+bee15Ew8LyJzbOOzJ+35blRpjWgMCXNgZIg0BXa4NZAFBO5RqfdL9wnvqKPVy9mdon36yCmUSM/JaybtLCMkfvUdGzGE80yofQA0CaQOhS2i2fxfY/OTmY56dzPBYw1V/Wa2sgHzhVpmYVFLRMhLQuoxaSdM2ibslOgpIubcdRxmvzYV84D6X/MZsEcI3nhGRevvajr9yf2uYjmsQDscrAG6/w+1MTvN1zM0ujmQLnoV4da61W+1zd+pMLBYH8aeCI9h1R2IHFzGcPCP2hnFvJqgZXfw4= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(4636009)(346002)(376002)(39860400002)(136003)(396003)(230922051799003)(64100799003)(1800799009)(451199024)(186009)(82310400011)(36840700001)(46966006)(40470700004)(82740400003)(40480700001)(44144004)(6512007)(6506007)(6666004)(33964004)(36860700001)(336012)(2616005)(84970400001)(26005)(478600001)(6486002)(86362001)(41300700001)(6916009)(70586007)(70206006)(54906003)(83380400001)(81166007)(356005)(316002)(47076005)(235185007)(44832011)(4326008)(2906002)(8676002)(5660300002)(36756003)(8936002)(40460700003)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2023 18:07:37.4543 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 623f6309-2669-4304-b6f9-08dbe6ceea80 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF00000044.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9747 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_DMARC_NONE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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 The tests currently depending on memcpy lowering forming stps at -O0, but we no longer want to form stps during memcpy lowering, but instead in the load/store pair fusion pass. This patch therefore tweaks affected tests to enable optimizations (-O1), and adjusts the tests to avoid parts of the structures being optimized away where necessary. OK for trunk? gcc/testsuite/ChangeLog: * gcc.target/aarch64/auto-init-padding-1.c: Add -O to options, adjust test to work with optimizations enabled. * gcc.target/aarch64/auto-init-padding-2.c: Add -O to options. * gcc.target/aarch64/auto-init-padding-3.c: Add -O to options, adjust test to work with optimizations enabled. * gcc.target/aarch64/auto-init-padding-4.c: Likewise. * gcc.target/aarch64/auto-init-padding-9.c: Likewise. --- gcc/testsuite/gcc.target/aarch64/auto-init-padding-1.c | 8 +++++--- gcc/testsuite/gcc.target/aarch64/auto-init-padding-2.c | 2 +- gcc/testsuite/gcc.target/aarch64/auto-init-padding-3.c | 7 ++++--- gcc/testsuite/gcc.target/aarch64/auto-init-padding-4.c | 4 ++-- gcc/testsuite/gcc.target/aarch64/auto-init-padding-9.c | 7 ++++--- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-1.c b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-1.c index c747ebdcdf7..7027454dc74 100644 --- a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-1.c +++ b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-1.c @@ -1,17 +1,19 @@ /* Verify zero initialization for structure type automatic variables with padding. */ /* { dg-do compile } */ -/* { dg-options "-ftrivial-auto-var-init=zero" } */ +/* { dg-options "-O -ftrivial-auto-var-init=zero" } */ struct test_aligned { int internal1; long long internal2; } __attribute__ ((aligned(64))); -int foo () +void bar (struct test_aligned *); + +void foo () { struct test_aligned var; - return var.internal1; + bar(&var); } /* { dg-final { scan-assembler-times {stp\tq[0-9]+, q[0-9]+,} 2 } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-2.c b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-2.c index 6e280904da1..d3b6591c9b0 100644 --- a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-2.c +++ b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-2.c @@ -1,7 +1,7 @@ /* Verify pattern initialization for structure type automatic variables with padding. */ /* { dg-do compile } */ -/* { dg-options "-ftrivial-auto-var-init=pattern" } */ +/* { dg-options "-O -ftrivial-auto-var-init=pattern" } */ struct test_aligned { int internal1; diff --git a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-3.c b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-3.c index 9ddea58b468..aad4bb8944f 100644 --- a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-3.c +++ b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-3.c @@ -1,7 +1,7 @@ /* Verify zero initialization for nested structure type automatic variables with padding. */ /* { dg-do compile } */ -/* { dg-options "-ftrivial-auto-var-init=zero" } */ +/* { dg-options "-O -ftrivial-auto-var-init=zero" } */ struct test_aligned { unsigned internal1; @@ -16,11 +16,12 @@ struct test_big_hole { struct test_aligned four; } __attribute__ ((aligned(64))); +void bar (struct test_big_hole *); -int foo () +void foo () { struct test_big_hole var; - return var.four.internal1; + bar (&var); } /* { dg-final { scan-assembler-times {stp\tq[0-9]+, q[0-9]+,} 4 } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-4.c b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-4.c index 75bba82ed34..efd310f054d 100644 --- a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-4.c +++ b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-4.c @@ -1,7 +1,7 @@ /* Verify pattern initialization for nested structure type automatic variables with padding. */ /* { dg-do compile } */ -/* { dg-options "-ftrivial-auto-var-init=pattern" } */ +/* { dg-options "-O -ftrivial-auto-var-init=pattern" } */ struct test_aligned { unsigned internal1; @@ -23,4 +23,4 @@ int foo () return var.four.internal1; } -/* { dg-final { scan-assembler-times {stp\tq[0-9]+, q[0-9]+,} 5 } } */ +/* { dg-final { scan-assembler-times {stp\tq[0-9]+, q[0-9]+,} 4 } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-9.c b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-9.c index 0f1930f813e..64ed8f11fe6 100644 --- a/gcc/testsuite/gcc.target/aarch64/auto-init-padding-9.c +++ b/gcc/testsuite/gcc.target/aarch64/auto-init-padding-9.c @@ -1,7 +1,7 @@ /* Verify zero initialization for array type with structure element with padding. */ /* { dg-do compile } */ -/* { dg-options "-ftrivial-auto-var-init=zero" } */ +/* { dg-options "-O -ftrivial-auto-var-init=zero" } */ struct test_trailing_hole { int one; @@ -11,11 +11,12 @@ struct test_trailing_hole { /* "sizeof(unsigned long) - 1" byte padding hole here. */ }; +void bar (void *); -int foo () +void foo () { struct test_trailing_hole var[10]; - return var[2].four; + bar (var); } /* { dg-final { scan-assembler-times {stp\tq[0-9]+, q[0-9]+,} 5 } } */