From patchwork Wed Oct 4 18:43:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 114800 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3455624qgn; Wed, 4 Oct 2017 11:47:21 -0700 (PDT) X-Received: by 10.55.162.198 with SMTP id l189mr14517676qke.168.1507142841555; Wed, 04 Oct 2017 11:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507142841; cv=none; d=google.com; s=arc-20160816; b=n26N9RanK9icmP2Ek3+OW96W+qE0tJze1Ij7hZDPtqXO2y2lYg5iuD1mUZqxXQkkub Lo5+L6kJqYNWjmIQ76OWYWQC7MJhiI18JdEjV6Z7g++sPAnDOZb3PSlgJFK8jO2kS42L dpSzAyIK9eMG5MLPePGUU4CYJ2DrbGwfQ5IZyAfqCUrVERjkFaTDQE8x1yiPQWOJTmf7 0IiBbKKmwX/Rjq0o1tHKHnHqhG+Yc47hByNCJ2zhqGzpYsYvSSKyDApf8GCKrD6wkpRu kJjp/EAxFPa1IOWF7+mAp8OVk85X3y5U6aFNsqUlGrsiQAzEtU/zTF1B19TQiSfTA7zm 4j6Q== 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:arc-authentication-results; bh=Y5zogntbmWc/HsOd1z5gbDUdbw2+ttmLw9MyB9D9XyM=; b=Jb5vYR7f6DScX5NeViXXvqsFEqfQp8ZSbGLQ6PpDQwFOURjzw8DYcaV/NWynQsh+MV wyIjCfXfSHf3MKZwB0m+wN7i+tceZ84mzvPGRxigBUZRLl4EDVsj2VMwX9sayflRPn6/ xTr9rX4k8fEvEm5f1a+Luwm36jyRs8Cqt67hrZY+zfO3PSoUX6v2B/oJmkytU9uWJj4y N5MC9QFfD+h5vyTtZ7OXT9jZHS+J7UWVIgdAk3FOVRAng05/DFNFYlU3zFgWhhyQd/m7 s1W8g/oL2HOU45jsMU9CWqon/yjoem1Ds0oTlvD2upiUI86p9oYKHnfcneceLtS2tPqh tYKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eiCKAWTh; 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 l66si8619865qkc.239.2017.10.04.11.47.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 04 Oct 2017 11:47:21 -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=eiCKAWTh; 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]:36447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzohV-0002qD-3R for patch@linaro.org; Wed, 04 Oct 2017 14:47:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzodw-0008Fh-UM for qemu-devel@nongnu.org; Wed, 04 Oct 2017 14:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzodw-0002ip-5O for qemu-devel@nongnu.org; Wed, 04 Oct 2017 14:43:40 -0400 Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:43758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzodw-0002iK-1d for qemu-devel@nongnu.org; Wed, 04 Oct 2017 14:43:40 -0400 Received: by mail-qt0-x22b.google.com with SMTP id a43so15131436qta.0 for ; Wed, 04 Oct 2017 11:43:39 -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=Y5zogntbmWc/HsOd1z5gbDUdbw2+ttmLw9MyB9D9XyM=; b=eiCKAWThkc/E3YpbsbXNytKi+AhyQns2T5q29uaATiBQtXqF/bKo3lmS7uthJxz2si aveq/5D9xjUrnwkf/Aqn5HDjjYug5jvm74wBIzoX7eGNqUx6Sx63GzmNG/jp9wZN8E3K sIlmaZJHL8zjWjzoZdCEELcfjn3jENg/J5CLs= 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=Y5zogntbmWc/HsOd1z5gbDUdbw2+ttmLw9MyB9D9XyM=; b=de5DptjUHyG45MlJc0Y8GIC5UYF8UzPn3FS4znnHO2wS6tg8ERR65HhjfHymQQxsN8 76LOWCn8sgDs8mqSG+m4XebmgCltvRwYBY9yrz6nJlYqBXaygAgzW1OpsWaVsUCBQhW3 ke6/HdxehK/JCJiQ1s/Up2vQYqjYkmrF4kCSoWahc/+RT+HdGzTfodQ8LknhL6NEZVEE squ53OLYKa/UNrsOg6ZS/cFXzOn3Usup0OWGi6k1kfumPVrSB4ML/QWrTdxDRPeqO26b KZVhs+98V3Ov3K540EHRYRO/JS50QOUS681ST+EPi3z6Jsjm6ksB6NqDDBI4TeEn2agn qXeQ== X-Gm-Message-State: AMCzsaXM0KI/YduCH6p8qvuaDMbxQBYj2Hk/hiD+l/A/+mp58kME/94V Ple6WxJ5hcJblVErjl11QRG3Ot2iejE= X-Google-Smtp-Source: AOwi7QDkEb8BMpVwiFU9eqmijGmkyfmb/ln3JtkilTWsCM9WdHE6HLcCzj1KcrszJ5PEXS9ohdAB9w== X-Received: by 10.37.175.131 with SMTP id g3mr3393632ybh.96.1507142619106; Wed, 04 Oct 2017 11:43:39 -0700 (PDT) Received: from bigtime.twiddle.net.com ([2606:a000:7a4a:b100::1b]) by smtp.gmail.com with ESMTPSA id o64sm3020464ywe.12.2017.10.04.11.43.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Oct 2017 11:43:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 4 Oct 2017 14:43:20 -0400 Message-Id: <20171004184325.24157-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171004184325.24157-1-richard.henderson@linaro.org> References: <20171004184325.24157-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22b Subject: [Qemu-devel] [PATCH v1 07/12] target/arm: Decode aa32 armv8.1 two reg and a scalar 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: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate.c | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) -- 2.13.6 diff --git a/target/arm/translate.c b/target/arm/translate.c index 0cd58710b3..ee1e364fb5 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -6941,10 +6941,42 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) } neon_store_reg64(cpu_V0, rd + pass); } + break; + case 14: /* VQRDMLAH scalar */ + case 15: /* VQRDMLSH scalar */ + if (!arm_dc_feature(s, ARM_FEATURE_V8_1_SIMD)) { + return 1; + } + if (u && ((rd | rn) & 1)) { + return 1; + } + tmp2 = neon_get_scalar(size, rm); + for (pass = 0; pass < (u ? 4 : 2); pass++) { + void (*fn)(TCGv_i32, TCGv_env, TCGv_i32, + TCGv_i32, TCGv_i32); - + tmp = neon_load_reg(rn, pass); + tmp3 = neon_load_reg(rd, pass); + if (op == 14) { + if (size == 1) { + fn = gen_helper_neon_qrdmlah_s16; + } else { + fn = gen_helper_neon_qrdmlah_s32; + } + } else { + if (size == 1) { + fn = gen_helper_neon_qrdmlsh_s16; + } else { + fn = gen_helper_neon_qrdmlsh_s32; + } + } + fn(tmp, cpu_env, tmp, tmp2, tmp3); + tcg_temp_free_i32(tmp3); + neon_store_reg(rd, pass, tmp); + } + tcg_temp_free_i32(tmp2); break; - default: /* 14 and 15 are RESERVED */ + default: return 1; } }