From nobody Mon Nov 25 07:50:01 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=1717413751; cv=none; d=zohomail.com; s=zohoarc; b=eUZsvNA0Twl3EsA56w1v6d2vRWJ8qJ11keRsF/IMQOs+Y/GYB4o1GygUkzsTkikuo14kDxuFaXLNx0Jmf5GWZDKgFdKkRbsniWLKSHamRTm9sd2dE2zexR9lRlohGTTH9Hmcu6wUwhzcFB5y4Cm4VdsvB51nRVcR10I2CRit8PI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717413751; h=Content-Type: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=CrA1yFz/vo6xDp44uAmjkDhM86TQ9bxMrsQw3O2UUX8=; b=fVwNElzBcv2qMbGxARn2MHnX+q91GnkQ3QLDOa+pfBrtGRz5TWpNw7Pl60JVeaUvxNVEO+FoxsQ1K0a144TV8pnKccPx/CXr/3lFgH2QkFu0vvLGR1oXEa4wit9eZp06GS3QnweA+l8rIVWsN2P95c7/PSwOTsKL+Hg3Crm398M= 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 1717413751274202.7368878241282; Mon, 3 Jun 2024 04:22:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sE5hT-0006Lj-AL; Mon, 03 Jun 2024 07:18:03 -0400 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 1sE5hO-0005wH-9y; Mon, 03 Jun 2024 07:17:58 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sE5hL-0006Ov-I3; Mon, 03 Jun 2024 07:17:57 -0400 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1f44b594deeso30730745ad.2; Mon, 03 Jun 2024 04:17:53 -0700 (PDT) Received: from toolbox.alistair23.me (2403-580b-97e8-0-82ce-f179-8a79-69f4.ip6.aussiebb.net. [2403:580b:97e8:0:82ce:f179:8a79:69f4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323e18c7sm62375435ad.177.2024.06.03.04.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 04:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717413472; x=1718018272; 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=CrA1yFz/vo6xDp44uAmjkDhM86TQ9bxMrsQw3O2UUX8=; b=VuIAVzJeg+KB+VSzEjdKeSh1MhGHuDZ4EdnH0YuQyXOP0EYk5/NegqsN5caY/pIBmd Ld/4ngGBz0qDR0qInginHe9eRVUxUsAmdw3ZpkgyNwAVaiOSbf4fHd2iOsu+pqux+IcA 6mer7IH6WRYLob4Qe9afVvVYh9Q3Bv44sNpD//1ijgMKlKJyUSC+4Q4dzIwgG9LH1wgR MURU+YypaapJDSGhtOJ7vm/FCbp4wUVnN6HAixfp8d8ARoAfcr4Xory2i2dQW3V68o5G tU4K+NFjBAsAQ6CiY6wOcrCZpBYJsyqsJjwQq4sUfxE9Sgit2fW/5jSd0Frq5wQwIgz2 524A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717413472; x=1718018272; 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=CrA1yFz/vo6xDp44uAmjkDhM86TQ9bxMrsQw3O2UUX8=; b=mkbFYlIOE3U+VOKhY9ZO/yLx1ctHeSZe09713UZus2qoIBtgOvxmwBfDg7g+83v7NQ mGENpN50jAAsRA8IppaAaklpfDs9KbgO3JY6twru1aaTIKvSjg8YX00TRHG7qmepUXuk xD+q0S2ER3sgjPCc3O6reLI30HIO8X3Yx80IzkNL/DcmKUsmRZPDUOOinfK80A66Sme6 IIVVHTKar7puuLJrNcLOjIldyOCevqxOM/M7EiUIc8LXpBwGAm9U5QWcNqG/em+djkL3 +B3w7k0YLnUT9ciXts/vwE8txScOnfpgh7XN+1U/b2s0vmFwpYHPMYRpBHAk5yuRiNz6 dAag== X-Forwarded-Encrypted: i=1; AJvYcCVxZ/4Axz+k7QYLr5u0sipNpGUNic1YYjAVhXQe/Efo0jPoDw2ZUKY8iUWzVPrvk73NKmdQ0GLOZ2b5S1c08pNfjzQh2X9e X-Gm-Message-State: AOJu0YzfoiIBpD5IYZQKyaFT2HEbi/hhq7i1TTUp3HiygA4EmOz8LpZP GhWIaM1WFg/YC0DxZzTkjsjgSfqnqejUakO+lAJfUOmNZ9pXstGzZpsv0w== X-Google-Smtp-Source: AGHT+IHLZdOD6jDKBTKp5CPdBBrkZ/KyevNtMSR8Q2kgcY3Q6SzWuPOJ1apZzGMqSFXipRf326yINg== X-Received: by 2002:a17:902:e546:b0:1f6:5bba:f134 with SMTP id d9443c01a7336-1f65bbaf520mr58365435ad.46.1717413471702; Mon, 03 Jun 2024 04:17:51 -0700 (PDT) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, Max Chou , Daniel Henrique Barboza , qemu-stable , Alistair Francis Subject: [PULL v2 18/27] target/riscv: rvv: Check single width operator for vector fp widen instructions Date: Mon, 3 Jun 2024 21:16:34 +1000 Message-ID: <20240603111643.258712-19-alistair.francis@wdc.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240603111643.258712-1-alistair.francis@wdc.com> References: <20240603111643.258712-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::630; envelope-from=alistair23@gmail.com; helo=mail-pl1-x630.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: 1717413753187100003 From: Max Chou The require_scale_rvf function only checks the double width operator for the vector floating point widen instructions, so most of the widen checking functions need to add require_rvf for single width operator. The vfwcvt.f.x.v and vfwcvt.f.xu.v instructions convert single width integer to double width float, so the opfxv_widen_check function doesn=E2= =80=99t need require_rvf for the single width operator(integer). Signed-off-by: Max Chou Reviewed-by: Daniel Henrique Barboza Cc: qemu-stable Message-ID: <20240322092600.1198921-3-max.chou@sifive.com> Signed-off-by: Alistair Francis --- target/riscv/insn_trans/trans_rvv.c.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_tr= ans/trans_rvv.c.inc index 678b34b759..a7217aed4e 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -2331,6 +2331,7 @@ GEN_OPFVF_TRANS(vfrsub_vf, opfvf_check) static bool opfvv_widen_check(DisasContext *s, arg_rmrr *a) { return require_rvv(s) && + require_rvf(s) && require_scale_rvf(s) && (s->sew !=3D MO_8) && vext_check_isa_ill(s) && @@ -2370,6 +2371,7 @@ GEN_OPFVV_WIDEN_TRANS(vfwsub_vv, opfvv_widen_check) static bool opfvf_widen_check(DisasContext *s, arg_rmrr *a) { return require_rvv(s) && + require_rvf(s) && require_scale_rvf(s) && (s->sew !=3D MO_8) && vext_check_isa_ill(s) && @@ -2402,6 +2404,7 @@ GEN_OPFVF_WIDEN_TRANS(vfwsub_vf) static bool opfwv_widen_check(DisasContext *s, arg_rmrr *a) { return require_rvv(s) && + require_rvf(s) && require_scale_rvf(s) && (s->sew !=3D MO_8) && vext_check_isa_ill(s) && @@ -2441,6 +2444,7 @@ GEN_OPFWV_WIDEN_TRANS(vfwsub_wv) static bool opfwf_widen_check(DisasContext *s, arg_rmrr *a) { return require_rvv(s) && + require_rvf(s) && require_scale_rvf(s) && (s->sew !=3D MO_8) && vext_check_isa_ill(s) && @@ -2941,6 +2945,7 @@ GEN_OPFVV_TRANS(vfredmin_vs, freduction_check) static bool freduction_widen_check(DisasContext *s, arg_rmrr *a) { return reduction_widen_check(s, a) && + require_rvf(s) && require_scale_rvf(s) && (s->sew !=3D MO_8); } --=20 2.45.1