From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id D84BC3858CDA for ; Thu, 30 Mar 2023 17:54:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D84BC3858CDA 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-ed1-x533.google.com with SMTP id eh3so79660864edb.11 for ; Thu, 30 Mar 2023 10:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1680198888; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zjvMW5p+fWYYRaAb7OCXtRcg+8aU8vAS/DJZzJLin5c=; b=bEf79Ro+u/gLBYZlQ+qxM3dw5sfcFN/dqr0NTVMb3iCQCM1IqF1pOKbUH3oflMo82a slVhlb8kMWr5B4558fbG+QH6gCoqCo2RQBaNHpp9sRPVC5LZDRZ6joE/DF9T6vn1TDtp /I3H0DXDgx9zVIZFHNNSLSb4G2qw5Kmm2bvyW93Gntx3R/fBkpOzTZ0cUzFDahYLkQNC LEc8HhWnm7D862HbNnMJp1BCgSjHGVFQZtQWwyy5ijFVNSGLCdlKxnBnjmUkfZfNb6Gp x6ofCAuklmvlsrMkAPpQhKOWeiaWOGmsjsjaVxWmMfXAh/l9kafatidootoOI9HO+oXA VVVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680198888; 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=zjvMW5p+fWYYRaAb7OCXtRcg+8aU8vAS/DJZzJLin5c=; b=d7t2SH2fYU4r5XRUW+hMWTfVDtZbY8XScRVanMKt2ZwEZEdiOlywHfWofnTLv0l1nE OQpESl5hU/9SLJu9JEt/DqVoaGBSxdpyFT3eZEPmEf4u/jRDwhUGJfMt374Se7wm3Bod 3K+pWkF4Pjy2QoYBX5wzuzDFOjbG012NwVVJXGhmw05iUPRGFrZv58FZvv0MFnDOrg69 Y30QlF/LNgTiP1YstTWzyWScaEVKlWJafFCPF1J84L9LRIvv/c19N+qXQlh3Mqr9SgKC 12B293DFWgEICWAiduHMSDzJ+/OpvuiRKz4fAXsJ43edU6+DQfo5JAlVdCFjVC401t6G S1JQ== X-Gm-Message-State: AAQBX9ef3JA39VnOkRTrNutRmAqSllqNhrufN6v5Ropp/0ThsOnYqlUn 6bSkUbltp7wYNIdoGaFfIHt5EIT2wQ8Ta7OPCDc= X-Google-Smtp-Source: AKy350alZj+XubeVsi3503401YDfrMyrBLvjLAu2AtSETzBFMkx6CUH0NDFGw6MipgrtNK62QL3+JA== X-Received: by 2002:a17:906:eca4:b0:8b1:7ae8:ba6f with SMTP id qh4-20020a170906eca400b008b17ae8ba6fmr22836291ejb.16.1680198888062; Thu, 30 Mar 2023 10:54:48 -0700 (PDT) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id o6-20020a170906768600b00946c1052542sm65309ejm.182.2023.03.30.10.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 10:54:47 -0700 (PDT) From: Christoph Muellner To: binutils@sourceware.org, Nelson Chu , Andrew Waterman , Palmer Dabbelt , Jim Wilson , Philipp Tomsich , Jan Beulich , Kito Cheng , Jeff Law , Tsukasa OI Cc: =?UTF-8?q?Christoph=20M=C3=BCllner?= Subject: [RFC PATCH v4 0/2] RISC-V: Add support for the Zfa extension Date: Thu, 30 Mar 2023 19:54:36 +0200 Message-Id: <20230330175438.107102-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,KAM_MANYTO,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no 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 This series adds support for the RISC-V Zfa extension. It consists of two patches: 1) A clean-up patch from Tsukasa that improves the way we structure format string directives. 2) A patch that introduces support for the Zfa extension. The first patch does not have any dependencies and is suggested to get merged as early as possible. The second patch can land once the Zfa specification gets frozen. Some additional bits to get the full context: * Tsukasa wrote a first version, which can be found here: https://sourceware.org/pipermail/binutils/2022-September/122939.html * I took over the patch as agreed here: https://sourceware.org/pipermail/binutils/2023-March/126753.html Christoph Müllner (1): RISC-V: Add support for the Zfa extension Tsukasa OI (1): RISC-V: Allocate "various" operand type bfd/elfxx-riscv.c | 39 ++++++++++ gas/config/tc-riscv.c | 113 ++++++++++++++++++++++++----- gas/doc/c-riscv.texi | 41 +++++++++++ gas/testsuite/gas/riscv/zfa-32.d | 10 +++ gas/testsuite/gas/riscv/zfa-32.s | 3 + gas/testsuite/gas/riscv/zfa-64.d | 10 +++ gas/testsuite/gas/riscv/zfa-64.s | 3 + gas/testsuite/gas/riscv/zfa-fail.d | 3 + gas/testsuite/gas/riscv/zfa-fail.l | 12 +++ gas/testsuite/gas/riscv/zfa-fail.s | 16 ++++ gas/testsuite/gas/riscv/zfa.d | 89 +++++++++++++++++++++++ gas/testsuite/gas/riscv/zfa.s | 87 ++++++++++++++++++++++ include/opcode/riscv-opc.h | 99 +++++++++++++++++++++++++ include/opcode/riscv.h | 6 ++ opcodes/riscv-dis.c | 42 +++++++++-- opcodes/riscv-opc.c | 70 +++++++++++++++++- 16 files changed, 618 insertions(+), 25 deletions(-) create mode 100644 gas/testsuite/gas/riscv/zfa-32.d create mode 100644 gas/testsuite/gas/riscv/zfa-32.s create mode 100644 gas/testsuite/gas/riscv/zfa-64.d create mode 100644 gas/testsuite/gas/riscv/zfa-64.s create mode 100644 gas/testsuite/gas/riscv/zfa-fail.d create mode 100644 gas/testsuite/gas/riscv/zfa-fail.l create mode 100644 gas/testsuite/gas/riscv/zfa-fail.s create mode 100644 gas/testsuite/gas/riscv/zfa.d create mode 100644 gas/testsuite/gas/riscv/zfa.s -- 2.39.2