From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLaNg-0006lZ-65 for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:06:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLaNX-0002zP-Na for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:06:28 -0400 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:50257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLaNX-0002z4-IT for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:06:19 -0400 Received: by mail-ob0-f181.google.com with SMTP id gq1so3907687obb.40 for ; Mon, 16 Sep 2013 08:06:18 -0700 (PDT) Sender: Richard Henderson Message-ID: <52371E65.7070804@twiddle.net> Date: Mon, 16 Sep 2013 08:06:13 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1379195690-6509-1-git-send-email-rth@twiddle.net> <1379195690-6509-7-git-send-email-rth@twiddle.net> <5236B9C1.2070109@huawei.com> In-Reply-To: <5236B9C1.2070109@huawei.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 06/33] tcg-aarch64: Merge enum aarch64_srr_opc with AArch64Insn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Claudio Fontana Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org On 09/16/2013 12:56 AM, Claudio Fontana wrote: >> > case INDEX_op_shl_i64: >> > case INDEX_op_shl_i32: >> > - if (c2) { /* LSL / UBFM Wd, Wn, (32 - m) */ >> > + if (c2) { >> > tcg_out_shl(s, ext, a0, a1, a2); >> > - } else { /* LSL / LSLV */ >> > - tcg_out_shiftrot_reg(s, SRR_SHL, ext, a0, a1, a2); >> > + } else { >> > + tcg_out_shiftrot_reg(s, INSN_LSLV, ext, a0, a1, a2); >> > } >> > break; > Any reason you strip all comments out? > They are supposed to hint the reader about how the tcg operation is implemented. > Well, LSLV is now there in the code in the form of INSN_LSLV. The comment does nothing additional to hint at what's going on; indeed, "LSL / LSLV" is more confusing than not. As for tcg_out_shl, comments about its implementation are with that function. r~