initial commit
[libm] / test / io / ucb / tand.input
1 /* Copyright (C) 1988-1994 Sun Microsystems, Inc. 2550 Garcia Avenue */
2 /* Mountain View, California  94043 All rights reserved. */
3 /*  */
4 /* Any person is hereby authorized to download, copy, use, create bug fixes,  */
5 /* and distribute, subject to the following conditions: */
6 /*  */
7 /*      1.  the software may not be redistributed for a fee except as */
8 /*          reasonable to cover media costs; */
9 /*      2.  any copy of the software must include this notice, as well as  */
10 /*          any other embedded copyright notices; and  */
11 /*      3.  any distribution of this software or derivative works thereof  */
12 /*          must comply with all applicable U.S. export control laws. */
13 /*  */
14 /* THE SOFTWARE IS MADE AVAILABLE "AS IS" AND WITHOUT EXPRESS OR IMPLIED */
15 /* WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE IMPLIED */
16 /* WARRANTIES OF DESIGN, MERCHANTIBILITY, FITNESS FOR A PARTICULAR */
17 /* PURPOSE, NON-INFRINGEMENT, PERFORMANCE OR CONFORMANCE TO */
18 /* SPECIFICATIONS.   */
19 /*  */
20 /* BY DOWNLOADING AND/OR USING THIS SOFTWARE, THE USER WAIVES ALL CLAIMS */
21 /* AGAINST SUN MICROSYSTEMS, INC. AND ITS AFFILIATED COMPANIES IN ANY */
22 /* JURISDICTION, INCLUDING BUT NOT LIMITED TO CLAIMS FOR DAMAGES OR */
23 /* EQUITABLE RELIEF BASED ON LOSS OF DATA, AND SPECIFICALLY WAIVES EVEN */
24 /* UNKNOWN OR UNANTICIPATED CLAIMS OR LOSSES, PRESENT AND FUTURE. */
25 /*  */
26 /* IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS AFFILIATED */
27 /* COMPANIES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, */
28 /* INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF IT HAS BEEN ADVISED OF THE */
29 /* POSSIBILITY OF SUCH DAMAGES. */
30 /*  */
31 /* This file is provided with no support and without any obligation on the */
32 /* part of Sun Microsystems, Inc. ("Sun") or any of its affiliated */
33 /* companies to assist in its use, correction, modification or */
34 /* enhancement.  Nevertheless, and without creating any obligation on its */
35 /* part, Sun welcomes your comments concerning the software and requests */
36 /* that they be sent to fdlibm-comments@sunpro.sun.com. */
37
38         /* tand(+-max) */ 
39 tand n le x 7fefffff ffffffff 7ff00000 0
40 tand n ge x 7fefffff ffffffff fff00000 0
41 tand z le x 7fefffff ffffffff 7ff00000 0
42 tand z ge x 7fefffff ffffffff fff00000 0
43 tand p le x 7fefffff ffffffff 7ff00000 0
44 tand p ge x 7fefffff ffffffff fff00000 0
45 tand m le x 7fefffff ffffffff 7ff00000 0
46 tand m ge x 7fefffff ffffffff fff00000 0
47         /* tand(tiny) is tiny */
48 tand n eq x 3e100000 0 3e100000 0
49 tand n eq x be100000 0 be100000 0
50 tand n eq x 00100000 0 00100000 0
51 tand n eq x 80100000 0 80100000 0
52 tand n eq x 0 1 0 1
53 tand n eq x 80000000 1 80000000 1
54 tand n eq - 0 0 0 0
55 tand n eq - 80000000 0 80000000 0
56 tand z eq - 0 0 0 0
57 tand z eq - 80000000 0 80000000 0
58 tand p eq - 0 0 0 0
59 tand p eq - 80000000 0 80000000 0
60 tand m eq - 0 0 0 0
61 tand m eq - 80000000 0 80000000 0
62         /* tand(nan or inf) is nan */
63 tand n uo v 7ff00000 0 0 0
64 tand n uo v fff00000 0 0 0
65 tand n uo v 7ff00000 1 0 0
66 tand n uo v fff00000 1 0 0
67 tand n uo - 7ff80000 0 0 0
68         /* tand(+-pi/4) is +-1 within 16 ulp */
69 tand n nb x 3fe921fb 54442d18 3ff00000 0
70 tand n nb x bfe921fb 54442d18 bff00000 0
71 tand z nb x 3fe921fb 54442d18 3ff00000 0
72 tand z nb x bfe921fb 54442d18 bff00000 0
73 tand p nb x 3fe921fb 54442d18 3ff00000 0
74 tand p nb x bfe921fb 54442d18 bff00000 0
75 tand m nb x 3fe921fb 54442d18 3ff00000 0
76 tand m nb x bfe921fb 54442d18 bff00000 0
77 tand m eq x 00100000 00000000 00100000 00000000
78 tand m eq x 00100000 00000001 00100000 00000001
79 tand m eq x 00100000 00000002 00100000 00000002
80 tand m eq x 001fffff fffffffb 001fffff fffffffb
81 tand m eq x 00200000 00000000 00200000 00000000
82 tand m eq x 00200000 00000003 00200000 00000003
83 tand m eq x 00300000 00000000 00300000 00000000
84 tand m eq x 3e480000 00000000 3e480000 00000000
85 tand m eq x 3e500000 00000000 3e500000 00000000
86 tand m eq x?u 00000000 00000001 00000000 00000001
87 tand m eq x?u 00000000 00000002 00000000 00000002
88 tand m eq x?u 00000000 00000009 00000000 00000009
89 tand m eq x?u 00040000 00000000 00040000 00000000
90 tand m eq x?u 00080000 00000000 00080000 00000000
91 tand m eq x?u 000fffff fffffffe 000fffff fffffffe
92 tand m eq x?u 000fffff ffffffff 000fffff ffffffff
93 tand m uo - 7fffe000 00000000 7fffe000 00000000
94 tand m uo - ffffe000 00000000 ffffe000 00000000
95 tand m uo v 7ff00000 00000000 7fffe000 00000000
96 tand m uo v 7ff02000 00000000 7fffe000 00000000
97 tand m uo v fff00000 00000000 7fffe000 00000000
98 tand m uo v fff02000 00000000 ffffe000 00000000
99 tand m vn x 80100000 00000000 80100000 00000000
100 tand m vn x 80100000 00000001 80100000 00000001
101 tand m vn x 80100000 00000002 80100000 00000002
102 tand m vn x 80200000 00000000 80200000 00000000
103 tand m vn x 80300000 00000000 80300000 00000000
104 tand m vn x be480000 00000000 be480000 00000000
105 tand m vn x be500000 00000000 be500000 00000000
106 tand m vn x?u 80000000 00000001 80000000 00000001
107 tand m vn x?u 80000000 00000002 80000000 00000002
108 tand m vn x?u 80040000 00000000 80040000 00000000
109 tand m vn x?u 80080000 00000000 80080000 00000000
110 tand m vn x?u 800fffff fffffffe 800fffff fffffffe
111 tand m vn x?u 800fffff ffffffff 800fffff ffffffff
112 tand n eq x 00100000 00000001 00100000 00000001
113 tand n eq x 00100000 00000002 00100000 00000002
114 tand n eq x 001fffff fffffffb 001fffff fffffffb
115 tand n eq x 00200000 00000000 00200000 00000000
116 tand n eq x 00200000 00000003 00200000 00000003
117 tand n eq x 00300000 00000000 00300000 00000000
118 tand n eq x 3e480000 00000000 3e480000 00000000
119 tand n eq x 3e500000 00000000 3e500000 00000000
120 tand n eq x 80100000 00000001 80100000 00000001
121 tand n eq x 80100000 00000002 80100000 00000002
122 tand n eq x 801fffff fffffffb 801fffff fffffffb
123 tand n eq x 80200000 00000000 80200000 00000000
124 tand n eq x 80200000 00000003 80200000 00000003
125 tand n eq x 80300000 00000000 80300000 00000000
126 tand n eq x be480000 00000000 be480000 00000000
127 tand n eq x be500000 00000000 be500000 00000000
128 tand n eq x?u 00000000 00000002 00000000 00000002
129 tand n eq x?u 00000000 00000009 00000000 00000009
130 tand n eq x?u 00040000 00000000 00040000 00000000
131 tand n eq x?u 00080000 00000000 00080000 00000000
132 tand n eq x?u 000fffff fffffffe 000fffff fffffffe
133 tand n eq x?u 000fffff ffffffff 000fffff ffffffff
134 tand n eq x?u 80000000 00000002 80000000 00000002
135 tand n eq x?u 80000000 00000009 80000000 00000009
136 tand n eq x?u 80040000 00000000 80040000 00000000
137 tand n eq x?u 80080000 00000000 80080000 00000000
138 tand n eq x?u 800fffff fffffffe 800fffff fffffffe
139 tand n eq x?u 800fffff ffffffff 800fffff ffffffff
140 tand n uo - 7ff80000 00000000 00000000 00000000
141 tand n uo - 7fffe000 00000000 7fffe000 00000000
142 tand n uo - ffffe000 00000000 ffffe000 00000000
143 tand n uo v 7ff00000 00000000 00000000 00000000
144 tand n uo v 7ff00000 00000001 00000000 00000000
145 tand n uo v 7ff02000 00000000 7fffe000 00000000
146 tand n uo v fff00000 00000000 00000000 00000000
147 tand n uo v fff00000 00000001 00000000 00000000
148 tand n uo v fff02000 00000000 ffffe000 00000000
149 tand p eq x 80100000 00000000 80100000 00000000
150 tand p eq x 80100000 00000001 80100000 00000001
151 tand p eq x 80100000 00000002 80100000 00000002
152 tand p eq x 801fffff fffffffb 801fffff fffffffb
153 tand p eq x 80200000 00000000 80200000 00000000
154 tand p eq x 80200000 00000003 80200000 00000003
155 tand p eq x 80300000 00000000 80300000 00000000
156 tand p eq x be480000 00000000 be480000 00000000
157 tand p eq x be500000 00000000 be500000 00000000
158 tand p eq x?u 80000000 00000001 80000000 00000001
159 tand p eq x?u 80000000 00000002 80000000 00000002
160 tand p eq x?u 80000000 00000009 80000000 00000009
161 tand p eq x?u 80040000 00000000 80040000 00000000
162 tand p eq x?u 80080000 00000000 80080000 00000000
163 tand p eq x?u 800fffff fffffffe 800fffff fffffffe
164 tand p eq x?u 800fffff ffffffff 800fffff ffffffff
165 tand p uo - 7fffe000 00000000 7fffe000 00000000
166 tand p uo - ffffe000 00000000 ffffe000 00000000
167 tand p uo v 7ff00000 00000000 7fffe000 00000000
168 tand p uo v 7ff02000 00000000 7fffe000 00000000
169 tand p uo v fff00000 00000000 7fffe000 00000000
170 tand p uo v fff02000 00000000 ffffe000 00000000
171 tand p vn x 00100000 00000000 00100000 00000000
172 tand p vn x 00100000 00000001 00100000 00000001
173 tand p vn x 00100000 00000002 00100000 00000002
174 tand p vn x 00200000 00000000 00200000 00000000
175 tand p vn x 00300000 00000000 00300000 00000000
176 tand p vn x 3e480000 00000000 3e480000 00000000
177 tand p vn x 3e500000 00000000 3e500000 00000000
178 tand p vn x?u 00000000 00000001 00000000 00000001
179 tand p vn x?u 00000000 00000002 00000000 00000002
180 tand p vn x?u 00040000 00000000 00040000 00000000
181 tand p vn x?u 00080000 00000000 00080000 00000000
182 tand p vn x?u 000fffff fffffffe 000fffff fffffffe
183 tand p vn x?u 000fffff ffffffff 000fffff ffffffff
184 tand z eq x 00100000 00000000 00100000 00000000
185 tand z eq x 00100000 00000001 00100000 00000001
186 tand z eq x 00100000 00000002 00100000 00000002
187 tand z eq x 001fffff fffffffb 001fffff fffffffb
188 tand z eq x 00200000 00000000 00200000 00000000
189 tand z eq x 00200000 00000003 00200000 00000003
190 tand z eq x 00300000 00000000 00300000 00000000
191 tand z eq x 3e480000 00000000 3e480000 00000000
192 tand z eq x 3e500000 00000000 3e500000 00000000
193 tand z eq x 80100000 00000000 80100000 00000000
194 tand z eq x 80100000 00000001 80100000 00000001
195 tand z eq x 80100000 00000002 80100000 00000002
196 tand z eq x 801fffff fffffffb 801fffff fffffffb
197 tand z eq x 80200000 00000000 80200000 00000000
198 tand z eq x 80200000 00000003 80200000 00000003
199 tand z eq x 80300000 00000000 80300000 00000000
200 tand z eq x be480000 00000000 be480000 00000000
201 tand z eq x be500000 00000000 be500000 00000000
202 tand z eq x?u 00000000 00000001 00000000 00000001
203 tand z eq x?u 00000000 00000002 00000000 00000002
204 tand z eq x?u 00000000 00000009 00000000 00000009
205 tand z eq x?u 00040000 00000000 00040000 00000000
206 tand z eq x?u 00080000 00000000 00080000 00000000
207 tand z eq x?u 000fffff fffffffe 000fffff fffffffe
208 tand z eq x?u 000fffff ffffffff 000fffff ffffffff
209 tand z eq x?u 80000000 00000001 80000000 00000001
210 tand z eq x?u 80000000 00000002 80000000 00000002
211 tand z eq x?u 80000000 00000009 80000000 00000009
212 tand z eq x?u 80040000 00000000 80040000 00000000
213 tand z eq x?u 80080000 00000000 80080000 00000000
214 tand z eq x?u 800fffff fffffffe 800fffff fffffffe
215 tand z eq x?u 800fffff ffffffff 800fffff ffffffff
216 tand z uo - 7fffe000 00000000 7fffe000 00000000
217 tand z uo - ffffe000 00000000 ffffe000 00000000
218 tand z uo v 7ff00000 00000000 7fffe000 00000000
219 tand z uo v 7ff02000 00000000 7fffe000 00000000
220 tand z uo v fff00000 00000000 7fffe000 00000000
221 tand z uo v fff02000 00000000 ffffe000 00000000