Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1n9db2-00010I-98 for mharc-qemu-riscv@gnu.org; Mon, 17 Jan 2022 20:47:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9dal-0000uH-L0 for qemu-riscv@nongnu.org; Mon, 17 Jan 2022 20:47:23 -0500 Received: from [2607:f8b0:4864:20::42b] (port=40718 helo=mail-pf1-x42b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9daF-0007eK-A6 for qemu-riscv@nongnu.org; Mon, 17 Jan 2022 20:47:09 -0500 Received: by mail-pf1-x42b.google.com with SMTP id w204so11704879pfc.7 for ; Mon, 17 Jan 2022 17:46:21 -0800 (PST) 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=CiQ7qpUpeUPn7kb7WI+XOp9OTAKSfxy1iCOYUAh4jxI=; b=WY2ryExIfzybyeoeTMWtp2sDudgvouRRsJBnMG0tbrTZytJrrwX8tXLJqtIOUxGShX MWpnzZ3h1vrRq3aPwpbdwUjQv98aP9D+JUgPQQiq5Mm6vsyzHRPGTPFcDPLelQBnfxYx TH2lBqPKz65cLUEqnSUkz+MbtJzb66XqqDh3DSzBL2TbmqCWP8x9UeCh9wP09yxwKtic 3i9WZAD9+hE+jW2mEiHMCfSgaVrgNN4jZjzAv6+Rzq6G3h/z7AgD/awPGc+RQmfkCO15 ztJf+SaEaqYI2hKoBBYWIAVgfQw1UKCrsXrxzUVsGSJ8Zx8j0RdRcqDD65n299noNdOv evFg== 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=CiQ7qpUpeUPn7kb7WI+XOp9OTAKSfxy1iCOYUAh4jxI=; b=VoLSE4KZ6j0vBLS8y+nHQ47HjvUztoXOIfnB01paWa6LyvjMytLZZXH0Oqugnrz6qX aBaaDI+CeSPmw/Z4etwL1EVuuUy1rhi7BurBvakYQqhprH95XzrQvdeWanOaDahlJtlC WXdYAV+uLbZVj8Q7gVATmwDYzKQiNPunC7S57u4u2csMfMKw5pjzIy1B8bjtHjXF+NOK gBVxSDUtR9Q2miS2RKUtCFDLKTX/gIlGhEYpM8I2l8z/NnXI+arDxJ+r+bIAUephRb6l iH7YtQzXdMC5wzboTDHyREVN2f8d046l7+HRQLGTrrveEzHMpyBw/6edLT95PKx1pzLi xsUg== X-Gm-Message-State: AOAM5324PL7pRopaW/I27BOeqwSKtOyYC/qzdSSmbF1nXVOA6eawG7ze h8PU6MlTbRlX5Ba7P/wAqsD5UF0D7tF9tjMa X-Google-Smtp-Source: ABdhPJyNa88I+B29WL2w7/JFckta+AUliQ3RiMh3DAo4P0lnTGDLjhYCHtqWKFBKzw33V9uKcCSUbA== X-Received: by 2002:a63:2205:: with SMTP id i5mr1637767pgi.365.1642470380944; Mon, 17 Jan 2022 17:46:20 -0800 (PST) Received: from hsinchu16.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id c12sm8286136pfm.113.2022.01.17.17.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 17:46:20 -0800 (PST) From: frank.chang@sifive.com To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, Frank Chang , Alistair Francis , Palmer Dabbelt , Bin Meng , Richard Henderson , LIU Zhiwei Subject: [PATCH v2 16/17] target/riscv: rvv-1.0: Add Zve32f support for narrowing type-convert insns Date: Tue, 18 Jan 2022 09:45:19 +0800 Message-Id: <20220118014522.13613-17-frank.chang@sifive.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220118014522.13613-1-frank.chang@sifive.com> References: <20220118014522.13613-1-frank.chang@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::42b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=frank.chang@sifive.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2022 01:47:24 -0000 From: Frank Chang Vector narrowing conversion instructions are provided to and from all supported integer EEWs for Zve32f extension. Signed-off-by: Frank Chang Reviewed-by: Alistair Francis --- target/riscv/insn_trans/trans_rvv.c.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index f2d3c9e8b9..7a040b3089 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -2862,6 +2862,7 @@ static bool opfxv_narrow_check(DisasContext *s, arg_rmr *a) return opfv_narrow_check(s, a) && require_rvf(s) && (s->sew != MO_64) && + require_zve32f(s) && require_zve64f(s); } @@ -2870,6 +2871,7 @@ static bool opffv_narrow_check(DisasContext *s, arg_rmr *a) return opfv_narrow_check(s, a) && require_scale_rvf(s) && (s->sew != MO_8) && + require_scale_zve32f(s) && require_scale_zve64f(s); } @@ -2920,6 +2922,7 @@ static bool opxfv_narrow_check(DisasContext *s, arg_rmr *a) vext_check_isa_ill(s) && /* OPFV narrowing instructions ignore vs1 check */ vext_check_sd(s, a->rd, a->rs2, a->vm) && + require_scale_zve32f(s) && require_scale_zve64f(s); } -- 2.31.1