From patchwork Wed Apr 22 01:16:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 185628 Delivered-To: patch@linaro.org Received: by 2002:a92:3d9a:0:0:0:0:0 with SMTP id k26csp165053ilf; Tue, 21 Apr 2020 18:24:33 -0700 (PDT) X-Google-Smtp-Source: APiQypL+tvkSo3qTDykFFFlUJbf9HezuAvTlFapT/rVI41bWcDGlRXGp0u4Desrci7XP1om/XQhb X-Received: by 2002:ac8:4247:: with SMTP id r7mr25087851qtm.52.1587518673818; Tue, 21 Apr 2020 18:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587518673; cv=none; d=google.com; s=arc-20160816; b=kWaZm+4/HOKu4sOJA8d7zt+52QdjSGAqhM0U4R3DwjMPn3XFwRjxFJJE75vqOXeX/Y VGt7ippQrql9xWThHWQw4YblOKtvJZbwUdUFqRO9zb28tjp6ptz5A7szwM5QkeaoqV52 IxKVqDernQ27Q5pUEEI6cyoxcr+OtS9mX+WMIbJ4LRibUsKGFRn42PFlyhy5LOMZw5ui pap70fKMe41b+4xpnXIOy/clOO0BdpZmt2wMnC1HiUekT/DSCg7Q8PucpthZ7T8rECIJ 1bGlg7VgH/CwpLhBjMR19swlUwADnq7blFHxozvoHS/dsDhUuDtQnA9dLt6R3DCWwlEg Pksg== 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=d3cAw+w5l7Pbz4d4JZsevAdGevL2Oc+bgxDLmYJcSy4aiEEmb5DacqUFZC3X2m1SCp M0PvokFgj578deDhy/92RR7eLJ9V/3zZ/pjYPOPQ+MsJ+tkyoWV/lIKzX+ZK7I5Z6/Iq NvwNHE8D/2sCz5YBOQDcnTE87DmvvTu6I/ruHk9ZCAfgYO9hxQF1/kAjfYieIySydf+H oWKLf0Z6+3zD+aIkkA2eFfXwYpA3oOpKVzaHeh79/ovwnEXlMINKYVG5pwDwtzcjNh1p zqfsIZNuIfWsEqlTg7nfX0vJ858wYD9xMic8Oi9r+UynfyPYdXs/XSCjRSRCzICWCwIP stvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xCQ6CuP/"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j15si2371626qtq.91.2020.04.21.18.24.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Apr 2020 18:24:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xCQ6CuP/"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR47t-00054u-AF for patch@linaro.org; Tue, 21 Apr 2020 21:24:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33928) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR417-00018q-S3 for qemu-devel@nongnu.org; Tue, 21 Apr 2020 21:17:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jR417-0001N1-9r for qemu-devel@nongnu.org; Tue, 21 Apr 2020 21:17:33 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:39735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jR416-0001Hg-St for qemu-devel@nongnu.org; Tue, 21 Apr 2020 21:17:32 -0400 Received: by mail-pg1-x541.google.com with SMTP id o10so254408pgb.6 for ; Tue, 21 Apr 2020 18:17:32 -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=xCQ6CuP/gKB2yOA3mvie6kntOunz4gv/LF/AMwEIiLevfe4eBjD5DMICvmJ1S/ktvL 3KiZm3F+8sjmH4G0VUgsy7xHbvKUeOKvLFAK4iVCrWoFBiFdzsd9C/OidpRAWVAb0t5N KafwFpMHjmrZomIWz518AGf3nUBaLBA2lmgblrvWFCfBTTwIl6Y5Ka4nryvj4VgvlvRb XRveLJNbm2kOo7C7HjSSZM+Ux0qs4+n6ETi0tOAOhEkkHNQiPDCtwntZGLQKR7YXv8C3 rDV+JtahpCFYxpiLK2MwYO+0L/PytH4F7SzsWGMxav30dHbtOrhayR1rJme1kDH96A3R egoA== 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=G1nXTofX/VtGINlc27uVCm4XTSF5zTLVJQLyv1RVzjzBa2ZKVK30PCfbClQLS2UL/N 2UuwMG37xQE2IcjeeYGSJhn4gqcZLroJrjQFRD2TNQ3jJP5VBfkjY7I0LBd8JOxEXtHj w20X3+GcpJqajyOE1Sp9nsRYDC0XmHUwAZAldE9Q24NAJwx4pORAczdgNO9WHfNxJqnc OjxVnDu/d/5aLTDYumRvJqbi4CHGi96jPEyz7Kimr8+YzBPhCCN0pi/04oBZWf7iukeC eo0Gp5WIeZi+TWMfRBWqOcLQSKJa9rtR36BJJ/SwGoX/HiPwn3tyLnQCVsANGs8BYYcz Iaqg== X-Gm-Message-State: AGi0PuYJBjW8CwfrnzRyQamCIB02zw1pitxU1jpoDUjzt11Y5V6ElYT1 aO8DTQFAWtIp1QRJ4tTnVGn8l+nOgkA= X-Received: by 2002:aa7:8a92:: with SMTP id a18mr5201366pfc.0.1587518251069; Tue, 21 Apr 2020 18:17:31 -0700 (PDT) Received: from localhost.localdomain (174-21-149-226.tukw.qwest.net. [174.21.149.226]) by smtp.gmail.com with ESMTPSA id m4sm3673561pfm.26.2020.04.21.18.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 18:17:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 05/36] tcg: Use tcg_gen_gvec_dup_imm in logical simplifications Date: Tue, 21 Apr 2020 18:16:51 -0700 Message-Id: <20200422011722.13287-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200422011722.13287-1-richard.henderson@linaro.org> References: <20200422011722.13287-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::541; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x541.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::541 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: alex.bennee@linaro.org, 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); }