xref: /freebsd/contrib/arm-optimized-routines/math/test/testcases/directed/log2.tst (revision 31914882fca502069810b9e9ddea4bcd8136a4f4)
1*31914882SAlex Richardson; Directed test cases for log2
2*31914882SAlex Richardson;
3*31914882SAlex Richardson; Copyright (c) 2018-2019, Arm Limited.
4*31914882SAlex Richardson; SPDX-License-Identifier: MIT
5*31914882SAlex Richardson
6*31914882SAlex Richardsonfunc=log2 op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
7*31914882SAlex Richardsonfunc=log2 op1=fff80000.00000001 result=7ff80000.00000001 errno=0
8*31914882SAlex Richardsonfunc=log2 op1=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i
9*31914882SAlex Richardsonfunc=log2 op1=fff00000.00000001 result=7ff80000.00000001 errno=0 status=i
10*31914882SAlex Richardsonfunc=log2 op1=7ff00000.00000000 result=7ff00000.00000000 errno=0
11*31914882SAlex Richardsonfunc=log2 op1=fff00000.00000000 result=7ff80000.00000001 errno=EDOM status=i
12*31914882SAlex Richardsonfunc=log2 op1=7fefffff.ffffffff result=408fffff.ffffffff.ffa errno=0
13*31914882SAlex Richardsonfunc=log2 op1=ffefffff.ffffffff result=7ff80000.00000001 errno=EDOM status=i
14*31914882SAlex Richardsonfunc=log2 op1=3ff00000.00000000 result=00000000.00000000 errno=0
15*31914882SAlex Richardsonfunc=log2 op1=bff00000.00000000 result=7ff80000.00000001 errno=EDOM status=i
16*31914882SAlex Richardsonfunc=log2 op1=00000000.00000000 result=fff00000.00000000 errno=ERANGE status=z
17*31914882SAlex Richardsonfunc=log2 op1=80000000.00000000 result=fff00000.00000000 errno=ERANGE status=z
18*31914882SAlex Richardsonfunc=log2 op1=00000000.00000001 result=c090c800.00000000 errno=0
19*31914882SAlex Richardsonfunc=log2 op1=80000000.00000001 result=7ff80000.00000001 errno=EDOM status=i
20*31914882SAlex Richardsonfunc=log2 op1=40000000.00000000 result=3ff00000.00000000 errno=0
21*31914882SAlex Richardsonfunc=log2 op1=3fe00000.00000000 result=bff00000.00000000 errno=0
22