From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 6DCA7CA0FED for ; Wed, 3 Sep 2025 03:44:39 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1utePJ-0000SS-94; Tue, 02 Sep 2025 23:43:37 -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 1utePF-0000RD-T2 for qemu-devel@nongnu.org; Tue, 02 Sep 2025 23:43:35 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1utePC-0006nv-Lf for qemu-devel@nongnu.org; Tue, 02 Sep 2025 23:43:31 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-61cd6089262so9917778a12.3 for ; Tue, 02 Sep 2025 20:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756871008; x=1757475808; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4xjxI4BE0qWMEXX4A6DHtuV3oxHnBBkPIUk4lP++ZZE=; b=qgDHHvN5K3NC7UOtCVJCpP5SaKmc3x6UxlqHF/CJxQFH/VnBb6d+4TwQn6DWv505Rh DFs05Js8s/Tvvsuvpk8+/q5SiBWU+A5V1CptkG4AKwDA02dLHTpWUvsZ8yQkcci/WE8a aPIl2I5ZvinThmPn+TcbaevokB6vMsPKYqm2m3sNhqGKHRvi1ULtXAyQ8FE6M+UD8vKk M9QyL8TEASwZoemv7zukESHHi86+QIsO+J1l5JgCAJZUVV1esFZWbSbSoalW8W4UjgMY wD1tzSeNxlwDwTIxQW8NOGH1hdCUjfvGjp+ykG5F/gFJK5dmMWffawBk3Hz1htRTVa4d PQTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756871008; x=1757475808; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4xjxI4BE0qWMEXX4A6DHtuV3oxHnBBkPIUk4lP++ZZE=; b=EubpxOGM9flnznnVXIj7OjxT23nlPpTGq1ZuSDz175Jj0/VmukTUVY018c6UGKyTiW T1HWeZ9O1Puz+U9uYtWyW/yOIxPXXiozVfgUHgBJ8SM7AaHoR8vcd94g1V1qIfA675OK YZ/c8qLquXeGQgD+6NPN7LIjHjI6xRVIejpAwS23dQiz3NfkoEbUKYzhGri6RD9y7sA/ 0ilIHlGlSH6+oUjS8a4gjaB2GkgatEa5uzcMfWNbcBF5LU0dFW7HmA4hpxDjRzAjjo42 HTSmauLspdlER6zV0qoM/yeBu2oBRcLEdheIwFJU59xcrwuJGQRi5iDZ8pK8hRzxI+qT 19Iw== X-Gm-Message-State: AOJu0Yx3vuyFOJLGWecjnkhWY21kBOVdGUT59sk19cpy75BPaU8kmDeP eLm402NXvVrxxWfhcisFMsIeIxJ16qsEvDRbzR6GTpImM2zcSsbrM4VD9Zb6ZHzMNvs= X-Gm-Gg: ASbGncthVSCv3k2pbuZWQvPoq8hv+fSG5JMVZmfAlnVdQI6KqSjr/8fWg9t1fx1gAQ3 OF1SyIGO2U51uJ/jEWDNpEPbLrMKbAime7yhEqb8PaE4W0LQp+pbxywAFORvAJvbkTvBjU7Mgjq rHbE/9tFIuGzUmQBXaK2nkUxqPSA6Dc5pIRlF3xsXk+rXigsrEkICwXVVsZihX+pAdYwJS+wwQi lMgt3RUR6qQDEwKBusU9HRZv9qiZ86MUb76dTbq5M29IY7jOcbBNc8Sg0kbc4JHlTESTtM4wXM3 wkb3a2WVhbYGizhTzEudd5lfZ/RjX+j/Kd87nNxnepTvcB2ODH82DVPWKMb4iK0S5Z9QRtia70W 633Z+5cU+n9RtQawpeWWC3qFUSMWsWNT2nb5LYohmmfsE3aHDvDHFkywexqUPD6O4vrqlET0= X-Google-Smtp-Source: AGHT+IFT3PtoyEKwo4VdO1hkIjm4C5yKzyP67e3WdqwIS6o9AJ8nohGEhp0Zh2J9kvVZ7/W5AIdBGA== X-Received: by 2002:a05:6402:27c9:b0:61c:bd9f:723e with SMTP id 4fb4d7f45d1cf-61d26c3fabfmr11124143a12.22.1756871008543; Tue, 02 Sep 2025 20:43:28 -0700 (PDT) Received: from [10.40.6.207] (93-51-222-138.ip268.fastwebnet.it. [93.51.222.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61cfc52ae40sm10870030a12.44.2025.09.02.20.43.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Sep 2025 20:43:28 -0700 (PDT) Message-ID: <54f806ed-a393-4ced-8343-877e5e76c586@linaro.org> Date: Wed, 3 Sep 2025 05:43:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 2/3] target/riscv: rvv: Add Zvqdotq support To: Max Chou Cc: qemu-devel@nongnu.org, qemu-riscv@nongnu.org, Palmer Dabbelt , Alistair Francis , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei References: <20250901133815.1693077-1-max.chou@sifive.com> <20250901133815.1693077-3-max.chou@sifive.com> <5d0fe741-9063-441d-8abc-3bb0662c1fbe@linaro.org> From: Richard Henderson Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=richard.henderson@linaro.org; helo=mail-ed1-x52c.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 9/3/25 02:26, Max Chou wrote: > The partial_sum and the final mask are created to ensure the behavior described in the > Zvqdotq isa spec section 3 as follows: > > “Finally, the four products are accumulated into the corresponding element of vd, wrapping > around signed overflow.” This is accomplished by the -fwrapv argument to the compiler, with which all of qemu is compiled. r~