Module Name: src Committed By: rillig Date: Tue Jul 13 19:11:35 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: msg_142.c msg_142.exp Log Message: tests/lint: skip test for floating point overflow on alpha On alpha and a few other platforms (see t_integration.sh), 'long double' has 128 bit, which under IEEE 754 rules means a decimal exponent of up to 4932. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_142.c cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_142.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/xlint/lint1/msg_142.c diff -u src/tests/usr.bin/xlint/lint1/msg_142.c:1.4 src/tests/usr.bin/xlint/lint1/msg_142.c:1.5 --- src/tests/usr.bin/xlint/lint1/msg_142.c:1.4 Mon Apr 5 01:35:34 2021 +++ src/tests/usr.bin/xlint/lint1/msg_142.c Tue Jul 13 19:11:35 2021 @@ -1,6 +1,14 @@ -/* $NetBSD: msg_142.c,v 1.4 2021/04/05 01:35:34 rillig Exp $ */ +/* $NetBSD: msg_142.c,v 1.5 2021/07/13 19:11:35 rillig Exp $ */ # 3 "msg_142.c" // Test for message: floating point overflow detected, op %s [142] -double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100; /* expect: 142 *//* expect: 142 */ +/* lint1-only-if ldbl-64 */ +/* + * For 96-bit and 128-bit floating point numbers, a different number of + * multipliers is needed to produce an overflow. + */ + +/* expect+2: warning: floating point overflow detected, op * [142] */ +/* expect+1: warning: floating point overflow detected, op * [142] */ +double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100; Index: src/tests/usr.bin/xlint/lint1/msg_142.exp diff -u src/tests/usr.bin/xlint/lint1/msg_142.exp:1.2 src/tests/usr.bin/xlint/lint1/msg_142.exp:1.3 --- src/tests/usr.bin/xlint/lint1/msg_142.exp:1.2 Fri Jan 8 21:25:03 2021 +++ src/tests/usr.bin/xlint/lint1/msg_142.exp Tue Jul 13 19:11:35 2021 @@ -1,2 +1,2 @@ -msg_142.c(6): warning: floating point overflow detected, op * [142] -msg_142.c(6): warning: floating point overflow detected, op * [142] +msg_142.c(14): warning: floating point overflow detected, op * [142] +msg_142.c(14): warning: floating point overflow detected, op * [142]