From patchwork Wed May 6 18:29:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 186273 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp2411584ill; Wed, 6 May 2020 11:36:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJhR1ybTPimgJajTaTFeibH+uqh/TdWiASKjquSEET2U1ymDVu/uJzILXA0cmV1gSA/ltcp X-Received: by 2002:a37:e117:: with SMTP id c23mr10506556qkm.207.1588790161578; Wed, 06 May 2020 11:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588790161; cv=none; d=google.com; s=arc-20160816; b=Xg+rCCU7MNCe0Nm1VNyA2CgCwwONuqL4qfr10kAeKei1m1V/yMwO3Oy631/tegAiak l1nYvnQSSb3WxbXTsxJr658RySn35Lpid3Ktczxizui+ONao4IV8Bu7Y23UZlj1gXQDq /E7TTD1QpOg1Tf+tCLXl89G0ANrP5D3qJylMsm5zlaz9qNP/DC3nswzHQkyfrmB1tsE/ KRlIzCyuoyTqv3XNhPccLQVIecse6Bvda7k8R0MsWXBNnjagJqMgOlfpstT70T+4w3eM nmCq79G8haYzEudsq5i4aIWDoQ3iYOD+RoDyFkU8iW+k0lu0Lk8qXvsmz6+j4opnOpFC yopQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=NV6lL8g5TLJgWVXBQ3cW0c77O/M78yXELJw+3HhuoJg=; b=gf/U2RARS8Kv0qg0DpTduNRK+TOWe4ncLPuMjOgOEhKNPfgcrBM2GAiiuiY+Y7pt7w zXU+leS9ox2ZFnZDOVsB0b+vx1vgxiMKltvEe7a9H7ecFLLmFdF2lYQd8tGlh2AI5Xj/ RkexG8CftWT8Lmq+njSObNZcjDomoUc4A5V7ZZhvQJoPGPyaiOqqvJN4OelPtZVt7x3d D9c6/OeVQPqo5kNWi0gRYbY/acpgOffI5BkbaoYYTPM6dknL5KuEjGu7CANeA6PMI1Rr RWoARxm2qKb6UH6kkX6BjYwmlvgJFcc7D9fxmYEiKMOSQ+PTuqzwLA/w1TfQUJIFAptV pZCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QcVUoOMy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::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. [2001:470:142::17]) by mx.google.com with ESMTPS id d11si1796899qvo.45.2020.05.06.11.36.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 May 2020 11:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::17 as permitted sender) client-ip=2001:470:142::17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QcVUoOMy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::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]:36838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWOtk-0002zK-L8 for patch@linaro.org; Wed, 06 May 2020 14:36:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWOoB-0004UP-Jn for qemu-devel@nongnu.org; Wed, 06 May 2020 14:30:15 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:37864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWOoA-0002yb-HK for qemu-devel@nongnu.org; Wed, 06 May 2020 14:30:15 -0400 Received: by mail-pj1-x102a.google.com with SMTP id a7so1286707pju.2 for ; Wed, 06 May 2020 11:30:14 -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=NV6lL8g5TLJgWVXBQ3cW0c77O/M78yXELJw+3HhuoJg=; b=QcVUoOMyheeJiU9SvzaVQWBwid0WUYiyG6IKjGRdsQnpuRDSZkeoWp0hztktEReim8 XOSeyGiLRqBq2hCFXVA+iV8BHqNkbh+tfM0Ra0428sddFt9YCOinKTGJ8gUMgko92iq2 7vMrDBBrtTj4o5ot73cADUm5F3cpLg6OcCunh0LdSSI06BjFDhcY9pIhXEf0e7a5mmO6 SYpfn/XJPPC0igh0TA6pHsAmJAC8f5ey1lWIGbKAGeiZfX9FzekrtD7vHU9yU+oegc63 cECt2XUV57NgYweAAiCHYW4C96Cd/a6pY406o6t/UxHFndzDFWsH4sJKGraXammdiQgE vdWw== 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=NV6lL8g5TLJgWVXBQ3cW0c77O/M78yXELJw+3HhuoJg=; b=VDpM+4VwdG3XUUPliO9bpYSoB92Jbl9loy1GM8s0Pny2fz4oNzgYePCPDbT+KAVFnZ +G3Dm6mHSEi7nIuS32u6nafYU7e/7Is8mck7dD9fyAXNuSJoIFQ6tVYsxaijlIHGMJi6 b5rrsQjJoNJlEVwwDpJsHRGGvSwcuvsVKmwewG56+DuRom4EzLYwBfllNRE0Jn+M+x1C lAsQNbYEuHRqzFdHaTZBse51YhXt1zB8EJYZaiRx9kdnlbx8oWS481Br+DazO4EqXjEh 9n78/TpjbelDSErh5cwkYflK+X/Yqx5oiKsQg+LUehmvyZ8oEwAG5BWOFgemToFpRDIZ EsYg== X-Gm-Message-State: AGi0PualtmTHS78v5l0eqMpbLZwhB9G4uv8kGKF7/VyCevTw+Qbb+1y2 qRtEv646QrN/FZANyfj62CeFamgvE68= X-Received: by 2002:a17:90a:3266:: with SMTP id k93mr11464051pjb.118.1588789812777; Wed, 06 May 2020 11:30:12 -0700 (PDT) Received: from localhost.localdomain (174-21-149-226.tukw.qwest.net. [174.21.149.226]) by smtp.gmail.com with ESMTPSA id w11sm2572589pfq.100.2020.05.06.11.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 11:30:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 07/10] tcg: Add tcg_gen_gvec_dup_tl Date: Wed, 6 May 2020 11:29:59 -0700 Message-Id: <20200506183002.3192-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200506183002.3192-1-richard.henderson@linaro.org> References: <20200506183002.3192-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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, =?utf-8?q?Alex_Benn=C3=A9e?= , LIU Zhiwei , David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" For use when a target needs to pass a configure-specific target_ulong value to duplicate. Reviewed-by: LIU Zhiwei Reviewed-by: David Hildenbrand Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- include/tcg/tcg-op-gvec.h | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/include/tcg/tcg-op-gvec.h b/include/tcg/tcg-op-gvec.h index fa8a0c8d03..d89f91f40e 100644 --- a/include/tcg/tcg-op-gvec.h +++ b/include/tcg/tcg-op-gvec.h @@ -320,6 +320,12 @@ void tcg_gen_gvec_dup_i32(unsigned vece, uint32_t dofs, uint32_t s, void tcg_gen_gvec_dup_i64(unsigned vece, uint32_t dofs, uint32_t s, uint32_t m, TCGv_i64); +#if TARGET_LONG_BITS == 64 +# define tcg_gen_gvec_dup_tl tcg_gen_gvec_dup_i64 +#else +# define tcg_gen_gvec_dup_tl tcg_gen_gvec_dup_i32 +#endif + void tcg_gen_gvec_shli(unsigned vece, uint32_t dofs, uint32_t aofs, int64_t shift, uint32_t oprsz, uint32_t maxsz); void tcg_gen_gvec_shri(unsigned vece, uint32_t dofs, uint32_t aofs,