From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 934B43858413 for ; Fri, 16 Dec 2022 18:51:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 934B43858413 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-ej1-x631.google.com with SMTP id n20so8384291ejh.0 for ; Fri, 16 Dec 2022 10:51:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jbYZDQVr5Cp3bJkZu4+wlPOPk957glDJdMJDdICWUwc=; b=egpB//xlYM5iZr4zduMUFvx4MdIG5V7+QZbuTUaI0H/6kjw8wDEGxaZIdtAgbS3bP+ mQh++XuH8VBhnSLTEgcXT/Isbbvv9Lnrb6ZyK5QvHBACtqjxiL4h9rHxr8g3GjrFBa0p RYPYqLXRYpZ6Y6845JUXwWDNoaXH4eSqqtgkDuxTabeBavSjfIubqhprOsTOeV/J71V1 YsTjdGzwHc4piGFL76NSuZlmfOG3dDT8k5RA+oUtEmJRAwi4ldc3CPWDIEIRQ2bsikOn jRXBpVJLxhIH6u+S928xMM7w0e24N8J00pgbo87b+axI8R2N1zy2wt4+EvXXWLDL7t7N 8bvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jbYZDQVr5Cp3bJkZu4+wlPOPk957glDJdMJDdICWUwc=; b=JBa9IwCVeZcBUkuqLZCz8TcNreTUpzmIOKPYgFXdVr2sqQ3/qEtRcvhzTI1Qj/ypMo XbDVWq6U0mZbIQ5tEOJq+8UjGaxsErSsBtkQ45G1dTwnEMbQt8FlIEzOegAzkI78PL04 RpI5HZ+F3qEaZb1g9Ta+pVIQEjz7zXj/RzexWAzgxPuj7IiDoCI6RgY2xiLotUvFd/52 GqU4B82edijaY1o6d84Hk7lcBCWaz8qAjJLRpwQa4X0+M48iOHLfrYvVFi9pe5tUqaJ7 +sh1BP/wC0lIuYSwYiQghf+tBlntyY54YRqDTu8GrtwAm9GiN1RDvJfWx1Wh/vg/+jFz iH+A== X-Gm-Message-State: ANoB5pmCLLWU2xkpdRitwRruEz2qjlujjVG7IT9Hg7oiblRI6ZCEYLzo o2826DmhEdvU5TKPr5onkl40F9jrV6skb/+C X-Google-Smtp-Source: AA0mqf49batGe7H1SEQJ2lC4uFR8fUz5gVmGAlqG0PRySHuyK6jeAB8LrmO1Fj1Lf99BgEyVMyNhHg== X-Received: by 2002:a17:906:2a0e:b0:7be:9340:b3e6 with SMTP id j14-20020a1709062a0e00b007be9340b3e6mr42772208eje.43.1671216699543; Fri, 16 Dec 2022 10:51:39 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id 10-20020a170906328a00b007bc8ef7416asm1144047ejw.25.2022.12.16.10.51.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Dec 2022 10:51:38 -0800 (PST) From: Christoph Muellner To: binutils@sourceware.org, Nelson Chu , Andrew Waterman , Palmer Dabbelt , Jim Wilson , Tsukasa OI , Philipp Tomsich , Cooper Qu , Lifang Xia , Yunhai Shang , Zhiwei Liu Cc: =?UTF-8?q?Christoph=20M=C3=BCllner?= Subject: [PATCH] RISC-V: Fix T-Head Fmv vendor extension encoding Date: Fri, 16 Dec 2022 19:51:33 +0100 Message-Id: <20221216185133.1342022-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_MANYTO,RCVD_IN_DNSWL_NONE,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 List-Id: From: Christoph Müllner A recent change in the XTheadFmv spec fixed an encoding bug in the document. This patch changes the code to follow this bugfix. Spec patch can be found here: https://github.com/T-head-Semi/thead-extension-spec/pull/11 Signed-off-by: Christoph Müllner --- gas/testsuite/gas/riscv/x-thead-fmv.d | 4 ++-- include/opcode/riscv-opc.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gas/testsuite/gas/riscv/x-thead-fmv.d b/gas/testsuite/gas/riscv/x-thead-fmv.d index f2bbe010beb..af8ce0c8ee0 100644 --- a/gas/testsuite/gas/riscv/x-thead-fmv.d +++ b/gas/testsuite/gas/riscv/x-thead-fmv.d @@ -7,5 +7,5 @@ Disassembly of section .text: 0+000 : -[ ]+[0-9a-f]+:[ ]+6005950b[ ]+th.fmv.hw.x[ ]+a0,fa1 -[ ]+[0-9a-f]+:[ ]+5005158b[ ]+th.fmv.x.hw[ ]+a1,fa0 +[ ]+[0-9a-f]+:[ ]+5005950b[ ]+th.fmv.hw.x[ ]+a0,fa1 +[ ]+[0-9a-f]+:[ ]+6005158b[ ]+th.fmv.x.hw[ ]+a1,fa0 diff --git a/include/opcode/riscv-opc.h b/include/opcode/riscv-opc.h index 06e3df0f5a6..5420bfac91b 100644 --- a/include/opcode/riscv-opc.h +++ b/include/opcode/riscv-opc.h @@ -2209,9 +2209,9 @@ #define MATCH_TH_FSURW 0x5000700b #define MASK_TH_FSURW 0xf800707f /* Vendor-specific (T-Head) XTheadFmv instructions. */ -#define MATCH_TH_FMV_HW_X 0x6000100b +#define MATCH_TH_FMV_HW_X 0x5000100b #define MASK_TH_FMV_HW_X 0xfff0707f -#define MATCH_TH_FMV_X_HW 0x5000100b +#define MATCH_TH_FMV_X_HW 0x6000100b #define MASK_TH_FMV_X_HW 0xfff0707f /* Vendor-specific (T-Head) XTheadInt instructions. */ #define MATCH_TH_IPOP 0x0050000b -- 2.38.1