From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5yX-0001wa-HO for qemu-devel@nongnu.org; Sun, 16 Feb 2014 12:58:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WF5yP-0003WM-4s for qemu-devel@nongnu.org; Sun, 16 Feb 2014 12:57:57 -0500 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]:38133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5yO-0003W6-TF for qemu-devel@nongnu.org; Sun, 16 Feb 2014 12:57:49 -0500 Received: by mail-pb0-f45.google.com with SMTP id un15so14396694pbc.32 for ; Sun, 16 Feb 2014 09:57:45 -0800 (PST) Sender: Richard Henderson Message-ID: <5300FC15.6090003@twiddle.net> Date: Sun, 16 Feb 2014 09:57:41 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1391179418-13422-1-git-send-email-rth@twiddle.net> <1391179418-13422-6-git-send-email-rth@twiddle.net> <5300C968.9040609@redhat.com> In-Reply-To: <5300C968.9040609@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/5] tcg/i386: Use SHLX/SHRX/SARX instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: aurelien@aurel32.net On 02/16/2014 06:21 AM, Paolo Bonzini wrote: > Il 31/01/2014 15:43, Richard Henderson ha scritto: >> + gen_shift_maybe_vex: >> + if (have_bmi2 && !const_args[2]) { >> + tcg_out_vex_modrm(s, vexop + rexw, args[0], args[2], args[1]); >> + break; >> + } >> + /* FALLTHRU */ > > What if args[2] happens to be ECX? shlx handles that just fine. I don't think it's worth an extra check to fall back to shl on the off-chance that ecx is used; it's pretty far down on the register allocation order list, so it wouldn't happen often. r~