From nobody Sun Jun 30 19:10:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1547670354199446.8114803948175; Wed, 16 Jan 2019 12:25:54 -0800 (PST) Received: from localhost ([127.0.0.1]:45566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjrkn-0007pn-3Y for importer@patchew.org; Wed, 16 Jan 2019 15:25:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjrj8-0006tO-Bb for qemu-devel@nongnu.org; Wed, 16 Jan 2019 15:23:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjrj7-0005yI-BS for qemu-devel@nongnu.org; Wed, 16 Jan 2019 15:23:54 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:51851) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjrj6-0005li-DN for qemu-devel@nongnu.org; Wed, 16 Jan 2019 15:23:53 -0500 Received: by mail-wm1-x343.google.com with SMTP id b11so3461048wmj.1 for ; Wed, 16 Jan 2019 12:23:52 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id s8sm93817298wrn.44.2019.01.16.12.23.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 12:23:50 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8EAD43E0F3C; Wed, 16 Jan 2019 20:23:49 +0000 (GMT) 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=BKiceF0eCEcLLYJ2HmNMq8GOYGcVmd+bgBmQXvFufFI=; b=ICMTDAm2MYZElsEOd0ownrO3SpNz1ed+/j32/X7wENSRMAfuzvY6ZQN3ecpS9Ch3fp Vyt+UlP4ucv/adkJq22zQWCtuWgQbBTbYu1pTqSpx6/Ukjo0u9hb05ySd6vZdMd6hov6 fkklox1wALq0Ce8KpDM9yGpyh4m+rcv1TLoFU= 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=BKiceF0eCEcLLYJ2HmNMq8GOYGcVmd+bgBmQXvFufFI=; b=n9onb6feOq8CFslHV7icXyZieAt5HoTwM+rB9WgRO5ZFRitry4UmwhYKC1yMXI1tSW T/ubjTF17qzTqX1uJRRmLIiszvgo6dPuEVg9xtShr5OTNadoAtbeZVIukG1yU+cYYZV9 d30OyaZmaSZT0XcLY8FhEtNCEnINVBJrD/1lRoQfGVG5pjx5v2PlBviBTaHsqvEUuXeA klrLkah+Je9pHmMldSiLRSihVuxBN7mfNypKO6mn3qiaUXRkm4pvT96npt7kzBEh4Jrm D2CCBxwnZqaUAYo4GMAVxjV2nnRTmZM2CTi+fXVrj6qa3e+DP2JfAvBhB7apJ7XB705r V69g== X-Gm-Message-State: AJcUukftLWO8WYAlDYeYhz35R3Lx0EsZQkUTd/rJhzn81QMLYZagZZGS vf0wYFUq13B/sP5PNeQzUDLM1Q== X-Google-Smtp-Source: ALg8bN72m+F7L8snqoCNfRG5vYtPfH4JirnNNdUX2aR7DJUSSTLyZkVvbZSvgs+zNGy/e8fW8syiUw== X-Received: by 2002:a1c:7c07:: with SMTP id x7mr9062655wmc.82.1547670231083; Wed, 16 Jan 2019 12:23:51 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 16 Jan 2019 20:23:44 +0000 Message-Id: <20190116202349.29272-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190116202349.29272-1-alex.bennee@linaro.org> References: <20190116202349.29272-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH v2 2/7] fp-bench: remove wrong exponent raise in fill_random 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: Peter Maydell , cohuck@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , "Emilio G. Cota" , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: "Emilio G. Cota" At this point random_ops[] only contains normals, so there's no need to do anything to them. In fact, raising the exponent here can make the output !normal, which is precisely what the comment says we want to avoid. Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e --- tests/fp/fp-bench.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/fp/fp-bench.c b/tests/fp/fp-bench.c index 546bac9c9c..4ba5e1d2d4 100644 --- a/tests/fp/fp-bench.c +++ b/tests/fp/fp-bench.c @@ -176,8 +176,6 @@ static void fill_random(union fp *ops, int n_ops, enum = precision prec, if (no_neg && float32_is_neg(ops[i].f32)) { ops[i].f32 =3D float32_chs(ops[i].f32); } - /* raise the exponent to limit the frequency of denormal resul= ts */ - ops[i].f32 |=3D 0x40000000; break; case PREC_DOUBLE: case PREC_FLOAT64: @@ -185,8 +183,6 @@ static void fill_random(union fp *ops, int n_ops, enum = precision prec, if (no_neg && float64_is_neg(ops[i].f64)) { ops[i].f64 =3D float64_chs(ops[i].f64); } - /* raise the exponent to limit the frequency of denormal resul= ts */ - ops[i].f64 |=3D LIT64(0x4000000000000000); break; default: g_assert_not_reached(); --=20 2.17.1