From nobody Wed Feb 11 04:20:32 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.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 ARC-Seal: i=1; a=rsa-sha256; t=1622089111; cv=none; d=zohomail.com; s=zohoarc; b=kYfr8FESskHeaClUpwHLR8VLWB6dKK8zRTXV0OTC03SEVVBXy4fqF8m2VlNHhV9GEzB1bfRR0EzTriRd5zm1fBM6A2BEqZWVwHK0RlfFT6CsGl/9wEwi+66eGLBoZW00mZlcVYITnkim+ERIC1onBxpztvA9qaifOQOKhqDhHnU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622089111; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GEYVI8LFk6gKuKrRnF8fi7M93S+ekzhJWlI6Apgn4eU=; b=GuIxWsy+7JOhTZCbmsHI3GddyBr0Tnx6Pjp6Xxk6Wld8afxkoq9syj6c+qZYSk4DTPdif+Lvqv3YigoWuvEKEoPlB6S7d13Oko8tVQ8elpHb1g6FpuB+fV0DeYK4h8o85PhdfKEygD9rofiqBSJwUI4S04AjVyZmvi8JLUv7Msw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.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 header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622089111387302.90477059873285; Wed, 26 May 2021 21:18:31 -0700 (PDT) Received: from localhost ([::1]:49262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm7Ta-0001dX-ET for importer@patchew.org; Thu, 27 May 2021 00:18:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm7PU-0001Zs-Ce for qemu-devel@nongnu.org; Thu, 27 May 2021 00:14:16 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:34417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lm7PP-0007D5-Bb for qemu-devel@nongnu.org; Thu, 27 May 2021 00:14:15 -0400 Received: by mail-pf1-x436.google.com with SMTP id q25so2664685pfn.1 for ; Wed, 26 May 2021 21:14:10 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id s1sm605959pfc.6.2021.05.26.21.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 21:14:09 -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 :mime-version:content-transfer-encoding; bh=GEYVI8LFk6gKuKrRnF8fi7M93S+ekzhJWlI6Apgn4eU=; b=p8LZ1BKVgZqYKudYMjH7qzvO4nH/DHzpAfA/EgRYpkOzk4JXDkVsDBhE5RQBPJjAIy uL2zyDB4eHXvUTcnUY+zBJfNhDxuPThEtBTN9LnP9mA7rOoCGk7fXMd8A2Lp1mDKTy9G 4V3vToc6rDGXnRx1s0uWgwGRMeFH0gk3xOv0UfDVNLVPBmUrgBgTSHEswXN0SF5ExBY3 Z0oArZ/4sKcz/sadFLDTiUDu0C2ormvmeE1/7IyRH/d8QSLR+WgtqcxOEYV6ExpUvO54 m4cw8OammlqDiQjCa3TpeJNFojZpAfvP65N3fWAY7esfGwGOVlTgzuK/3doIoyS4swF9 DXyw== 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=GEYVI8LFk6gKuKrRnF8fi7M93S+ekzhJWlI6Apgn4eU=; b=l2BL3bNi6SC+DU42VqbrvsCYYpV6HHrX9roY3dMKWKayGUsDdKN+3t73Wr18qlFdC9 YirhQhF/V3tfWW595GxNSILC0LPMwQjllisA3X5qWN0PcBBC9pgcdbj5Loe/tLLmn0OP WAzAn0oaKJNXhfIj6BCPt+MCJmvN0W753e2v111QPd56wfdgsNHMFy6hcXXQNOUU8xHv f6a/NHsFGmJl0Rn1l4qJ1jrRftHeCh+ftGpLNa9kBCWbrtzc7UH0KtKN+jioPFdELtaj lGfYGVD4smKhkpJs0+DR6DKIBrVnaDg7MhKQ166OZJLkTfUe3E3cNuuNWqwmT7mdaE24 K2mQ== X-Gm-Message-State: AOAM533GdAsuVq0UX75ZAuuAtduKsy/6wJrE9dOLK+7ip5qxYrT53RHe zYEccaFsCSnhjgA8ZZ38VZK9soY9U10Raw== X-Google-Smtp-Source: ABdhPJzgXUUT40s0378mIvZ8f6UFJ7XtHVXuq0UBTycLcb2+vjhu1GHaF0ZroqXUTz74hGE8sEIIiA== X-Received: by 2002:a63:4b18:: with SMTP id y24mr1871088pga.438.1622088850164; Wed, 26 May 2021 21:14:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 06/11] target/rx: Handle the FPSW.DN bit in helper_set_fpsw Date: Wed, 26 May 2021 21:14:00 -0700 Message-Id: <20210527041405.391567-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210527041405.391567-1-richard.henderson@linaro.org> References: <20210527041405.391567-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: alex.bennee@linaro.org, mmorrell@tachyum.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Yoshinori Sato Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Both input and output denormals flush to zero when DN is set. Cc: Philippe Mathieu-Daud=C3=A9 Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- target/rx/op_helper.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/rx/op_helper.c b/target/rx/op_helper.c index ef904eb5f9..2139def3b2 100644 --- a/target/rx/op_helper.c +++ b/target/rx/op_helper.c @@ -127,13 +127,20 @@ void helper_set_fpsw(CPURXState *env, uint32_t val) float_round_down, }; uint32_t fpsw =3D env->fpsw; + bool dn; + fpsw |=3D 0x7fffff03; val &=3D ~0x80000000; fpsw &=3D val; FIELD_DP32(fpsw, FPSW, FS, FIELD_EX32(fpsw, FPSW, FLAGS) !=3D 0); env->fpsw =3D fpsw; - set_float_rounding_mode(roundmode[FIELD_EX32(env->fpsw, FPSW, RM)], + + set_float_rounding_mode(roundmode[FIELD_EX32(fpsw, FPSW, RM)], &env->fp_status); + + dn =3D FIELD_EX32(env->fpsw, FPSW, DN); + set_flush_to_zero(dn, &env->fp_status); + set_flush_inputs_to_zero(dn, &env->fp_status); } =20 #define FLOATOP(op, func) \ --=20 2.25.1