From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gPZ6LAw772ZJoQAAqHPOHw:P1 (envelope-from ) for ; Sat, 21 Sep 2024 23:30:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gPZ6LAw772ZJoQAAqHPOHw (envelope-from ) for ; Sat, 21 Sep 2024 23:30:52 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; none Received: from mail-a.sr.ht (mail-a.sr.ht [46.23.81.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A47887A601 for ; Sat, 21 Sep 2024 23:30:52 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=/NKzrYpjcsO7BKs1WeLGDz+/4O3xnREtIzRKtSDonFM=; c=simple/simple; d=lists.sr.ht; h=Subject:From:To:Cc:References:In-Reply-To:Date:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1726954252; v=1; b=ncPpQ5e6YIh+PZ8S0N0nLWZwBrsAJqYey36GNn0AufWtTA59fHf+Z9U1CJ3m4AUgkFyzM8oC qsFyZO4ONnyDa6kgQxYefbfcM50sbDNDESnjgZ5Z1+D/R53C94+yEG/a+ihiiTEPIxhgrTTyxc6 SmdcoHo1XWLY6rPQzj7rwAKofeEjOjHYLxDkVvsXRHtQaBAWg2IMP89MAvO0Zw03oK0EpyIOWDn jGQbP5cxWph+9flkbu6ZsRBvyh8CQGx4zpy6xmOdfHWUPmxlQ8UMX4/XYIHYwLbN1x9bZQGp4p8 I0EGEEQxT8xKCfDAYXcqv2bQnuHSyeJBarp19xF2HS7Lg== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 70E1C20300 for ; Sat, 21 Sep 2024 21:30:52 +0000 (UTC) Received: from cornsilk.maple.relay.mailchannels.net (cornsilk.maple.relay.mailchannels.net [23.83.214.40]) by mail-a.sr.ht (Postfix) with ESMTPS id 565D7202E9 for <~johnnyrichard/olang-devel@lists.sr.ht>; Sat, 21 Sep 2024 21:30:51 +0000 (UTC) X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 536D15C414A for <~johnnyrichard/olang-devel@lists.sr.ht>; Sat, 21 Sep 2024 21:30:49 +0000 (UTC) Received: from nl-srv-smtpout1.hostinger.io (unknown [127.0.0.6]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 8FEA75C55D4 for <~johnnyrichard/olang-devel@lists.sr.ht>; Sat, 21 Sep 2024 21:30:48 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1726954248; a=rsa-sha256; cv=none; b=b5u5OcbtIkc2kK9EAmWwfoaUQAoAHF+GCau7c9kyccZun9VYiJZ6vSQICyNdsg8bTWG2S6 2RSEDro+TAo4hsN9vNHLG12NhcDma7PtCCjAyai6zC47ry2Zq1gqWQlN/6jplDu4yIOElE U4f4UPxoGvub23LD+sYcKO1got5m9N0T8dbz/RaOj8vMCr5fkp1z6xJomLVI8s4OWbujRq qEfViNRUNKLLJh97dvp0gllYEf2PBlVDgqEUBEVQ28OgG4x6rwGa+bsI9teM28hBxIu+Yh ixVetYzl66NAtTunAVYFJ/libXqpGTdCR/5ohiQNpa4LYydXBLmhBpLA2bT8KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1726954248; 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:dkim-signature; bh=WnLcSvvHb69LGV7pYmoS2Bvia+tWkhwLv3Yxh/C2xC8=; b=HOiBd5+AM/Nv0iKGP76Nbfo/bV3RMAHpmnrVeLO9WYYHksgrHHUN09JE0MHSdKcQKfcfFN WRHr7mGkiiHismXR6pznMJa+Q1G0GNz9zKy1M9GUlzukJnNM3D3cSru2h7tHwuA4T5/Shk 5gFto9ho7G28zNp2TpuKCIXsGhi1QDauxZXxp3qkUIqPTvIwe268/i22/3FjZ+LIkAndE4 1dVX6lNzNPtX9RRpmYYivbSVWL+NvvAM8JyJ1OUq1G7bWUvE7uMZpp85R1QzHJhSp15bBn Dbew9HT+rTcZqCfKjWQ2rgAQ46VLzRonMi1tdiM+xt9sqbfsPI8kLwE+AdeH5g== ARC-Authentication-Results: i=1; rspamd-b5ccff48b-jvl59; auth=pass smtp.auth=hostingeremail smtp.mailfrom=carlos@maniero.me X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|carlos@maniero.me X-MailChannels-Auth-Id: hostingeremail X-Company-Bored: 0154aa053124d65a_1726954249081_1073272813 X-MC-Loop-Signature: 1726954249081:2586374113 X-MC-Ingress-Time: 1726954249081 Received: from nl-srv-smtpout1.hostinger.io (nl-srv-smtpout1.hostinger.io [145.14.150.87]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.96.51.240 (trex/7.0.2); Sat, 21 Sep 2024 21:30:49 +0000 Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1726954246; 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=WnLcSvvHb69LGV7pYmoS2Bvia+tWkhwLv3Yxh/C2xC8=; b=e1S+hsNYsBpHV8Z8tA9/XHFGs5O2DWXEHmYhBf7vFnJmk+Ts/GFcVI2sIKiPQQ1I19wOUq DCYWjNolgyftXBItDMrBp5yjtGbs8dXA0/7KTr4qcIReArZqFgPLEC3qCoaJS3heoivExB INEjhgZcWzKgPQyBDNvcfSGtrvDkpbN3UYmCGP4q2prY3/IMsd2v68svSobv2xDJKRwJ4s 59BDHjMSZ7HTp6M2zY/5IPY32+U1lnrFTIp7tSiJitNVTln5DjbbZdU4QymO2dxyn5ONFd 1dG/HNOAQMZoNxiNnhl7iXGJj2ERQdCCVINz6cOqhSVr+1hDYTIJ8DR6/yDNuA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Message-Id: Subject: Re: [PATCH olang 5/5] codegen: perform mov instructions based on variable type From: "Carlos Maniero" To: "Johnny Richard" Cc: <~johnnyrichard/olang-devel@lists.sr.ht> X-Mailer: aerc 0.15.2-211-g37d5fc691aff References: <20240921082437.396691-1-carlos@maniero.me> <20240921082437.396691-6-carlos@maniero.me> In-Reply-To: Date: Sat, 21 Sep 2024 21:30:46 +0000 (UTC) X-CM-Envelope: MS4xfH6llKgTA1zoRjkg26tefQFR2ob967Z0qe2tUSDU0JaAzabruaAYkosERZF3efgNEwhN9EP9uII7tDnVqlPqOKbfOon5kI2fbXvD3wY4r8rM2BNgvRJv LEWal6NzVXthsAefY/OaZr3MM+h+C8kzRcgezAL9z9np2CEB9r1oFTRSk/h2IfB8XKkDxKQFag7ob182ViFAyqRwydSSgC692z0VxgkrKaYlfl+rPofXUbtV RciQBaSGBix6Z5GwqICFbA== X-CM-Analysis: v=2.4 cv=b6rg4cGx c=1 sm=1 tr=0 ts=66ef3b06 a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=IkcTkHD0fZMA:10 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=j0ui555RJ6px017hx94A:9 a=QEXdDO2ut3YA:10 a=BXDaF_L80NY05PYiAFlV:22 X-AuthUser: carlos@maniero.me List-Unsubscribe: List-Subscribe: List-Archive: Archived-At: List-Post: List-ID: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel.lists.sr.ht> Sender: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel@lists.sr.ht> X-Migadu-Flow: FLOW_IN X-Migadu-Country: NL X-Migadu-Queue-Id: A47887A601 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -4.00 X-Migadu-Spam-Score: -4.00 X-TUID: jMcYqhblHF7K > Is this necessary? I mean, isn't GAS smart enough to pick the right mov > instruction based on register size? > > If we have to pick the right size mov explicitly, what do you think > about renaming it to **get_mov_inst_for(size_t)** or something alike to > express better the intention? > This is similar to MOV instruction above, I was thinking about naming it > to **get_accumulator_reg_for(size_t)** or something else like it. What > do you think? The current name uses the 64bit version of the > accumulator register. Sure! We don't really need both you are right. I will drop the mov function and keep only the accumulator. I like the name you suggested, I'll rename as well.