From patchwork Sat Feb 9 03:38:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 157906 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp239560jaa; Fri, 8 Feb 2019 19:43:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IYUg1QRceBLb6r2tzAZsPZikv8LJ3IJPOnzcRLzPppovAXnlIerDJQOfxytObAumZNGjQdC X-Received: by 2002:adf:8122:: with SMTP id 31mr19349199wrm.48.1549683804408; Fri, 08 Feb 2019 19:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549683804; cv=none; d=google.com; s=arc-20160816; b=sbG5Luj/jo0/hqxV9rjoQxj76oB4VgTtQHvb8StjfJW7NdPKFNR117921myF6UWyZb eyPh9D0BVcm1KBwL5ZkCrkP2kJE+YwtMDuqL/cdu67oWBIsHUMu1lherZ6Tm0ZlMCGkT dv2PdfUotAK9niHLoI4TNwEDexRuGD9BMmAsGUKTdq2AT2IkyhzdErh/n0joqd/hHyai /aDIuMxy+ixtF6rzqA743LULg7Bcuakr8yzHLpzGNL1ziqWE3kCJ89vZaCyhSI5ru8mt wggjD8lWj1GCIrbewbPc+JtwlyglIZpFqNmyP4yUluvOfo++0KRIJZByeo3Ya2Pwvkx6 sM+A== 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=RT1GreJgsvsbPtqY2RbKVaphAKh18dUwun7FW6H0APA=; b=e+iN/xv4uOiysU12KxMSB0ubFjYBBQ8And8ZloBayGOGWic4UiNWSsKg8PeLT01hsz TE2dWYFqg+EHBFoCcnsBqZIjYWeXOX+uXIXMWBUyNUoGMspRa3T1DR06xDpWYFbzqxQn 2uOKBBnHskhgNXLQNr2D2cmVzHJqA0OBHmRdk74fbdVcMRsLAzo/06tXU+N1ny3tNtng 8rf+byLqU7PP5gD53rEPQO6eXHquky9X3GQJ3SL9gxisYWXeR3bPMU0yPv5PBaoFIy/C ZkgX0GTZf+/YHe4B6J3/a1z4ky1T+Msa0pW+JW+cPUpSMo6R7bqdXWv4MYorcpo7HYYt p5GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UuGrdyQK; 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 p8si2723253wrs.426.2019.02.08.19.43.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Feb 2019 19:43:24 -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=UuGrdyQK; 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]:39083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsJY3-0000rO-Cx for patch@linaro.org; Fri, 08 Feb 2019 22:43:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsJTn-0006iZ-6t 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 1gsJTm-0000TO-CC for qemu-devel@nongnu.org; Fri, 08 Feb 2019 22:38:59 -0500 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:44918) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsJTm-0000Sw-5z for qemu-devel@nongnu.org; Fri, 08 Feb 2019 22:38:58 -0500 Received: by mail-pf1-x444.google.com with SMTP id u6so2564386pfh.11 for ; Fri, 08 Feb 2019 19:38:58 -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=RT1GreJgsvsbPtqY2RbKVaphAKh18dUwun7FW6H0APA=; b=UuGrdyQKE7FzAmfF/lwZhkXTwsjxM+qcjHVEXWL7cXXSFeDunvP/jRRy1yVTYKZZGl CgvQajL0DMzMmRHaAwY64Jx8k2eeeyDrMjOZTuvGmswiCtm9A3raThxXnkRJ/Hja4is+ dYa/p8Kgp/rqNWRc4us0qkHKDKOgTfWNY1wQQmr9vA3BrdpcY+hycQ4JqLaxfWeYb1od 0pzpIHhznDyvtyuTxNUp7cHNxH6RXknOb5TCJtKq3zFLN6wrUKVGpdfUR3+LwH0l3H9D RbBP/IzhZHYaXpMQ6tNV53GqUrpK873OvBA+bdmH4bjH/62ye41Y1dNg3W2xgq08cFsR r4Mw== 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=RT1GreJgsvsbPtqY2RbKVaphAKh18dUwun7FW6H0APA=; b=EuUMFTe7N7dnDz+4NBwiQCfqBICwvV0IL4Bd3lN533LCx83UdbDX/aaeaPgKEYyBbe 9hnEP9FhMdQ1X6ArhqT76ZmgGgq0YBK6zsAMU6XWmEa6k7/9f0wk9nJb1bTpEQ24ccGy inJ1qNv5YR+gMo7opL74D24W221SByVzE+6GYwFglHg2tAKrdrqCzdaci17eMKcm7SWK cKuQbiPRyyCMAHyTJzDzJ/30NApZIZvrjybZeEPbRwcxlJOjeHPke/LrzoKqQsBQ3MwA Y3nqMMWjyepk32ubCNO4Ox/2JacZ35/pRyCQnMowEaX8hfGTMcv8PNg9V8QKbWpQNqYZ eZHA== X-Gm-Message-State: AHQUAuYooGgf9A45i11kTCtAV7WbzGLW8M51/FWDrlDBNGaa2NDg62HF m8Y11Qm+T7pF4+3yPEzvdjIKg+ASDkQ= X-Received: by 2002:aa7:8508:: with SMTP id v8mr14525563pfn.28.1549683536843; Fri, 08 Feb 2019 19:38:56 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 19:38:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 8 Feb 2019 19:38:38 -0800 Message-Id: <20190209033847.9014-4-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::444 Subject: [Qemu-devel] [PATCH v3 03/12] target/arm: Use vector minmax expanders for aarch32 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" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) -- 2.17.2 diff --git a/target/arm/translate.c b/target/arm/translate.c index 9d2dba7ed2..df1cd3fa3e 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -6368,6 +6368,25 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) tcg_gen_gvec_cmp(u ? TCG_COND_GEU : TCG_COND_GE, size, rd_ofs, rn_ofs, rm_ofs, vec_size, vec_size); return 0; + + case NEON_3R_VMAX: + if (u) { + tcg_gen_gvec_umax(size, rd_ofs, rn_ofs, rm_ofs, + vec_size, vec_size); + } else { + tcg_gen_gvec_smax(size, rd_ofs, rn_ofs, rm_ofs, + vec_size, vec_size); + } + return 0; + case NEON_3R_VMIN: + if (u) { + tcg_gen_gvec_umin(size, rd_ofs, rn_ofs, rm_ofs, + vec_size, vec_size); + } else { + tcg_gen_gvec_smin(size, rd_ofs, rn_ofs, rm_ofs, + vec_size, vec_size); + } + return 0; } if (size == 3) { @@ -6533,12 +6552,6 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) case NEON_3R_VQRSHL: GEN_NEON_INTEGER_OP_ENV(qrshl); break; - case NEON_3R_VMAX: - GEN_NEON_INTEGER_OP(max); - break; - case NEON_3R_VMIN: - GEN_NEON_INTEGER_OP(min); - break; case NEON_3R_VABD: GEN_NEON_INTEGER_OP(abd); break;