From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id 66145385829D for ; Fri, 17 Jun 2022 19:09:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 66145385829D Received: by mail-lf1-x132.google.com with SMTP id h23so8266506lfe.4 for ; Fri, 17 Jun 2022 12:09:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=heb+l6ZH8Q5oNFvdhNJopZun/Ai0EOkINt9S30BD2hw=; b=fWR9mkxh7lp1tYL2bcCTguSz3JGSBD2/U2fGRZz5ZJB1j5Iyo1D5lKqknOTRj4Z7ZU APx9bGjxabehmx9WIPvUQacb/kCIYH1E5WIkahkbJZbHqNd5kuyz3AODRZG7bXRR57QK GMwbHcHUzFnpk8vii/FY0xyX1WnuX3L/06xAwsRUjfeOAmyv9eAOCY0zvjZMSTcKFCwQ zKPeRAIlZcPbRW+zeDsWd67Kza9WYL6FNwLeHcFQ2lBqv4JlwwRejd+WGMq5OwgwxzBU vFWJUchT2O79Oi3hD69s5VupHxDrFWZowjAVuwBTMiwHERBtCnBV7BD7xh1piFnAFXgq WKfA== X-Gm-Message-State: AJIora8EI3Zmn5tEznEhq7rU9d28uwnnGSdbhWqAHxWNnd7i3dLFGgeK r5vCGaqVa9dvbNZrfg+I6lpnuhVMtcM= X-Google-Smtp-Source: AGRyM1sOvEoUJhqS22H21lzDAuC3Sw7rt4sQJ0ttJEcaInZ1n+ZEz/QE9wn1zH8nNvRR7yHJYMHKxg== X-Received: by 2002:ac2:5932:0:b0:479:17b3:b99 with SMTP id v18-20020ac25932000000b0047917b30b99mr6502229lfi.409.1655492938868; Fri, 17 Jun 2022 12:08:58 -0700 (PDT) Received: from localhost.localdomain (broadband-188-32-220-156.ip.moscow.rt.ru. [188.32.220.156]) by smtp.gmail.com with ESMTPSA id o4-20020ac25e24000000b00479471cda69sm731986lfg.156.2022.06.17.12.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 12:08:58 -0700 (PDT) Sender: Dmitry Selyutin From: Dmitry Selyutin To: binutils@sourceware.org Cc: amodra@gmail.com, luke.leighton@gmail.com, Dmitry Selyutin Subject: [PATCH 1/5] svp64: support LibreSOC architecture Date: Fri, 17 Jun 2022 22:08:16 +0300 Message-Id: <20220617190820.452821-2-ghostmansd@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220617190820.452821-1-ghostmansd@gmail.com> References: <20220617190820.452821-1-ghostmansd@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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-List-Received-Date: Fri, 17 Jun 2022 19:09:02 -0000 --- gas/config/tc-ppc.c | 2 ++ include/opcode/ppc.h | 3 +++ opcodes/ppc-dis.c | 5 +++++ opcodes/ppc-opc.c | 1 + 4 files changed, 11 insertions(+) diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 4d789fd16a..76bdfb2e35 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1384,6 +1384,8 @@ PowerPC options:\n")); fprintf (stream, _("\ -mpower10, -mpwr10 generate code for Power10 architecture\n")); fprintf (stream, _("\ +-mlibresoc generate code for Libre-SOC architecture\n")); + fprintf (stream, _("\ -mcell generate code for Cell Broadband Engine architecture\n")); fprintf (stream, _("\ -mcom generate code for Power/PowerPC common instructions\n")); diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h index 7bc6ee216e..d5752a42e6 100644 --- a/include/opcode/ppc.h +++ b/include/opcode/ppc.h @@ -237,6 +237,9 @@ extern const unsigned int spe2_num_opcodes; /* Opcode is only supported by power10 architecture. */ #define PPC_OPCODE_POWER10 0x400000000000ull +/* Opcode is only supported by SVP64 extensions (LibreSOC architecture). */ +#define PPC_OPCODE_SVP64 0x800000000000ull + /* A macro to extract the major opcode from an instruction. */ #define PPC_OP(i) (((i) >> 26) & 0x3f) diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 45e8faeef5..f61e6518f1 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -200,6 +200,11 @@ struct ppc_mopt ppc_opts[] = { | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX), 0 }, + { "libresoc", (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64 + | PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 + | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 + | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX | PPC_OPCODE_SVP64), + 0 }, { "future", (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64 | PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index f5bd6dac50..fe2fcaeb1d 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -4826,6 +4826,7 @@ const unsigned int num_powerpc_operands = (sizeof (powerpc_operands) #define PPCHTM PPC_OPCODE_POWER8 #define E200Z4 PPC_OPCODE_E200Z4 #define PPCLSP PPC_OPCODE_LSP +#define SVP64 PPC_OPCODE_SVP64 /* Used to mark extended mnemonic in deprecated field so that -Mraw won't use this variant in disassembly. */ #define EXT PPC_OPCODE_RAW -- 2.36.1