From patchwork Sat Feb 9 03:38:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 157909 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp240825jaa; Fri, 8 Feb 2019 19:45:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLBvYIBszxmIR+tEOEMkJcKAGvxBqzie7pQ2fYBbQn8VlA20ovy8XIcN44vkMnD8ORnsvo X-Received: by 2002:a5d:53cd:: with SMTP id a13mr4926399wrw.146.1549683922805; Fri, 08 Feb 2019 19:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549683922; cv=none; d=google.com; s=arc-20160816; b=x43FLn5xurvzQw1d1TQkEKdqJ3HPnIK73vD8rzHVtSYDeo1+jW+rsrCrVwJKoGNWBw KhBzt1Y8x1MfULqqL6s4yfZmNKa2atAt7bXO8AX25YNRvmeomDRimEVAwYMyBVjR+3Om xEMqQVXg8/jHFIfmp+Xl+TvXmJxEaG0KyK1/nknCIi/cdfijOYuFqbsDZIouoIRRkzIN x00sWGdsqF48E1V08o6QzXEgBtH7p+HIRfa9QjksElBBiWKXcFCoaWtZA0xnuODGMr2q su70a2EmlOGQePXzVQYo0yRHK6tUh5v9porv2Kx2GPYcwTQqYeBtyaXxLxYV930pcbhh 4y9w== 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=Ku2qqiofyo2h0KHaCF51MqBaY9+LaL6xQcdtOeJ2hfM=; b=DfMTHHeWahj18duBJSQT4AsC+Ud9KMi9NDFi3EEcrcs6JuEzho+fhhrBAI0eZnHop3 +EI6y3q3x4TVbmEEbXVv2LMpatVWqj1iGfnxMQqXn1OW50K3/IRguA1AWT7nkrmj4fK8 BEqkB9pIMwuL7fbFOJSfhqHHq6aFFwE7eakDWHWjr1YDsY2cBGMFDMBHM1bRNCUVhjeN w6qfdpmaboXsCVE0F2R2v/JeKhb3/kCEz0d1sMlaHKs5jTYmTMXP+J6sIOYUQCbotQK0 Tql7HN+zirNKCjv8IDNodBR8W4y+KYhXpxgndqjXwobm9ZmTr15epQeL3/SZp+t2Sc5X jtEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CsxEwDwq; 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 n188si2825869wmn.100.2019.02.08.19.45.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Feb 2019 19:45:22 -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; dkim=fail header.i=@linaro.org header.s=google header.b=CsxEwDwq; 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 ([127.0.0.1]:39117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsJZx-00039p-Q3 for patch@linaro.org; Fri, 08 Feb 2019 22:45:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsJTo-0006io-Kb for qemu-devel@nongnu.org; Fri, 08 Feb 2019 22:39:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsJTn-0000U2-N8 for qemu-devel@nongnu.org; Fri, 08 Feb 2019 22:39:00 -0500 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:41637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsJTn-0000Td-HT for qemu-devel@nongnu.org; Fri, 08 Feb 2019 22:38:59 -0500 Received: by mail-pl1-x643.google.com with SMTP id k15so2598642pls.8 for ; Fri, 08 Feb 2019 19:38:59 -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=Ku2qqiofyo2h0KHaCF51MqBaY9+LaL6xQcdtOeJ2hfM=; b=CsxEwDwqjlhbWjZ9mh84lVdYJmxG0wxVlb4Ignl6JvVTNLGva+voeSmnCPc605z8J8 BL+eU+C4OvpEXyy/oHz4Ilj5yOAGtJouJCRhWxqqJYAufIjxwgWXbCGe/ebWrVVC60xb mmO+McTUTlWSb71lDUEc6jjfbOv8OL+SKQ/RG8nLVIV4ucelBu6Q/3+Ko/CVzG7k9eSF 0liq4k3dotd5rCCh9biT45ZHK+ps2c/o3/SXnpYXfTh3kb4FP6LNB/C93OFaSSHsYmDc cgD9Qwn61j17J9FZUUdcE9+C6dJioHojxs4NgQRaPPsNAttTxK/gtRepREYvv6ACytf3 CsvA== 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=Ku2qqiofyo2h0KHaCF51MqBaY9+LaL6xQcdtOeJ2hfM=; b=GxaFT6MOh68TjbjipfaIhRjhgaw6FHgwTCDInmd1HYyZ4ch669jbJqBi1xVgToWA3M casOPTuF+0g6yZR0LbvQNY21/67z1OCLpWzMZ6vutsSupoe6i9jS+YIgBH4ZZM03mRsj ExsjQ8UTE3mDthcHaDnwS9KVYOKs5qWPQOLR63fNHsuLS8gWKrkzB/1HSshC3eTcICVO Tbckon9Sm8KQFbSNBMp/akW8i0pqy68tqxbHOVTvdmknsB4QO+A7J2iRmCu/s/Faqh/z suH+j9VskER1PqWR7T94dBah8N13MnZ1ExcDQHNYNtUiFUx2soN7JhapZFY+4cQ9vkD5 1Hbg== X-Gm-Message-State: AHQUAuYXSP7P99WBgaLc94YthTOgWv3SkHwvlOyDuFbZ+lAsUq09CEvp /sVgslkb6W5GYFYA5belBkx8xyhIqxI= X-Received: by 2002:a17:902:7598:: with SMTP id j24mr26575133pll.7.1549683538162; Fri, 08 Feb 2019 19:38:58 -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 s84sm6340737pfi.15.2019.02.08.19.38.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 19:38:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 8 Feb 2019 19:38:39 -0800 Message-Id: <20190209033847.9014-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190209033847.9014-1-richard.henderson@linaro.org> References: <20190209033847.9014-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::643 Subject: [Qemu-devel] [PATCH v3 04/12] target/arm: Use tcg integer min/max primitives for neon 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: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The 32-bit PMIN/PMAX has been decomposed to scalars, and so can be trivially expanded inline. Signed-off-by: Richard Henderson --- target/arm/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.2 diff --git a/target/arm/translate.c b/target/arm/translate.c index df1cd3fa3e..f0101d2788 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -4760,10 +4760,10 @@ static inline void gen_neon_rsb(int size, TCGv_i32 t0, TCGv_i32 t1) } /* 32-bit pairwise ops end up the same as the elementwise versions. */ -#define gen_helper_neon_pmax_s32 gen_helper_neon_max_s32 -#define gen_helper_neon_pmax_u32 gen_helper_neon_max_u32 -#define gen_helper_neon_pmin_s32 gen_helper_neon_min_s32 -#define gen_helper_neon_pmin_u32 gen_helper_neon_min_u32 +#define gen_helper_neon_pmax_s32 tcg_gen_smax_i32 +#define gen_helper_neon_pmax_u32 tcg_gen_umax_i32 +#define gen_helper_neon_pmin_s32 tcg_gen_smin_i32 +#define gen_helper_neon_pmin_u32 tcg_gen_umin_i32 #define GEN_NEON_INTEGER_OP_ENV(name) do { \ switch ((size << 1) | u) { \