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.diff -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_142.c
(rillig)
--- src/tests/usr.bin/xlint/lint1/msg_142.c 2021/04/05 01:35:34 1.4
+++ src/tests/usr.bin/xlint/lint1/msg_142.c 2021/07/13 19:11:35 1.5
@@ -1,6 +1,14 @@ | @@ -1,6 +1,14 @@ | |||
1 | /* $NetBSD: msg_142.c,v 1.4 2021/04/05 01:35:34 rillig Exp $ */ | 1 | /* $NetBSD: msg_142.c,v 1.5 2021/07/13 19:11:35 rillig Exp $ */ | |
2 | # 3 "msg_142.c" | 2 | # 3 "msg_142.c" | |
3 | 3 | |||
4 | // Test for message: floating point overflow detected, op %s [142] | 4 | // Test for message: floating point overflow detected, op %s [142] | |
5 | 5 | |||
6 | double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100; /* expect: 142 *//* expect: 142 */ | 6 | /* lint1-only-if ldbl-64 */ | |
7 | /* | |||
8 | * For 96-bit and 128-bit floating point numbers, a different number of | |||
9 | * multipliers is needed to produce an overflow. | |||
10 | */ | |||
11 | ||||
12 | /* expect+2: warning: floating point overflow detected, op * [142] */ | |||
13 | /* expect+1: warning: floating point overflow detected, op * [142] */ | |||
14 | double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100; |
--- src/tests/usr.bin/xlint/lint1/Attic/msg_142.exp 2021/01/08 21:25:03 1.2
+++ src/tests/usr.bin/xlint/lint1/Attic/msg_142.exp 2021/07/13 19:11:35 1.3
@@ -1,2 +1,2 @@ | @@ -1,2 +1,2 @@ | |||
1 | msg_142.c(6): warning: floating point overflow detected, op * [142] | 1 | msg_142.c(14): warning: floating point overflow detected, op * [142] | |
2 | msg_142.c(6): warning: floating point overflow detected, op * [142] | 2 | msg_142.c(14): warning: floating point overflow detected, op * [142] |