From patchwork Sat Oct 8 04:31:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsukasa OI X-Patchwork-Id: 51 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp607182wrs; Fri, 7 Oct 2022 21:31:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4B2Bizx+XoVCrQwtOif3x8+ZVKMbItE2K45wihkyR30MX10eRtgeHvUMnCXkPT12L7yjvy X-Received: by 2002:a17:907:2d8e:b0:783:8d26:645 with SMTP id gt14-20020a1709072d8e00b007838d260645mr6183558ejc.535.1665203494967; Fri, 07 Oct 2022 21:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665203494; cv=none; d=google.com; s=arc-20160816; b=I97VTiw3M9lBH70Z/zDK7dY6d0FzdtkqJgiuuAIghoSMcmKiBUsdrpByl7QV+Pppvh It2uhf0P+GK24nVMGcNwj/XkA6W9ST8gbTmhmAFa10IlT0NS7pxVMV/nIwIgG4pP2AC2 tvVjNEz6c0quBCm+5kaq5MdSC/4eG+SjKOnNyc3aN55KfMdFpjjFsJuGJql5qr8xsobQ X7Kxr6mn9O88oeAzC8e25ITc5lyOrnMGUmcQ5z/ODJHHkYiuew4HuRKVzvfJv1YjpvDO 7A3HEpt21YI8rMtb+FccIPoyPfR1C/D7nGqB4B5gOhjrQoaobVNvwbQ0gBumG3HW/uXJ 08Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=CHl5DdPf1Ov+Ones0Mh6iSYOdq00Rztx/YZqdhdJXHM=; b=eAKP7DRkSIc1hRd1Wah/GK2ExeKg56kQ81efm0y5s+hHcFKJSBA8X6+mSl7eoyzmjk rxIqGGBGULWi4wRWTvMOMc1z/skG2j+4v9BgfqN91mfshKvkCWPkEfqrxk+8LlH4/t/x +OUsM8fjEFLl0MmAh3TWGa9dsfBQms89jjFex5t7mtcd+zRg0cP+mt7hGKi9pk2AxbM/ M8WDisGpZkNZimIR/Ktvb5VJlgoLLFJ09JiPfE3qGf7/RjJqwPP7TMyMoFf0VFwlAYBR jqU1bWK4HF6R9rTZzx7J4BAQ6lKSzGvoVFHkY1iQ6zdm3UG+KCPi6PCeMVKMQExOKzPk NJxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=rK9QcAlH; 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o10-20020a170906974a00b0073ddab3aa79si5042018ejy.792.2022.10.07.21.31.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 21:31:34 -0700 (PDT) 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=rK9QcAlH; 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 F1B4238A8154 for ; Sat, 8 Oct 2022 04:31:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1B4238A8154 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665203486; bh=CHl5DdPf1Ov+Ones0Mh6iSYOdq00Rztx/YZqdhdJXHM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=rK9QcAlH9YX4Miqas7ZwcjgIfHWN+BzALUw9YCw1xJH6UWGvWmeiPkfMJQ/5DjaaN qc1VQizRLLiSpFYGkvFkk8ebZ/OHZKr5k8yIV2o1ZfOwGaruo+ezg0qtFTH91/5VM8 lTF0vPsmL+Atv5hOzMNCfpe/ZKJXXq8jpwIXErV4= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 46FF3389EC66 for ; Sat, 8 Oct 2022 04:31:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 46FF3389EC66 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id AB9E8300089; Sat, 8 Oct 2022 04:31:16 +0000 (UTC) To: Tsukasa OI Subject: [PATCH 0/1] RISC-V: RISC-V: Move standard hints before all instructions Date: Sat, 8 Oct 2022 04:31:14 +0000 Message-Id: Mime-Version: 1.0 X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tsukasa OI via Binutils From: Tsukasa OI Reply-To: Tsukasa OI Cc: binutils@sourceware.org Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746092420129764216?= X-GMAIL-MSGID: =?utf-8?q?1746092420129764216?= Hello, GitHub tracker: This is another small tidying patchset. Because of the scanning process of the RISC-V disassembler, all standard hints must be placed before corresponding instruction. In the past, "prefetch.[irw]" (from 'Zicbop') hints are placed just before ORI and "pause" (from 'Zihintpause') is placed just before FENCE. It's not bad but will force the developer to "taint" basic instructions section. Considering upcoming 'Zihintntl' standard hints will be a bit more complex than the current hints (some can be a part of either "ADD" or "C.ADD") and the disassembler is fine as long as a hint instruction is placed before the base instruction (no need them to be adjacent), I think moving all standard hints before all real instructions might improve the readability and won't disrupt the indentation of basic instructions anymore. Thanks, Tsukasa Tsukasa OI (1): RISC-V: Move standard hints before all instructions opcodes/riscv-opc.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) base-commit: 4cbfd0daabd68516651ee37a19d0e24ca4789ea3