From patchwork Fri Oct 15 07:45:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Chang X-Patchwork-Id: 12560695 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 58B18C433F5 for ; Fri, 15 Oct 2021 08:37:43 +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 EBA8B60FDA for ; Fri, 15 Oct 2021 08:37:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EBA8B60FDA 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]:51682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbIij-000355-SJ for qemu-devel@archiver.kernel.org; Fri, 15 Oct 2021 04:37:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbHyM-00029G-QF for qemu-devel@nongnu.org; Fri, 15 Oct 2021 03:49:46 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:35756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbHyL-0004M7-BR for qemu-devel@nongnu.org; Fri, 15 Oct 2021 03:49:46 -0400 Received: by mail-pj1-x102d.google.com with SMTP id d13-20020a17090ad3cd00b0019e746f7bd4so8800910pjw.0 for ; Fri, 15 Oct 2021 00:49:44 -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=YE6GU3EgdqLfh6XtDoPgH6ClC3r3aGQSWUDP080hnKE=; b=S4a3ivMeiIuWzoL02rmNmZB4zIl55mNT+JbtBlIMRt1L2OiSAfNPtfhpG4AR8RUs6c 4K4JqX/MLmuJAUk3rjgCP7k9yDlEUeJDQuVo8LClFlNS4oDi/6olUzCPfO/jGOEvxeAK OwU1N7hZp+aUhVegpc9vf8endWRcGLza5Ulzb7I2vU+eZItxLyHExTnr+ePs2DSJ+G9E p+rFNi/ROnca7KlQkQ/ysYyRngW0Mx6cBuPoL9s4mLj70smA1pzXJkyLhZkGxcmlccQA u1N7UZ8w70mBQdUKpO7BxVwY+5zl5uczIRL8dwm5x4UwLGDLM3zUE27rN+/oA1iGOk/X MLQA== 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=YE6GU3EgdqLfh6XtDoPgH6ClC3r3aGQSWUDP080hnKE=; b=evpEFqh6s8w4CU3ULN3YFUfSsR3M+BVusIVXd4O/d33wACPzI8x5wGTYzKRtkaJoy0 LNVe2azHZF98+ntupdTaIaAVLRHkZYoql7dTy3EFLvFHM+vjoT+FX8XwfHfG4b0Wf7BZ FvXXGWZ96gSqsGP3S4hDwEcGFnAJJNFFLuy8Poj0HfX3FyR1Z+B9NsrAHC2hkoSFB8ZZ UqIHyfItLOc1X7W1GTsUTREpOJ8C2jsHYwO6TdGW027ZdKyIqHhS5ItArUL55gvIGvci TzFMVIAjt/8f5NvpjnFAu+l8WAdhcF3f9R0XB0De5poPvJnxMju/H6jmMb9YVtZ9xlUj /ZHw== X-Gm-Message-State: AOAM530hqXrxakg1Xudzu1bAnhrXFZfSpqGcrcfD5NAySBG2R42Zqx9F sdf6pyo7ckVLXwN43VuMA1/t4noV0Qye2U5Z X-Google-Smtp-Source: ABdhPJyvhF8NymJhZRpTHlsNZUCddnHA1rsRIIdyFS+raVAHkCl36nZjFyyGJnO86h0aGg3f1Vahtw== X-Received: by 2002:a17:902:ec82:b0:13f:663c:87cc with SMTP id x2-20020a170902ec8200b0013f663c87ccmr9732263plg.24.1634284184008; Fri, 15 Oct 2021 00:49:44 -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.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 00:49:43 -0700 (PDT) From: frank.chang@sifive.com To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH v8 48/78] target/riscv: rvv-1.0: floating-point compare instructions Date: Fri, 15 Oct 2021 15:45:56 +0800 Message-Id: <20211015074627.3957162-56-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::102d; envelope-from=frank.chang@sifive.com; helo=mail-pj1-x102d.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=ham 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 Signed-off-by: Frank Chang Reviewed-by: Richard Henderson --- target/riscv/vector_helper.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 277a5e4120a..71d7b1e8796 100644 --- a/target/riscv/vector_helper.c +++ b/target/riscv/vector_helper.c @@ -3710,8 +3710,6 @@ void HELPER(NAME)(void *vd, void *v0, void *vs1, void *vs2, \ { \ uint32_t vm = vext_vm(desc); \ uint32_t vl = env->vl; \ - uint32_t vlmax = vext_max_elems(desc, \ - ctzl(sizeof(ETYPE))); \ uint32_t i; \ \ for (i = 0; i < vl; i++) { \ @@ -3723,9 +3721,6 @@ void HELPER(NAME)(void *vd, void *v0, void *vs1, void *vs2, \ vext_set_elem_mask(vd, i, \ DO_OP(s2, s1, &env->fp_status)); \ } \ - for (; i < vlmax; i++) { \ - vext_set_elem_mask(vd, i, 0); \ - } \ } GEN_VEXT_CMP_VV_ENV(vmfeq_vv_h, uint16_t, H2, float16_eq_quiet) @@ -3738,7 +3733,6 @@ void HELPER(NAME)(void *vd, void *v0, uint64_t s1, void *vs2, \ { \ uint32_t vm = vext_vm(desc); \ uint32_t vl = env->vl; \ - uint32_t vlmax = vext_max_elems(desc, ctzl(sizeof(ETYPE))); \ uint32_t i; \ \ for (i = 0; i < vl; i++) { \ @@ -3749,9 +3743,6 @@ void HELPER(NAME)(void *vd, void *v0, uint64_t s1, void *vs2, \ vext_set_elem_mask(vd, i, \ DO_OP(s2, (ETYPE)s1, &env->fp_status)); \ } \ - for (; i < vlmax; i++) { \ - vext_set_elem_mask(vd, i, 0); \ - } \ } GEN_VEXT_CMP_VF(vmfeq_vf_h, uint16_t, H2, float16_eq_quiet)