From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85972C38A29 for ; Sat, 18 Apr 2020 15:07:08 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 466472076A for ; Sat, 18 Apr 2020 15:07:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="omiHnhkA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 466472076A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPp3j-0002vs-Cg for qemu-devel@archiver.kernel.org; Sat, 18 Apr 2020 11:07:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36799) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPp10-00074W-Ic for qemu-devel@nongnu.org; Sat, 18 Apr 2020 11:04:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPp0z-0002tT-Ef for qemu-devel@nongnu.org; Sat, 18 Apr 2020 11:04:18 -0400 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]:54630) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPp0z-0002r2-98 for qemu-devel@nongnu.org; Sat, 18 Apr 2020 11:04:17 -0400 Received: by mail-pj1-x1042.google.com with SMTP id np9so2461424pjb.4 for ; Sat, 18 Apr 2020 08:04:17 -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=Ue3ApTgP6L6VKxS6HIrw/kMTvfYiGAHHp1z12K/l2mg=; b=omiHnhkA/VnHvkR2SY3N/6VDT35fIiTaelNs2hhwY0AdZ7g836ZyE1jvsqNpgVCRsi 9P071+92jRrY/tjjgewAmodUFs8aNU4IlHuBQn1ldoGH7hOXVnru2I2GIA9o+VAi5uKR VC19hzYnIq0J2g4oewaa8SkG8K/v5gFBb8L1myhkysOq49D2Cr/WZJe5FaJX2qF5qSLm IlBGXTe7q8VQWL++WUnr8QsovZSwAkXzSsRU5VKgw0wixJJbPNrpkJhyxDklGUL7c99r uCm7DJSyuiYxxTlxJI7xqAax1Kd2lrovVZ4y1/sGcM+7x0jQewtWKuQs/TmtyZrVSVYr ck5w== 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=Ue3ApTgP6L6VKxS6HIrw/kMTvfYiGAHHp1z12K/l2mg=; b=FT8A/F8eLgn0HoxxF1jPjgkCNbvQpTdBUpl3Z/2byteVPEcwUhGZ33m68tkfc5U1F/ JfzWXCV1ePqEM8YfYHhzLHvucGKfcr5OI0KAyB28YagWtwBC5+pbYjDMQWTrNkMciiqX xK9Xcc00EGmmQEBvf3r4hxFlaXTE1Wt/yhPtJMiKuWcup8Ii2eeAA8/6/6GEtY3c+atg w9fFSNoJRubaC16WYSJ9YgwrhL4j+GjfS3fRp4TGszctRd6EdaFffGrjvkho3TnafXIX NvrHm5V4YiSeQ6M6iPT7w3MNX2lQdLeshp4L66NHnH2Ic9d7XOSDP9wvVhdGH9kLQgUq Wldg== X-Gm-Message-State: AGi0PuavY2qBcIxgRdrSQjiXwbJb+ddZlZ7MZffyCkTRWAl18S9VQBiP 13zDpih6OfcIP7BT6sH8qGFb/rCkHI4= X-Google-Smtp-Source: APiQypKkFbnXVqBI2Ztr97TMatv6qLURUAG10y8H9Y1rHGSe3cb/D0Xn1jLS3XrKBJtuW1n1iKip4g== X-Received: by 2002:a17:902:694a:: with SMTP id k10mr8969568plt.82.1587222255797; Sat, 18 Apr 2020 08:04:15 -0700 (PDT) Received: from localhost.localdomain (174-21-149-226.tukw.qwest.net. [174.21.149.226]) by smtp.gmail.com with ESMTPSA id t103sm8668601pjb.46.2020.04.18.08.04.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 08:04:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/7] tcg: Add tcg_gen_gvec_dup_imm Date: Sat, 18 Apr 2020 08:04:05 -0700 Message-Id: <20200418150411.1831-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200418150411.1831-1-richard.henderson@linaro.org> References: <20200418150411.1831-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1042 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: peter.maydell@linaro.org, david@redhat.com, zhiwei_liu@c-sky.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Add a version of tcg_gen_dup_* that takes both immediate and a vector element size operand. This will replace the set of tcg_gen_gvec_dup{8,16,32,64}i functions that encode the element size within the function name. Signed-off-by: Richard Henderson --- include/tcg/tcg-op-gvec.h | 2 ++ tcg/tcg-op-gvec.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/include/tcg/tcg-op-gvec.h b/include/tcg/tcg-op-gvec.h index 74534e2480..eb0d47a42b 100644 --- a/include/tcg/tcg-op-gvec.h +++ b/include/tcg/tcg-op-gvec.h @@ -313,6 +313,8 @@ void tcg_gen_gvec_ors(unsigned vece, uint32_t dofs, uint32_t aofs, void tcg_gen_gvec_dup_mem(unsigned vece, uint32_t dofs, uint32_t aofs, uint32_t s, uint32_t m); +void tcg_gen_gvec_dup_imm(unsigned vece, uint32_t dofs, uint32_t s, + uint32_t m, uint64_t imm); void tcg_gen_gvec_dup_i32(unsigned vece, uint32_t dofs, uint32_t s, uint32_t m, TCGv_i32); void tcg_gen_gvec_dup_i64(unsigned vece, uint32_t dofs, uint32_t s, diff --git a/tcg/tcg-op-gvec.c b/tcg/tcg-op-gvec.c index 327d9588e0..593bb4542e 100644 --- a/tcg/tcg-op-gvec.c +++ b/tcg/tcg-op-gvec.c @@ -1569,6 +1569,13 @@ void tcg_gen_gvec_dup8i(uint32_t dofs, uint32_t oprsz, do_dup(MO_8, dofs, oprsz, maxsz, NULL, NULL, x); } +void tcg_gen_gvec_dup_imm(unsigned vece, uint32_t dofs, uint32_t oprsz, + uint32_t maxsz, uint64_t x) +{ + check_size_align(oprsz, maxsz, dofs); + do_dup(vece, dofs, oprsz, maxsz, NULL, NULL, x); +} + void tcg_gen_gvec_not(unsigned vece, uint32_t dofs, uint32_t aofs, uint32_t oprsz, uint32_t maxsz) { -- 2.20.1