From patchwork Fri Dec 14 13:54:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 10731199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5850F924 for ; Fri, 14 Dec 2018 13:58:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 966752CC1D for ; Fri, 14 Dec 2018 13:58:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A3B62CC22; Fri, 14 Dec 2018 13:58:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3A1462CC21 for ; Fri, 14 Dec 2018 13:58:56 +0000 (UTC) Received: from localhost ([::1]:33663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXnzT-0003eR-D7 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 14 Dec 2018 08:58:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXnvh-0008Lt-Lw for qemu-devel@nongnu.org; Fri, 14 Dec 2018 08:55:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXnvg-0001wH-PY for qemu-devel@nongnu.org; Fri, 14 Dec 2018 08:55:01 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:36212) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXnvg-0001vU-Cz for qemu-devel@nongnu.org; Fri, 14 Dec 2018 08:55:00 -0500 Received: by mail-wr1-x42b.google.com with SMTP id u4so4543970wrp.3 for ; Fri, 14 Dec 2018 05:54:59 -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 :mime-version:content-transfer-encoding; bh=4y9FUmY2nafi57HhYvgJvorYMC2w+RoucBwKitqF7PM=; b=d1o2ThMCYVvUsH7oeXIaoLRIZtg5UrGEv+8aYzwWdxVVRBjf4Oqy63jrbpOraRQUeh 7jpS69jTY1WvwVurtPfqmAjokmQ2jLyOQqKtlbRpol9cOz+cvqJAD9GYJCxFB1X+2vRP hTgJg9Cznuy0v/4UEXCSEj8J06CG1Gd03GWsU= 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=4y9FUmY2nafi57HhYvgJvorYMC2w+RoucBwKitqF7PM=; b=RC/zQ+s6pyvLQYeUSIX6JHXige7Cy0FQ8+UJPM37HsNLait86boeZR0UgZ2rNrBDv0 +NT78f50YnnACd1/V+9Is14wSuCSwd6lgFo0QqJFjtZHy/1x0lN5gXp5UW4b83MVvRty C6vsdwvOmspa/1TwDmtqaeER/An3FYFM67ZB2hidX4kZ8O177agnkZVrgj6/UhxnrDBh Ekw4cKWrgphIxq6SW0CL+mZ3O2J8CEtADOGXIoKXyetd8+M3STQazmi7KuuJyRI8WqSK pHfXUatL6DBj/mOKoVTVh0eiwixEkEuEkz1WQhfnMJzmq/9lblJAnYtL0V6IGMYpXLUY Fstg== X-Gm-Message-State: AA+aEWZpOwL4c1t7NcPR1klR3C8ULWS5TOcxS4qFEgU/vgstytLEPIQS PzKL1x4th8waRLWoUUrdSzEsfw== X-Google-Smtp-Source: AFSGD/VaQAVglf7W9xpeZY+QyRr0MWt0LcMolp0JaCKrZA2YUPwWrHw4LK/qVmP3asBF+Lf06rozoA== X-Received: by 2002:adf:ee07:: with SMTP id y7mr2784836wrn.187.1544795698507; Fri, 14 Dec 2018 05:54:58 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id x186sm4994869wmg.41.2018.12.14.05.54.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Dec 2018 05:54:56 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 628293E03C0; Fri, 14 Dec 2018 13:54:53 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 14 Dec 2018 13:54:42 +0000 Message-Id: <20181214135452.25936-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181214135452.25936-1-alex.bennee@linaro.org> References: <20181214135452.25936-1-alex.bennee@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::42b Subject: [Qemu-devel] [PULL 05/15] target/tricore: use float32_is_denormal 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: Bastian Koppelmann , "Emilio G. Cota" , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Emilio G. Cota" Reviewed-by: Bastian Koppelmann Signed-off-by: Emilio G. Cota Signed-off-by: Alex Bennée diff --git a/target/tricore/fpu_helper.c b/target/tricore/fpu_helper.c index df162902d6..31df462e4a 100644 --- a/target/tricore/fpu_helper.c +++ b/target/tricore/fpu_helper.c @@ -44,11 +44,6 @@ static inline uint8_t f_get_excp_flags(CPUTriCoreState *env) | float_flag_inexact); } -static inline bool f_is_denormal(float32 arg) -{ - return float32_is_zero_or_denormal(arg) && !float32_is_zero(arg); -} - static inline float32 f_maddsub_nan_result(float32 arg1, float32 arg2, float32 arg3, float32 result, uint32_t muladd_negate_c) @@ -260,8 +255,8 @@ uint32_t helper_fcmp(CPUTriCoreState *env, uint32_t r1, uint32_t r2) set_flush_inputs_to_zero(0, &env->fp_status); result = 1 << (float32_compare_quiet(arg1, arg2, &env->fp_status) + 1); - result |= f_is_denormal(arg1) << 4; - result |= f_is_denormal(arg2) << 5; + result |= float32_is_denormal(arg1) << 4; + result |= float32_is_denormal(arg2) << 5; flags = f_get_excp_flags(env); if (flags) {