Message ID | 20230926124637.683385-1-neal.frager@amd.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D45BD385C6EA for <patchwork@sourceware.org>; Tue, 26 Sep 2023 12:47:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D45BD385C6EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695732443; bh=BzYySj0oi488fKuKYFiuPh6n+fNBQgM7MonR7QXelws=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=iCGSOid0xtkAGHqn4YDPtvRfKr1ej9lwo+OL19R1c8lzu1KNPxJQTs/d7PlelxTjy IHDAQ2bUM5LlnOOoMebLyLjNi3lxY7QfF4S6mNAxjiqItu/ACwD5jeqct+e/qFtEnb 8+jAwottOUoy5h8NYVSvp1LCoYR3ERw91uiF94Pc= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2051.outbound.protection.outlook.com [40.107.212.51]) by sourceware.org (Postfix) with ESMTPS id 60B4F385AC26 for <binutils@sourceware.org>; Tue, 26 Sep 2023 12:46:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 60B4F385AC26 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mXVPtfInARj9khR37zNn7nWRZJ6PGM/jeaEuES/U9p7xY6g6CnxIqnIdXJhzawnyDRlutUfXMx/0poPwf7zgLYmBY1DU4ljRvEMnkA7D1mBt49JKUWJLVI+GSui2y/3CNcazVGBYp+wiUn7kNRvCDVlEX0eV3tV0Yrcp7TwJoP1y5oijidxYxc34lhPuojrDzPBpxvToKsWDYFc5AvuKwILEAP9FDkYQpeG+Rz3adNxLU/V80VHzRc+k0d7lrvoQgBMccveNgnpgojEYCwbnl5df21gUCMw42FsPYgbWL/YaruHBAVJuIG0jH1Uv7v2RJvbbUu4WnNoEPQKjN7Mlog== 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=BzYySj0oi488fKuKYFiuPh6n+fNBQgM7MonR7QXelws=; b=kwpVQM7ljY8ekNccHQ/t621j5+xDmMPLXMskNOQ5hGW0/sP/+T5nvFOM3HcQBCW1pJofsWxkBtt+OBS2sUFA4MF8fN+xW0KkDKpYglF5goLOywzDgwVZVdvsCr+QJs383kJIvDd4RQLRT3yh4GB2Ff2FgeSDLtoPKN6t6OvusM4zDLqvFpZYIQH4Esuw4wtBYHvEdVzBmEjZWwDdNry4VUTjA8WFSWkmZFGF6cnBrQmbNdSDlAyWChdLnMZ1taQU8nj7fuoJSv6FdjMRiCP6l5RKN40wWZjBsABy0fQoiHV1txLFKExjOvGjABFN3ZMYI8wHb9b9nKIrAi8BEKTq7g== 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 Received: from SJ0PR13CA0019.namprd13.prod.outlook.com (2603:10b6:a03:2c0::24) by IA1PR12MB8079.namprd12.prod.outlook.com (2603:10b6:208:3fb::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 26 Sep 2023 12:46:48 +0000 Received: from DS2PEPF00003439.namprd02.prod.outlook.com (2603:10b6:a03:2c0:cafe::91) by SJ0PR13CA0019.outlook.office365.com (2603:10b6:a03:2c0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.18 via Frontend Transport; Tue, 26 Sep 2023 12:46:47 +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 DS2PEPF00003439.mail.protection.outlook.com (10.167.18.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 26 Sep 2023 12:46:47 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) 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, 26 Sep 2023 07:46:46 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 26 Sep 2023 05:46:46 -0700 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, 26 Sep 2023 07:46:44 -0500 To: <binutils@sourceware.org> CC: <ibai.erkiaga-elorza@amd.com>, <nagaraju.mekala@amd.com>, <mark.hatle@amd.com>, <sadanand.mutyala@amd.com>, <appa.rao.nali@amd.com>, <vidhumouli.hunsigida@amd.com>, Neal Frager <neal.frager@amd.com> Subject: [PATCH v1 1/1] gas: microblaze: fixing constant range check issue Date: Tue, 26 Sep 2023 13:46:37 +0100 Message-ID: <20230926124637.683385-1-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003439:EE_|IA1PR12MB8079:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c4a583e-403b-47e6-a289-08dbbe8ea5c5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +CW5QocDglH/BAjRHApH+xXNpYO4m+msfE/fAeckGUPCV/dUnFj05pSJHj96eVh9kGu+oK+MPh/I32+DJ15VagIzGljmwBTIS6xUVzDz/de7epfZdL8KH05UjsLCNZGK+9EyUEDuLVMm93+i8QnIDo/g5vlSj2nCP0l6CFwq7XAS16z1Sm+ntmF0ACkhYmcB6TFmksdewo7QYAA+6EV5EnMVFjueSx7lK/sYSuIiriXyxnhDTjntXqToDOg2nMz5IgO99JxaG/N9vUhimEkAd7nfUpKd+EQon9+GGuoJk/5vYoK9FmbChCyZIb5UHPHT+c2NVntbohBqkbJEokpoOnIxZll3GlxkUHBxor4Zcn/9+i3CVqAfoel82/aKImbd/QgZYiMycgi8hoSyrHxbiVLGGMfOD3AwZtN/rp7EkROahvqCmzSQw1dQAYs6L4oIEDN+MHsfcsaE2m9aMr9ROR3GoePEUJFuySGEtKLU0FkerOBET0EMJrTcbDoRz9/jgfO/9VsfunUrQLEmqB4g++N/eVBA1ZNHSgZHBqLsdQFiTgJ8go3i+60w9TMcrjx+ccQFT4R3TiKskQcVMxkH2E09DtngIIx9jEmn4qkDwi/jeX266PMbl3Q9FED3NTF8ONSRiR3b5izDaYq7SQOGCJRNd1jsjlE/CbQZbGpDYt21jeKgJxPjdw+AEPvjXSoyMuxiAGDL5H/uwm3UidS0kDm7yVirTek1ujusbH8Q2VvJ5s1oeWC2ggbPuhC7E/kJ 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)(376002)(39860400002)(346002)(136003)(396003)(230922051799003)(1800799009)(451199024)(186009)(82310400011)(40470700004)(46966006)(36840700001)(2616005)(40460700003)(81166007)(36756003)(86362001)(40480700001)(82740400003)(356005)(36860700001)(26005)(8676002)(336012)(2906002)(426003)(6666004)(966005)(47076005)(83380400001)(478600001)(8936002)(4326008)(5660300002)(1076003)(41300700001)(54906003)(70206006)(70586007)(44832011)(6916009)(316002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2023 12:46:47.8102 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c4a583e-403b-47e6-a289-08dbbe8ea5c5 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: DS2PEPF00003439.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8079 X-Spam-Status: No, score=-12.8 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 <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Neal Frager via Binutils <binutils@sourceware.org> Reply-To: Neal Frager <neal.frager@amd.com> Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org Sender: "Binutils" <binutils-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
[v1,1/1] gas: microblaze: fixing constant range check issue
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | fail | Testing failed |
linaro-tcwg-bot/tcwg_binutils_check--master-arm | fail | Testing failed |
linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Testing passed |
Commit Message
Neal Frager
Sept. 26, 2023, 12:46 p.m. UTC
The range check should be checking for the range ffffffff80000000..7fffffff, not ffffffff70000000. This patch has been tested for years of AMD Xilinx Yocto releases as part of the following patch set: https://github.com/Xilinx/meta-xilinx/tree/master/meta-microblaze/recipes-devtools/binutils/binutils Signed-off-by: nagaraju <nagaraju.mekala@amd.com> Signed-off-by: Neal Frager <neal.frager@amd.com> --- gas/config/tc-microblaze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Neal, > The range check should be checking for the range > ffffffff80000000..7fffffff, not ffffffff70000000. > > This patch has been tested for years of AMD Xilinx Yocto > releases as part of the following patch set: > > https://github.com/Xilinx/meta-xilinx/tree/master/meta-microblaze/recipes-devtools/binutils/binutils > > Signed-off-by: nagaraju <nagaraju.mekala@amd.com> > Signed-off-by: Neal Frager <neal.frager@amd.com> > --- > gas/config/tc-microblaze.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Approved, please apply. Cheers Nick
On 9/27/23 08:23, Nick Clifton via Binutils wrote: > Hi Neal, > >> The range check should be checking for the range >> ffffffff80000000..7fffffff, not ffffffff70000000. >> >> This patch has been tested for years of AMD Xilinx Yocto >> releases as part of the following patch set: >> >> https://github.com/Xilinx/meta-xilinx/tree/master/meta-microblaze/recipes-devtools/binutils/binutils >> >> Signed-off-by: nagaraju <nagaraju.mekala@amd.com> >> Signed-off-by: Neal Frager <neal.frager@amd.com> >> --- >> gas/config/tc-microblaze.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Approved, please apply. > > Cheers > Nick > Updated patch description. Committed.
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c index 564e0b786e2..f205bb10b2b 100644 --- a/gas/config/tc-microblaze.c +++ b/gas/config/tc-microblaze.c @@ -755,7 +755,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max) if ((e->X_add_number >> 31) == 1) e->X_add_number |= -((addressT) (1U << 31)); - if (e->X_add_number < min || e->X_add_number > max) + if ((int)e->X_add_number < min || (int)e->X_add_number > max) { as_fatal (_("operand must be absolute in range %lx..%lx, not %lx"), (long) min, (long) max, (long) e->X_add_number);