xref: /freebsd/contrib/arm-optimized-routines/pl/math/test/testcases/directed/erfc.tst (revision 072a4ba82a01476eaee33781ccd241033eefcf0b)
1*072a4ba8SAndrew Turner; erfc.tst - Directed test cases for erfc
2*072a4ba8SAndrew Turner;
3*072a4ba8SAndrew Turner; Copyright (c) 2022-2023, Arm Limited.
4*072a4ba8SAndrew Turner; SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
5*072a4ba8SAndrew Turner
6*072a4ba8SAndrew Turnerfunc=erfc op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
7*072a4ba8SAndrew Turnerfunc=erfc op1=fff80000.00000001 result=7ff80000.00000001 errno=0
8*072a4ba8SAndrew Turnerfunc=erfc op1=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i
9*072a4ba8SAndrew Turnerfunc=erfc op1=fff00000.00000001 result=7ff80000.00000001 errno=0 status=i
10*072a4ba8SAndrew Turnerfunc=erfc op1=7ff00000.00000000 result=00000000.00000000 errno=0
11*072a4ba8SAndrew Turnerfunc=erfc op1=7fefffff.ffffffff result=00000000.00000000 errno=ERANGE status=ux
12*072a4ba8SAndrew Turner; We deliberately turned off errno setting in erf, as standard simply
13*072a4ba8SAndrew Turner; state that errno `may` be set to ERANGE in case of underflow.
14*072a4ba8SAndrew Turner; As a result the following condition on errno cannot be satisfied.
15*072a4ba8SAndrew Turner;
16*072a4ba8SAndrew Turner; func=erfc op1=403b44af.48b01531 result=00000000.00000000 errno=ERANGE status=ux
17*072a4ba8SAndrew Turner;
18*072a4ba8SAndrew Turnerfunc=erfc op1=c03b44af.48b01531 result=40000000.00000000 errno=0
19*072a4ba8SAndrew Turnerfunc=erfc op1=403bffff.ffffffff result=00000000.00000000 errno=ERANGE status=ux
20*072a4ba8SAndrew Turnerfunc=erfc op1=c03bffff.ffffffff result=40000000.00000000 errno=0
21*072a4ba8SAndrew Turnerfunc=erfc op1=fff00000.00000000 result=40000000.00000000 errno=0
22*072a4ba8SAndrew Turnerfunc=erfc op1=00000000.00000000 result=3ff00000.00000000 errno=0
23*072a4ba8SAndrew Turnerfunc=erfc op1=80000000.00000000 result=3ff00000.00000000 errno=0
24