From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by sourceware.org (Postfix) with ESMTPS id 75656385415E for ; Thu, 23 Jun 2022 19:37:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 75656385415E Received: by mail-lf1-x12d.google.com with SMTP id t25so708045lfg.7 for ; Thu, 23 Jun 2022 12:37:55 -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=kyaq9KChzo8CX3Ysw4+xOtGmOxMwC+VhCcC7IBWrVys=; b=hWiAz8CABQU8/ikE3c3lKii8ir51u4L7vInNrhcGewUwCHkZivL8v29x22Qa1HTsWV m1/wa+92KI4MgnDT12XeLXCyAy9uD51S4svQbehpC2xyvPfMYjSI7245G+6Rt4zBWq0j du06FlMQuW1REoiZWj8fyCnppW1Ti1ljQuDZMxkGnz4As2J8KAUdUqVB0OoNrScErRp9 6RG57ul/XMCpRdBfBAGvHfWYKVYJBF4r5Oo3vqZ0Dr96zx+uN4g6xuYBx3dgwfMbuvqz MKdRW7dgkgkxwIoPgcy7OpVp2VhI2QGBTa1UtQM+VHUPb8C2d++5OvmKfHPPKy41zDaB 3ejg== X-Gm-Message-State: AJIora9A+Ny2QjnlwXaQATODSNj8eWd1nHQwb5tCE+ADX6E7aYHOGEiV dKqEg0Kd683x3sFcM/vBzqdHbJDMxc4= X-Google-Smtp-Source: AGRyM1sEbYLwMD2j6yUjpPGhFsJ70VmTKvFIOwwQwI0SXKjIVuVwprLCo9pvbyVWBL5OzvBQ8rkTHg== X-Received: by 2002:a19:5e49:0:b0:47a:28a4:9667 with SMTP id z9-20020a195e49000000b0047a28a49667mr6349529lfi.65.1656013073813; Thu, 23 Jun 2022 12:37:53 -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 a8-20020ac25208000000b0047f74ee6a1fsm9737lfl.63.2022.06.23.12.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 12:37:53 -0700 (PDT) Sender: Dmitry Selyutin From: Dmitry Selyutin To: binutils@sourceware.org Cc: Alan Modra , Luke Kenneth Casson Leighton , Dmitry Selyutin Subject: [PATCH v3 4/6] ppc/svp64: support svstep instructions Date: Thu, 23 Jun 2022 22:37:32 +0300 Message-Id: <20220623193734.1245650-5-ghostmansd@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623193734.1245650-1-ghostmansd@gmail.com> References: <20220621115115.1068453-1-ghostmansd@gmail.com> <20220623193734.1245650-1-ghostmansd@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 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, UNWANTED_LANGUAGE_BODY 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: Thu, 23 Jun 2022 19:37:57 -0000 https://libre-soc.org/openpower/sv/ https://libre-soc.org/openpower/isa/simplev/ --- gas/testsuite/gas/ppc/ppc.exp | 1 + gas/testsuite/gas/ppc/svstep.d | 13 +++++++++++++ gas/testsuite/gas/ppc/svstep.s | 5 +++++ opcodes/ppc-opc.c | 3 +++ 4 files changed, 22 insertions(+) create mode 100644 gas/testsuite/gas/ppc/svstep.d create mode 100644 gas/testsuite/gas/ppc/svstep.s diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index cd4dd658ce..d4d06d587e 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -155,3 +155,4 @@ run_dump_test "pr27676" run_dump_test "raw" run_dump_test "setvl" +run_dump_test "svstep" diff --git a/gas/testsuite/gas/ppc/svstep.d b/gas/testsuite/gas/ppc/svstep.d new file mode 100644 index 0000000000..156eb4668a --- /dev/null +++ b/gas/testsuite/gas/ppc/svstep.d @@ -0,0 +1,13 @@ +#as: -mlibresoc +#objdump: -dr -Mlibresoc + +.*: file format .* + + +Disassembly of section \.text: +0+ <\.text>: +.*: (27 00 00 58|58 00 00 27) svstep. r0,1,0 +.*: (26 00 00 58|58 00 00 26) svstep r0,1,0 +.*: (26 00 e0 59|59 e0 00 26) svstep r15,1,0 +.*: (26 7e 00 58|58 00 7e 26) svstep r0,64,0 +.*: (66 00 00 58|58 00 00 66) svstep r0,1,1 diff --git a/gas/testsuite/gas/ppc/svstep.s b/gas/testsuite/gas/ppc/svstep.s new file mode 100644 index 0000000000..f238954cf6 --- /dev/null +++ b/gas/testsuite/gas/ppc/svstep.s @@ -0,0 +1,5 @@ +svstep. 0,1,0 +svstep 0,1,0 +svstep 15,1,0 +svstep 0,64,0 +svstep 0,1,1 diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 2b47fb8781..c1ad26def9 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -6783,6 +6783,9 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"rlmi", M(22,0), M_MASK, M601, PPCVLE, {RA, RS, RB, MBE, ME}}, {"rlmi.", M(22,1), M_MASK, M601, PPCVLE, {RA, RS, RB, MBE, ME}}, +{"svstep", SVL(22,19,0), SVL_MASK, SVP64, PPCVLE, {RT, SVi, vf}}, +{"svstep.", SVL(22,19,1), SVL_MASK, SVP64, PPCVLE, {RT, SVi, vf}}, + {"setvl", SVL(22,27,0), SVL_MASK, SVP64, PPCVLE, {RT, RA, SVi, vf, vs, ms}}, {"setvl.", SVL(22,27,1), SVL_MASK, SVP64, PPCVLE, {RT, RA, SVi, vf, vs, ms}}, -- 2.36.1