From patchwork Sat Jun 29 13:00:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 168154 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp729383ilk; Sat, 29 Jun 2019 06:07:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsrXYDrdcKZt/b7X+AFOOsLnb1qZQoXTcjzEtF1qdb5ZC666Hsu7z1BPG4JFIfhowHx/Yr X-Received: by 2002:a17:906:25c5:: with SMTP id n5mr13590473ejb.195.1561813676950; Sat, 29 Jun 2019 06:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561813676; cv=none; d=google.com; s=arc-20160816; b=tf1idK2p2B+yLpM81aytLSc5oGexsDtyp8ooB/HIUDIt72Ldm9PxPo8XyHQH22IzmG J55PYlaL86zTgTKdk26u5nWG6r5GamdtJznpYCJhHqfVqQECYc50EXI005QaVJM8Q0p6 2RiGgMpMPJEXPslWtiCbW9ayUOfToJQlJUHZc2IVsxjdYhQnl6QKDVwCa0qY0iADjl6J nN6TVJ8GDQyvbXtlh6KYQtR+MtZAdp6QNKi3xyGBaRX7Y9Ssat6sNRXarTovAfsNAEJy 6AyjW0Ks6JUQEwSke1esZsj7JAt/6/1bJj6mDF86UqgT+t8/ApoEYDcedWBMu3hpWsYR 9uYA== 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=RrItPPBS9UjBeZEukcKAp5+okx0Y0meWpGahN0dzJrg=; b=esqKfTH5z2W1KLPIPso476GLLMM63bEgeIvacpZ0cQ3GqdrywGEAmOZbXueKysF9LX iGKiYNwqkMrIciiIBsAEuO2WTPWj5CqWdFslZMcowvJLz17xjtYflEq6FllvdEmIV4Hx Jmt/mdt/ABmSgSr/vdqPfHXaPl+S5KEDY5Gnm8oOfxhdSLLzq64qCZlivezxG6ktayFA SuGcKjNyqzomupCm2YT33NkkDT89i50sYPjXjtPfKYjEFXPpyHFaDwpsKxZbWInlnjuG 40uZyVw2qnNTqZSzqTEyLDKTbinFOpZ6LakVjZeG/cIxJpjkH+UFbVrKCine0+xD1qiX 08hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BZpraDfy; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w3si3447577eju.319.2019.06.29.06.07.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jun 2019 06:07:56 -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=BZpraDfy; 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 ([::1]:39516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhD59-0003bl-VS for patch@linaro.org; Sat, 29 Jun 2019 09:07:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41175) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhCy9-0007yq-Cy for qemu-devel@nongnu.org; Sat, 29 Jun 2019 09:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhCy8-0003b3-0r for qemu-devel@nongnu.org; Sat, 29 Jun 2019 09:00:41 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:52319) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhCy7-0003TW-Ji for qemu-devel@nongnu.org; Sat, 29 Jun 2019 09:00:39 -0400 Received: by mail-wm1-x344.google.com with SMTP id s3so11579319wms.2 for ; Sat, 29 Jun 2019 06:00: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; bh=RrItPPBS9UjBeZEukcKAp5+okx0Y0meWpGahN0dzJrg=; b=BZpraDfyotkXrnQsOzsqHGnRGibzTzGiwTZUJQPr3N6dfn6XDsNEJaJaZ/4yDaXFnx VDThGNipvmL5f9Wfg0ZYGHqzeUg2gSqXBfS2qSDa8d93t7K4DMg70aWi9CJcpColcyZo DnJrY5/QGMNWWilKkakSMy+S9JwmPhNyuhEbQXwC+EwuluzZRtrpNuSIWfld+YIl/F/Q wySzSmNmqTjFYxItk7wcjN9cdvT7frLpaRiTvROwBZWd2dBVERee0xZpuqXX0Yh9CLzQ xmX+tB3j9t80I3aULxUm4p94RgfFxzxSGrrQ9+VX66+6Okvs5iThM0mlASZG691htRlh 2APg== 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=RrItPPBS9UjBeZEukcKAp5+okx0Y0meWpGahN0dzJrg=; b=Tt6uu5j999cs7fN9QlqZ1izeBEKl8Un1HE4FXuOZkFH//hwgKIeaq27a/8QO2Me0ts CD8S/WdW4/pjfidMPG+eBpNkkDKK0N6Yz+Mboo653BzHK7v+5hOl9YSMXZPyk1KqmhxL yvGmDxO62N9ONGDIQXiPwwBEiGnsMhpnXN/Y1WKKhpG3tz/nLMcx7QYmyPCWVfMKm2Tj SdaEnL4oDJTzfaNk4bQs+4IzUS/cQTPR2EtvFAnTEmzXXngymiIrMiFJ77TLSP99nRyC I1bxyQmLaD0y1SzacYjHAVcI8iMX8DQe19lM9beMoJA7ikrF9HSXCw99ckloWwlHI0gr 7q8g== X-Gm-Message-State: APjAAAUM4YxyaUtzVpcctu51SdKqHQM3e7lk/EbFT0Pf1HRERjO7ETNr k4Twzl+691soLKdNCsoPYiDxb9kq8pOMpQ== X-Received: by 2002:a1c:7c11:: with SMTP id x17mr9967351wmc.22.1561813231248; Sat, 29 Jun 2019 06:00:31 -0700 (PDT) Received: from localhost.localdomain (93-34-153-63.ip50.fastwebnet.it. [93.34.153.63]) by smtp.gmail.com with ESMTPSA id d10sm4937676wro.18.2019.06.29.06.00.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 29 Jun 2019 06:00:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 29 Jun 2019 15:00:13 +0200 Message-Id: <20190629130017.2973-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190629130017.2973-1-richard.henderson@linaro.org> References: <20190629130017.2973-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH v6 12/16] tcg/ppc: Support vector dup2 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: mark.cave-ayland@ilande.co.uk, amarkovic@wavecomp.com, hsp.cat7@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is only used for 32-bit hosts. Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- tcg/ppc/tcg-target.inc.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.17.1 diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index cb604b76a3..9a44670180 100644 --- a/tcg/ppc/tcg-target.inc.c +++ b/tcg/ppc/tcg-target.inc.c @@ -3105,6 +3105,14 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, } break; + case INDEX_op_dup2_vec: + assert(TCG_TARGET_REG_BITS == 32); + /* With inputs a1 = xLxx, a2 = xHxx */ + tcg_out32(s, VMRGHW | VRT(a0) | VRA(a2) | VRB(a1)); /* a0 = xxHL */ + tcg_out_vsldoi(s, TCG_VEC_TMP1, a0, a0, 8); /* tmp = HLxx */ + tcg_out_vsldoi(s, a0, a0, TCG_VEC_TMP1, 8); /* a0 = HLHL */ + return; + case INDEX_op_ppc_mrgh_vec: insn = mrgh_op[vece]; break; @@ -3483,6 +3491,7 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op) case INDEX_op_ppc_mulou_vec: case INDEX_op_ppc_pkum_vec: case INDEX_op_ppc_rotl_vec: + case INDEX_op_dup2_vec: return &v_v_v; case INDEX_op_not_vec: case INDEX_op_dup_vec: