From patchwork Tue Nov 22 09:01:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 24216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2087924wrr; Tue, 22 Nov 2022 01:02:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5IkRCjia2NmA30+Q57DDMJ1U/ZGFag+kuAtEvhoCw5NcrXTvPIwSPyRZEw3xHa8U3dU30Z X-Received: by 2002:a17:907:11c5:b0:7b1:316c:38f7 with SMTP id va5-20020a17090711c500b007b1316c38f7mr19468130ejb.387.1669107745967; Tue, 22 Nov 2022 01:02:25 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id xa11-20020a170906fd8b00b0078df2f22f80si7543414ejb.647.2022.11.22.01.02.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 01:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=AQHKna7W; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BC89C3858C50 for ; Tue, 22 Nov 2022 09:02:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC89C3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669107744; bh=JNklkPOHpsZkQd0S9PZ681d1ETqIELXOzaiOGHpQFbc=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=AQHKna7W7Z8pNSsz4Y2wlKmszS3cy57W3UEvaGh6A90yNh2p4CsIgr0qHk6SiHIWW R2pv9Cdwx++ACfeCda3mEszlwP9gMsy21chPxbGfzolvAcrnkD8bbk+dT1brBhNkFN R24wAzQsSYv26OLhBmIde3RodSITCM/+zkbSfb/I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140042.outbound.protection.outlook.com [40.107.14.42]) by sourceware.org (Postfix) with ESMTPS id EF7813858C50 for ; Tue, 22 Nov 2022 09:01:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF7813858C50 Received: from DB6PR0202CA0019.eurprd02.prod.outlook.com (2603:10a6:4:29::29) by GV1PR08MB7684.eurprd08.prod.outlook.com (2603:10a6:150:63::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.17; Tue, 22 Nov 2022 09:01:31 +0000 Received: from DBAEUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:29:cafe::9a) by DB6PR0202CA0019.outlook.office365.com (2603:10a6:4:29::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.11 via Frontend Transport; Tue, 22 Nov 2022 09:01:31 +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 DBAEUR03FT059.mail.protection.outlook.com (100.127.142.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.8 via Frontend Transport; Tue, 22 Nov 2022 09:01:31 +0000 Received: ("Tessian outbound 6c699027a257:v130"); Tue, 22 Nov 2022 09:01:31 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4477de0b563170e8 X-CR-MTA-TID: 64aa7808 Received: from d7348c29fc52.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3FC45E37-13C1-4A29-9DB0-8D32D85CC053.1; Tue, 22 Nov 2022 09:01:24 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d7348c29fc52.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 22 Nov 2022 09:01:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Oa4WrD6M6qYbDQZAVUjKOcO0ej/4URWio0cRU9dtMWSeP6aLejwYlAYCKXgZZiHxy57T0fVAQ7VYS8X6HmCXJgUK+bwJs4s4r26ZxhKwA4oDpWWGU+PTP6sYUcgF+oRWpDMUuDZ11cfcB5lbuLWdmYDJvsZInj+WSXZFq72NJ1SQqnd4jrl5gF2aq4WjY/M4QI+L7jvmkKoKPpdUAFkDGlNpdDAk9FBBnA1P4z8S7/BCjzBtGRxlQ3mocdssB5P0fvtlpHXULo2CHlWpEFCem7+s34T/Ng92FtYZuSL/k5XvnatOIagyc+RpWVFM5uUbzo4RdBeEi76XSYv1NyA7hg== 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=JNklkPOHpsZkQd0S9PZ681d1ETqIELXOzaiOGHpQFbc=; b=hSTCqD9qep65QfiJo4xx2tj2Sf9CZ5uk5KhZTT6CW2xVWiGRYbLhVzSYUX5L2BJcveWisl35O68D6TFTDSmAcuq60U3N5PtFW1ngiTithOBtivxns8n42/w/qmHWvk9Asn9iq7W1UDsQSVqrcmUV1Mqq0tLb1jiHe4EWcRVSRFvYyo5w/NHE5O8k8ZH0uugerx2VN+EtrY0kNAwKnZF2KD8Lg9MiBDFdlK9AKTBErclxQ2HETvPwDEs2uNrEW9iKU1KJz7FDSZki0dqTh851q46UGP+68erKOYwtoJcdh9cftbcfwpIB9aXJPX9oPJBiKB2Nc/qCHGOqwJ88ijYj6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from FR0P281CA0012.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:15::17) by DU0PR08MB8812.eurprd08.prod.outlook.com (2603:10a6:10:47b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.17; Tue, 22 Nov 2022 09:01:21 +0000 Received: from VI1EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:15:cafe::36) by FR0P281CA0012.outlook.office365.com (2603:10a6:d10:15::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.17 via Frontend Transport; Tue, 22 Nov 2022 09:01:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by VI1EUR03FT011.mail.protection.outlook.com (100.127.144.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5834.8 via Frontend Transport; Tue, 22 Nov 2022 09:01:20 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 22 Nov 2022 09:01:20 +0000 Received: from e129018.arm.com (10.57.71.96) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Tue, 22 Nov 2022 09:01:19 +0000 To: CC: Christophe Lyon Subject: [PATCH] aarch64: Fix test_dfp_17.c for big-endian [PR 107604] Date: Tue, 22 Nov 2022 10:01:14 +0100 Message-ID: <20221122090114.38090-1-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: VI1EUR03FT011:EE_|DU0PR08MB8812:EE_|DBAEUR03FT059:EE_|GV1PR08MB7684:EE_ X-MS-Office365-Filtering-Correlation-Id: c270b384-994c-498b-78ad-08dacc68262d 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: ym2bB0dMlD+1SnEUIfgwf2Rg9mSBeLEppB82WHK+mJfbTU2jcMWgw+kWFjfonK+cizanZjfREJVJE/ujiFTDvnAn2Eajnv6YT9OR2Mai4NzbONInTsJdN4NxnNr+K5q6v6X1LKn0TOUEzTKht/cT4TkYF75qB1U2FMJt79nX73Xm8rVbrg7dQaoIv1N0rrpgbnRW0AB+382mbcrrzQ9Cumm01sp+Jbcwn4ouoKXvTk6tkisTJzK14O63Laxnd3YsxlUN8Pd630EcLnt/8xIeegYx7rr2BrG1/XtolDzlRmroQjVouCiuVYT0nu9fZza2zPfub4oRv96k7HSX4TSC8F8fxRJNAk7pWg3zf1t5H925v/msWWtbIgy7dh+G4NSwyQfmNmGGTzqLftNdAQ1qOd7HbBrBDNdc2D7vw5AfizuWMThaYnDotYkkxlGuW/pO7F/SBaAoAYu4vE+5Vos39ltiAeivAxJ04iOPAmvATG897jhxpgPKbZd0XkkMiXF2o+QU6PTy0LZNsAPsxcr4e2EHB//VmvM39d9stkRFPSD52Zcg1hDvGrRJb7KqU8sKwhhIpfoUDNxSjCmBDPmxLotkENrnUrvPQsKW5P934uR/OlmcipYQq3TMJXTusSzx+hFdgZFJTKqMDwaPUKry8T3Y+la6WohEBI0fdHZKQvAwcqigoTFYAeR10h0OFsAHHnbk3PyfD6yv4YngDF+aekFAmLWOhE/pKZMlRHD1DvDnYYoOfE7KHQCd4a8zr6nLeiQWNJren6HT4kbzDpKD+x3hjXCBf+WO1QFCmF51l6A= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(346002)(39860400002)(376002)(136003)(396003)(451199015)(40470700004)(36840700001)(46966006)(36860700001)(6916009)(81166007)(2906002)(8676002)(82740400003)(86362001)(356005)(4326008)(8936002)(41300700001)(70206006)(40480700001)(40460700003)(82310400005)(44832011)(6666004)(7696005)(5660300002)(26005)(186003)(1076003)(47076005)(316002)(70586007)(426003)(478600001)(336012)(2616005)(84970400001)(36756003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8812 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 48262a37-3907-4d6b-c3c2-08dacc681fdd X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yw9KqGdd4Pq4A819Hzgrofct4/fepG4H23/rV0kyQups9YpTJBSe2tK0x5qnQsxwWOMj1mWFs0+rQdcQNZ6p8PPGihKKQ4K4sVseqELzYrBxBsjtv+m2VEnTHM/7IZENuupAJCEEozPkRAyy/GmnRs8l9tp9IB6KRgYdeHcRFeYJLKqFs7ysjT6L97n7PVj2FsW76h13HP17PstTlK48OE/8YglMHZP4Pod9wDXvTqYx1iepbNCmF5BwtCgAoMSyOQ+Bql1uHo0uthcsMuqUPlducvGHG/UnB2mr2TS5Re7Krf89IGKYj/CRzYrqEsjyUo6vmS40q06YJIH8tgMWt+WWRNcy0ALHoBqapPMeV30fEidNZ5B0RlhLtQpov9/kfTiCqlGR9JA4mdghROiCJ6JD9xuPPjz9jgzRUy7lf7jXQIsRNndWWwU6F5jUvRuyciEjAhv2GOfaBCknoy0WLaXlWlR6dQ2c9kdD8xwiyGOENpZ5sxppn9tfaDTDySYm+oLUruOWbKIoBt3folfT/ZnTqsz8013bvgoprVcKNVe/VIxBP1+rqKyXpcG46s4aG8I8lkiXRQKz7ZaTqQsSVdkOFCBA1YTH2pywqtN4UASRx1nBKKgkzwFOodYAM/PwqLPy6qBMHjhbGBGkkleKzM9I/seH9DkIeCVEsdUsOTi+of9V6RpOKSaGKekInagH2NUjeD5WHsVQad7CQwU6+zr3Hy5iXs7dXxyY7a0KABU9XiJ3qWa0bQ8Vwh1lY9ljMThsgcEP08Pcwh06jeR1dA== 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:(13230022)(4636009)(376002)(346002)(396003)(39860400002)(136003)(451199015)(46966006)(36840700001)(40470700004)(6916009)(84970400001)(26005)(6666004)(7696005)(2906002)(316002)(426003)(47076005)(2616005)(336012)(86362001)(186003)(40480700001)(4326008)(36860700001)(36756003)(8676002)(70206006)(81166007)(70586007)(82310400005)(8936002)(82740400003)(1076003)(44832011)(478600001)(5660300002)(41300700001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2022 09:01:31.5525 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c270b384-994c-498b-78ad-08dacc68262d 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: DBAEUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7684 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750186324122286047?= X-GMAIL-MSGID: =?utf-8?q?1750186324122286047?= gcc.target/aarch64/aapcs64/test_dfp_17.c has been failing on big-endian, because the _Decimal32 on-stack argument is not padded in the same direction depending on endianness. This patch fixes the testcase so that it expects the argument in the right stack location, similarly to what other tests do in the same directory. gcc/testsuite/ChangeLog: PR target/107604 * gcc.target/aarch64/aapcs64/test_dfp_17.c: Fix for big-endian. --- gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c index 22dc462bf7c..3c45f715cf7 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c @@ -32,6 +32,10 @@ struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd }; ANON(struct z, a, D1) ANON(struct z, b, STACK) ANON(int , 5, W0) +#ifndef __AAPCS64_BIG_ENDIAN__ ANON(_Decimal32, f1, STACK+32) /* Note: no promotion to _Decimal64. */ +#else + ANON(_Decimal32, f1, STACK+36) /* Note: no promotion to _Decimal64. */ +#endif LAST_ANON(_Decimal64, 0.5dd, STACK+40) #endif