Message ID | 20250126072056.4004912-5-antonb@tenstorrent.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 80122C02181 for <qemu-devel@archiver.kernel.org>; Sun, 26 Jan 2025 07:24:10 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tbwyQ-00058H-JJ; Sun, 26 Jan 2025 02:22:26 -0500 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 <antonb@tenstorrent.com>) id 1tbwyH-00053b-Ck for qemu-devel@nongnu.org; Sun, 26 Jan 2025 02:22:17 -0500 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <antonb@tenstorrent.com>) id 1tbwyF-0004Hl-Mr for qemu-devel@nongnu.org; Sun, 26 Jan 2025 02:22:17 -0500 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-29e842cb9b4so1094901fac.2 for <qemu-devel@nongnu.org>; Sat, 25 Jan 2025 23:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1737876133; x=1738480933; 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=IVUb6JglmtBwfEJB/7yRdjCHmmn4LU6M2mqcUPBTqCQ=; b=hBKJvcFo0JphyfkZq1vRvZvo6N+P30NDxvlTHeEvgNp4XB92DkdA1LfIfUZA3IvPU/ WLrQM581hkUX9MjIkORCticwwkgBuOP82i0By2KMBVZMvNIZ0Em1fPS7LONAy4nIYBz5 RlHknFsdN0HEEqHJVNEmWEpBLhZhKv9IOMU9ucr1ANM2zFrx0I0famq2exMJe/WXsADS IkK/pb6HfMH7DMPJNZbRrJlIgcb7obtRIi5xHQfCb7+ugjaVDXgJbpS2QS6yzE849Ocx V6NxqTA7Vkv9KZv/pDfnVBmttbWKiaR+PQQdFvl1VpO0YIs2jEKh1DroRYg5gric8vY2 3fyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737876133; x=1738480933; 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=IVUb6JglmtBwfEJB/7yRdjCHmmn4LU6M2mqcUPBTqCQ=; b=ak6wSYIhA7TiDAgJVHwnWvpBO3WGbQyputOvBRfRI+CSLh32a+699+FGc95lwn1Up2 ctxIJD8JIHxVRRm3/t5SUSD6CUn1ZB5hv90BsqHIZPM8ySEIhBqEF2eWWX3SHodjrk+u XFeQ6R1Zv8nenaUEe8HXuxdtOwgxhcisoWwBOhWw3JnVZai2bK+w83sRnvNJOr/dKuMQ yjOV+U3hkBGtx6FrvUEu+eEeQ3S+zpdKVFwgpwXNSEMYRfbHFFNj//s2MRxiXK+xTFPF pErTixBMJYEqrw0qh361A6KkPbYqsmmlbDx3cdTI91fGMCe7wQ14LsjaXefm1JxBLT2n W3Fg== X-Forwarded-Encrypted: i=1; AJvYcCWHwTm+nV75r8jcfLwewfgb422UvP4oqI3LYHLLotzz3KAh89rUnDpimuGGf9RxvR7KV8txz8Rqagih@nongnu.org X-Gm-Message-State: AOJu0YxpnpEAsceUw1jMwqOnRGXXayR48KhNw0XhzWp8/vHZ52g57p9h j9uayBHELe0eXb/CpcwZ3MHAUGcr1Hmf8IeLplVsCusokHzMhRAlAgYSdWvfyhU= X-Gm-Gg: ASbGncsajOazN3R1zTKs6s88N6Rw3qwhvmzTDb1OwTOAkvPiA6QwxvMxTLgICdv1e0X agJIkzg7ENIDIVtTcwRXBhDHCqojZFV3SeEkUdCd09GHxpLsLoMBv9mTnRIhDxRY9dZ03aZhIsD J9kkr0WApa3bUuVWIav1fDfVDRq2g7MUuPqcu38YYAoepqMTQ7LQoS+C2EYCt3eXnHEVaa8LwPi twa6GuRj0cQ7I7tYA2YoSMruBrJFGZAbbMwP75WYyEY5YsFpPgz9vSzqzKgSlXLLLd6Wub3WBri n+WX8jX1EItNMJsisF3O8ZwwJZ8oPWvxcbXtuBQ= X-Google-Smtp-Source: AGHT+IG4P2wbRvGdjsmENxQyEpUr9zOJl5b1mqVCXt/0+eGHm9dLtnR6mgbUroISJRH4t19XGAXPfw== X-Received: by 2002:a05:6871:62c2:b0:29f:97af:a1a0 with SMTP id 586e51a60fabf-2b1c0c552eemr18804659fac.24.1737876133218; Sat, 25 Jan 2025 23:22:13 -0800 (PST) Received: from ausc-rvsw-c-01-anton.tenstorrent.com ([38.104.49.66]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2b28f1d887csm1814281fac.29.2025.01.25.23.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jan 2025 23:22:12 -0800 (PST) From: Anton Blanchard <antonb@tenstorrent.com> To: qemu-riscv@nongnu.org, qemu-devel@nongnu.org Cc: Anton Blanchard <antonb@tenstorrent.com>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Bin Meng <bmeng.cn@gmail.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com> Subject: [PATCH 04/12] target/riscv: handle vadd.vv form mask and source overlap Date: Sun, 26 Jan 2025 07:20:48 +0000 Message-Id: <20250126072056.4004912-5-antonb@tenstorrent.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250126072056.4004912-1-antonb@tenstorrent.com> References: <20250126072056.4004912-1-antonb@tenstorrent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4860:4864:20::2c; envelope-from=antonb@tenstorrent.com; helo=mail-oa1-x2c.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series |
target/riscv: Fix some RISC-V instruction corner cases
|
expand
|
diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index bc2780497e..f5ba1c4280 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -403,6 +403,7 @@ static bool vext_check_ss(DisasContext *s, int vd, int vs, int vm) static bool vext_check_sss(DisasContext *s, int vd, int vs1, int vs2, int vm) { return vext_check_ss(s, vd, vs2, vm) && + require_vm(vm, vs1) && require_align(vs1, s->lmul); }
Signed-off-by: Anton Blanchard <antonb@tenstorrent.com> --- target/riscv/insn_trans/trans_rvv.c.inc | 1 + 1 file changed, 1 insertion(+)