From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mf2CP-0005rR-LV for mharc-qemu-riscv@gnu.org; Mon, 25 Oct 2021 11:47:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf2CO-0005oa-1k for qemu-riscv@nongnu.org; Mon, 25 Oct 2021 11:47:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf2CJ-0004Ny-LC for qemu-riscv@nongnu.org; Mon, 25 Oct 2021 11:47:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635176859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OllWm8tBhSCHCLDATZBw+EdX2LqIkuJejncPaP6xydA=; b=VYo/r90Vj+J+0EJ4ezohAbMbpYVoPmRK+pEuJou6WJ0PrcwxJJylOLB5RzBTFH+lONbFH6 Nj4ySiQPgHuv1Jt5kk6SDLANAM8URQrx4QcV42lDQJt6udZIhuuvuO5NRA7PZab+xu6oSC snoAgp0kArB8Y9uYmomW8jW09DnJZvo= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-299-EH_KWoAXNiWTFQYvBDCBPw-1; Mon, 25 Oct 2021 11:47:35 -0400 X-MC-Unique: EH_KWoAXNiWTFQYvBDCBPw-1 Received: by mail-wm1-f70.google.com with SMTP id o22-20020a1c7516000000b0030d6f9c7f5fso3842137wmc.1 for ; Mon, 25 Oct 2021 08:47:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=OllWm8tBhSCHCLDATZBw+EdX2LqIkuJejncPaP6xydA=; b=i/nqFosoXmWeUEZvZvw/omvCwX5zTjMgL38P9OSymhNUuDoLv185pdTAFKCr3CN/Rj jWripOvFTmMlfRiRH0dsEAxUG/TRBmdPwWS/GkdceS8uC7Pqa4kx0DzvdbqkazeUzaUk ffiFbHrpAJK+T4WFxAOuSmQ93JnqOw3FHTsIqSECeg1tepPTGKa+OwaXDnQzDGEPdezA Wu/7BBEy7dFroIkwIwwhD4XSdr7Sbm9BAet4K+AcyNi+gFqrhEzGsNJqKlE/Rk1Ur8Ng 8d1I94XFSRo6hBc9eGB/mspDdIlycNEvGdLlHUboYFHv8cUXzdpiNjwk+VdhSEHKEFcC arPQ== X-Gm-Message-State: AOAM533lLBMZwHOcuBjNv/4KXxCN+OdWo0Jnxbe6H5VgoRd6Kb2RtknP E3g8YmMi9FANp7o40Zco/qoO4XWuZuDQuDhIf4oqZp9dkEjlXalewadxqMWovSjABjR9959CsIV /g2HnLD8gMVDnDHs= X-Received: by 2002:a7b:c359:: with SMTP id l25mr49991183wmj.84.1635176854388; Mon, 25 Oct 2021 08:47:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLB/niOatd+Vxlku98xG6EfRzTYqPuEkwn0XuG51PJkV6IH3roZQg5o6T0Y/QXDE0lMxEbSQ== X-Received: by 2002:a7b:c359:: with SMTP id l25mr49991157wmj.84.1635176854118; Mon, 25 Oct 2021 08:47:34 -0700 (PDT) Received: from [192.168.1.36] (62.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.62]) by smtp.gmail.com with ESMTPSA id m31sm1790394wms.25.2021.10.25.08.47.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 08:47:33 -0700 (PDT) Message-ID: <3b78f982-74e6-fc04-edab-aa77bdb8f4c9@redhat.com> Date: Mon, 25 Oct 2021 17:47:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v4 02/17] qemu/int128: addition of a few 128-bit operations To: =?UTF-8?B?RnLDqWTDqXJpYyBQw6l0cm90?= , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: alistair.francis@wdc.com, richard.henderson@linaro.org, bin.meng@windriver.com, palmer@dabbelt.com, fabien.portas@grenoble-inp.org References: <20211025122818.168890-1-frederic.petrot@univ-grenoble-alpes.fr> <20211025122818.168890-3-frederic.petrot@univ-grenoble-alpes.fr> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20211025122818.168890-3-frederic.petrot@univ-grenoble-alpes.fr> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -55 X-Spam_score: -5.6 X-Spam_bar: ----- X-Spam_report: (-5.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.846, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2021 15:47:44 -0000 On 10/25/21 14:28, Frédéric Pétrot wrote: > Addition of not, xor, div and rem on 128-bit integers, used in particular > within div/rem and csr helpers for computations on 128-bit registers in > the 128-bit riscv target. > > Signed-off-by: Frédéric Pétrot > Co-authored-by: Fabien Portas > --- > include/qemu/int128.h | 26 +++++ > util/int128.c | 218 ++++++++++++++++++++++++++++++++++++++++++ > util/meson.build | 1 + > 3 files changed, 245 insertions(+) > create mode 100644 util/int128.c If you ever have to respin, please split the logical operations in one patch and the div/rem in another.