From patchwork Mon Dec 17 10:56:40 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: 153992 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2343576ljp; Mon, 17 Dec 2018 03:16:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ws3AUWBLUN9Vm9GYH/jF8K/HHbj5D9ByOox6V1wHijQsdlKF1mt8RJF7ZrrlQXGje/JTMH X-Received: by 2002:a0c:88e6:: with SMTP id 35mr12651832qvo.61.1545045413671; Mon, 17 Dec 2018 03:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545045413; cv=none; d=google.com; s=arc-20160816; b=m0jcmU2JGFT7+xamg5E4WqeXY8Ns5eRL92s5fAjW8u6p3UBmwpA0RZyQ9o+3V+FQGj X1NEhum7DICQM0OkWNFxcTls685ze04Qon9LTMDQc7bocBWreY+Gr/M+X9K6wAVfwmor 82NcdoOG74ppPkHVNg2aYJh+OHNA9eRlivSalCEAkwG+pSS6AdQudRB9KcbG2GRRe2V7 WTJGVjq7nWXhMCUjmWBF2wcicApp6R7mH1pXCFHXbW5uQUx0LnmEq57sGhuVAmz9SUhY Lx98pAYq6tc4zSoQ7y1O0efGadzQD7UqFOpGENewECoPSX6zAjcarC4kt2xUUbdSNpR4 mtPQ== 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=HaESWZPFMHMkhM3sbObxQOo2e5MPR5Q3cgfhMi8eCNABqo5eHMVAdiKcYGFPXnA4R0 FbuCvfWz+iYGQcpW+xYx4+ZKDuulxRypUE5TLleQgQZfo/FxvJ2iaspXK7pWflXJMFxU d6G7zP1Bla1orL7XL1l17ffdvhjheRt6kSeDf/m+4WogM5U1omQ2G096DtKqJs8se0UY +l6zAX8OwKANc1uhMipwl4dRR/cqGzRi1uCaV77uHZQnwCzh880KIF6TNC4CF7oQLXf0 CLE4AyYidXf/Yl5WmsZ0UCe5YwLZVIxi2Z060KnT4e4OaHBA6uDbw0i+gMzjk7yPP3Pp FLdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BNfg87Q0; 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 i8si7105855qvp.40.2018.12.17.03.16.53 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 17 Dec 2018 03:16:53 -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=BNfg87Q0; 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]:46005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYqtJ-0008RM-2N for patch@linaro.org; Mon, 17 Dec 2018 06:16:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYqbp-0002Y7-QF for qemu-devel@nongnu.org; Mon, 17 Dec 2018 05:58:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYqa1-00007m-C2 for qemu-devel@nongnu.org; Mon, 17 Dec 2018 05:56:58 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:39549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYqa1-00007O-5r for qemu-devel@nongnu.org; Mon, 17 Dec 2018 05:56:57 -0500 Received: by mail-wr1-x436.google.com with SMTP id t27so11779150wra.6 for ; Mon, 17 Dec 2018 02:56:57 -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=BNfg87Q0j6V+YTg6/OtdsW6Fvinv0fafY9jZrfHRdt+//n/J6Jq5XOGLH9IWmwPFyZ XYtdKnjuvaTOyN9xFQnLwsXwZE0fpF3R1sJeI4tK1l0zjzXcWTgwVlMmhJXBOvjvuzu8 BC4xYmyYaxDQoSSI+YWHMxI3UoJNeQd6KVgmg= 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=sfZwd86G7g423mOssIIe0MaeAR+pgbelq/4Xb2ZX0CozySdlEo5zB8WIV9Ur7ckXSN zCHN+95djKGM1oI+sMrWF1Vmx2naBLIw1xp8YZK2ICUVx1zCH39fz4qPjYmIXc4oyiLL vAzcE5KfUYHzbn1YUozJELC2FcZ+YBkd1KsapjmUDIhQb3CAyGxmThtGUjWms4MI5/eP V9IaK7e+zW4/XPmIvhSLzdRqV2f5dXn/7Puo2/99jy5Yww+eV0hBQ09CWWHy4ZLZPxNL koOlCxj4yBzUXRY9/vB+qqEGSLUVOpqnYo51KzaLMLP1i4+G8BagL+/P1YpTcFF3kpCh REcg== X-Gm-Message-State: AA+aEWbZf8WbbbQK2V5AXXy3Yh138t9SMctBcPDKjBN6dtK8jLE+c0XL wAmhhvCHwEuoqHZSJTX6bPcrlA== X-Received: by 2002:adf:a211:: with SMTP id p17mr10177895wra.179.1545044216136; Mon, 17 Dec 2018 02:56:56 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v8sm11562022wrq.53.2018.12.17.02.56.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Dec 2018 02:56:54 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 0F0E63E0568; Mon, 17 Dec 2018 10:56:51 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 17 Dec 2018 10:56:40 +0000 Message-Id: <20181217105650.27361-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181217105650.27361-1-alex.bennee@linaro.org> References: <20181217105650.27361-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::436 Subject: [Qemu-devel] [PULL v3 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) {