qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 09/15] tcg/optimize: Optmize ANDC X, Y, Y to MOV X, 0
Date: Mon, 17 Feb 2014 19:15:59 -0600	[thread overview]
Message-ID: <1392686165-10706-10-git-send-email-rth@twiddle.net> (raw)
In-Reply-To: <1392686165-10706-1-git-send-email-rth@twiddle.net>

Like we already do for SUB and XOR.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/optimize.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tcg/optimize.c b/tcg/optimize.c
index 0b1dd13..c1b9284 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -947,6 +947,7 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
 
         /* Simplify expression for "op r, a, a => movi r, 0" cases */
         switch (op) {
+        CASE_OP_32_64(andc):
         CASE_OP_32_64(sub):
         CASE_OP_32_64(xor):
             if (temps_are_copies(args[1], args[2])) {
-- 
1.8.5.3

  parent reply	other threads:[~2014-02-18  1:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18  1:15 [Qemu-devel] [PULL 00/15] tcg updates Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 01/15] TCG: Fix 32-bit host allocation typo Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 02/15] tcg-arm: The shift count of op_rotl_i32 is in args[2] not args[1] Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 03/15] tcg/optimize: fix known-zero bits for right shift ops Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 04/15] tcg/optimize: fix known-zero bits optimization Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 05/15] tcg/optimize: improve known-zero bits for 32-bit ops Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 06/15] tcg/optimize: add known-zero bits compute for load ops Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 07/15] tcg/optimize: Handle known-zeros masks for ANDC Richard Henderson
2014-02-18  1:15 ` [Qemu-devel] [PULL 08/15] tcg/optimize: Simply some logical ops to NOT Richard Henderson
2014-02-18  1:15 ` Richard Henderson [this message]
2014-02-18  1:16 ` [Qemu-devel] [PULL 10/15] tcg/optimize: Add more identity simplifications Richard Henderson
2014-02-18  1:16 ` [Qemu-devel] [PULL 11/15] disas/i386: Disassemble ANDN/SHLX/SHRX/SHAX Richard Henderson
2014-02-18  1:16 ` [Qemu-devel] [PULL 12/15] tcg/i386: Move TCG_CT_CONST_* to tcg-target.c Richard Henderson
2014-02-18  1:16 ` [Qemu-devel] [PULL 13/15] tcg/i386: Add tcg_out_vex_modrm Richard Henderson
2014-02-18  1:16 ` [Qemu-devel] [PULL 14/15] tcg/i386: Use ANDN instruction Richard Henderson
2014-02-18  1:16 ` [Qemu-devel] [PULL 15/15] tcg/i386: Use SHLX/SHRX/SARX instructions Richard Henderson
2014-02-19 10:21 ` [Qemu-devel] [PULL 00/15] tcg updates Kevin Wolf
2014-02-19 10:23   ` Kevin Wolf
2014-02-19 13:50   ` Richard Henderson
2014-02-20 15:26 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1392686165-10706-10-git-send-email-rth@twiddle.net \
    --to=rth@twiddle.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).