Message ID | ba68222c-7de6-280d-e98e-503e3c27addc@suse.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp769159wrd; Fri, 10 Mar 2023 01:24:11 -0800 (PST) X-Google-Smtp-Source: AK7set8QfSdfynEaxsR50CmECSV8EpOWsovW/CUVfMPvpkRDoNn709Q5tqYKvVgOt90yloZzRdUC X-Received: by 2002:a05:6402:390:b0:4ae:e4ec:cf9d with SMTP id o16-20020a056402039000b004aee4eccf9dmr1649116edv.9.1678440251589; Fri, 10 Mar 2023 01:24:11 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y1-20020aa7d501000000b0049e34ecef4asi2015937edq.5.2023.03.10.01.24.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 01:24:11 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@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=@sourceware.org header.s=default header.b=SzzLmruw; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 629A4385828D for <ouuuleilei@gmail.com>; Fri, 10 Mar 2023 09:24:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 629A4385828D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678440250; bh=l2Qcj8KNoSfduGo5xO4C0R4EPttI4rYAoQnqLQWu+Ag=; h=Date:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=SzzLmruw1/xZWYdKFRD84myTQVGOKbFqQiDDoZQlGoxWfEx8oZM29ujacGjjJ0KND SNiz0wK5Gldx1rfAYeEOWJx8z01R0vPfYtc0yFT8DP/c7wxv4T4adLgxGXUZYZxXgy PUMNLwlDOj7VIekqGblrMZJNFDIS23jQZIsXcEFo= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2085.outbound.protection.outlook.com [40.107.13.85]) by sourceware.org (Postfix) with ESMTPS id A246C3858C5E for <binutils@sourceware.org>; Fri, 10 Mar 2023 09:24:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A246C3858C5E ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yzws7D/lwoyZZHFmy2atAQd+Xu3sojRyxIlodG2kk0w7bcuuH2f/sIgpcVF9ppOz1N9F7gzJEKtZ9EjyM0RD/eL6E2y6YpwUfhD7VU+o/bAWLooRN15sr7mWFJpC31/Aq01u1M7Hz1j3MV0dtniV+hpgAM5ygLpj5TC49wrX4ArU+mqTKtQi/YefTpVAQ2KWVINPmS4Gs2mpWsplnwB7ou/PrE5i296lupAoUNHYlYhZ56NJA2ren3QK8y0JcqnKGj7e7R8pUPZS9nzfF00mC/wWTPL8gm+9Qjyn3Szhyg6Y2YXxYMYcA2b4FE6DxHVIq8+Fc5VBCGIAUArgKFMeCg== 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=l2Qcj8KNoSfduGo5xO4C0R4EPttI4rYAoQnqLQWu+Ag=; b=Ym3wX8sRIJbC4EIM49ssytuZTz4LSbj3q/vtPKVyBU7wh3yaszed9VrSCVF8ZnbtLaApnW7hZWghgtmB2AHUFtx5dBL6MyhgWYJ2q8zk/kIkWOVsqRAlM5S3UIAVFA0udFo7lihnDoMnBUiEqlBBbzi0DY+qTJR2Q88shKOjrnlANiorKOmENb+2jQFxcri26xYRc+C3OdNYO3vPFrQhOOpgJMfo1MPL06dgjObbsBKHdPLsR1f6iCnqag85NV9xrgglC+4eE8be3xQHbwi3pX3rf5tMdu2bpklmWA75zxYQjByrPQE+1xYtiHMRekBZHHjV0f/rTLEAnmlW2MSKKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by PAXPR04MB8880.eurprd04.prod.outlook.com (2603:10a6:102:20f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Fri, 10 Mar 2023 09:23:58 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::154e:166d:ec25:531b]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::154e:166d:ec25:531b%5]) with mapi id 15.20.6178.019; Fri, 10 Mar 2023 09:23:58 +0000 Message-ID: <ba68222c-7de6-280d-e98e-503e3c27addc@suse.com> Date: Fri, 10 Mar 2023 10:23:55 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: [PATCH v2 0/7] RISC-V/gas: insn operand parsing To: Binutils <binutils@sourceware.org> Cc: Palmer Dabbelt <palmer@dabbelt.com>, Andrew Waterman <andrew@sifive.com>, Jim Wilson <jim.wilson.gcc@gmail.com>, Nelson Chu <nelson@rivosinc.com> Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0084.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9b::11) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|PAXPR04MB8880:EE_ X-MS-Office365-Filtering-Correlation-Id: 90116186-b3bf-4bb1-942c-08db21492d3b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eMQ8WbOhDyjQMSOhPi4p1ECfNL6XmCh6UiDgi2RccKBg7xNam5aCqIcBDA8mbDScwBmoBXuL1TqNgzjsF29FVktS71hf/i0oNhY0jNo3pOWovSEwnI2omWRRxCNARzq4gO7uIxo2DPcYMCIcmQ4V14IK87S6HZKxaCCaqUeqpRwBw6WxMpZI1rWJhXPP02mwdtb6Mypf8mvAAx1GeCpFXup7LqxXR+QQRyJIke3eDCJiLt2sBaeMUOVR5gLZ6RijheKFcY+wKrd/qb+kgfwH76Uo8GhuDb6/LRpEtZyV4yNUOpa4rnMtIzzNX1w/RFivIBeS48GZR+ZwTCUb49zbukJX54Dt4aGDaAuAbwQCPGVgqq3LJTkZimgOaq9RziEh+90EFFIJ6bbjRZvYRZrfDIi6YgC3/ZV1AeCsfulSSers/6KdQTuVCfNFmwfCakmvburhMZ5eC2e7rWdfyhJ+M/8JGpTJ9l39QxbCp6Sx//4bzHBkQf2vLjCftTqAqpGH3gYUvmTMFqatsiurKRMO1KVOBUzKfBNZ++tknYXao9gkEFh5nMvCs3f0QLGxf9el0IBxd6ERCwNrRSMGsPRgDNIgQMHs/CGm8FyDgD3LDufbr4jjgLs4HhqQJlXXm95N8wSPNl7x8ERfkae75AU/yFfqz6aFfHJTC18dKUcsv+d95su54s3xSfg6T+QPfFJlep4h8MSLyUohn0dDU6AbPPTZ9Krx8VOctcSGZVI1UaQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6560.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(136003)(396003)(366004)(346002)(376002)(39860400002)(451199018)(2906002)(6486002)(31686004)(83380400001)(6666004)(316002)(4744005)(36756003)(6506007)(26005)(5660300002)(8936002)(6512007)(186003)(31696002)(41300700001)(2616005)(86362001)(6916009)(8676002)(4326008)(66476007)(66946007)(66556008)(478600001)(38100700002)(54906003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SNd6suXvq71I0m05yng+XG7PRi7z?= =?utf-8?q?ekqmQmHgC2Mu7lOvKeVGKQjDi2TSBuTJfIBAZx91kEXaRQl6ueNBjVkaQ6Y4hFd6x?= =?utf-8?q?zgA/eDwKDQBm4762xdEjNIInC2DqNdwp0PVdWcleE2KRIeApsmvk+wcC6GLPAeh0w?= =?utf-8?q?F/E6mf+C0bdNZHXWNZHh9re1Jlr0pJNB8xcEvxo+6t+0sCuOiFieaZY0Iok9jGtGN?= =?utf-8?q?xCeW1kiiPCSHkhn9Dx6hAGKz58CiZK6j85qP+yfKPqnNkPkYM1N9eUwIXHrujMC4n?= =?utf-8?q?ygt7WA1hOSZMgW5TH6am1evgLpbOYxozk7HSvd795XWV/En7NsNIBP0lyLUXB8K4P?= =?utf-8?q?nl2Qk/kbMObJGuQmnOwDNW35rERkpUc3ANnYUn/dEGqaJaDUJsN0O27TsOfBc4HOV?= =?utf-8?q?/DrJ8SWIQzx4bTfDLxkGjtL0QRGqIalxJ74zkAdAFgg2esZeGvStNnxNQzV8ewg3r?= =?utf-8?q?Bks+vqfL/V1ZBvydnMINFVS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RB+PGmyNzlTodj2PPPlEDaZu8JMPxXj0Mm4p27DKcqQuqU?= =?utf-8?q?KCMuOw0Cl21Uw5J0UIc2dh5ozBsccVPffE9golvitMmiVIQEZaqhNYTI9+zScXXY9?= =?utf-8?q?DJ2IKlopGou0kR2+P3I651y4CObCkJ5BDBPVQAk03FUPIpcH13cUri+2FMx2FsKez?= =?utf-8?q?3Vs6VCwWKacj?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90116186-b3bf-4bb1-942c-08db21492d3b X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2023 09:23:57.9984 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZDzdlKxqrV6r+wU4VGfz6edLjT/CSAhkcbtN4wuCet7x0h6zCG1JX/l1I+QnhRCEWZsNDpbIPXOsqvGi20dpBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8880 X-Spam-Status: No, score=-3028.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, 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.29 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: Jan Beulich via Binutils <binutils@sourceware.org> Reply-To: Jan Beulich <jbeulich@suse.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759972165430574784?= X-GMAIL-MSGID: =?utf-8?q?1759972165430574784?= |
Series |
RISC-V/gas: insn operand parsing
|
|
Message
Jan Beulich
March 10, 2023, 9:23 a.m. UTC
(v1 series was "re-work register named symbols avoidance logic") This addresses some of the anomalies I've observed. There continue to be questions towards consistent overall behavior - see remarks in the individual patches. An assembler with the full series in place was used in a gcc 12.2.0 testsuite run (cross build on x86, so no execution tests), resulting in no new test failures (there were a number of pre-existing ones, though). 1: minor effort reduction in relocation specifier parsing 2: drop "percent_op" parameter from my_getOpcodeExpression() 3: avoid redundant and misleading/wrong error messages 4: don't recognize bogus relocations 5: relax post-relocation-operator separator expectation 6: test for expected / no unexpected symbols 7: adjust logic to avoid register name symbols Jan
Comments
Hi Jan, On Fri, Mar 10, 2023 at 5:24 PM Jan Beulich <jbeulich@suse.com> wrote: > (v1 series was "re-work register named symbols avoidance logic") > > This addresses some of the anomalies I've observed. There continue to > be questions towards consistent overall behavior - see remarks in the > individual patches. > > An assembler with the full series in place was used in a gcc 12.2.0 > testsuite run (cross build on x86, so no execution tests), resulting > in no new test failures (there were a number of pre-existing ones, > though). > > 1: minor effort reduction in relocation specifier parsing > 2: drop "percent_op" parameter from my_getOpcodeExpression() > 3: avoid redundant and misleading/wrong error messages > 4: don't recognize bogus relocations > 5: relax post-relocation-operator separator expectation > Except this one I'm not sure if we should accept or not, others look good to me. The gcc/binutils regressions of riscv-gnu-toolchain looks good with this whole series, including the fifth patch, so I guess that is because the current codegen and inline assembly developers are all expect () after the %hi/%pcrel_hi/... modifiers. I don't know if we should relax the usage of modifiers here, but at least the regressions prove that there should be no effect for now, even if we commit the patch. The only thing is that we may have different behaviors as llvm, but since llvm only accepts the () after the modifiers, we have already behaved a little differently. Thanks Nelson > 6: test for expected / no unexpected symbols > 7: adjust logic to avoid register name symbols > > Jan >