From patchwork Tue Aug 27 00:07:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 172239 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp5051476ily; Mon, 26 Aug 2019 17:15:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRTe2F3Yjy018EHXVH10hFjyjImfON6zVwlmfcL8sVx6UKChkrTnRw9KEJpDbIljcVsU8n X-Received: by 2002:ac8:14f:: with SMTP id f15mr20967228qtg.295.1566864930713; Mon, 26 Aug 2019 17:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566864930; cv=none; d=google.com; s=arc-20160816; b=SyaU8Pz3xFw7H8qCgJfkrsmeVDV2O8Z18H81wR3mJ3XFbHPTMBgGNbyTHisc6n+lg+ GJwOeD6ZAMea0jUGBWPYkDQKMjqhGxhhT10IUfsKzH0bLQWgscpTCe9uRVbFz1gY+KAP swGYugrrPGWK6Fh3HilSLrRmOtjrw/CQp6D1lcRK2DR0AyRr5nwa1alxPrCIb41ij3vq v44O8h27E2oOKkn4N/jBTQDch7zAgAW6Uf/lDnf0nsPvk5X7HRLzOFcVmEfZGlWPC4tF 2zjB2sqBxPiYRSztBwzV7ftB+aY1kfdpUT8bANUmBtd0iPNmtrQ6eO0eyAPcp7vhXZDT kZMg== 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=3NfLm6NXnIjoUElBfRuvMC+OA+QWlwc3LpGafv9TLcg=; b=XP3PxL5yVZ4oXEm5k4+66KoyV3/rOvk2fxfpelJuGG0b3RfPCLUIAA+o0ZveR3h0UZ qZ0UGutLrE4T8BIW+4T3/3uZim4oNDIZc6wML8c9Trjlua9c4g3c2+BRDPTvjJ0OsOTD uPyFv6H/cdiiojKxnW/vjDgpO3J4NQje+OzRnagcx586gN8O3yMhBXnb+q33iuQSw872 kXTXopyLmHGrxA9GjI2ytqP63uqNwok0CrLOdIhDdVYEurnZIC1upPb3zlzNmmn2TfWi ucEhtY7FEGT+fjMJa+rNioMiu50oAWXSNEh4y9G7tlbkAvdpJ895EtpITwcwTbkfQ5oi 5nNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WP77n55K; 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 d38si9374780qta.78.2019.08.26.17.15.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Aug 2019 17:15:30 -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=WP77n55K; 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]:58656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2P8y-0006gR-NP for patch@linaro.org; Mon, 26 Aug 2019 20:15:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33643) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2P1i-00083l-Be for qemu-devel@nongnu.org; Mon, 26 Aug 2019 20:07:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2P1h-00075w-C1 for qemu-devel@nongnu.org; Mon, 26 Aug 2019 20:07:58 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:44882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2P1h-00075b-6N for qemu-devel@nongnu.org; Mon, 26 Aug 2019 20:07:57 -0400 Received: by mail-pg1-x541.google.com with SMTP id i18so11552109pgl.11 for ; Mon, 26 Aug 2019 17:07:57 -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=3NfLm6NXnIjoUElBfRuvMC+OA+QWlwc3LpGafv9TLcg=; b=WP77n55Ki+4NcBuky87luuVBaS82eXlW7thfzpdWPx/p4+9nyRN+BRRQRFwJzCXTOF pq1DwPyddGS4GdD79NMRJzXHdXrPOZ7O8KNuZTFNQ5jRq3Dr601ZDBZUiqyTNmVNgRXg 9osWZw//pLQfrvfsvX2KI/VqEAbOJANEgLtjI8OSdH+xOviZE0TsdStDMzlS4+1cMBn+ vT+pCvh1yMbW7FFzlzjfoyvbXa1Th2yzsdceeUTQSz7ybMtp/j8aPa8JZaczRALVCeo3 RWVKSz5wPbZ7TgP3tSxNeVsNvMuny3B7fD1r/eki9z8wcvEgI83wSlkKkH9OekLzkLi0 QZ9w== 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=3NfLm6NXnIjoUElBfRuvMC+OA+QWlwc3LpGafv9TLcg=; b=EM3Q0CfISLnBhFtaHaIyfI9qqLc0WhjnHNHQtz4ja9GYQKpmOE6GU8al8+0OJhN868 M46QD2ObXmBvKLtL8xodyxp6ugu1g06uekBvyAgjAZ308sOvMwX082xhQbCkST09H0Ck o+ldbPo8d/9lN0oddzvFTDkhm5wBBG6sHXKBpKtVzohxv4lXClM7y8SvP9RxiqGxsyCw U3e1Hyf6OikHZKFoZLRFQHCKhMIUpJxO3BSPDVTF+31QbYejRh5UE2XktIVJRIALxG5X w14QdlpJ5buGoGMfDZK9nDyIbcWHMuhK8ULYV9AP35hjiNpTZwAoieV4tfeIJ0Su56mh Slsg== X-Gm-Message-State: APjAAAXyTM6SoArrsagdQjlwtheiHcjs2tM1CzF+lUtXsbAront+GVby acYRtT9SbeM/r4/FjP7A4hYAe95u9YU= X-Received: by 2002:a63:9e56:: with SMTP id r22mr18765436pgo.221.1566864475882; Mon, 26 Aug 2019 17:07:55 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id e189sm11691067pgc.15.2019.08.26.17.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 17:07:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 26 Aug 2019 17:07:39 -0700 Message-Id: <20190827000745.19645-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190827000745.19645-1-richard.henderson@linaro.org> References: <20190827000745.19645-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::541 Subject: [Qemu-devel] [PATCH 07/13] target/openrisc: Fix lf.ftoi.s 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: shorne@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The specification of this insn is round-to-zero. Signed-off-by: Richard Henderson --- target/openrisc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Stafford Horne diff --git a/target/openrisc/fpu_helper.c b/target/openrisc/fpu_helper.c index b9d2ebbb8c..4cc5b297c5 100644 --- a/target/openrisc/fpu_helper.c +++ b/target/openrisc/fpu_helper.c @@ -78,7 +78,7 @@ uint64_t HELPER(ftoid)(CPUOpenRISCState *env, uint64_t val) uint32_t HELPER(ftois)(CPUOpenRISCState *env, uint32_t val) { - return float32_to_int32(val, &env->fp_status); + return float32_to_int32_round_to_zero(val, &env->fp_status); } #define FLOAT_CALC(name) \