From patchwork Fri Dec 10 07:56:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Chang X-Patchwork-Id: 12668955 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 B80BFC433F5 for ; Fri, 10 Dec 2021 08:39:48 +0000 (UTC) Received: from localhost ([::1]:60426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvbRT-0004cd-NO for qemu-devel@archiver.kernel.org; Fri, 10 Dec 2021 03:39:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvaox-0007XQ-KT for qemu-devel@nongnu.org; Fri, 10 Dec 2021 02:59:59 -0500 Received: from [2607:f8b0:4864:20::432] (port=41692 helo=mail-pf1-x432.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvaow-00074o-7d for qemu-devel@nongnu.org; Fri, 10 Dec 2021 02:59:59 -0500 Received: by mail-pf1-x432.google.com with SMTP id g19so7772373pfb.8 for ; Thu, 09 Dec 2021 23:59:57 -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=v+sEuxg9eYRt1/Vx8zfdr1vqFD8qCJSCIkB6Tl6EbFs=; b=KyGd23vY3t9CA5R7NQJvyRkdrYtzRDClYSfJCrAJ3zHI7gYav2CgxTF1vj+VK6EIOU vbuithq/A+XsNtRNVeAyr4Mkbc5kYDmVcsJxOAafHqx+WjFcsZ+iwneqJM7ZgO5DQMoO DtPWO+Efc5CzmZyhIlvLLUc0NzpdgxYRkDII4VqqpIoHOcH4e3r5/PK9yQlUQA+H3TdV qdYvrHC7LAvQxy2ShyC0cDLCMBr0/q9DtLrcHmCdwk7AlqFTCEPvl02qK4fjmtfLd3G2 XuNeH0wVOCwx6r+kI4r/0QugPUGspCh1v+wVWQx9ZCUwDIBJt3q7d0qBzkm8HxULUYHp wZfA== 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=v+sEuxg9eYRt1/Vx8zfdr1vqFD8qCJSCIkB6Tl6EbFs=; b=2CWS2XnOnznfj0f3iiyAexr8T+n9pGDhtpeZle6V/5gg4+MTpUOd6pzMESnnyQdSvC LP3/SztIY8t9/emFnqIrfRuECih+DR8znIvr1d83fNs4cNWROOTmWR/poRfBK/dRwIGf M6ppbJIofgVonvQLv0T0mjc+E7z4t700a+mPuKdUgU1YGI4l2Z3502j9xlPtgEmb8H8J Rb8+JJ82JyCNd7n+eaY7S3SfM/Ats91/RFt1y/FbOMhBlbtxHjhpvXGGijMHG35RxZOI 7MEf9Hf3oS0j0+B1Zd6SRpfC3Dw6WFoTnZW5xRiHQNPQ0PdvycG9+E4tAILSDyI80oCH BloA== X-Gm-Message-State: AOAM531kCZMJJtfuWULTjHr3cAWZM2x0TLi87KO7bFYGOTMEo3bnmm6a 3gmx08RydRyOzVyOqkGsNYUK9d6sRJ8z1gw/ X-Google-Smtp-Source: ABdhPJzlu6vDyymMrULPxHUyLXh2JMABNkX7cY42MPKzywTafG9l4Nk0g1ccN58ldpPFzEk+iLGMMQ== X-Received: by 2002:a63:f654:: with SMTP id u20mr38284331pgj.187.1639123196939; Thu, 09 Dec 2021 23:59:56 -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.09.23.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 23:59:56 -0800 (PST) From: frank.chang@sifive.com To: qemu-devel@nongnu.org Subject: [PATCH v11 55/77] target/riscv: rvv-1.0: single-width scaling shift instructions Date: Fri, 10 Dec 2021 15:56:41 +0800 Message-Id: <20211210075704.23951-56-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::432 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=frank.chang@sifive.com; helo=mail-pf1-x432.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 log(SEW) truncate vssra.vi immediate value. Signed-off-by: Frank Chang Reviewed-by: Richard Henderson --- target/riscv/insn_trans/trans_rvv.c.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index b43234ed3f..03716ad706 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -2030,8 +2030,8 @@ GEN_OPIVV_TRANS(vssrl_vv, opivv_check) GEN_OPIVV_TRANS(vssra_vv, opivv_check) GEN_OPIVX_TRANS(vssrl_vx, opivx_check) GEN_OPIVX_TRANS(vssra_vx, opivx_check) -GEN_OPIVI_TRANS(vssrl_vi, IMM_ZX, vssrl_vx, opivx_check) -GEN_OPIVI_TRANS(vssra_vi, IMM_SX, vssra_vx, opivx_check) +GEN_OPIVI_TRANS(vssrl_vi, IMM_TRUNC_SEW, vssrl_vx, opivx_check) +GEN_OPIVI_TRANS(vssra_vi, IMM_TRUNC_SEW, vssra_vx, opivx_check) /* Vector Narrowing Fixed-Point Clip Instructions */ GEN_OPIWV_NARROW_TRANS(vnclipu_wv)