Message ID | 20190420073442.7488-38-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp311932jan; Sat, 20 Apr 2019 00:57:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3TuPMHQbdm14LgHMRH+pPcNW4HNP/veCgCk5TCj/mklt9O+m+CPmBFON5hJls1+zRfAci X-Received: by 2002:a1c:6783:: with SMTP id b125mr5454471wmc.41.1555747074130; Sat, 20 Apr 2019 00:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555747074; cv=none; d=google.com; s=arc-20160816; b=0SAXMeHZSQgHkgfK9ZqtRExWhURN0SB7VfoH6evNdj4HLrM3VBfq85NoJvhwlmmY2G 3gIa4RaE8eZMYf9IYItMYMivvC9/caeTxZIVdLRJs1YW5kTvacoknQNo+VgJuRILesRw BDFJXZJoPv/fb97yYa3MS4ObMJPtrC6KrI40j7oHwkCia5aDtVx6jR9B74ww7kYUg9bn KShrsQ6BCZqPuFQeSNX4/2PpNPpNCCrBZyL5b0ylhCXhibBoih9MjsAFA2ZwzUUBW5Zh wJk2XsYzH4bd5VS1cN/ylACD4PVf4H1Q5SkzUMNbkFhVVrPa9fQitsKPlrpgWb/B57D6 6SRA== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=I6XLb1qOv9FkxV4sEapnWKsb8dxwM3qKBe7iS0e8mFM=; b=U75PebmBEg6Vmrm9dfs2lynR/K8lQvEzE/Ly9Y+RExYtI7zXm8BE7iqsuGFJGXIqeM cgc2jb+vwcXS48vao+y68qVx3xfbam8EmxqkgkZ6UxFTc695oRp/dnqBOB2a7MoUo1Nn Fq9JbUlW/4xUbnufjOjg6uj9i8s5bMD9iagMl58m84p1c17NxONx7dPyVph3SUtZLh7V 2M6vHW6KHAJs3gZJqmgue0h9AsnWi01RAW5Vzv25doF6A+vk9bwc/32WaNG0864REPI2 JzP0cp1DuNdEfJ5jCjmHGSZMUKOa7pOaxE8sE6GZ2mcDKf/hayMgxh7fjA0zJ1bzgNAk kzmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=T2rdJeN+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m2si5008863wmg.141.2019.04.20.00.57.53 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 20 Apr 2019 00:57:54 -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=fail header.i=@linaro.org header.s=google header.b=T2rdJeN+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:38379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1hHksj-0002sY-3W for patch@linaro.org; Sat, 20 Apr 2019 03:57:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hHkXS-0000yt-Bm for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hHkXO-0000fE-PB for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:51 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:43186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1hHkXL-0000Sm-Tm for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:49 -0400 Received: by mail-pl1-x642.google.com with SMTP id n8so3526796plp.10 for <qemu-devel@nongnu.org>; Sat, 20 Apr 2019 00:35:45 -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; bh=I6XLb1qOv9FkxV4sEapnWKsb8dxwM3qKBe7iS0e8mFM=; b=T2rdJeN+sSY0/ciB0T/ptw6x/beeh0FKjxmYpWJ4TyBYNRvzY/pfE4BJpS3INUO2VJ yD3I6vI/DJxOF4FDW4fZ2E2MJsQpKUfEsE1AJpYqJRkc9H26P6Wg10rMCjpyPPbsv0pW ttYgAmR3qkRk2oe97Ogk6eBvLKpjTQEcSNDLU2AyAUb6VJWX8STzCqobqz7d92DU2GGb 1hjLRIFYOtwYTQskCjrXN4sizVJd5ygRTYH+1OEJNeprqoGjyN+WvDXgKF4M7r+EBMPN q9M16dHu/MakBv4B3b4f+La39jJZMG9DNimzwPJbzAcDZo+v3TBWfR8bikTx6eAsiqhr qh/g== 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; bh=I6XLb1qOv9FkxV4sEapnWKsb8dxwM3qKBe7iS0e8mFM=; b=jVrXEdj9/Oaj15caNGb3JhX6yKYDAAGtO0gY5KJf+6AXwg7oinxK5E89OZnwKv7f34 dB/HJRFnojkqwoeaMkusrXugJ969Kgas12VWa0YzG1eSkR5jcKvtVUO7pXyGoMFITNU1 ol66TbH37YpC/KfGqJZsBB47ijICt5SzTVU4mQytmI5AbgZy70AZc7MvXVbaPTIhFUVP e5Y/2o1AxThwBcy704JfdwfT3NLvTykYQf7TfMgePSoeZqbBv4m8ie0s2ZOZFZgDS9Rz 8/IOvUCXIwe4tRtleIr7z6RcMvN+7nmwnQ6ogdo7H/4GeCEqM6kpjzXjLIRHW3BM5VnN Rrdg== X-Gm-Message-State: APjAAAW20PKBjWnRptcJAfey+4a3ewwzJwArRbKj9K6GYfCd3EAzTQMi 8Pg7DGbBcSkgFJSashlAZf/f8gF/4aU= X-Received: by 2002:a17:902:900a:: with SMTP id a10mr759928plp.336.1555745743903; Sat, 20 Apr 2019 00:35:43 -0700 (PDT) Received: from localhost.localdomain (rrcs-66-91-136-155.west.biz.rr.com. [66.91.136.155]) by smtp.gmail.com with ESMTPSA id z22sm7025492pgv.23.2019.04.20.00.35.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Apr 2019 00:35:43 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 19 Apr 2019 21:34:41 -1000 Message-Id: <20190420073442.7488-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190420073442.7488-1-richard.henderson@linaro.org> References: <20190420073442.7488-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::642 Subject: [Qemu-devel] [PATCH 37/38] tcg/aarch64: Use MVNI for expansion of dupi X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg vector improvements
|
expand
|
diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c index e68e4de08c..20c8699f79 100644 --- a/tcg/aarch64/tcg-target.inc.c +++ b/tcg/aarch64/tcg-target.inc.c @@ -513,6 +513,7 @@ typedef enum { /* AdvSIMD modified immediate */ I3606_MOVI = 0x0f000400, + I3606_MVNI = 0x2f000400, /* AdvSIMD shift by immediate */ I3614_SSHR = 0x0f000400, @@ -823,6 +824,9 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, if (is_fimm(v64, &op, &cmode, &imm8)) { tcg_out_insn(s, 3606, MOVI, type == TCG_TYPE_V128, rd, op, cmode, imm8); + } else if (is_fimm(~v64, &op, &cmode, &imm8) + && op == 0 && ((1 << cmode) & 0x03555)) { + tcg_out_insn(s, 3606, MVNI, type == TCG_TYPE_V128, rd, 0, cmode, imm8); } else if (type == TCG_TYPE_V128) { new_pool_l2(s, R_AARCH64_CONDBR19, s->code_ptr, 0, v64, v64); tcg_out_insn(s, 3305, LDR_v128, 0, rd);
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/aarch64/tcg-target.inc.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1