Message ID | 5003cbd5-448c-7f39-5219-ae3bfe50504f@suse.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2224512wrn; Mon, 13 Feb 2023 00:02:48 -0800 (PST) X-Google-Smtp-Source: AK7set/Clm9mJGL/drLFFD5w5Ffq7F86sHD7a+ISOBh+/YIDfekc5TVGDby7fHtiKyGbqUG9lfkS X-Received: by 2002:a50:ccd1:0:b0:4ab:4ad1:a37e with SMTP id b17-20020a50ccd1000000b004ab4ad1a37emr9858686edj.16.1676275368590; Mon, 13 Feb 2023 00:02:48 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id j20-20020aa7ca54000000b004aab2877a58si6827132edt.113.2023.02.13.00.02.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 00:02:48 -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=XmUFfPgi; 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 AA4F23858C52 for <ouuuleilei@gmail.com>; Mon, 13 Feb 2023 08:02:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA4F23858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676275366; bh=UvFX6gA9yUGZiKS3aDCGz1UwElBAQJ5DbgEOOZSiMWg=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=XmUFfPgi3xy0QV9D/7UszGgQ7PSN02jDPxcZC2ZCsX+gnjGq02DzEcgcJ4sUEl+4g 36Olkug54L0zcoCfuiUt6cN1n21L1gaSggJGql3GRDk9ktpIV7dv5CpJPSIEp4WYmb EqVN+yHtWyW3DycqrexCcMsBmQYDyvDjGAYsw2IY= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2088.outbound.protection.outlook.com [40.107.105.88]) by sourceware.org (Postfix) with ESMTPS id CF32E3858C52 for <binutils@sourceware.org>; Mon, 13 Feb 2023 08:02:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF32E3858C52 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m5bezORwEXYnQgJBJa2psB+CLugRTyqFLisZnUjkUlFnEeT9X+WgHAXWVdG41foKwXcLFDk6JAk6Cq8ntG1Mw06zfeP0dXU7dg/Y5GyHGqW4BlkIT4Odg6eqj8FBJDK86uepk/vrWxHbSc2xKDjh4jMDnTinNJAXy0dwfi8D7GkbG3dwC6hmgjW/l0ZAX/6AgGk3rSe5KlE/6QYV5tUufdKf534J9PClJ8Sq2J2nYekpXO4Uvptn8rxRSroNHTovxGoNCPSSM2QSbvSmIDXT1m/NPfjZzyenlTjPL+q+ZmcqECddAMBehmamm5VYp6j+bWHINRDgNxuKxylhY6MFtA== 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=UvFX6gA9yUGZiKS3aDCGz1UwElBAQJ5DbgEOOZSiMWg=; b=QQQMrx+/GnEt3V1t4BhRECfwbRP+S0DieXHgKtL7GyIu62GL9mf9SuxgfngWX6n0OLNQZjtGFoDuTiAaXRBAkJvr74brNjDUPDvs5wPXEqwiSYP5APAUOlu2pi7zwby25N8OapBXeP5qE0m3qheEeJp4Uu4hn53MNUaJfHypFMByWQtt6iqL2Viugm5LmDQapSlLgLB4/7GA5nGNRbDyz+vQIxBoxsYI/XVtLLRIlLWka5x5FlsD8SBrkhWrRJXIeDnmecnFByGGaCW6znGvYwah99OVvAhXihdZWdk1qnRI/RmRfiZEcW7E1yy67loxd4R4ixZaO19kH2a8jUF1kg== 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 AM8PR04MB7809.eurprd04.prod.outlook.com (2603:10a6:20b:242::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.22; Mon, 13 Feb 2023 08:02:35 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::e138:4fc3:705c:d178]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::e138:4fc3:705c:d178%7]) with mapi id 15.20.6086.024; Mon, 13 Feb 2023 08:02:35 +0000 Message-ID: <5003cbd5-448c-7f39-5219-ae3bfe50504f@suse.com> Date: Mon, 13 Feb 2023 09:02:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: [PATCH 1/2] RISC-V: test for expected / no unexpected symbols Content-Language: en-US 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> References: <2df3478a-3cd9-d7b5-670e-60683ae3066e@suse.com> In-Reply-To: <2df3478a-3cd9-d7b5-670e-60683ae3066e@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0075.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9a::17) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|AM8PR04MB7809:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a97731c-a05b-4456-7c13-08db0d98aac2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L4/cgJh42KSBYa8jXeBxAccfdLhJm7fNkZvEfoESyB9UDQGK3fitQTY3xD3vFZki/UTnx3oBbdJm44KOcuo355phFD5uaeFMddO/n3CJJ39BkmwOZRhDKC3wxuD+/+5M7cek04Dy8jmz8ik+V5TwpmJLNIF50hGxixDYh+JS3YgN/8QmEyEsKvMJ995wGIjrVdrxKU1xhB0q3BQbqpPkE42YHww7iPP9Ltra7y+vqyIBJ5YRxamAj/z+40hX1U/Odm2JpZeJXy3vfF7b21m64AE+A1vazm7lPc8iMaLBYC0Xqnh2YdwYn7oHCTX92519spqN+XQ3u9B9n8Hj47ZH1uIthC/vpDn73P9cqDK2dak87D4WXLV1EpOIeWyjSN16diO+czp2nPwoGAwIidsNTqC+ZTGY983PMpc8toPeROINOctJhovxPoniIQlybQYFNap+oZdF826Yown0Yte6VjEwM3cOfjd3FD/kU1jzmTmFBTd3GpcZFp/t9FEBV1EfsyOyKkWZO5OfsrykyN7Ocj1DnkmsNXQnYCfRSei+FV4vO8znE4A/wU1rvRCzQ1Cgxkgt2HPFPUHG/0YdDXtJZJG7lXPuYFE5FytgJ4vRH8NStaGho+TLUOJEgQNL2PB9huGZ42ErQBgs4eW9bIS7VfKTtvJo/MxbTDKcH1zSjLgu9aAUQQgR3U+y+nwh56jFz6Y57jtMnlltYpj3jSByKIDgicZdumr89tvNOL4pQ/o= 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)(346002)(366004)(376002)(39860400002)(396003)(451199018)(86362001)(36756003)(31696002)(5660300002)(66946007)(54906003)(6916009)(66476007)(41300700001)(38100700002)(4326008)(8676002)(316002)(26005)(66556008)(8936002)(4744005)(2616005)(83380400001)(6486002)(478600001)(6512007)(186003)(6506007)(2906002)(66899018)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SGn60M2Jyeoi6Ptf7dm7W7yuADG7?= =?utf-8?q?k04dMudhtSBOKlHxR1qWzFLAhPTDjB3bFfojJ/KxvTxWLHDSEhhOCOy0zxHhuUxfM?= =?utf-8?q?pzmbOAlDSEdBK1lbKgAZWxGjipVvufFlvxDzaIsp+4ZF0n8xfJEr1AO1IwRvWYMGk?= =?utf-8?q?HkvFF6vHcIc5wYBhr+U2IkLk2+cSg8z18u6Tg9cL9c6pqHJKKEFFg4y/UZEyMvf+s?= =?utf-8?q?dDAk7FMwxOFjORf4hPJ2HHlbn0ia6XURs85nZU2utK2GjLNMdhSh5FFiuvPYxzFEg?= =?utf-8?q?fxlTyxzE/PbTlnD0z7svNP+173Ps5+qYG0W+xk8Gj5WWCvRZrVvSAqs4V4gzVek2q?= =?utf-8?q?/VVp2LX9BLAEwYnMh9kjybJJC1ewD5/pAc3LS9pxBsypwHtAfcXetsezaKO0uTipv?= =?ut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q?iwt1fMNwds6//iYeUvS4qTeczWDjiUNv4mn3DpS5gFAbbQnEYaouLDjW/gB3aRRmQ?= =?utf-8?q?wTV81Nl5VQdtP3UhcTQYmZrSpb7Fa/F3/Di+D66yrP0MIKbyr5QEYFen10ucXn+zb?= =?utf-8?q?SviJ+i5w7CoBR6Q5YMh7gQB5INvzvF/Rpu3F5tAUlmyHRFrZ7Y3XTpbx/gqhDb7LI?= =?utf-8?q?5KoYfkaTH24DqC49ma9Cwdle25AJ56JHU/zTdnQExV13wXlxkjSiymOU7U23NTlvR?= =?utf-8?q?tBE8p8Nx0XU4?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a97731c-a05b-4456-7c13-08db0d98aac2 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2023 08:02:35.6775 (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: pxrCOloF6vKivRMEIXsTS4LJBRXRgVRUNUPOMaKiu9mR7g2AlugiEYrKKDyvAHmkGB/ME5MzBRjkj7h3mUqNzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7809 X-Spam-Status: No, score=-3028.5 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?1757702121276763737?= X-GMAIL-MSGID: =?utf-8?q?1757702121276763737?= |
Series |
RISC-V/gas: re-work register named symbols avoidance logic
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Jan Beulich
Feb. 13, 2023, 8:02 a.m. UTC
Both the temporary workaround for PR/gas 29940 and the existing special casing of GPRs in my_getSmallExpression() aren't really tested anywhere (i.e. with the workarounds remove testing would still succeed). Nor is there any test for uses of symbols with names matching GPRs, where such is permitted. Before altering how this is to be dealt with, install two testcases covering the expected behavior. (For now this includes only known affected insns; re-ordering of entries in riscv_opcodes[] could, however, yield more of them.)
--- /dev/null +++ b/gas/testsuite/gas/riscv/reg-syms.d @@ -0,0 +1,6 @@ +#as: -march=rv32i +#nm: -- + +0+ t start + +U x2 + +U x4 --- /dev/null +++ b/gas/testsuite/gas/riscv/reg-syms.s @@ -0,0 +1,8 @@ + .text +start: + and x8, x8, x1 + j x2 + jal x3, x4 + sll x1, x1, x5 + sra x8, x8, x6 + srl x8, x8, x7 --- /dev/null +++ b/gas/testsuite/gas/riscv/reg-syms-C.d @@ -0,0 +1,4 @@ +#as: -march=rv32ic +#source: reg-syms.s +#nm: -- +#dump: reg-syms.d