From patchwork Mon Dec 18 17:24:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 122272 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3129295qgn; Mon, 18 Dec 2017 09:48:16 -0800 (PST) X-Google-Smtp-Source: ACJfBov0BiEEzIvhp50iMvOmGQbIcFzo54uwNP9/lOmP+RIhLSDrekiAv//vqpoSUtyIZUAdiVXv X-Received: by 10.37.30.131 with SMTP id e125mr477467ybe.526.1513619296316; Mon, 18 Dec 2017 09:48:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513619296; cv=none; d=google.com; s=arc-20160816; b=f0TYrsnbQDRJvEuOSue6TxZPp6dZBIAS4SDtY0+JxBaBDKHGAloNAprybNLIUJ6nj5 Gmc2Ma6FGiv5WhdWwbpkZFFPa/hY4Lj5ilH7HANL0GYvcH8T88fdSOFZkE8Zdn4xXM+O 1Kb0He7PPECGkt3NHICPpmiKntpGDOktaUXmhVs6s3mgYicoFWRjIjWxPUKGxJUhs7vU f5m/+0JQPQMWz+d5GhXrQDtZlJL9m35GpSOOWyLhFw30EwtVemuwAHUXUoW9aLm4w2wO DyoipC50MaPBM56pGgPAP02hLgYp5F1wVTV0a7WGDkKONEc012rStCOvgqMVX587neZF WSaw== 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=A1TpEFUQcAIAmbbKhGXHC/lApCYj1Sah5xccazBdlfc=; b=tEj+XXja1yap7oCxyv/VIiSmN33eQru0SCKBN6TSAlj6PXSCgvpgNFWScsuyyW/T3V 1W662Esa1y3MvQa0Vr5zqwcQ/CkYVapQRqrPoQxy+yzkcOtr/eO1R8+o/RRmHspenRmO 71H9u1PbY51jkkseXkYURz/GvVHNYqFf2Yq0mn3vdwu8AvPp6ICraLQaYgTrzFd1p8/T mC4Yro3kkebzNgROOr0I2REq0THgJRbLyeZ7I1FKEAR8C0yAr0nFldFsQRe3BQxT6pfb Jy+saM8M/4elQjgzA5TwsgibtZg++CIx3vji5/tLkFG4gRgWWT2kON320sfiu4SiDB27 o1uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=J7IOR1ZE; 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 140si2441138ywd.711.2017.12.18.09.48.16 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 18 Dec 2017 09:48:16 -0800 (PST) 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=J7IOR1ZE; 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]:59104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQzWR-0001Zp-Rf for patch@linaro.org; Mon, 18 Dec 2017 12:48:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQz9a-0005wk-CM for qemu-devel@nongnu.org; Mon, 18 Dec 2017 12:24:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQz9Z-0008Cf-J1 for qemu-devel@nongnu.org; Mon, 18 Dec 2017 12:24:38 -0500 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:34457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQz9Z-0008BY-E6 for qemu-devel@nongnu.org; Mon, 18 Dec 2017 12:24:37 -0500 Received: by mail-pl0-x241.google.com with SMTP id d21so5200521pll.1 for ; Mon, 18 Dec 2017 09:24:37 -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=A1TpEFUQcAIAmbbKhGXHC/lApCYj1Sah5xccazBdlfc=; b=J7IOR1ZEtWexRQi/kNyvNmY093KGnvn05c6+lsSdZmewdWjfBNm5Ao7qb5JwHBGqpb N15ZeuniGzXkMQ9quHSAkOrHsuDPmFCZDvG/SVP61jqX2lqR8k2l3jtI1ozEU8s4KDMS ELTG9EMgEf/0DlfSxbSPrED7qFE6m4LhiwaZ4= 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=A1TpEFUQcAIAmbbKhGXHC/lApCYj1Sah5xccazBdlfc=; b=NMs1f1LaNi9JiObnc4OXaS87A+PbD2sCRdGZZc2RhYCmct4iqvS2BvFXFOMjdoIGR7 KJAlVPW6Hqfj+2u2TGuTilpVRWUUZBZ8M+3HL6lVCf4mztmoCGCZDxCskkx3otEQx23b iw58GzjcayYGM1oBmg+JuTrjN8SQ6hEXr2ks7optwSAEo0NPfw3wQQmSpzdujYheT4jF tu34NpXlHnzvGKijPxhJQnDC0IiFDmvOAphqdt0i08lBlQ+IvCyD3UK6YlFL/VKDWUFa rkcUMnFa4med2NCchvvtZrRrPeTIc4UbRm5d6T8PUE54k15ad9IcbTjKuOgxo0INggIt P00Q== X-Gm-Message-State: AKGB3mItRM2WA5CbaBoblq11VeKXCpPjquRFVxwG9TBO/LwwvmQgKYSw MB9jbL9bET+iSsC2DQfws44G1rNKoAk= X-Received: by 10.84.164.104 with SMTP id m37mr412808plg.29.1513617876251; Mon, 18 Dec 2017 09:24:36 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-7-63.tukw.qwest.net. [174.21.7.63]) by smtp.gmail.com with ESMTPSA id m10sm9260469pgs.4.2017.12.18.09.24.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Dec 2017 09:24:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 18 Dec 2017 09:24:20 -0800 Message-Id: <20171218172425.18200-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171218172425.18200-1-richard.henderson@linaro.org> References: <20171218172425.18200-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::241 Subject: [Qemu-devel] [PATCH v2 06/11] 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: peter.maydell@linaro.org, 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 | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) -- 2.14.3 Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/arm/translate.c b/target/arm/translate.c index a9587ae242..1a0b0eaced 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -6973,11 +6973,43 @@ 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 */ - return 1; + default: + g_assert_not_reached(); } } } else { /* size == 3 */