From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epAVV-0000il-Ub for qemu-devel@nongnu.org; Fri, 23 Feb 2018 05:23:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epAVS-0005pZ-Pm for qemu-devel@nongnu.org; Fri, 23 Feb 2018 05:23:13 -0500 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:38910) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epAVS-0005nH-I4 for qemu-devel@nongnu.org; Fri, 23 Feb 2018 05:23:10 -0500 Received: by mail-wr0-x234.google.com with SMTP id n7so13554173wrn.5 for ; Fri, 23 Feb 2018 02:23:10 -0800 (PST) References: <20180208173157.24705-1-alex.bennee@linaro.org> <20180208173157.24705-21-alex.bennee@linaro.org> <87h8q99bv9.fsf@linaro.org> <491cdad9-58a1-2f2d-a415-c2b6c1562eab@linaro.org> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <491cdad9-58a1-2f2d-a415-c2b6c1562eab@linaro.org> Date: Fri, 23 Feb 2018 10:23:07 +0000 Message-ID: <87eflc9f90.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 20/32] arm/translate-a64: add FP16 FCMxx (zero) to simd_two_reg_misc_fp16 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-arm@nongnu.org, Peter Maydell , qemu-devel@nongnu.org Richard Henderson writes: > On 02/22/2018 09:23 AM, Alex Benn=C3=A9e wrote: >> >> Richard Henderson writes: >> >>> On 02/08/2018 09:31 AM, Alex Benn=C3=A9e wrote: >>>> + maxpasses =3D hp ? (is_q ? 8 : 4) : (is_q ? 4 : 2); >>> >>> (8 << is_q) >> size >>> >>> ? >> >> Hmm I'm not so sure about this. While mine is longer form at least the >> intent is clear. What about: >> >> maxpasses =3D (is_q ? 4 : 2) << hp >> >> It's still a little magical IMHO though... > > Two variables then? > > vector_size =3D 8 << is_q; > maxpasses =3D vector_size >> size; > > Why do you want the "hp" variable when you already have "size"? Well I had introduced hp for: genfn =3D hp ? gen_helper_advsimd_cgt_f16 : gen_helper_neon_cgt_f32; Instead of having it long form. I guess it could be neater though. -- Alex Benn=C3=A9e