From patchwork Tue Oct 17 08:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frager, Neal" X-Patchwork-Id: 734367 Delivered-To: patch@linaro.org Received: by 2002:adf:f0cd:0:b0:32d:baff:b0ca with SMTP id x13csp366578wro; Tue, 17 Oct 2023 01:40:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTkJwAI8s6460CvBzjfwzEXBdWimjmHQLgRX30RgiBhvdNd8nbAUmK3s8l4asCGogojYDC X-Received: by 2002:a05:620a:258a:b0:774:2203:8c56 with SMTP id x10-20020a05620a258a00b0077422038c56mr1823767qko.63.1697532036292; Tue, 17 Oct 2023 01:40:36 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1697532036; cv=pass; d=google.com; s=arc-20160816; b=DcEh4DHVsYCOrk04AKgQ7S6WK/27MWHcwmlaNG+xL0cPRNlKp3bTYvlMINldfivynd 1rOcl6bt556oaSnrQBE0/Im3npfbVF3J0N62U2HxAsywMVeW5nZ+SBP3drIox3OkekJA 3XRZLb6DWTGYYOcVk6LtHT1fgltCpLgujN/iLEFE7KNy1NZAuDcAXdF96hzAsx+/8Yoo n5oC+lEMMZvsZmFFNb4BjXd3mGbIWvV+ZbatlRiOIlw3AdFhu+19TwxGKJDILhgjEnC8 JTLVrDJRi+COUAVEBMw7yn9reZbAR0uZT0PbvFhdiyiq1AY5q/z1gvFgN4zAbE1k1exE lv8g== ARC-Message-Signature: i=3; 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=UY7jGbiW8iDWThTMHeonGBS+Gg18e/Ve6+PBiVmw0E8=; fh=/0ocx1M6cHTR3KB+bGfXUXybkgXfoO1YLoV283rAUaA=; b=jyj5IHrUUpRHOvbzDwybIGWQD5YMf9xMcNlHhldbVCPOEpY+6Xz+ovQXM//p5MKpaO gx/K3C8i12COqUt3t0RM8Mt+fkH+zwINAnVboV7yDkfJ8RjtV6776AZNO1v2lRSLv9fd Xl7ClWdgWniiekDEZKXSUI+sHdqiXxwYYiITpJCiL231yuAe/RzFg5ofT/Y5F6G0xm7B FNW0AmB/9fpY0srRh46J8zJqHQvVUAqHpDWGI0NPvyB0vdrRkVO6lERNRMOqovhiJG2T vjqx37vO6lmocDzCM8MBe4DfCzbblrSnt85SPbsHWgXRaLMsKnLAY2Q/Zl+F/WMs3J0q ehEA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=yEBX58RB; arc=pass (i=2); spf=pass (google.com: domain of binutils-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id u12-20020a05620a084c00b0077411b34541si718956qku.28.2023.10.17.01.40.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 01:40:36 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+patch=linaro.org@sourceware.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=@amd.com header.s=selector1 header.b=yEBX58RB; arc=pass (i=2); spf=pass (google.com: domain of binutils-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E916A3858032 for ; Tue, 17 Oct 2023 08:40:35 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2053.outbound.protection.outlook.com [40.107.237.53]) by sourceware.org (Postfix) with ESMTPS id 373413858408 for ; Tue, 17 Oct 2023 08:40:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 373413858408 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 373413858408 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.237.53 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1697532021; cv=pass; b=VfUKHqvTQDkr7K3GAx5HV0FXw0pDj1YYjUbVNHdDd6m6u4sfdcbVKXuhk4gNsa5fhNvOir4GwLzlC87X/qZjHQbOdZ4GKIrSxoFEFj7KWoK7nzJw3VgBu5rc6Z6p0Nz8dM/QW16ehJ6NPM8/TSa0nN8FibzNDS1YoeBQ1OcVZs8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1697532021; c=relaxed/simple; bh=K+bPyD68suxkbrN2DSx0wypzcxxHDUXAWfySyFozY7o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=a1RI9BvZ7Dmmlo2cEn0hsl8x+ebHOHiD+KNn0sm1y8KbzqfZJ0QEp4f4xfQzFUqSCmden6AKrixp4NveWnRQuRsGa1QWlrSGa5+BfiZWRFVAYUApva+W3OoIJaViNGhG/7IMTBK74dDa3LXQSaS4WO6g3FrFF1qMqW9/hkk5Lss= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HLwu1AK2kBZvvEAUF5a0GEbVL6eai8auB61sh1uf23EABH1swRoMyzGdxKIuDKu1yQ8SgpPB63iGn/lEsAyMgTozwhbIBGq2hj5vrA2gUVItqUwR6kaMrZg80ne4r0zT/sLhqKROQWE9y9G2VoZgUhgZR3K6+DWuPbqpFsX57ZpIKal4mQt+ARIGWoSziYf+IKQvl/UGBugQV067Qmcf6njvCEoJ15pqhm/Q44koMafsjnMEamjsDO+hBEuO5vrYdbKz30YEPcopTO7qnlIZ9qvl8mpv/2xWBKDMIXBHDqeU1T1YZA11Gg4aMxxL/0maiN0grDO73AuJXhh5t3BpSg== 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=UY7jGbiW8iDWThTMHeonGBS+Gg18e/Ve6+PBiVmw0E8=; b=XqdVTalfOvffoYw7frBZzkJtUSG8Y2WzzeWu/0IVaeW8bMSTVhFXs6uwtAAwLKOSRzPPgOggYvxw9avqTE4VMvDeqhavzazRYYERWVkm+EsFoVWg9S7iwZcVdPoiiSiP0qKplc9dCOA6OrtLr75kg5Gq33EhN9JZF2p8B4kRCTqZb5dyddhdfKPuyqBnE3IMLKiPHfudFNJxADA4/VxtJBOR0FckVMmaKLtfj0K7BsDCVf8+U6028f3Hl+z09AscbivmpkT5fJgXpSdSaUCbhFA4AAsUAkFEa+goHVYu/Wn9NUf5VdaeFKcv9qZAicixDJMax2JuNyJrikmL/+3h6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UY7jGbiW8iDWThTMHeonGBS+Gg18e/Ve6+PBiVmw0E8=; b=yEBX58RBOkLaIoIGJpo51JvEV3HpE6Tw1wCs/S0gbitI0b7JolTkHQP/sbp/rKYV2jBbM59BvAcJeqbNCKrB/HWoB89uvT7ge4ILF+uZU0v9LyeUApAnEmMBAnCzdo40xY2Z0xV/Q/C0IaZXxjxT+elKkzuo/veMBndHpkzEz0E= Received: from BL1PR13CA0025.namprd13.prod.outlook.com (2603:10b6:208:256::30) by BY5PR12MB4258.namprd12.prod.outlook.com (2603:10b6:a03:20d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Tue, 17 Oct 2023 08:40:17 +0000 Received: from BL02EPF0001A0FA.namprd03.prod.outlook.com (2603:10b6:208:256:cafe::86) by BL1PR13CA0025.outlook.office365.com (2603:10b6:208:256::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.17 via Frontend Transport; Tue, 17 Oct 2023 08:40:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL02EPF0001A0FA.mail.protection.outlook.com (10.167.242.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Tue, 17 Oct 2023 08:40:17 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 17 Oct 2023 03:40:14 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 17 Oct 2023 03:40:14 -0500 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Tue, 17 Oct 2023 03:40:13 -0500 From: Neal Frager To: , , CC: , , , , , , , , Neal Frager Subject: [PATCH v2 2/2] gas: testsuite: Add microblaze reloc test Date: Tue, 17 Oct 2023 09:40:07 +0100 Message-ID: <20231017084007.229397-2-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231017084007.229397-1-neal.frager@amd.com> References: <20231017084007.229397-1-neal.frager@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A0FA:EE_|BY5PR12MB4258:EE_ X-MS-Office365-Filtering-Correlation-Id: bc880a9d-bdce-4641-c9c1-08dbceecb0c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AHHcankN7S+WHyLuEqwdRUJEz+ZTheM9ABjifb+ox2ZuhovL7yshCx4py5q4yLvUKJzeGQ0RU5HVwI3hhUypL3hEK9Np7Tnw0VSu/WhJJI8txAsUKPt6VIkJEG1LDY0XGk7W6zdIgmFtcM9+/QIBoE0aI2OUqbYf0k6MifjDBVz1dQchCsFMXr+AztAH1dra3IjA3DDJLwGpMrHrmC8Bs5M+YIRg6p/HOVoP8S/Y6zPZHxgki/VLtKoXltFZEad86TxvnatyL0uqVxFKGH90Ru93eYygIrbvVegV69aRy9kWTcgQWSn2ZUh5pYukW8J4Nc81LS9Ftk6Y9Y2xUwyN93U71wO3rAaJE3CvWRY2y+/QSuzsOIqbyZbEciknOkFBa4f2i/rmRUjLgC530eMJfTRWlJCN5Rak6jC6N0qB73gDbxoTRPBTesuIGE+jviBFxveAzfYtgxRsNiW4dtqxdnbziyax0bWOQyaAed88YHjbV9jD1wdwd75doEVelAkFT4125PmgKR8RHe+JxX4lqWFjH59Frk41f+EqaLEWiyzaCxre9GAGr0X1CldZfctv9DhfllO2RbzpG8qExUUKtIfU2EdhTh/O8YJh3Y6YNiEKZ8bulT7g4tqpQFQgdpgUeYiM9cFHgjDDVVYilaAVRrhMl+5wp8TIcEf5KoIV2UKkdoXLw9RAE6UFlE75qJFydok/JXzThuiPozpa0rCx7IKlH0lex7P7BwwuLy/LiD1KtyOsw1jCMm4nVmRN6DQTUSv+ltrQqr85HAatAukTDcksz3GVw4VTE/6fWM9rZBk= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(136003)(396003)(346002)(376002)(39860400002)(230922051799003)(82310400011)(1800799009)(451199024)(186009)(64100799003)(40470700004)(46966006)(36840700001)(40480700001)(478600001)(316002)(36860700001)(6666004)(2616005)(336012)(47076005)(41300700001)(26005)(356005)(82740400003)(81166007)(110136005)(426003)(70586007)(70206006)(8936002)(8676002)(2906002)(44832011)(54906003)(5660300002)(36756003)(86362001)(83380400001)(4326008)(1076003)(40460700003)(2101003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 08:40:17.5747 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc880a9d-bdce-4641-c9c1-08dbceecb0c2 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A0FA.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4258 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP 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: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patch=linaro.org@sourceware.org This patch adds code to the gas/microblaze/reloc_sym.exp test to verify R_MICROBLAZE_32_NONE relocation type. Signed-off-by: Neal Frager --- gas/testsuite/gas/microblaze/reloc_sym.d | 5 +++++ gas/testsuite/gas/microblaze/reloc_weaksym.s | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gas/testsuite/gas/microblaze/reloc_sym.d b/gas/testsuite/gas/microblaze/reloc_sym.d index 571ffe1bba8..cbc55633a2f 100644 --- a/gas/testsuite/gas/microblaze/reloc_sym.d +++ b/gas/testsuite/gas/microblaze/reloc_sym.d @@ -30,6 +30,11 @@ Disassembly of section .text: 100000a8: 30210020 addik r1, r1, 32 100000ac: b60f0008 rtsd r15, 8 100000b0: 80000000 or r0, r0, r0 +100000b4: 14422003 cmpu r2, r2, r4 +100000b8: be220004 bneid r2, 4 // 100000bc + +100000bc : +100000bc: a0630001 ori r3, r3, 1 Disassembly of section .testsection: diff --git a/gas/testsuite/gas/microblaze/reloc_weaksym.s b/gas/testsuite/gas/microblaze/reloc_weaksym.s index 7dd9b981462..44258093376 100644 --- a/gas/testsuite/gas/microblaze/reloc_weaksym.s +++ b/gas/testsuite/gas/microblaze/reloc_weaksym.s @@ -42,7 +42,8 @@ main: addik r1,r1,32 rtsd r15,8 nop # Unfilled delay slot - + cmpu r2,r2,r4 + BNEID r2,reloc_none_test .end main $Lfe2: .size main,$Lfe2-main @@ -50,3 +51,5 @@ $Lfe2: test_start = __def_start .globl test_start_strong test_start_strong = __def_start +reloc_none_test: + ori r3,r3,1