From patchwork Fri Oct 15 07:45:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Chang X-Patchwork-Id: 1541480 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256 header.s=google header.b=jvOEGc+J; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HVzyc6KB9z9shx for ; Fri, 15 Oct 2021 19:31:51 +1100 (AEDT) Received: from localhost ([::1]:35820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbId2-0000w6-2u for incoming@patchwork.ozlabs.org; Fri, 15 Oct 2021 04:31:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbHyG-00024J-Sp for qemu-devel@nongnu.org; Fri, 15 Oct 2021 03:49:42 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:42942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbHyE-0004Ga-US for qemu-devel@nongnu.org; Fri, 15 Oct 2021 03:49:40 -0400 Received: by mail-pg1-x530.google.com with SMTP id 66so7851623pgc.9 for ; Fri, 15 Oct 2021 00:49:38 -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=IbOT6UAXmaIWeVwBueWIFU4apxP/NnP2cVNkTu6NHvc=; b=jvOEGc+JMkxNz64BlpUvL14bI71C1KZyKOap2dNbCvZs3byAFrKMeIC8/8AGSGclIu BGkKsnJLzJjgwt0Otw8sV0a53qqU5aIo4rGu7k0JSLSvoABKc08CYWDiIIhh4eGy0t3v eMshwbP570fsQdUr4SWxoH4c0LRpe9HWenCt7p6/roCYeiZ4nPwB0eKmHrY2yjYCHOiX UBXJVgmF/2kDa+L6ukGkGwIk2o2imdnSN7YOeErU0spGZFSRCjMoXgGtWWeppggBnxCo pQLA4ClW9NY4PhwmBdaZQcqubeVPrgYL4cDCoixTdKyAUQPFHraaK370MaCj2eH/MvcA zJUQ== 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=IbOT6UAXmaIWeVwBueWIFU4apxP/NnP2cVNkTu6NHvc=; b=Vtu+myHU43woNnGf74/cUVSmG+Owf/r9svp6dbjzqs0hZCxQG6DfSkx9JcC6fGNlq+ MhQZNTxZyoOwaaxH21cjCWtBv4v42tPoya/5qV521dw8eKah463S3iC1u+uTbeGrYOF2 z8/GuKI5KfQQ5ooy2dXdZGfLv+COGILLnoOpsD4shIOykwr7r1CN719cKddwXk732+Rk f26QyQNmTNxZ20GNuYhWW7FWzEuSdUFRIOnCEjCuXNzaNZvGVAE+8uhR2pI3tDADt7zC 7LR6mzIorM9/p4rLebuRFbNkBPHagHoprbWb/Lr4HOmcQ33cMOyAfYK9GdenskdGX/Kl pZtg== X-Gm-Message-State: AOAM533ywJjgujNKXkjNNGpV8bEFacVAPHrEno69W1w6dV3rWsbJqbsP Yj+NDiIaf5DE+GMaszhBYGu1RabYyQ2pPw+M X-Google-Smtp-Source: ABdhPJzGdfqYvqD0CsMai04bQ+5OnkAbicfqi8j/HYECIi/PimH1Ry0oK9BSpKcyOXPhdHLTOzwrYQ== X-Received: by 2002:aa7:8b56:0:b0:44c:10a:4ee9 with SMTP id i22-20020aa78b56000000b0044c010a4ee9mr10429469pfd.46.1634284177525; Fri, 15 Oct 2021 00:49:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 00:49:37 -0700 (PDT) From: frank.chang@sifive.com To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH v8 46/78] target/riscv: rvv-1.0: single-width saturating add and subtract instructions Date: Fri, 15 Oct 2021 15:45:54 +0800 Message-Id: <20211015074627.3957162-54-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::530; envelope-from=frank.chang@sifive.com; helo=mail-pg1-x530.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=unavailable 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Frank Chang Sign-extend vsaddu.vi immediate value. Signed-off-by: Frank Chang Reviewed-by: Richard Henderson --- target/riscv/insn_trans/trans_rvv.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index 65c58fc591f..575d42b68ab 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -1998,7 +1998,7 @@ GEN_OPIVX_TRANS(vsaddu_vx, opivx_check) GEN_OPIVX_TRANS(vsadd_vx, opivx_check) GEN_OPIVX_TRANS(vssubu_vx, opivx_check) GEN_OPIVX_TRANS(vssub_vx, opivx_check) -GEN_OPIVI_TRANS(vsaddu_vi, IMM_ZX, vsaddu_vx, opivx_check) +GEN_OPIVI_TRANS(vsaddu_vi, IMM_SX, vsaddu_vx, opivx_check) GEN_OPIVI_TRANS(vsadd_vi, IMM_SX, vsadd_vx, opivx_check) /* Vector Single-Width Averaging Add and Subtract */