From patchwork Thu Oct 11 20:51:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 148689 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2609321lji; Thu, 11 Oct 2018 14:08:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ZxNLomut9atrhw4h/tC8/ooPFlNdzkh74uaMS3cB5tC2TGtQjBtKvFHm7tSJCVDMroji+ X-Received: by 2002:ac8:468e:: with SMTP id g14-v6mr3142468qto.137.1539292122892; Thu, 11 Oct 2018 14:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539292122; cv=none; d=google.com; s=arc-20160816; b=IePwvKSxd0gbNUImsACevd7CWYIaWsvLIEgD8QS7aYox67bg26gN2ovyT0/3Scc9Wj 2+O4UUSd2NjfLNBw7Fu9Sfi0PVDMRHEd1TdCv75+QKbZylFC7ZABZHDu6POlYOEi/eNH X3kQJrrL8AWtQSO2oD5nHpIDXu5tgfzXLNE10wxNelIUvk22Li021uhSytgsZhdwhQKS tvUAVxU1kq71/h5BaTw9Vo69YmmGsjdAiQUVDcPkcVlm+aWyh686J9LbKysFv92EfMo8 n9Slzjuxpa0FarpF61+XtPP1WAn0HljDU/7dWR13NNXBWSzfKDdjUzuclnQGQx/QxJwY +rwg== 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=ZgCQfNDDv73oCAjrYwd3E50LsnVqhyPZQcU35qeKmnc=; b=Tu473wcLmKzHViYdAteW8zx+EHe+0em7uUdpTUtac/G2U9S9jdjiDWPUggxtcewu4h 62aAEEpRlWwKnG2yNgpIUh2Ar+5n58SuyX2sfVUlMCDmt8qvSfqAP2OUwOCMsQSiyJ83 PxELhX6hihyDfmtxZO0c7a0ucVIc5x91qt8kkeEEXDlcj1xmK8rmQJhS6YP30QW4GV3z kuHaGoTxGVsR/vUlXfdhNfHzFdls8Qo9HsEKHXh8/+/1/CROD2QuVDnNC7tohtidsKDx OD/MNgIdY2Mv4Et44fUo9yDhYtkwrudEIp0MO3toqXP1nMCcm/HNY1jgeA84LzByRGmq 6lcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="CbM/4cpM"; 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 u49-v6si14600864qta.385.2018.10.11.14.08.42 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 11 Oct 2018 14:08:42 -0700 (PDT) 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="CbM/4cpM"; 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]:37151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAiCI-0002WB-Bi for patch@linaro.org; Thu, 11 Oct 2018 17:08:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAhwq-0006s6-02 for qemu-devel@nongnu.org; Thu, 11 Oct 2018 16:52:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAhwm-00063p-LX for qemu-devel@nongnu.org; Thu, 11 Oct 2018 16:52:43 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:36418) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAhwm-0004La-Cy for qemu-devel@nongnu.org; Thu, 11 Oct 2018 16:52:40 -0400 Received: by mail-pf1-x42f.google.com with SMTP id l81-v6so5011778pfg.3 for ; Thu, 11 Oct 2018 13:52:24 -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; bh=ZgCQfNDDv73oCAjrYwd3E50LsnVqhyPZQcU35qeKmnc=; b=CbM/4cpMMPVgz/6j8G95ul0OIn8MXTrEMZoBwqYhoBlt4hz6f+1YgObvXgYXKGZzxs tj37Ns7Yph+sRnqoaMtp6Su1HuyD+4fE5Fg9WuZIP2qdi6qSrfNdIB7iGWgqmF7J45Ln W9LWafU5JSc2xBs5gCuu0ts0Sjq7ty5NVMda0= 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=ZgCQfNDDv73oCAjrYwd3E50LsnVqhyPZQcU35qeKmnc=; b=RwXMomVJxaZ1w/ToDHaySdTnkJQfnlNEq44afXJY+eEQVhNgtmEIBkrLN+rsOXivkC cYnQP1XrrptKIwOrCAx4GgWD5yYyi68EwBYFGfj6DAah0cxUA6sZxdSfuT1SMAkqlXZe D1XEVjqmG1NbxyqGbxuGgqiDY8011P6Ep1smKYsea3QXU/1CkAj7Po6y4UFC7pQZU+DL qziwdWsP61b+hDCApN1P21ecjA+xCxylzbUUFsc2YS6v4BN9O7rqCxK9/l8ObSNDU4VF 6rvcT/NZGbfzrD1B18qN/fcCQ83ZarAEIwoMatHq4IJc4G88fU9y6nnkbTrFSE+Me531 n6qA== X-Gm-Message-State: ABuFfoinyEKEcVLkoN4qjQkVY8WgwswckwP7/ExUS8kJSBSoK7bths9E 6JNuEv8xhRK9nBVJfoSz5wClBU09C+0= X-Received: by 2002:a62:8dcd:: with SMTP id p74-v6mr3166928pfk.217.1539291143521; Thu, 11 Oct 2018 13:52:23 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-8-179.tukw.qwest.net. [97.113.8.179]) by smtp.gmail.com with ESMTPSA id h87-v6sm34707866pfj.78.2018.10.11.13.52.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Oct 2018 13:52:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 11 Oct 2018 13:51:56 -0700 Message-Id: <20181011205206.3552-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181011205206.3552-1-richard.henderson@linaro.org> References: <20181011205206.3552-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::42f Subject: [Qemu-devel] [PATCH 10/20] target/arm: Use gvec for NEON_2RM_VMN, NEON_2RM_VNEG 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" Signed-off-by: Richard Henderson --- target/arm/translate.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.17.1 diff --git a/target/arm/translate.c b/target/arm/translate.c index 4dcd7123e9..fae132791a 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -7501,6 +7501,14 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) tcg_temp_free_ptr(ptr1); tcg_temp_free_ptr(ptr2); break; + + case NEON_2RM_VMVN: + tcg_gen_gvec_not(0, rd_ofs, rm_ofs, vec_size, vec_size); + break; + case NEON_2RM_VNEG: + tcg_gen_gvec_neg(size, rd_ofs, rm_ofs, vec_size, vec_size); + break; + default: elementwise: for (pass = 0; pass < (q ? 4 : 2); pass++) { @@ -7541,9 +7549,6 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) case NEON_2RM_VCNT: gen_helper_neon_cnt_u8(tmp, tmp); break; - case NEON_2RM_VMVN: - tcg_gen_not_i32(tmp, tmp); - break; case NEON_2RM_VQABS: switch (size) { case 0: @@ -7616,11 +7621,6 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) default: abort(); } break; - case NEON_2RM_VNEG: - tmp2 = tcg_const_i32(0); - gen_neon_rsb(size, tmp, tmp2); - tcg_temp_free_i32(tmp2); - break; case NEON_2RM_VCGT0_F: { TCGv_ptr fpstatus = get_fpstatus_ptr(1);