From patchwork Fri Feb 15 10:00:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Cave-Ayland X-Patchwork-Id: 158491 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp523670jaa; Fri, 15 Feb 2019 02:12:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IYtDbs9nBmAatdcbI85GwZfyKF5AO4sF2WlDT7wvRlz1/+qVp2vWsY5W286bL3NzTDg+0Af X-Received: by 2002:a25:6c88:: with SMTP id h130mr7249552ybc.240.1550225559740; Fri, 15 Feb 2019 02:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550225559; cv=none; d=google.com; s=arc-20160816; b=cIQ5BFsNOzl8zIQGxnp9hwlaF3BUViWp/7Wb9gTMIZzLEzlo++6Am6zOl4CuycCVCH g8FbxK6N6JItKPlJ+DC/YwbBFG/icbkfoEJ0SVa6i03RXtJBLv2riMui9E6MsIvy1TlZ eAgr4QOlkiVn12onpXFzeyQ+pp/STtzkQTjWXwbK3Fc75ec2+dsxXhqfqtnDOVvStCdK 9qLuTkw/lpbhp01NY/SOQUzUs4XQGLdehpA1n7K65rgBYKFduICIlAYUGpmyeb/uYaOv tndzfUzJowSXWOlvq4NK4GwHOvtSyxFsIdp2/W3oC26mshcUnvPiKCxWsWB8QxA2YeU1 GueA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from; bh=fkFZK4u/kI+YxgOBuIiSno8xnw+O6ksVg3jLEYSPIt8=; b=VIhpIPEHu6TNrDKIaxoUDy/DvZBMLVkaE59ViHcCSEGnFywknNKQBhu2VzzXzoXX/Y H7qj1TsoIYZMjvFn2uFNt8PbH3hhYjhcrPIgnA5lWAjnnCpDtJWRYqFdhPvrSeWCmR+o nc7t/XaUasXSDGJNMTBxrf9vBM+sZzY/1QBxazATFnqg7QXx2JnF545cdoPWi+yjkgCr U7BuktrlOmRhswDdIZx8PKymvoR6gpzwZW7rOOcmjIimrQlhiqvMwBrf8euZDcCOf4Fc 413NMxiN5lxepnWY0NzS6Gu1trWEjpZhjZrVP3ibR/AIS5A/8xNxDtBO1U/FrVAi7S++ ZB+g== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id g124si3058503ywa.179.2019.02.15.02.12.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Feb 2019 02:12:39 -0800 (PST) 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; 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" Received: from localhost ([127.0.0.1]:35906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guaU3-0005gt-82 for patch@linaro.org; Fri, 15 Feb 2019 05:12:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guaJq-0006mn-27 for qemu-devel@nongnu.org; Fri, 15 Feb 2019 05:02:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guaJm-0000OR-6r for qemu-devel@nongnu.org; Fri, 15 Feb 2019 05:02:04 -0500 Received: from chuckie.co.uk ([82.165.15.123]:38785 helo=s16892447.onlinehome-server.info) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1guaJg-0008NT-JB; Fri, 15 Feb 2019 05:01:58 -0500 Received: from host86-133-194-245.range86-133.btcentralplus.com ([86.133.194.245] helo=kentang.home) by s16892447.onlinehome-server.info with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1guaJT-00027S-CL; Fri, 15 Feb 2019 10:01:46 +0000 From: Mark Cave-Ayland To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, david@gibson.dropbear.id.au, richard.henderson@linaro.org Date: Fri, 15 Feb 2019 10:00:47 +0000 Message-Id: <20190215100058.20015-7-mark.cave-ayland@ilande.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190215100058.20015-1-mark.cave-ayland@ilande.co.uk> References: <20190215100058.20015-1-mark.cave-ayland@ilande.co.uk> X-SA-Exim-Connect-IP: 86.133.194.245 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk X-SA-Exim-Version: 4.2.1 (built Sun, 08 Jan 2012 02:45:44 +0000) X-SA-Exim-Scanned: Yes (on s16892447.onlinehome-server.info) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 82.165.15.123 Subject: [Qemu-devel] [PATCH 06/17] target/ppc: convert xxspltib to vector operations X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Signed-off-by: Richard Henderson Acked-by: David Gibson --- target/ppc/translate/vsx-impl.inc.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) -- 2.11.0 diff --git a/target/ppc/translate/vsx-impl.inc.c b/target/ppc/translate/vsx-impl.inc.c index 2576d81ac5..944fc0608a 100644 --- a/target/ppc/translate/vsx-impl.inc.c +++ b/target/ppc/translate/vsx-impl.inc.c @@ -1397,9 +1397,10 @@ static void gen_xxspltw(DisasContext *ctx) static void gen_xxspltib(DisasContext *ctx) { - unsigned char uim8 = IMM8(ctx->opcode); - TCGv_i64 vsr; - if (xS(ctx->opcode) < 32) { + uint8_t uim8 = IMM8(ctx->opcode); + int rt = xT(ctx->opcode); + + if (rt < 32) { if (unlikely(!ctx->altivec_enabled)) { gen_exception(ctx, POWERPC_EXCP_VPU); return; @@ -1410,11 +1411,7 @@ static void gen_xxspltib(DisasContext *ctx) return; } } - vsr = tcg_temp_new_i64(); - tcg_gen_movi_i64(vsr, pattern(uim8)); - set_cpu_vsrh(xT(ctx->opcode), vsr); - set_cpu_vsrl(xT(ctx->opcode), vsr); - tcg_temp_free_i64(vsr); + tcg_gen_gvec_dup8i(vsr_full_offset(rt), 16, 16, uim8); } static void gen_xxsldwi(DisasContext *ctx)