From nobody Sat Sep 21 07:43:51 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1704877168; cv=none; d=zohomail.com; s=zohoarc; b=OS1jzFPtuIDuDpbocnAXYnRBTYkmflgBPWJA+cTHpOgqb4Tbujn2sjAvwZjHrh0zGYqs4B6biSLIrDwIwUsVQ9cOQ7NrqINN0p3vfsBqL89SCC/s7CnkNNpFIH9pSaCXz5KWW3ONZGOIUTTY3hIlYgfaaVBoSIOYrJBdqjLa6D8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704877168; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=wWXRjNqIFVf/znuj3TKfRSvkUuguB0wRL87zUAKbFLY=; b=ZqCysrBb4Axg8FliFVyVzuFstnaKVc3VcjIu3prFehsTNTR6G7x6wxacNLFLqFlk1ceEIz3RgRZr9T3MboFe15A8TPMbrLakENo+Al8OxoY6j3QKXBwYQOSOOpcFwBL+leOe3OJ4SviLkBu3Z48kPtE18/K8J+tDj1Y9Rob3rjY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704877168750193.19181357133016; Wed, 10 Jan 2024 00:59:28 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNUPQ-0001Lf-RK; Wed, 10 Jan 2024 03:58:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNUPM-0001KX-6g for qemu-devel@nongnu.org; Wed, 10 Jan 2024 03:57:56 -0500 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNUPK-0003OI-Ic for qemu-devel@nongnu.org; Wed, 10 Jan 2024 03:57:55 -0500 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-59502aa878aso2052462eaf.1 for ; Wed, 10 Jan 2024 00:57:52 -0800 (PST) Received: from toolbox.alistair23.me (2403-580b-97e8-0-321-6fb2-58f1-a1b1.ip6.aussiebb.net. [2403:580b:97e8:0:321:6fb2:58f1:a1b1]) by smtp.gmail.com with ESMTPSA id t65-20020a628144000000b006d9879ba6besm3223814pfd.170.2024.01.10.00.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 00:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704877071; x=1705481871; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wWXRjNqIFVf/znuj3TKfRSvkUuguB0wRL87zUAKbFLY=; b=VdWdO0xkcxoZKTpIf3PpcJiREA8VA9CsZUTu1n7bQIEmgpQucYaT+QeGfIIKatjKKh IMwbYPkGV5Mv9+cFtKKr5vejdffeRRYec/itsram3uIv4xyG1laOc+x3Q3nnYjXkyjaC OHTvxCuOaVKEJSkrfhIYTeFw0iM5p+BYWxxocWVGv+4H+2U84LO1alsWM1BB/DbKasyW 74Fm5CFKRdrLCzackLzQdJJFeFo8h/TqbrCIjQlM2KIcYLEFVrA/94b9vf6SzAdKIay7 ZE7bpU/DmzcHzVszrcb2YEMnZZITPNBpYbF8N73SSYo51n27u2FATrr3EJzvU4ruq4P0 lOlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704877071; x=1705481871; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wWXRjNqIFVf/znuj3TKfRSvkUuguB0wRL87zUAKbFLY=; b=SX/y5znKrfwieqI7jKT1GyA1+xY0U/x0a2fmrwZKtucjyz1nI6jYUpIZ8Z7hX9nRjt a5QZG3hHJyoiXZ6HgK8DNhJ43rVLMOfbsCHFAkBR6tg+Wur03H2f/M9/FVlRel1nkav/ LJEBnRmjTXmmI7JqV24pZKppEpfoaTNh4SkTELer1WkQQaRI46ZLVxUyk3GnsohACUKH Lrjaw0MLFIGAsABOFjAhOIZwMJxQzkwBKXpY2pyu9Gxk8eufvC3hmY602Fram7dGDEgG T4jIDJDZfdX7JCPguFtaY6TsEkEWA1JJ93lK6RrxpEqG8f74OUOnQDTlpZiWa12Lf0F8 vH4A== X-Gm-Message-State: AOJu0Yyvr3oE2ar7flQB8QiUtPEKdXDsX7rY/Mn7Zhu5yeLBe9bOYtTP Er7mPMXq7ba6iGEQlGTlNctAEv2gFl2wxVPe X-Google-Smtp-Source: AGHT+IFdN8kuSd464NfUMAKNQwLW6bcNT0AadOlL6tZ+sCUFTYK7HPcKSDe0H7oo9U9Ub0i9KGb+2w== X-Received: by 2002:a05:6358:724f:b0:174:f1d9:563a with SMTP id i15-20020a056358724f00b00174f1d9563amr710993rwa.47.1704877071446; Wed, 10 Jan 2024 00:57:51 -0800 (PST) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, Max Chou , Richard Henderson , Alistair Francis Subject: [PULL 02/65] target/riscv: The whole vector register move instructions depend on vsew Date: Wed, 10 Jan 2024 18:56:30 +1000 Message-ID: <20240110085733.1607526-3-alistair.francis@wdc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240110085733.1607526-1-alistair.francis@wdc.com> References: <20240110085733.1607526-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::c32; envelope-from=alistair23@gmail.com; helo=mail-oo1-xc32.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1704877170447100003 Content-Type: text/plain; charset="utf-8" From: Max Chou The RISC-V v spec 16.6 section says that the whole vector register move instructions operate as if EEW=3DSEW. So it should depends on the vsew field of vtype register. Signed-off-by: Max Chou Acked-by: Richard Henderson Message-ID: <20231129170400.21251-3-max.chou@sifive.com> Signed-off-by: Alistair Francis --- target/riscv/insn_trans/trans_rvv.c.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_tr= ans/trans_rvv.c.inc index 114ad87397..3871f0ea73 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -3643,8 +3643,7 @@ static bool trans_##NAME(DisasContext *s, arg_##NAME = * a) \ QEMU_IS_ALIGNED(a->rs2, LEN)) { \ uint32_t maxsz =3D (s->cfg_ptr->vlen >> 3) * LEN; \ if (s->vstart_eq_zero) { \ - /* EEW =3D 8 */ \ - tcg_gen_gvec_mov(MO_8, vreg_ofs(s, a->rd), \ + tcg_gen_gvec_mov(s->sew, vreg_ofs(s, a->rd), \ vreg_ofs(s, a->rs2), maxsz, maxsz); \ mark_vs_dirty(s); \ } else { \ --=20 2.43.0