xref: /freebsd/contrib/arm-optimized-routines/pl/math/test/testcases/directed/log1p.tst (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1; log1p.tst
2;
3; Copyright (c) 2009-2023, Arm Limited.
4; SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
5
6func=log1p op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
7func=log1p op1=fff80000.00000001 result=7ff80000.00000001 errno=0
8func=log1p op1=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i
9func=log1p op1=fff00000.00000001 result=7ff80000.00000001 errno=0 status=i
10func=log1p op1=fff02000.00000000 result=7ff80000.00000001 errno=0 status=i
11func=log1p op1=7ff00000.00000000 result=7ff00000.00000000 errno=0
12; Cases 6, 9 , 10, 11, 12 fail with certain versions of GLIBC and not others.
13; The main reason seems to be the handling of errno and exceptions.
14
15func=log1p op1=00000000.00000000 result=00000000.00000000 errno=0
16func=log1p op1=80000000.00000000 result=80000000.00000000 errno=0
17
18; No exception is raised with certain versions of glibc. Functions
19; approximated by x near zero may not generate/implement flops and
20; thus may not raise exceptions.
21func=log1p op1=00000000.00000001 result=00000000.00000001 errno=0 maybestatus=ux
22func=log1p op1=80000000.00000001 result=80000000.00000001 errno=0 maybestatus=ux
23