From patchwork Thu Jun 13 16:39:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 166726 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1101613ilk; Thu, 13 Jun 2019 11:46:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqycAXIEtS0j4t2sm4LClexRLtnOX0/Bt0Cx81hxli1YkHuqmktOfm0I3lZ3r9MTNNEnr3ZT X-Received: by 2002:ae9:f303:: with SMTP id p3mr6900056qkg.320.1560451594840; Thu, 13 Jun 2019 11:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560451594; cv=none; d=google.com; s=arc-20160816; b=LxmoIEbV3kxMudl6/w1ggFKGmQ8zv7EVQuAXJsrcmB4lp2vmIoTcDDCyWqUJGpdM8R DUGJioBIucdA5D7iFmlFNV6uqg1jjZdj/z9oC1CrQHccAkjvDZfQMlKgkCvj+9uHMDWN yMzTUVmRZEX0pPuVugox9ZhetWqL84oKP7GVJKeZL0VfDZG0qjOZnLP1bK1+iZGTIY31 xUrynnNXHhQfGpv50tqwM7E8Y0/ysRldQQYJn2bJPtiI5cqYUQ+lra5ZPoELFSJn8jsB JGIY9xP7r/6hzCIKnQhXu7HZ2M5HP17ZnLiE+Ngc5PQYPD9kfEyOPzbOGmWw+2OuFV9b MEWw== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=/Qc/nXAc+oP8/OzVscPUxXsnQcb6vVHyqhqGzT5AlQo=; b=ilsOlZni/tT5Tb487+fY+2WPJuj9M04Z2hPxr6Ifz2TxmS9Riz1HOOsPeXhXGjha3R twCDRRrVGAvA+n5ljQzyCD+XfZyO0TXiVbreagg+2vm8ID/PIbZ+EBwBAd9gLu4K5/iq m/xsz5eSzPwEzvht1dpn3k+rtmRa/PIusVFpR52naxFUN8mgoucV3YTJFw1y/thx3IQT dFzny+UrX2Xv+BfLoPzi+b13MaDLqDz4n9NbmSZPYHH+dkRt0YPd7AZ7eUneIFhV/4TL KYBE2xRQ+ja6BQnJbk5FCkpoh3YCO9cFWYR+2YuJODKibz/yBRXACvLMp8rJJjxX7w2C urqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qewI2yiu; 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 j26si251193qki.238.2019.06.13.11.46.34 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Jun 2019 11:46:34 -0700 (PDT) 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=qewI2yiu; 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 ([::1]:43770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbUk6-0000tD-3x for patch@linaro.org; Thu, 13 Jun 2019 14:46:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53652) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbSlD-0003tp-7i for qemu-devel@nongnu.org; Thu, 13 Jun 2019 12:39:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbSl8-0002o6-0G for qemu-devel@nongnu.org; Thu, 13 Jun 2019 12:39:32 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:37698) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbSl3-0002CR-JS for qemu-devel@nongnu.org; Thu, 13 Jun 2019 12:39:28 -0400 Received: by mail-wr1-x443.google.com with SMTP id v14so21495324wrr.4 for ; Thu, 13 Jun 2019 09:39:25 -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 :mime-version:content-transfer-encoding; bh=/Qc/nXAc+oP8/OzVscPUxXsnQcb6vVHyqhqGzT5AlQo=; b=qewI2yiuf7OxI47ViAwCrSL6vlIUMlPRphHa+CD58aPei488RRc5XnoXgsvr5q2uMY nriXpz3ZEuc/W+P5R3mhNcJOzkTFnGRlCRHHGyvOrfg7EH5XCkdlByQyhR4O0iy2dO/I Q6TF1HFG3pmKl+/tv8EokOXWkofRuOWGqey6NueS5gRUZS4iKjPVisxoASmv84ux87zG 5V1PqmXJ/nsrpcldoA8D31WtogZ5vAg3rnmLOZQ44vFDYHWei0y19qRJiL4gFo0f0uLr PdbRqERjnHlNHbO/5SN4q0DKfpntXlZtcBiAkqzIR6SNw9sloKpsWPwRJo5TBth7b8CI BoVQ== 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:mime-version:content-transfer-encoding; bh=/Qc/nXAc+oP8/OzVscPUxXsnQcb6vVHyqhqGzT5AlQo=; b=YyyW5abrK5f9GfdsGMIYqJdeyF5r3jV23Ys5o9XZeoqfeiUUKjxOIbxUnTAZWPzBZ8 C2L+W4ewET3JMoSxz2jsc4FLlWo/9zil9LwkFRYL5y9n5LzdOGXSSNU6Avx//VV0Hehj Dqe+bS6EMdb6NyCKJmeEnEeyFHz1TfvVT6rNTccRUBkFuTXdQw27pFJ6BFU6xzwn4BV7 aNwmOVZ0oSsETu9ywIzDY2MOscGVqS7L6vQtcuf1bOxVxzybU2GvdnPqqwAC4pCsPEvA 14rSb56zBXlQCmNuYgkOXGlGZnVCVKDg1UFZWZ8to23sR2AbGUbiJIVh1llw3pabLyKk +3Eg== X-Gm-Message-State: APjAAAUxg0HZLBTBi82kVKdr4kzPK9udVl5XyC43nd0Jfi210DuRYdIo wgQJD5P9aosg4qo1anfwwGoMuQ== X-Received: by 2002:adf:e9cc:: with SMTP id l12mr13445032wrn.29.1560443964614; Thu, 13 Jun 2019 09:39:24 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id f197sm358747wme.39.2019.06.13.09.39.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 09:39:24 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Date: Thu, 13 Jun 2019 17:39:10 +0100 Message-Id: <20190613163917.28589-6-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190613163917.28589-1-peter.maydell@linaro.org> References: <20190613163917.28589-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH 05/12] target/arm: Stop using cpu_F0s for NEON_2RM_VRINT* X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Switch NEON_2RM_VRINT* away from using cpu_F0s. Signed-off-by: Peter Maydell --- target/arm/translate.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/target/arm/translate.c b/target/arm/translate.c index a006ab498e7..243dbee8357 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -4181,9 +4181,7 @@ static int neon_2rm_is_float_op(int op) * what we are asking here is "does the code for this case in * the Neon for-each-pass loop use cpu_F0s?". */ - return ((op >= NEON_2RM_VRINTN && op <= NEON_2RM_VRINTZ) || - op == NEON_2RM_VRINTM || - (op >= NEON_2RM_VRINTP && op <= NEON_2RM_VCVTMS) || + return ((op >= NEON_2RM_VCVTAU && op <= NEON_2RM_VCVTMS) || op >= NEON_2RM_VRECPE_F); } @@ -6786,7 +6784,7 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) tcg_rmode = tcg_const_i32(arm_rmode_to_sf(rmode)); gen_helper_set_neon_rmode(tcg_rmode, tcg_rmode, cpu_env); - gen_helper_rints(cpu_F0s, cpu_F0s, fpstatus); + gen_helper_rints(tmp, tmp, fpstatus); gen_helper_set_neon_rmode(tcg_rmode, tcg_rmode, cpu_env); tcg_temp_free_ptr(fpstatus); @@ -6796,7 +6794,7 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) case NEON_2RM_VRINTX: { TCGv_ptr fpstatus = get_fpstatus_ptr(1); - gen_helper_rints_exact(cpu_F0s, cpu_F0s, fpstatus); + gen_helper_rints_exact(tmp, tmp, fpstatus); tcg_temp_free_ptr(fpstatus); break; }