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: 153842 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2100613ljp; Fri, 14 Dec 2018 06:00:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/XlRRvKZE+Cd+hxFHCdWl74Lc1Ko6KKhpMD4NQFNsa4Bc/GdU9vppS7aFnbVMUjVB/SOWCx X-Received: by 2002:aed:3b25:: with SMTP id p34mr2803784qte.310.1544796014189; Fri, 14 Dec 2018 06:00:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544796014; cv=none; d=google.com; s=arc-20160816; b=cX1Hu6/T/WbGj23R3p/13HDR4AQFN4Ddj85NdG02JDyhqb1DQo90LQJEqPn5sDnrs0 fvkBmu7wvwcXlQ7XgOBW3PckR5P/wgdgraFL3u5ZlVWLie2MsehEonrpV0g+0ifgbs4c n0DW4PO73iSZdqRia4YwYxpcaO5EOu/VbAHGkNOivoZzYw1BAJyKp/0ctTQwDgoHpg8g zMA5d+s30QGq9Z5j3cWOzcEsKn+q2POdDNYH5cO9RW6/rmWO+o1FzRQdqC3VpwqCZIBi 0uB16TkKZYdoj0idykp+YSlkEbBgu7QFslqlrGClvEaY8Pagq55zubtEg5/ZG/xJoAQy COzg== 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=4y9FUmY2nafi57HhYvgJvorYMC2w+RoucBwKitqF7PM=; b=eaGexdvSqmumyWPj/YF2z/aVvYcPP6R54GA2tSgUo1QLGHi873j6UQLFTCZIt4vc+h /r2nueKGPA1U4we20ulCsWcjfpn40n3bMaAsSN9WUy6npi50PI8WYlEUq8+s7luJfnCV R7QxeVr6BXAWxvq/b6SmCXqAy8bpn/E39lNEpTz3ftWkEqc6i91bKod09RVcpKZM6u4a hoLM0/C2+JU3Q1+L2iEjKOe7VvaYg5kORqzEi9t5XN7WYCwVe9dIoJL/kv/4zD21FhMQ 92wUfvrN4+VOOGCa47PPTNWBPe7YfXeGXRVl3wIaSwwH62ooZdGbjBicVl6qthZHT6pY hQOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=d1o2ThMC; 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 y65si2934505qky.128.2018.12.14.06.00.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 14 Dec 2018 06:00:14 -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=d1o2ThMC; 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]:33663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXo0j-0003eR-K0 for patch@linaro.org; Fri, 14 Dec 2018 09:00:13 -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-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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Reviewed-by: Bastian Koppelmann Signed-off-by: Emilio G. Cota Signed-off-by: Alex Bennée -- 2.17.1 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) {