From patchwork Fri Oct 15 07:46:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Chang X-Patchwork-Id: 12560789 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97899C433EF for ; Fri, 15 Oct 2021 08:53:40 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5B0C961073 for ; Fri, 15 Oct 2021 08:53:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5B0C961073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbIyB-0000IT-Fn for qemu-devel@archiver.kernel.org; Fri, 15 Oct 2021 04:53:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbHyj-00037h-Tc for qemu-devel@nongnu.org; Fri, 15 Oct 2021 03:50:09 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:40816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbHyi-0004gB-34 for qemu-devel@nongnu.org; Fri, 15 Oct 2021 03:50:09 -0400 Received: by mail-pj1-x102c.google.com with SMTP id pf6-20020a17090b1d8600b0019fa884ab85so8761324pjb.5 for ; Fri, 15 Oct 2021 00:50:07 -0700 (PDT) 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=SM2GN5c2iMKzW4yQ0BrDUcxNnTTdCEikfLjRv9YcrEU=; b=PtbO9/zzrGhqvrs82GAQA2suJwhLNti2tCfH7KwWOHF+HAYG9349yAgbBaxNC7h4jp mqqJoVHnCIX0S8/UOxXuSfvfkd9ZM6QfA/baARRnxP1jOmrcGJAi1srjGUbloqSvb4Eo t9Od4oQQtPW1imGr+J5ZNC3dyTt++EBzCHWV2OT7GwecGfFCDFR4sBvfmB5hZTl8NNuu ogTzCG8JGKa3yGc40d/sAPwI8zH1/zcpK1IjHZqPqDGTuwifumcxt6AbPQShmB5znXgb Zet42l9tr3t1hhcfySrAKzsU2LNPwWT0KziA4s+/kX9wstZAn6rttuHF7/+9iWV2JJSJ +mfA== 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=SM2GN5c2iMKzW4yQ0BrDUcxNnTTdCEikfLjRv9YcrEU=; b=mAAe3fy6r8ON2Fn3gU/hJJTkS1ayi4Qa4+3vgSFcrE4ZmWFWv5QJyHavXyJMxLeHEz c+3WHeMYSNVjDBm0yk6TD4/81FeU1CK1AB4Ab5mUBlRZPK/dn5JCSgJlYYE4LtYVXtEX CWlGteHYjf4wF19jF2yD1ZAM2rMVaLP7hLYYCX7N2TOnAI2BIQ1yxEF/UR+c66YVWwke 1DzVFfy5xU32KcISZH1W2grapdwcXqGB95LHGSietNha6gHwaDP4JWOZI+nh212akhuR w7iAgBTrs/LpQhJM2AB3POaAfaibpUqXyJHT1EBDcvs06KyRbUJBoZqIds6+xH9GBtzh GVfw== X-Gm-Message-State: AOAM530o4VuRX1+lYqP//ef9oLkhVXtxS/lyRVKV618L3R2cacv495Rl 2RUsCV6581Yq7/41AAdoVoI/sy5VwbUdLav2 X-Google-Smtp-Source: ABdhPJxpOsSUk3D2WIJuM8+F6Vh7yoQKpLDRabmJZr5i/nfOLmFJVmdL9APLPduSZHx7u3YF8HqbWw== X-Received: by 2002:a17:902:ab50:b0:13f:4c70:9322 with SMTP id ij16-20020a170902ab5000b0013f4c709322mr9643197plb.89.1634284206495; Fri, 15 Oct 2021 00:50:06 -0700 (PDT) Received: from localhost.localdomain (123-193-74-252.dynamic.kbronet.com.tw. [123.193.74.252]) by smtp.gmail.com with ESMTPSA id z13sm4271680pfq.130.2021.10.15.00.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 00:50:06 -0700 (PDT) From: frank.chang@sifive.com To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH v8 55/78] target/riscv: rvv-1.0: single-width scaling shift instructions Date: Fri, 15 Oct 2021 15:46:03 +0800 Message-Id: <20211015074627.3957162-63-frank.chang@sifive.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211015074627.3957162-1-frank.chang@sifive.com> References: <20211015074627.3957162-1-frank.chang@sifive.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=frank.chang@sifive.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Chang , Palmer Dabbelt , Alistair Francis , Bin Meng , Richard Henderson 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 a30da823d25..40061fc304f 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -2029,8 +2029,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)