Received: from eggs.gnu.org ([2001:4830:134:3::10]:49784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9FKS-0003pB-77 for qemu-devel@nongnu.org; Fri, 31 Jan 2014 09:44:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9FKJ-0005zb-QB for qemu-devel@nongnu.org; Fri, 31 Jan 2014 09:44:24 -0500 Received: from mail-qc0-x22c.google.com ([2607:f8b0:400d:c01::22c]:41823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9FKJ-0005zX-LV for qemu-devel@nongnu.org; Fri, 31 Jan 2014 09:44:15 -0500 Received: by mail-qc0-f172.google.com with SMTP id c9so7062022qcz.17 for ; Fri, 31 Jan 2014 06:44:14 -0800 (PST) Sender: Richard Henderson From: Richard Henderson Date: Fri, 31 Jan 2014 08:43:33 -0600 Message-Id: <1391179418-13422-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 0/5] tcg/i386 support for bmi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net There are three separate architecture extensions for logical operations, BMI, BMI2, and TBM. The first two are supported on Intel Haswell and AMD Excavator, while slightly earlier AMD support only BMI and TBM. The following adds support for the interesting BMI and BMI2 instructions, where it is easy to do so. Most of the rest of the new instructions are irrelevant to TCG. When I added support for the ANDC opcode, I noticed some optimization regressions when looking at ppc64 guest dumps. I will address these in a separate patch set. r~ Richard Henderson (5): disas/i386: Disassemble ANDN/SHLX/SHRX/SHAX tcg/i386: Move TCG_CT_CONST_* to tcg-target.c tcg/i386: Add tcg_out_vex_modrm tcg/i386: Use ANDN instruction tcg/i386: Use SHLX/SHRX/SARX instructions disas/i386.c | 146 +++++++++++++++++++++++++++++++++++++++++----- tcg/i386/tcg-target.c | 156 ++++++++++++++++++++++++++++++++++++++++++-------- tcg/i386/tcg-target.h | 9 ++- 3 files changed, 268 insertions(+), 43 deletions(-) -- 1.8.5.3