From patchwork Wed May 6 18:29:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 186269 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp2409137ill; Wed, 6 May 2020 11:33:00 -0700 (PDT) X-Google-Smtp-Source: APiQypKpv4kyVaTSNDC/kJf++x42BsaAngxpjtqNotddto9qUIn5fWxQwfTbdllhmPaYAOWL5SjC X-Received: by 2002:a0c:b5dd:: with SMTP id o29mr9807982qvf.87.1588789980439; Wed, 06 May 2020 11:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588789980; cv=none; d=google.com; s=arc-20160816; b=Z4ER1h9cMulZyOlKuqkEZcfFzXn4EBX65JpxZshUySE31N3tNsthdl5Xd5GsBp9zMO pE0PkbG2r41opsQtMWNcw6RV1T6zzJg+qfLM3JIfxCGTaBwb6VvELj4yEN4WDP22hCIb lIguHNlnS6VUna81X3vC5HC0LQAcnTIVTO1zt/kOOe5nWNU57A5vbusF1w1I0Qm5Geo2 X1wxc4h7OzyaMO3pSFrEvs4Tky5nCXpHqRlpgdZxq9WsqfKFnvRDGHmRdn2iRGt91xgV sotEE26mVmdEclkJdjps6MOZZI88vwT8QDgrbHowQOC5QZCp7IEsoZCa8zOia0q5+IqI /U/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=glPDdkgy28ft6bPZXYEAIgcEtYEuVNy5yrxjCgISMLo=; b=VfLIf3PJsLjZSNW/xBREoJcMjPN/FJG+/56CHM5fbxXGAZ7Km+Ei/cNBSjrFZfUxlX pIwY8WavdvRFK5pe59nwBZUT3DuRenIh0lw7ZPKKCaMtKt7K/S1IIV+yGpyZ3GfqyDbf lN2r0MArSu6lW8OHBEN/PrDQi/fQCg9DzX31L6lykQY7ZxKvNEXW6ZEboFhXWBW5sG5p YtJEsRpwoWl+Xv6dSMYZUVnZD3Bc1cOj1IwvyOZ7aA4rIZxViH8fsdgVJNWHDkGuCiLi rSGnRdqHiEdmyZRtrHszIxlvhV2uzW4cfhOjD1hJVaQx/lCbJyi8R1IotgWVy7Cl8XhC 6pBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mLV8UuV5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:470:142::17]) by mx.google.com with ESMTPS id a8si1675092qtm.141.2020.05.06.11.33.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 May 2020 11:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::17 as permitted sender) client-ip=2001:470:142::17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mLV8UuV5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWOqp-0007eV-S4 for patch@linaro.org; Wed, 06 May 2020 14:32:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWOo8-0004Qf-SZ for qemu-devel@nongnu.org; Wed, 06 May 2020 14:30:12 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:40063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWOo7-0002vj-Uv for qemu-devel@nongnu.org; Wed, 06 May 2020 14:30:12 -0400 Received: by mail-pj1-x1030.google.com with SMTP id fu13so1279819pjb.5 for ; Wed, 06 May 2020 11:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=glPDdkgy28ft6bPZXYEAIgcEtYEuVNy5yrxjCgISMLo=; b=mLV8UuV5Inee/G/+eaSyLhDdGPQpbKi00u6N+AL/HYHPIa2lV/ss8Vjd0sM2M/Lygl VPf3GsAhxRWFe8Qr+lZGpT+M8aTjQJYNbSI9dn7AuhktVgb2XKix0A6NVqgozADMd+G8 gGPZMWXmda9MFL/xmZYh/BsMBqjyWmWFL8u9GCKqaOXdZgKw9qzaApgkIWteFZLU5p00 F9weP+kl+3LUT7zwIlLWOn49Y0Hty+aP+4pLaw4eYTAvEokqNcly1FoGxaN4O4aFfIPX i6oJQXee+xsNHPNdMHaBrByrUxv+58lu4y9Tw6FDHjMnuNRIA/Zn6Gir3Fp0Atedj87d 7R6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=glPDdkgy28ft6bPZXYEAIgcEtYEuVNy5yrxjCgISMLo=; b=noTdpwRcmsUTzdpTAzFz6cVdKG0lylP+Fc4NaSkMzyshT/ofyosOJYZFaUmzb/ew1u /01iN9swSnSsfwbHj0K5qvI8py5BrFhdyWD6s2f0JxBz7TrnJbRGRtYIrXHhyaNCOnPK c3atedS6/bBsD8bzjmQvWMKsPM+sdu2r0hBmsJbgT9z/YEDJi0YDQXwJk3PahZFhaCCk 4ke3+ls/MavhB+q10HqD8TKIwaDLB1sbWfPt55B+26P+PNYkZWcM+O3Sb6RyQ/a+qb3a J9+F6g9pf5P6qMItfbjwk6hu4jtYfQSmRKNKYcgwseQ/veaYZ52a0TbXbLLhWbUjRCQu k+hA== X-Gm-Message-State: AGi0PuZMvxbw+16twsje48JeXEIxkFEzV70mDRq9e5M84QwZEiBQGNsB wbk9wBaH5awGkEEzjsurfcLOP6JxzB4= X-Received: by 2002:a17:90a:6403:: with SMTP id g3mr11051866pjj.99.1588789810161; Wed, 06 May 2020 11:30:10 -0700 (PDT) Received: from localhost.localdomain (174-21-149-226.tukw.qwest.net. [174.21.149.226]) by smtp.gmail.com with ESMTPSA id w11sm2572589pfq.100.2020.05.06.11.30.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 11:30:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 05/10] tcg: Use tcg_gen_gvec_dup_imm in logical simplifications Date: Wed, 6 May 2020 11:29:57 -0700 Message-Id: <20200506183002.3192-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200506183002.3192-1-richard.henderson@linaro.org> References: <20200506183002.3192-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , LIU Zhiwei Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Replace the outgoing interface. Reviewed-by: LIU Zhiwei Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tcg-op-gvec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.20.1 diff --git a/tcg/tcg-op-gvec.c b/tcg/tcg-op-gvec.c index 593bb4542e..de16c027b3 100644 --- a/tcg/tcg-op-gvec.c +++ b/tcg/tcg-op-gvec.c @@ -2326,7 +2326,7 @@ void tcg_gen_gvec_xor(unsigned vece, uint32_t dofs, uint32_t aofs, }; if (aofs == bofs) { - tcg_gen_gvec_dup8i(dofs, oprsz, maxsz, 0); + tcg_gen_gvec_dup_imm(MO_64, dofs, oprsz, maxsz, 0); } else { tcg_gen_gvec_3(dofs, aofs, bofs, oprsz, maxsz, &g); } @@ -2343,7 +2343,7 @@ void tcg_gen_gvec_andc(unsigned vece, uint32_t dofs, uint32_t aofs, }; if (aofs == bofs) { - tcg_gen_gvec_dup8i(dofs, oprsz, maxsz, 0); + tcg_gen_gvec_dup_imm(MO_64, dofs, oprsz, maxsz, 0); } else { tcg_gen_gvec_3(dofs, aofs, bofs, oprsz, maxsz, &g); } @@ -2360,7 +2360,7 @@ void tcg_gen_gvec_orc(unsigned vece, uint32_t dofs, uint32_t aofs, }; if (aofs == bofs) { - tcg_gen_gvec_dup8i(dofs, oprsz, maxsz, -1); + tcg_gen_gvec_dup_imm(MO_64, dofs, oprsz, maxsz, -1); } else { tcg_gen_gvec_3(dofs, aofs, bofs, oprsz, maxsz, &g); } @@ -2411,7 +2411,7 @@ void tcg_gen_gvec_eqv(unsigned vece, uint32_t dofs, uint32_t aofs, }; if (aofs == bofs) { - tcg_gen_gvec_dup8i(dofs, oprsz, maxsz, -1); + tcg_gen_gvec_dup_imm(MO_64, dofs, oprsz, maxsz, -1); } else { tcg_gen_gvec_3(dofs, aofs, bofs, oprsz, maxsz, &g); }