From patchwork Fri Dec 10 07:56:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Chang X-Patchwork-Id: 12669035 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A66BAC433F5 for ; Fri, 10 Dec 2021 09:13:41 +0000 (UTC) Received: from localhost ([::1]:56778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvbyG-00012y-DB for qemu-devel@archiver.kernel.org; Fri, 10 Dec 2021 04:13:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvap7-0007rG-Du for qemu-devel@nongnu.org; Fri, 10 Dec 2021 03:00:09 -0500 Received: from [2607:f8b0:4864:20::633] (port=46068 helo=mail-pl1-x633.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvap4-00078D-7U for qemu-devel@nongnu.org; Fri, 10 Dec 2021 03:00:09 -0500 Received: by mail-pl1-x633.google.com with SMTP id b11so5732507pld.12 for ; Fri, 10 Dec 2021 00:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ABltglpPEiSV0bMZSNNCypN7MRIwuKTdJ/bRF4U97UM=; b=a4r6+CcU//S8uYYmMGNpJJTu0C4OPYHfFIsrRRrHy96aA4ulmwX9p3MEW1i4XtJE+c FhvFwFDfzb0xhD7CfUjVwoTDvGPvLFAcWQ2+aCCfeYeCwMYlzCdE7XaBrXkQip5ezt6X 6ytofarXPxuQaSm/464avh4ayWG1+G+cyaLzskCFFEu4IHLLnQqzgG0v2JSq8HQxL8OS ZReCvp0hnWoziDCRt0fblP/CRxQ7v4MaPbDrA4tIRhmNU8PPlKTIgLbLKGLpN/T+75Sy M3QiIg9rENyWpkQQB60sm1RS0TgNIHGbUuXTKXrVfwKQ9FbJEN3BcTRZyVN8vNAQMMDn P80w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ABltglpPEiSV0bMZSNNCypN7MRIwuKTdJ/bRF4U97UM=; b=GFpE/TFPAAJxtg5sBAK6nTZGIjOlnZnmMEW6IBn6+sZpa76PImS6fPNNqJ9PfMPsMP vR8WCX+/V5q+SRsKyJJ+6GsusziUJVLW0lyBGPx0WNbvrInmBbBfb137sRkRgVmWc//F Frh4LbqFSScPNjr192mDJJUynmSvFJy5RYkokmDw/ipYpfGyK7Rb9w0xp0/MtCl0+cSN hgxPCF8P2/91j9wEfK+ubM9Q15PXWm3pUQbRpAHuHIHe8PEoTxHJExwrriKKfWVNHfnD HykKlrrxaNnhXww4u4LmGiHRKYpz5/1QIQ2e8JzcE9V5DAT8gtKkUIO3+XuUoM6TvCPW 57/w== X-Gm-Message-State: AOAM532CL+wIE39mKb7QP4QXNS9nmIU3BhlCz7eCGAsu6q785CyoR9Zl BksBDDVMc5o++qBZdbOo+l0gkeDNIV1ZbIba X-Google-Smtp-Source: ABdhPJzJjTl924qx8kgOdfZHOKxYHjhpwIInHA5q8V3502oHGX6523KR56n9YRt7CQiighEE37ZdSg== X-Received: by 2002:a17:90a:af97:: with SMTP id w23mr21765912pjq.128.1639123204701; Fri, 10 Dec 2021 00:00:04 -0800 (PST) Received: from hsinchu16.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id f4sm2087955pfg.34.2021.12.10.00.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 00:00:04 -0800 (PST) From: frank.chang@sifive.com To: qemu-devel@nongnu.org Subject: [PATCH v11 58/77] target/riscv: rvv-1.0: remove integer extract instruction Date: Fri, 10 Dec 2021 15:56:44 +0800 Message-Id: <20211210075704.23951-59-frank.chang@sifive.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211210075704.23951-1-frank.chang@sifive.com> References: <20211210075704.23951-1-frank.chang@sifive.com> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::633 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=frank.chang@sifive.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-riscv@nongnu.org, Frank Chang , Bin Meng , Richard Henderson , Alistair Francis , Palmer Dabbelt , LIU Zhiwei Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Frank Chang Signed-off-by: Frank Chang Reviewed-by: Richard Henderson --- target/riscv/insn32.decode | 1 - target/riscv/insn_trans/trans_rvv.c.inc | 23 ----------------------- 2 files changed, 24 deletions(-) diff --git a/target/riscv/insn32.decode b/target/riscv/insn32.decode index 82484fda75..20b3095f56 100644 --- a/target/riscv/insn32.decode +++ b/target/riscv/insn32.decode @@ -632,7 +632,6 @@ viota_m 010100 . ..... 10000 010 ..... 1010111 @r2_vm vid_v 010100 . 00000 10001 010 ..... 1010111 @r1_vm vmv_x_s 010000 1 ..... 00000 010 ..... 1010111 @r2rd vmv_s_x 010000 1 00000 ..... 110 ..... 1010111 @r2 -vext_x_v 001100 1 ..... ..... 010 ..... 1010111 @r vfmv_f_s 010000 1 ..... 00000 001 ..... 1010111 @r2rd vfmv_s_f 010000 1 00000 ..... 101 ..... 1010111 @r2 vslideup_vx 001110 . ..... ..... 100 ..... 1010111 @r_vm diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index 4c5f813ccf..1ce5a10b6a 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -2840,8 +2840,6 @@ static bool trans_vid_v(DisasContext *s, arg_vid_v *a) *** Vector Permutation Instructions */ -/* Integer Extract Instruction */ - static void load_element(TCGv_i64 dest, TCGv_ptr base, int ofs, int sew, bool sign) { @@ -2941,27 +2939,6 @@ static void vec_element_loadi(DisasContext *s, TCGv_i64 dest, load_element(dest, cpu_env, endian_ofs(s, vreg, idx), s->sew, sign); } -static bool trans_vext_x_v(DisasContext *s, arg_r *a) -{ - TCGv_i64 tmp = tcg_temp_new_i64(); - TCGv dest = dest_gpr(s, a->rd); - - if (a->rs1 == 0) { - /* Special case vmv.x.s rd, vs2. */ - vec_element_loadi(s, tmp, a->rs2, 0, false); - } else { - /* This instruction ignores LMUL and vector register groups */ - int vlmax = s->vlen >> (3 + s->sew); - vec_element_loadx(s, tmp, a->rs2, cpu_gpr[a->rs1], vlmax); - } - - tcg_gen_trunc_i64_tl(dest, tmp); - gen_set_gpr(s, a->rd, dest); - - tcg_temp_free_i64(tmp); - return true; -} - /* Integer Scalar Move Instruction */ static void store_element(TCGv_i64 val, TCGv_ptr base,