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: 982737 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="CbM/4cpM"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42WNnb4N7pz9s3T for ; Fri, 12 Oct 2018 08:06:59 +1100 (AEDT) Received: from localhost ([::1]:37145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAiAa-0000d9-Pi for incoming@patchwork.ozlabs.org; Thu, 11 Oct 2018 17:06:56 -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-Google-Smtp-Source: ACcGV622OUB90nTUV5grMZpiDNPbwGItdjQMm4/RpyvU2ynCGv42qk7Z6rRVBlPBnGT/C0XRw7R1SA== 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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);