Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4125606A320 for ; Mon, 30 Nov 2026 20:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Q7QdOWPs Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xY7oO-0002VC-TR; Mon, 30 Nov 2026 15:17:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xY7nq-00027a-LO for qemu-riscv@nongnu.org; Mon, 30 Nov 2026 15:16:50 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450: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 1xY7nc-0003b7-0b for qemu-riscv@nongnu.org; Mon, 30 Nov 2026 15:16:41 -0500 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-4a7b8abe209so8496338f8f.0 for ; Mon, 30 Nov 2026 12:16:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796069789; x=1796674589; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=l2jW0WoMJIV+pGZTHUQ3M3c4Z+TIUUWrCq+WLDsR/3o=; b=Q7QdOWPsaVIGG1WwvcRQCnNdjPP6SHX4pi0F2b/wOIFnZSY/jAS5L/qMrOhwCvZcBU gWgsKITKTTni3RtxQsSRucr0XPOQu1e0A/83is0Xxh7ZBmg6kvJZup5FFru+1N++mrSw uNeBYm9F6a/KteO+H4RN0N6cuUXDtztle+J5vOCHPMwKdjlNc7WrewJNzvX+m3F8idrj B613KIaJekJlcowP16+m3zP/1KtVJy00FnTOlIEW8sVT93n53RaUJ2tLkePRRmEX3h4h 4tt6YOqPCJw9hZ/dVZeRTDVZzrJUVK+IJKj5eDtazzKvwDQXn/A1zaRUvurJUdYHRSRx Th+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796069789; x=1796674589; h=content-transfer-encoding:content-type: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 :content-type; bh=l2jW0WoMJIV+pGZTHUQ3M3c4Z+TIUUWrCq+WLDsR/3o=; b=L48tw8YQ1w+iMTkfxhidNAgb4FZrDDIeBbAo+fV0hLQi8PrknaDBePDkeJdtX/pXcf VIJzCPsf1/8FXBBAYGZhmo6sApWMKT+I/zCYWoCFttNVq6qrC70FFfv9PRDaUimu1Tw9 TseXDWEW6pNyrJPwjw8D2SxKrAXPgVzYjuJfpkV2kCa1cH607r8Vvgfj7/CDcYQUU4Zi pzFRe1guVwGnAEMYhdW5nhbSA+9qSrsUC9uI+BKbbMbSeWBaOGOgvW74yZ3OLkhYmUIb PuHjhQ7i545jKI94aLxakgDikTz0DBGwBISHJc1sn1HU213psEJpx0hWa76jT7MlKxdd h2yg== X-Forwarded-Encrypted: i=1; AL+hErEXeFt4Oh/kmzlZZofIFCXDtx20vZ4lDwZgnKICXcCWCwdrDEqdhF+CPiv4IjOEM8qf3LQYmg8Ps4H2@nongnu.org X-Gm-Message-State: APuU4Z/Osz+lILyklkBxqA5hNPBMPih5K0c415jCdXa/Av3W1tQi/bsx lWupG4TBxAY5LawEygxnYxx4xkM9qu9VVtNXoYzz9xfb3z6k0qKbfNbXEO6+YwMV2/Y= X-Gm-Gg: AZFdTZe7HxDGiY6+cR93IzlhgnZzf7cwawAyuHbfjh8nORM/S57tEaPYtBlNKh8W6sq 7yNaPNJi56MHbKx1WaWxHhOMusy3pjcipn2kWwdOTlFh3ZNCUkLW0SXUXW6UaWux0+eKMB6nTNj ohty/uxSKsckg/BbpnoOsSUmgDz2/e2k1Opg2M0V6WV4q8p8bdI4b97/LLaBZFE1VQeEj4qzUF9 O1vKeUiMlnIaOfedPrQaeyCfFQc/Nq4DRODwWBbglMwdF373G4feq9Lwjj5p02bDAoy5xlgvJUq r0Hcch/GNa0pgGwj1vdGHnL4SQBnFyV+FwV1NPoWsA7nUBzz7+armrG9AYCIIm8eYdwrFMRfu/B jKrM5fHyxEVzl63Fph01pjVcANH2rbvW5r5OqPA8+naNvfAoX/uo/CEZP2Xk8PTLT4gekrfy4dD JXD1lmFMXK0KD87ALntMbihDxTZ8qjixvrUnUi9GFr05udzugDzKHpYIADa/ySdXAo/miCwtQRe bfGKxfAhjUQUoej60PNV6jqsQtkQsbqNkKv3SW6Nduvu2zPCsCCFaF37e4tC9yhIDEyuMGjjFNX mttiRI7Iu/ZSXyIaQEzCV3isKA5M X-Received: by 2002:a05:600c:198b:b0:4bb:c483:ec99 with SMTP id 5b1f17b1804b1-4bbc483edcfmr91740415e9.4.1796069787826; Mon, 30 Nov 2026 12:16:27 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbc9f80c59sm18487555e9.1.2026.11.30.12.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 12:16:25 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BF7E75F9D9; Mon, 30 Nov 2026 20:16:23 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Yoshinori Sato , Liu Zhiwei , qemu-s390x@nongnu.org, Aleksandar Rikalo , David Hildenbrand , Laurent Vivier , Song Gao <17746591750@163.com>, Jiaxun Yang , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Xianglai Li , qemu-riscv@nongnu.org, qemu-arm@nongnu.org, Daniel Henrique Barboza , qemu-ppc@nongnu.org, Brian Cain , Nicholas Piggin , Ilya Leoshkevich , Alistair Francis , Helge Deller , Weiwei Li , Richard Henderson , Aurelien Jarno , Chao Liu , Pierrick Bouvier , Palmer Dabbelt , Stafford Horne , Glenn Miles , Harsh Prateek Bora , Chinmay Rath , Paolo Bonzini , Bibo Mao Subject: [PATCH 3/4] tests/tcg: extend the float_madds test case Date: Mon, 30 Nov 2026 20:16:21 +0000 Message-ID: <20261130201623.159433-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261130201623.159433-1-alex.bennee@linaro.org> References: <20261130201623.159433-1-alex.bennee@linaro.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-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-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-23.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 We have a bug report about a failing case when using a broken mingw-w64 and in the upstream bug there where some additional test cases added. Import them into our *-user test so we can verify the fix later. I've regenerated the references with the new TCG helper script but I have verified they are correct for arm, aarch64, ppc64 and s390x. BugLink: https://sourceforge.net/p/mingw-w64/bugs/848/ Signed-off-by: Alex Bennée --- tests/tcg/multiarch/float_madds.c | 13 ++++++ tests/tcg/aarch64/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/alpha/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/arm/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/hexagon/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/hppa/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/i386/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/loongarch64/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/m68k/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/mips/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/ppc64le/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/s390x/float_madds.ref | 64 +++++++++++++++++++++++++++ tests/tcg/sh4/float_madds.ref | 32 ++++++++++++++ tests/tcg/x86_64/float_madds.ref | 64 +++++++++++++++++++++++++++ 14 files changed, 813 insertions(+) diff --git a/tests/tcg/multiarch/float_madds.c b/tests/tcg/multiarch/float_madds.c index a692e052d5b..47d9847b573 100644 --- a/tests/tcg/multiarch/float_madds.c +++ b/tests/tcg/multiarch/float_madds.c @@ -99,6 +99,19 @@ int main(int argc, char *argv[argc]) printf("# LP184149\n"); do_madds(0x1.ffffffffffffcp-1022, 0x1.0000000000001p-1, 0x0.0000000000001p-1022, j, 0); do_madds(0x8p-152, 0x8p-152, 0x8p-152, j+1, 0); + + /* From https://gitlab.com/qemu-project/qemu/-/issues/5023 */ + printf("# Issue 5023\n"); + do_madds(FLT_MAX, 2.0f, -FLT_MAX, j+2, 0); + + /* From https://gist.github.com/minoki/ff4412f2a385eab3c7e689acd589ea3e */ + printf("# Gist cases\n"); + do_madds(0x1p100f, 0x1p100f, -INFINITY, j+3, 0); + do_madds(0x1.fffffep23f, 0x1.000004p28f, 0x1.fcp5f, j+4, 0); + do_madds(0x1.84ae3p125f, 0x1.6p-141f, 0x1p-149f, j+5, 0); + do_madds(0x1.00001p50f, 0x1.1p50f, 0x1p-149f, j+6, 0); + do_madds(0x1.000002p50f, 0x1.8p50f, -0x1p-149f, j+7, 0); + do_madds(0x1.83bd78p4f, -0x1.cp118f, -0x1.344108p-2f, j+8, 0); } return 0; diff --git a/tests/tcg/aarch64/float_madds.ref b/tests/tcg/aarch64/float_madds.ref index 21c05398878..83f451ef1da 100644 --- a/tests/tcg/aarch64/float_madds.ref +++ b/tests/tcg/aarch64/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/alpha/float_madds.ref b/tests/tcg/alpha/float_madds.ref index 76996f432db..ae85eb24369 100644 --- a/tests/tcg/alpha/float_madds.ref +++ b/tests/tcg/alpha/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/arm/float_madds.ref b/tests/tcg/arm/float_madds.ref index 21c05398878..83f451ef1da 100644 --- a/tests/tcg/arm/float_madds.ref +++ b/tests/tcg/arm/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/hexagon/float_madds.ref b/tests/tcg/hexagon/float_madds.ref index a08c6160574..63585ff0dce 100644 --- a/tests/tcg/hexagon/float_madds.ref +++ b/tests/tcg/hexagon/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffffffff) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffffffff) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffffffff) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/hppa/float_madds.ref b/tests/tcg/hppa/float_madds.ref index b4b65f83aed..8453c191988 100644 --- a/tests/tcg/hppa/float_madds.ref +++ b/tests/tcg/hppa/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffffffff) * f32(-nan:0xffbfffff) + f32(-inf:0xff800000) res: f32(-nan:0xffbfffff) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffffffff) * f32(-nan:0xffbfffff) + f32(-inf:0xff800000) res: f32(-nan:0xffbfffff) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffffffff) * f32(-nan:0xffbfffff) + f32(-inf:0xff800000) res: f32(-nan:0xffbfffff) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/i386/float_madds.ref b/tests/tcg/i386/float_madds.ref index bb834699311..eaca70cd21a 100644 --- a/tests/tcg/i386/float_madds.ref +++ b/tests/tcg/i386/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffe00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffc00000) flags=OK (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffe00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffc00000) flags=OK (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffe00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffc00000) flags=OK (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/loongarch64/float_madds.ref b/tests/tcg/loongarch64/float_madds.ref index 21c05398878..83f451ef1da 100644 --- a/tests/tcg/loongarch64/float_madds.ref +++ b/tests/tcg/loongarch64/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/m68k/float_madds.ref b/tests/tcg/m68k/float_madds.ref index 23a1357a590..44c32bf5c24 100644 --- a/tests/tcg/m68k/float_madds.ref +++ b/tests/tcg/m68k/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffffffff) * f32(-nan:0xffffffff) + f32(-inf:0xff800000) res: f32(-nan:0xffffffff) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffffffff) * f32(-nan:0xffffffff) + f32(-inf:0xff800000) res: f32(-nan:0xffffffff) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffffffff) * f32(-nan:0xffffffff) + f32(-inf:0xff800000) res: f32(-nan:0xffffffff) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/mips/float_madds.ref b/tests/tcg/mips/float_madds.ref index 2020c65d18e..b6eb0463eeb 100644 --- a/tests/tcg/mips/float_madds.ref +++ b/tests/tcg/mips/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(nan:0xffffffff) * f32(nan:0xffbfffff) + f32(-inf:0xff800000) res: f32(nan:0x7fbfffff) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(nan:0xffffffff) * f32(nan:0xffbfffff) + f32(-inf:0xff800000) res: f32(nan:0x7fbfffff) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(nan:0xffffffff) * f32(nan:0xffbfffff) + f32(-inf:0xff800000) res: f32(nan:0x7fbfffff) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/ppc64le/float_madds.ref b/tests/tcg/ppc64le/float_madds.ref index e66917cb801..a2f236127fd 100644 --- a/tests/tcg/ppc64le/float_madds.ref +++ b/tests/tcg/ppc64le/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/s390x/float_madds.ref b/tests/tcg/s390x/float_madds.ref index 451cbec624d..1d3927fd8f1 100644 --- a/tests/tcg/s390x/float_madds.ref +++ b/tests/tcg/s390x/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffe00000) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/sh4/float_madds.ref b/tests/tcg/sh4/float_madds.ref index 6d96a2a5929..ceed6008ff8 100644 --- a/tests/tcg/sh4/float_madds.ref +++ b/tests/tcg/sh4/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(nan:0xffa00000) * f32(nan:0xffc00000) + f32(-inf:0xff800000) res: f32(nan:0x7fbfffff) flags=INVALID (0/0) @@ -382,3 +398,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) diff --git a/tests/tcg/x86_64/float_madds.ref b/tests/tcg/x86_64/float_madds.ref index 79419f003e7..7bbcbab7975 100644 --- a/tests/tcg/x86_64/float_madds.ref +++ b/tests/tcg/x86_64/float_madds.ref @@ -190,6 +190,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding upwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffc00000) flags=INVALID (0/0) @@ -382,6 +398,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-148:0x00000002) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000400000000000000p+52:0x59800002) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c200000000000000p-15:0x38059be1) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001200000000000000p+100:0x71880009) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000400000000000000p+100:0x71c00002) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) ### Rounding downwards op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffc00000) flags=INVALID (0/0) @@ -574,6 +606,22 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345ca00000000000000p+123:0xfd29a2e5) flags=INEXACT (39/0) ### Rounding to zero op : f32(-nan:0xffa00000) * f32(-nan:0xffc00000) + f32(-inf:0xff800000) res: f32(-nan:0xffc00000) flags=INVALID (0/0) @@ -766,3 +814,19 @@ op : f32(0x0.00000000000000000000p+0:0000000000) * f32(0x1.00000000000000000000p res: f32(0x0.00000000000000000000p+0:0000000000) flags=OK (31/0) op : f32(0x1.00000000000000000000p-149:0x00000001) * f32(0x1.00000000000000000000p-149:0x00000001) + f32(0x1.00000000000000000000p-149:0x00000001) res: f32(0x1.00000000000000000000p-149:0x00000001) flags=UNDERFLOW INEXACT (32/0) +# Issue 5023 +op : f32(0x1.fffffe00000000000000p+127:0x7f7fffff) * f32(0x1.00000000000000000000p+1:0x40000000) + f32(-0x1.fffffe00000000000000p+127:0xff7fffff) +res: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) flags=OK (33/0) +# Gist cases +op : f32(0x1.00000000000000000000p+100:0x71800000) * f32(0x1.00000000000000000000p+100:0x71800000) + f32(-inf:0xff800000) +res: f32(-inf:0xff800000) flags=OK (34/0) +op : f32(0x1.fffffe00000000000000p+23:0x4b7fffff) * f32(0x1.00000400000000000000p+28:0x4d800002) + f32(0x1.fc000000000000000000p+5:0x427e0000) +res: f32(0x1.00000200000000000000p+52:0x59800001) flags=INEXACT (35/0) +op : f32(0x1.84ae3000000000000000p+125:0x7e425718) * f32(0x1.60000000000000000000p-141:0x00000160) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.0b37c000000000000000p-15:0x38059be0) flags=INEXACT (36/0) +op : f32(0x1.00001000000000000000p+50:0x58800008) * f32(0x1.10000000000000000000p+50:0x58880000) + f32(0x1.00000000000000000000p-149:0x00000001) +res: f32(0x1.10001000000000000000p+100:0x71880008) flags=INEXACT (37/0) +op : f32(0x1.00000200000000000000p+50:0x58800001) * f32(0x1.80000000000000000000p+50:0x58c00000) + f32(-0x1.00000000000000000000p-149:0x80000001) +res: f32(0x1.80000200000000000000p+100:0x71c00001) flags=INEXACT (38/0) +op : f32(0x1.83bd7800000000000000p+4:0x41c1debc) * f32(-0x1.c0000000000000000000p+118:0xfae00000) + f32(-0x1.34410800000000000000p-2:0xbe9a2084) +res: f32(-0x1.5345c800000000000000p+123:0xfd29a2e4) flags=INEXACT (39/0) -- 2.47.3