From nobody Thu May 16 13:44:43 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=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1710919710; cv=none; d=zohomail.com; s=zohoarc; b=msBxp/xZU2zUlDtEoLEtCERPTbQb8lOPud3jvBvc7dE9mNJCKP2iPPKUc6wceA0oAMckJNv+xxgtjowozoXbvJNmQQ3/Exifc86CUDc0/W2MxtzVqlPblOeqQy1vGqH3p1idxXOgOD/vZI9+b9K8imKCktEQQ9So6ZiQySSGnf0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1710919710; 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=F4pSOxGw1iKhj6JyuEVr4nPf5e0kX4KKw2u4riiw7+w=; b=N8FItf6XU8MOgIK1EtWqt14TOsw0SrB+nQZqStelO/68RfCwMxxrA2HYAh2ulx/nBDDC9iiuSxsAsbihGsUrWKORjipcpLvrINaE8klASX/vBum5Kk0ZWvm9xYQvHnJQcwEkOcihwyd3uwxOtdQl2nRQ6lnWBPKzbCmYx88eEnw= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 171091971077652.106255161722856; Wed, 20 Mar 2024 00:28:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmqMH-0006Cu-GT; Wed, 20 Mar 2024 03:27:33 -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 1rmqMG-0006CL-0d for qemu-devel@nongnu.org; Wed, 20 Mar 2024 03:27:32 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmqME-0003ih-6z for qemu-devel@nongnu.org; Wed, 20 Mar 2024 03:27:31 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6e6cb0f782bso5527557b3a.1 for ; Wed, 20 Mar 2024 00:27:29 -0700 (PDT) Received: from duncan.localdomain (114-35-142-126.hinet-ip.hinet.net. [114.35.142.126]) by smtp.gmail.com with ESMTPSA id p10-20020a056a000a0a00b006e6b45debe8sm10811376pfh.78.2024.03.20.00.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1710919648; x=1711524448; 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=F4pSOxGw1iKhj6JyuEVr4nPf5e0kX4KKw2u4riiw7+w=; b=i5qUIyyEuMLVoIMSvxIb0s3pH5oBFZVCr9sgbhJgtCLIEvLXbthaUuLmTN14GjKj1I 8yHH12/+aFnO95pCf/RQZO+/M0pMUwSUp6sHlwiWhe5rL9oHTOIgBF8T6CIIfLF5uJ60 ojMzn3wDDPTBT5uSwTtMvjq8jr0CirmTA8qbZWeAQsrdGBt3okL1hnB5OryCdHqB9IHL DFYE9FrFXHn80CEE9dcdiGm3OOTwVUBpDAJ2Gtyky8ypOl4Vj6LAaSYLFxB385BbCAPn tlEiGsmUn48ApMPL6nhA7OGlAg58IicBK3fMfXT2LnLg1nsjghe3HKbpPjf7DBptGd7V ivag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710919648; x=1711524448; 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=F4pSOxGw1iKhj6JyuEVr4nPf5e0kX4KKw2u4riiw7+w=; b=YTkaEExwQaWHIXKw9b0W2MHBmNUqiYrR/Q6Iw0SNZZiDciHLYvevRTKzsaRMYNIu+R NGtNpu6IJhD4A8MNijhSTPS39Z4xGqPiMUuGry/MJgsxQxcrPSUnalIu4ztSnZPRE0bn esE9CKDlsevJw/gS5AGkAQvpjDKjYnlsGwaY/om/OhAOo1DOt08EsFDS9DgrCZyJz9ff 21A2g2/KKXiUHQ+R5FTMx38ehoBX539n/PAfWGEcV7FGOnwenvwBy/9h+fX7Is/nGtpQ 6ECY9Ab3iZ5BYyP6rPZABlJS6DhplpHf+mA/s6LqMSC4M7XwtMHAMPLCbUzuEgylI+G1 B6VA== X-Gm-Message-State: AOJu0YzGbW9PyviHB1Q54hzZ7ZB3hQoK9Y+xFX5sTE+1OwF0L7oF5zrc mYPbI3lWDhglvBKtKiQYbPwiUBHiOnuiJyYTUbRzRFBXeSlOtKPJ6bIVkSCUP7FwVTGEUQAzCIm 30ESaGr8FRwyKxZIiNbv4SunDCrFPGdfWngwobSvMVde5qQxR9mGClqbVfjJtNq+5zNHlCgt8wM EQfHiJBE429M9nQqfV4LRYJ59MVbRen1o2Hxe30w== X-Google-Smtp-Source: AGHT+IFYCuEmNtVd+9qnOCTZtfYOqG1HPFg+QY6lvWC3uksv5rI+PSVqHTwuWOAitDJ0Lc1zXFlFlA== X-Received: by 2002:a05:6a00:2304:b0:6e7:2e76:5358 with SMTP id h4-20020a056a00230400b006e72e765358mr1233025pfh.29.1710919648075; Wed, 20 Mar 2024 00:27:28 -0700 (PDT) From: Max Chou To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Max Chou , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Richard Henderson Subject: [PATCH] target/riscv: rvv: Check single width operator for vfncvt.rod.f.f.w Date: Wed, 20 Mar 2024 15:25:04 +0800 Message-Id: <20240320072709.1043227-4-max.chou@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240320072709.1043227-1-max.chou@sifive.com> References: <20240320072709.1043227-1-max.chou@sifive.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::42d; envelope-from=max.chou@sifive.com; helo=mail-pf1-x42d.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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 @sifive.com) X-ZM-MESSAGEID: 1710919712124100001 Content-Type: text/plain; charset="utf-8" The opfv_narrow_check needs to check the single width float operator by require_rvf. Signed-off-by: Max Chou Reviewed-by: Daniel Henrique Barboza --- target/riscv/insn_trans/trans_rvv.c.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_tr= ans/trans_rvv.c.inc index 6cb9bc9fde..19059fea5f 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -2817,6 +2817,7 @@ static bool opffv_narrow_check(DisasContext *s, arg_r= mr *a) static bool opffv_rod_narrow_check(DisasContext *s, arg_rmr *a) { return opfv_narrow_check(s, a) && + require_rvf(s) && require_scale_rvf(s) && (s->sew !=3D MO_8); } --=20 2.31.1