From patchwork Tue Dec 18 06:39:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 154095 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3353005ljp; Mon, 17 Dec 2018 22:52:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/VSwE9F5mOCMC8hZ6xp7D/ZNuEKrf9kc7wpoPIXKwvYMoKQHpH6TpywERQoYRUdwOuIt56t X-Received: by 2002:a0c:d4f9:: with SMTP id y54mr15731093qvh.98.1545115953633; Mon, 17 Dec 2018 22:52:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545115953; cv=none; d=google.com; s=arc-20160816; b=v8eeoxIbl+5pXn3jPviFtpeVd0yWE7hwIudqg6IRrWj7HdhBJf74WUTikB/Iu4Q05S 7QuwFCLMCqkBZUtBq1/9rg2oOHMgmbBVoWBzyB8vQSB9qqmy9I/K4U9dB2FQMFjl26P9 DohH2KsxRVnLJ6YEyd40zAjsTSb8CTU/zkTGSeXw8zljcUKClmzhDsD/CPo/aLfiYnPZ wTHSnBkA8YiVnqFjprNR9OmNrYvd8w7WzEg/sK/dbLrBnSO22zHIolxAFZScpgJAvWbE beZWHrpBdlQky4QYuNG2FK/Ir6/ntygmUbzN3Gk8bG4FgIfVdZx6eBvhjcbChc+kjhGu UjhA== 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=wJ6refrKK9bsJzJvMv7G5+VyDes8vGvaBDUrOMaWwh8=; b=m9qmkl5Re51Pjs9CtrshgyAQlz/7mW6Mq44WdwECwa5i8UjpiSDEvtI5bLvDP9gyUb llXxM80iLAyxc1WXn2a2mQYV39vJkmQ4D8K+o6KOlxHrG/zH6WG6+aMFCagxilO76yuT cg/egpsu+Ib3uW1dd7JBuNQz5RZeIo6v7n4u/7BQXQU3eqg/yws72XhcHPOEtR9W7Wzx tsoc5SotU4nziQJgZOGQdc3L4otB6L4Vi5naYShH9l4vIEFCHZAilNOOkYePPDqVZiD7 WVTFhGd6W4VM+noQv6MXfDQ4AKWmqnLYLXLGTlMmpl0Lr1ygnKQZ35qq+az+Le+DJjqw BV7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ncri+3iA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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:4830:134:3::11]) by mx.google.com with ESMTPS id g34si2884975qte.104.2018.12.17.22.52.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 17 Dec 2018 22:52:33 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ncri+3iA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:52084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ9F2-0002hP-VE for patch@linaro.org; Tue, 18 Dec 2018 01:52:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ934-0001sB-IX for qemu-devel@nongnu.org; Tue, 18 Dec 2018 01:40:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZ92u-0002x3-PI for qemu-devel@nongnu.org; Tue, 18 Dec 2018 01:40:10 -0500 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:42873) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZ92u-0002Wx-FA for qemu-devel@nongnu.org; Tue, 18 Dec 2018 01:40:00 -0500 Received: by mail-pg1-x543.google.com with SMTP id d72so7338497pga.9 for ; Mon, 17 Dec 2018 22:39:45 -0800 (PST) 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=wJ6refrKK9bsJzJvMv7G5+VyDes8vGvaBDUrOMaWwh8=; b=Ncri+3iATwPiPEoXh5EsZpb/Z56fXV6M2wL1NiqWLwsulSE2sYXXM5wwAzyxittF7S ulBv4AlKB27HzPQjJPAk/u8w1M9iHJENA1KLj4TDPuHhJJBic75HClSnjowrD5h70OMB 4fBfmiB/kgDurUh5Bs2XjikipJTP15BOqj5BI= 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=wJ6refrKK9bsJzJvMv7G5+VyDes8vGvaBDUrOMaWwh8=; b=o1RmFYCBDfoNeZHpZqsSOXJNGT7V1Lr9xG1HKSar84Q9n2UFKMZxe5rtGDs6Kb5AB7 +I7zVqMfnD84I0+UnYBrV0ddRyva18q3c8gnd2w1qQgNsmRcEx0dHUWMXjFr/sELJ0iR E/TA3DS40x+/61Xrn8zUdVBs+Gy321x16DtQJb5rBTQ+0WVYw6Fs/Ng997zZNYqrxKl1 +ZWbJq0GRzwgaCjX4kW+t5NbIYELZ+s0/dodYyTcww9yLt8UYnlgrCYl/bHiaDohMgbZ oOdQ9C2xiMvjEaWOXLCD/4tr4sXXP4ShXIUqVQLhAmuGCy3GO6Jq+xIPJsq5Mv/M8w48 WrYQ== X-Gm-Message-State: AA+aEWbO9+cGOu/+O1J8P/KvUUh8Tzn74aWlIdyG2dGY2IfM2iRMfkDY g/zSwySZmGCfBBpyB17C7aKJ63KQW8w= X-Received: by 2002:a63:8149:: with SMTP id t70mr15078577pgd.172.1545115184452; Mon, 17 Dec 2018 22:39:44 -0800 (PST) Received: from cloudburst.twiddle.net (97-126-115-157.tukw.qwest.net. [97.126.115.157]) by smtp.gmail.com with ESMTPSA id c7sm27072509pfh.18.2018.12.17.22.39.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Dec 2018 22:39:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 17 Dec 2018 22:39:00 -0800 Message-Id: <20181218063911.2112-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181218063911.2112-1-richard.henderson@linaro.org> References: <20181218063911.2112-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::543 Subject: [Qemu-devel] [PATCH 23/34] 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: , Cc: qemu-ppc@nongnu.org, mark.cave-ayland@ilande.co.uk, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/ppc/translate/vsx-impl.inc.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) -- 2.17.2 Acked-by: David Gibson diff --git a/target/ppc/translate/vsx-impl.inc.c b/target/ppc/translate/vsx-impl.inc.c index 8ab1290026..d88d6bbd74 100644 --- a/target/ppc/translate/vsx-impl.inc.c +++ b/target/ppc/translate/vsx-impl.inc.c @@ -1356,9 +1356,10 @@ static void gen_xxspltw(DisasContext *ctx) static void gen_xxspltib(DisasContext *ctx) { - unsigned char uim8 = IMM8(ctx->opcode); - TCGv_i64 vsr = tcg_temp_new_i64(); - 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; @@ -1369,10 +1370,7 @@ static void gen_xxspltib(DisasContext *ctx) return; } } - 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)