From nobody Sun Apr 12 04:21:45 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1772090356; cv=none; d=zohomail.com; s=zohoarc; b=cypUiKhY8Zu4SjQMZUqOe4nQsoH+6jHvzncGa0wc07RMq65oWgSEZyUYrYlDRUwLcEmhELfYKNB7xU/oFc85g4gjYKPrRDqbJjPj9EqcnWBZpe3NmHYsCtkmc/h4hKQ20b14haQK53f1XKIyV6m9YbAaaHxe1Eg+uNqR4XKQOxw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772090356; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LWUYWc2ioRu39LM7Z31ifi7GdSN03Wne4cE5S8TPpZU=; b=oD9mzqZB/xap6EYViSDYyqRwUSw2IFT4U0VpfNJtFZwal+bi/ub0XDNVN5nUlqrMugqFtCWzPqLlYr2NoeniUpuCu0wTGT04Xytw4oEesBxuAtn9B7G3hY1mPcl4kysN5l6Z8SoIoKXe3Kk2JYeASWo7OLReLHB/wJ9RNZs8uyg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772090356949795.7925774886589; Wed, 25 Feb 2026 23:19:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vvVdx-0001Vm-F0; Thu, 26 Feb 2026 02:18:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vvVdm-0001Qs-3r for qemu-devel@nongnu.org; Thu, 26 Feb 2026 02:18:30 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vvVdi-0008OA-7l for qemu-devel@nongnu.org; Thu, 26 Feb 2026 02:18:28 -0500 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-8272ccb554fso498731b3a.2 for ; Wed, 25 Feb 2026 23:18:25 -0800 (PST) Received: from duncan.localdomain (114-35-142-126.hinet-ip.hinet.net. [114.35.142.126]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82739ff37f1sm1296179b3a.40.2026.02.25.23.18.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Feb 2026 23:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1772090305; x=1772695105; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LWUYWc2ioRu39LM7Z31ifi7GdSN03Wne4cE5S8TPpZU=; b=Ty1jhBYDtHq8CNSEgySp/16m8QaljEvutLex7RhtzVfeWWP+uVV57UH/8r3bpCT2u4 QJXB6LyMp5swVWzrgeykcLeEewRWeGmogEIMF2FS7Z+FgtANoOrY1+5cvZqbiiBUh7MJ uKqpT8hvtDsbb+X8y4HqXzvY84ZDYaaqQljPHb0xk2DxhrWOiVpal/IP4IBP3ANdCE62 +uF2hXyDl6a5r3iZvF+5pMg0M/T94MZlVip9QgzS42afZ2YdkcO1X2pHvOKFaZKi85lQ TfbxqbXzYywkJh17Kgly1IpxjdEx8uy9F40VWMxa2cGgrB3PmexaM66OAfJFbxMY/FU1 NgRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772090305; x=1772695105; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=LWUYWc2ioRu39LM7Z31ifi7GdSN03Wne4cE5S8TPpZU=; b=v2GlqZGgsEHwXqj+NdRyOxXCa3/kBqJLivuIgK+ZhAd/8X7hIccIzbBrBMslS+JXMr eqv2lbjURfwRkKbc7lB6n2Y6yCyIphvHcuY8sfADEap8hRDbThcwwIAuAMdUCg0m2siK Bt2UCx53eWpL0AR/cR/2aLTGr2p70gTL5cUFcOGIk1PLoT6W61k4TE7U+mUaDjnb4PVN U82hwerCLk9OonrGJvZLw1EyjDv3EiW3d8Pavd+3VBwzr5ICXb/9tHzOcw7mrhQzPwoj slhGYPJWJ6vj8KsOz/aCLkFvHu225n0a0AfcTvh2lw0uVE2XScdBbWkJpuqhMAMdBMUW hBbg== X-Gm-Message-State: AOJu0Yz9LmCEyO8gxQH0rmw7IcUmYjM9CKSdsohOWiYQiHZY+UMA4KO9 m7i3UMUpPICcUHeb+Fja00eQQu/UEnKlfydf6xAj+3Zbo/Q2oxOpoH6Revu3e1okNyJIK19vFBq TWkJbdjTo86+cP36X9gM+1ok1rlamMI+GC5oKqu0xz374Lcp5K1XpJWysnFQHqvCOolxIaSmwKX lvH4xxJWOmg03RjlQo5Q9jGVbBHkfZ9D0zEnZoDvYvT2ML X-Gm-Gg: ATEYQzztXR6yjRRK7cfxyKniOJpruh1Ze0+zpF5evlKP+JQVOmv2uo+9YBtDXdlsgDN X0a+WLax5iglnVBY50IRk4Xrfci3ligPGv660+CyFnvhSM39g6lwowS2r8wF8z6yq/ROuKrElM2 UYm7MsCsGZzdvgbck3cplQYllmm7hWWKxSsYXYhUX2D8YRgRhgcrh4u2eVTK+z00KTcU0S0soAP V+4Tu3WGd54c3RYDcYIKfWOFLXnSWZ8Jk0Z+SWwklxim3L9rltHhqac7Te40+UZhz0y7Mcbgi8V oc5lSUABF6NO7jvTbjcsRhB7YmZPz503JAv1U2V9grXIlQtrVGWFStCp8nZBR3bI3V+A2iKNqFj u4pn5VjPcQOvZU8J3x8tEMBjRQLYX0GyqQ3cOI38S1WvH6YMnQhK8Cn+Na1wjOMCNWIcBqTjxPa XmJZkIqQNIfBxd/w2OYkUPu+Vh/Flx4NypiY7AwO9pVxhgisDC6wthuNKd3cfaK7/vKhfki9Wxu coEyexRupshrdVEJMnXXRCRFS4= X-Received: by 2002:a05:6a00:44ce:b0:81e:e09d:2687 with SMTP id d2e1a72fcca58-826da8c0f33mr16778307b3a.1.1772090304514; Wed, 25 Feb 2026 23:18:24 -0800 (PST) From: Max Chou To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Aurelien Jarno , Peter Maydell , =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, Max Chou , Chao Liu Subject: [PATCH v2 1/2] fpu: Fix repacking issues in the uncanonical step for E4M3 overflow Date: Thu, 26 Feb 2026 15:18:14 +0800 Message-ID: <20260226071817.1417875-2-max.chou@sifive.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260226071817.1417875-1-max.chou@sifive.com> References: <20260226071817.1417875-1-max.chou@sifive.com> MIME-Version: 1.0 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::435; envelope-from=max.chou@sifive.com; helo=mail-pf1-x435.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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @sifive.com) X-ZM-MESSAGEID: 1772090358486158500 Content-Type: text/plain; charset="utf-8" In the uncanonical step, the input FloatParts will be repacked to the target FloatFmt. This commit fixes following issues after calling uncanon_e4m3_overflow in the uncanon/uncanon_normal functions. - Add the local exp update after calling uncanon_e4m3_overflow in the parts_uncanon_normal function. - Add the fraction shift after calling uncanon_e4m3_overflow in the parts_uncanon function. Fixes: 27e989f99c ("fpu: Add conversion routines for OCP FP8 E4M3") Reviewed-by: Richard Henderson Reviewed-by: Chao Liu Signed-off-by: Max Chou --- fpu/softfloat-parts.c.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fpu/softfloat-parts.c.inc b/fpu/softfloat-parts.c.inc index 61b07307bf..a738758aee 100644 --- a/fpu/softfloat-parts.c.inc +++ b/fpu/softfloat-parts.c.inc @@ -387,6 +387,7 @@ static void partsN(uncanon_normal)(FloatPartsN *p, floa= t_status *s, case float_expmax_e4m3: if (exp > exp_max || p->frac_hi > E4M3_NORMAL_FRAC_MAX) { partsN(uncanon_e4m3_overflow)(p, s, fmt, overflow_norm= ); + exp =3D p->exp; } break; =20 @@ -496,6 +497,7 @@ static void partsN(uncanon)(FloatPartsN *p, float_statu= s *s, break; case float_expmax_e4m3: partsN(uncanon_e4m3_overflow)(p, s, fmt, saturate); + frac_shr(p, fmt->frac_shift); break; case float_expmax_normal: default: --=20 2.52.0 From nobody Sun Apr 12 04:21:45 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1772090347; cv=none; d=zohomail.com; s=zohoarc; b=a2t/TmTR+M2ul9Hwr4SFmVXr0hHCpFDMUiPpxHgIk4KQ9Acv+RbS5N80oVih7gIQ6OOQm5AsIm+9yPu5MXjQ6PZEGMXQKu+kKjVCnKzIN5/E7IkpbvQs57KhrMDYwfffJmAyCzgHxzIFTUjrur/LcRYIRRaKfkiqgCWpHM0r04g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772090347; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=xzQ24LYJCjsa082SEUjYfwtD5gvfrzKLrKMBM8lmaK4=; b=Qjoh0K5UCDRcicrmxyqQHZtGjPLGUodaUIZpzcvVpYgr3qCkdppvVMmDgXx4EoM56u1dl12/pxk9WdK/CQjBU1tpPlM09CccVcgZF8bzdXTCdbIXAFIr7nLJ/TLqmLkFLP4f4PB/5BxZj0L/++EyJD+lDu9EbX4QyQXGSPMIMqk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772090347493375.01912934935217; Wed, 25 Feb 2026 23:19:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vvVdy-0001Wa-6y; Thu, 26 Feb 2026 02:18:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vvVdm-0001Qu-4M for qemu-devel@nongnu.org; Thu, 26 Feb 2026 02:18:30 -0500 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vvVdk-0008OK-1t for qemu-devel@nongnu.org; Thu, 26 Feb 2026 02:18:29 -0500 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-827270d50d4so597913b3a.3 for ; Wed, 25 Feb 2026 23:18:27 -0800 (PST) Received: from duncan.localdomain (114-35-142-126.hinet-ip.hinet.net. [114.35.142.126]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82739ff37f1sm1296179b3a.40.2026.02.25.23.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Feb 2026 23:18:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1772090306; x=1772695106; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xzQ24LYJCjsa082SEUjYfwtD5gvfrzKLrKMBM8lmaK4=; b=dv/h6zn+J8F9OUMx3i0R8I5ypNTC9HGLxGHONG6Z89ImmOo4Ty66+TyakxIVCD3gDa iVDH3jvUuYgJ5vBoOB+zcu+xjn3+bQq2w5MEOSsWo8vQyRJbugox+ooPSLt00vI572+R lyVMeC0OcRMtHIlWevQFcLnTB5RtXn3tC/AFbg6ZeMKTBN5OrxqJcH2ZYVthhEiHv9qn 0szbvFjnnx17ahQzkdQ9W9vHwJh/FlKxttA0vXQIR/KIVMiwWvUydTYK1e5stdbE/xam +d2iaCgmQs72m7aJzDNTdn0C1QehbgCkKz8eKfpo/hVGKb4Eo7J1WXohJUyY3HD5d+OV wiXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772090306; x=1772695106; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xzQ24LYJCjsa082SEUjYfwtD5gvfrzKLrKMBM8lmaK4=; b=sf9xBm3fHAQcex3oRkUB9YMl1rK4qU6NR4lPvXxkmrHIrPei6ll8MoG+Tna7uw1cEc T9IoMZX+1+iLW46EXSgVCrrHU0wjabYNVsdeAHBllt4hOwEfrD7a4ILLEcx2uaXtAOWe xf0MOJ7nH7V8CsYo85hyyV0We08aeIGMHyZQ3HDQSrzW7xV7r4LyGqHnXJaat6MnkVkd H/xsCI/ULvkGYm1zBiN/WhsrcXyLwCRjmhmkzhRu5wSOOzxDMno4tzT1HVpz0rGaIqBN OwH18ANYSA7JjMz4SgyQRcoTLPklLc9zfu3wu5muUCt3+T1RrYFTHYk/kvMEyoEUJfiq lXpw== X-Gm-Message-State: AOJu0YyIPG+dETNtwyiKBV3k/Va2fFduQt2hg+PvRNonCVY1cyWrMw/k 42Oc5CHhY9KZpsKTNtcdxwIT6+Q43oMLVheLJdOeFVXSNBvJobpKO6eW74evJVcaWbe1646u5FR c1YZWinGiS29zQQvkRvt3qPa+XxrxaIt2xt1W74+4ziH2Y0S8Rjm9NtvNGAP4KpwYd60eS8PDGa MVN+RWriUFo/ku8mOCooOQjzwhixUsCdetN7wB35KUok+u X-Gm-Gg: ATEYQzzU6JgRt5WklYKVy+cGhTSdNcJC15Qql3h1dzqb+WObdEozd4KJcCOYy7B9JXO r7PU8Ck3FXndKxDC7AZzh7bwBLJtHIv7ZMf7xJQxHcnZAysr8oOjc2fGrRSjdyLfXbw6hk5zuqx zja0oth5jCL+8nreh/QK7JAp8ND6cM3e7XIDP+wXqCJ3cJQBK+3Ph4D6dpTrTcjYda7Dq4TMl28 x4pmpOiHmOCVBTJttlmWk3LOwD2Ts8bdsNO7i5bcV0m772DFP4cMiHl8aJYLByffA8ef1bQANg5 7nWr+1m4u/qCdJDfLOzVOon6ThhQ5s3gooZ6MaAscdUVB166U5bAVAFdLW+Yg7TgzqvbrRroKbH t8kQ83SbYCigyUQTvPtCWDZdvHxFHE2YW7TJdbQdCq+PagsQPt0msuoVbqN2B0yUJn2s+y6rW2k ceOQo4eVZdBxn40DMEllI31RmEcpq61IwQEvRUPxTk8dschqgJhosvyibfLrc8HkYOq+O2ObjBv e90F+1YEHnUVaHSOuPPvlQyMfc= X-Received: by 2002:a05:6a00:1d8d:b0:824:a5f4:fc3c with SMTP id d2e1a72fcca58-8273bc84fe0mr1104542b3a.19.1772090306456; Wed, 25 Feb 2026 23:18:26 -0800 (PST) From: Max Chou To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Aurelien Jarno , Peter Maydell , =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, Max Chou , Chao Liu Subject: [PATCH v2 2/2] fpu: Fix unexpected exception flags when converting infinity to OCP E4M3 Date: Thu, 26 Feb 2026 15:18:15 +0800 Message-ID: <20260226071817.1417875-3-max.chou@sifive.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260226071817.1417875-1-max.chou@sifive.com> References: <20260226071817.1417875-1-max.chou@sifive.com> MIME-Version: 1.0 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::430; envelope-from=max.chou@sifive.com; helo=mail-pf1-x430.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @sifive.com) X-ZM-MESSAGEID: 1772090349493158500 Content-Type: text/plain; charset="utf-8" Infinity is a special case distinct from numeric overflow: - Numeric overflow: finite value exceeds format's max normal -> overflow|inexact - Infinity conversion: input is already infinite -> no flags This commit fixes the unexpect exception flags by relocating the float exception flag update flow to be outside the uncanon_e4m3_overflow. And raising the overflow|inexact for numeric overflow in uncanon_normal. Fixes: 27e989f99c ("fpu: Add conversion routines for OCP FP8 E4M3") Reviewed-by: Chao Liu Reviewed-by: Richard Henderson Signed-off-by: Max Chou --- fpu/softfloat-parts.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat-parts.c.inc b/fpu/softfloat-parts.c.inc index a738758aee..3c323c0cec 100644 --- a/fpu/softfloat-parts.c.inc +++ b/fpu/softfloat-parts.c.inc @@ -277,7 +277,6 @@ static void partsN(uncanon_e4m3_overflow)(FloatPartsN *= p, float_status *s, const FloatFmt *fmt, bool satura= te) { assert(N =3D=3D 64); - float_raise(float_flag_overflow | float_flag_inexact, s); if (saturate) { p->exp =3D fmt->exp_max; p->frac_hi =3D E4M3_NORMAL_FRAC_MAX; @@ -388,6 +387,7 @@ static void partsN(uncanon_normal)(FloatPartsN *p, floa= t_status *s, if (exp > exp_max || p->frac_hi > E4M3_NORMAL_FRAC_MAX) { partsN(uncanon_e4m3_overflow)(p, s, fmt, overflow_norm= ); exp =3D p->exp; + flags |=3D (float_flag_overflow | float_flag_inexact); } break; =20 --=20 2.52.0