initial commit
[libm] / test / io / ucb / atand.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         /* atand(+-max) is +-pi/2 */
39 atand n eq x 7fefffff ffffffff 3ff921fb 54442d18
40 atand n eq x ffefffff ffffffff bff921fb 54442d18
41         /* atand(+-1) is +-pi/4 */
42 atand n eq x 3ff00000 0 3fe921fb 54442d18
43 atand n eq x bff00000 0 bfe921fb 54442d18
44         /* atand(tiny) is tiny */
45 atand n eq x 3e100000 0 3e100000 0
46 atand n eq x be100000 0 be100000 0
47 atand n eq x 00100000 0 00100000 0
48 atand n eq x 80100000 0 80100000 0
49 atand z vn x 3e100000 0 3e100000 0
50 atand z vn x be100000 0 be100000 0
51 atand z vn x 00100000 0 00100000 0
52 atand z vn x 80100000 0 80100000 0
53 atand p vn x 3e100000 0 3e100000 0
54 atand p vn x be100000 0 be100000 0
55 atand p vn x 00100000 0 00100000 0
56 atand p vn x 80100000 0 80100000 0
57 atand m vn x 3e100000 0 3e100000 0
58 atand m vn x be100000 0 be100000 0
59 atand m vn x 00100000 0 00100000 0
60 atand m vn x 80100000 0 80100000 0
61         /* atand(+-0) is +-0 */
62 atand n eq - 0 0 0 0
63 atand n eq - 80000000 0 80000000 0
64 atand z eq - 0 0 0 0
65 atand z eq - 80000000 0 80000000 0
66 atand p eq - 0 0 0 0
67 atand p eq - 80000000 0 80000000 0
68 atand m eq - 0 0 0 0
69 atand m eq - 80000000 0 80000000 0
70         /* random arguments between -2 and 2 */
71 atand n vn x bfe13284 b2b5006d bfdf8f75 bb5fd451
72 atand n vn x 3ff6ca8d fb825911 3feeadc6 ce9cba6c
73 atand n vn x 3ffc2ca6 09de7505 3ff0de7f 90a2292b
74 atand n vn x bff55f11 fba96889 bfedb367 aed10930
75 atand n vn x bfe15679 e27084dd bfdfc728 49d05c90
76 atand n vn x bfb41e13 1b093c41 bfb41383 2eb4f31d
77 atand n vn x 3ff281b0 d18455f5 3feb7404 0cba5c64
78 atand n vn x 3ffb5ce3 4a51b239 3ff0aab5 8c02e298
79 atand n vn x bfd58348 1079de4d bfd4c0e1 2c6c30bf
80 atand n vn x bffea822 3103b871 bff16fb9 ae45d4fc
81 atand z nb x bfe13284 b2b5006d bfdf8f75 bb5fd451
82 atand z nb x 3ff6ca8d fb825911 3feeadc6 ce9cba6c
83 atand z nb x 3ffc2ca6 09de7505 3ff0de7f 90a2292b
84 atand p nb x bff55f11 fba96889 bfedb367 aed10930
85 atand p nb x bfe15679 e27084dd bfdfc728 49d05c90
86 atand p nb x bfb41e13 1b093c41 bfb41383 2eb4f31d
87 atand m nb x 3ff281b0 d18455f5 3feb7404 0cba5c64
88 atand m nb x 3ffb5ce3 4a51b239 3ff0aab5 8c02e298
89 atand m nb x bfd58348 1079de4d bfd4c0e1 2c6c30bf
90 atand m nb x bffea822 3103b871 bff16fb9 ae45d4fc
91         /* atand(+-inf) is +-pi/2 */
92 atand n eq x 7ff00000 0 3ff921fb 54442d18
93 atand n eq x fff00000 0 bff921fb 54442d18
94         /* atand(nan) is nan */
95 atand n uo v 7ff00000 1 0 0
96 atand n uo - fff80000 0 0 0
97 atand z uo v 7ff00000 1 0 0
98 atand z uo - fff80000 0 0 0
99 atand p uo v 7ff00000 1 0 0
100 atand p uo - fff80000 0 0 0
101 atand m uo v 7ff00000 1 0 0
102 atand m uo - fff80000 0 0 0
103 atand m eq x 00100000 00000000 00100000 00000000
104 atand m eq x 00100000 00000001 00100000 00000001
105 atand m eq x 00100000 00000002 00100000 00000002
106 atand m eq x 00200000 00000000 00200000 00000000
107 atand m eq x 00300000 00000000 00300000 00000000
108 atand m eq x 80100000 00000000 80100000 00000000
109 atand m eq x 80100000 00000001 80100000 00000001
110 atand m eq x 80100000 00000002 80100000 00000002
111 atand m eq x 801fffff fffffffb 801fffff fffffffb
112 atand m eq x 80200000 00000000 80200000 00000000
113 atand m eq x 80200000 00000003 80200000 00000003
114 atand m eq x 80300000 00000000 80300000 00000000
115 atand m eq x?u 00000000 00000001 00000000 00000001
116 atand m eq x?u 00000000 00000002 00000000 00000002
117 atand m eq x?u 00040000 00000000 00040000 00000000
118 atand m eq x?u 00080000 00000000 00080000 00000000
119 atand m eq x?u 000fffff fffffffe 000fffff fffffffe
120 atand m eq x?u 000fffff ffffffff 000fffff ffffffff
121 atand m eq x?u 80000000 00000001 80000000 00000001
122 atand m eq x?u 80000000 00000002 80000000 00000002
123 atand m eq x?u 80000000 00000009 80000000 00000009
124 atand m eq x?u 80040000 00000000 80040000 00000000
125 atand m eq x?u 80080000 00000000 80080000 00000000
126 atand m eq x?u 800fffff fffffffe 800fffff fffffffe
127 atand m eq x?u 800fffff ffffffff 800fffff ffffffff
128 atand m uo - fff80000 00000000 00000000 00000000
129 atand m uo - ffffe000 00000000 ffffe000 00000000
130 atand m uo v 7ff00000 00000001 00000000 00000000
131 atand m uo v 7ff02000 00000000 7fffe000 00000000
132 atand m uo v fff02000 00000000 ffffe000 00000000
133 atand m vn x 3e480000 00000000 3e480000 00000000
134 atand m vn x be480000 00000000 be480000 00000000
135 atand n eq x 00100000 00000001 00100000 00000001
136 atand n eq x 00100000 00000002 00100000 00000002
137 atand n eq x 001fffff fffffffb 001fffff fffffffb
138 atand n eq x 00200000 00000000 00200000 00000000
139 atand n eq x 00200000 00000003 00200000 00000003
140 atand n eq x 00300000 00000000 00300000 00000000
141 atand n eq x 3e480000 00000000 3e480000 00000000
142 atand n eq x 80100000 00000001 80100000 00000001
143 atand n eq x 80100000 00000002 80100000 00000002
144 atand n eq x 801fffff fffffffb 801fffff fffffffb
145 atand n eq x 80200000 00000000 80200000 00000000
146 atand n eq x 80200000 00000003 80200000 00000003
147 atand n eq x 80300000 00000000 80300000 00000000
148 atand n eq x be480000 00000000 be480000 00000000
149 atand n eq x?u 00000000 00000001 00000000 00000001
150 atand n eq x?u 00000000 00000002 00000000 00000002
151 atand n eq x?u 00000000 00000009 00000000 00000009
152 atand n eq x?u 00040000 00000000 00040000 00000000
153 atand n eq x?u 00080000 00000000 00080000 00000000
154 atand n eq x?u 000fffff fffffffe 000fffff fffffffe
155 atand n eq x?u 000fffff ffffffff 000fffff ffffffff
156 atand n eq x?u 80000000 00000001 80000000 00000001
157 atand n eq x?u 80000000 00000002 80000000 00000002
158 atand n eq x?u 80000000 00000009 80000000 00000009
159 atand n eq x?u 80040000 00000000 80040000 00000000
160 atand n eq x?u 80080000 00000000 80080000 00000000
161 atand n eq x?u 800fffff fffffffe 800fffff fffffffe
162 atand n eq x?u 800fffff ffffffff 800fffff ffffffff
163 atand n uo - fff80000 00000000 00000000 00000000
164 atand n uo - ffffe000 00000000 ffffe000 00000000
165 atand n uo v 7ff00000 00000001 00000000 00000000
166 atand n uo v 7ff02000 00000000 7fffe000 00000000
167 atand n uo v fff02000 00000000 ffffe000 00000000
168 atand p eq x 00100000 00000000 00100000 00000000
169 atand p eq x 00100000 00000001 00100000 00000001
170 atand p eq x 00100000 00000002 00100000 00000002
171 atand p eq x 001fffff fffffffb 001fffff fffffffb
172 atand p eq x 00200000 00000000 00200000 00000000
173 atand p eq x 00200000 00000003 00200000 00000003
174 atand p eq x 00300000 00000000 00300000 00000000
175 atand p eq x 80100000 00000000 80100000 00000000
176 atand p eq x 80100000 00000001 80100000 00000001
177 atand p eq x 80100000 00000002 80100000 00000002
178 atand p eq x 80200000 00000000 80200000 00000000
179 atand p eq x 80300000 00000000 80300000 00000000
180 atand p eq x?u 00000000 00000001 00000000 00000001
181 atand p eq x?u 00000000 00000002 00000000 00000002
182 atand p eq x?u 00000000 00000009 00000000 00000009
183 atand p eq x?u 00040000 00000000 00040000 00000000
184 atand p eq x?u 00080000 00000000 00080000 00000000
185 atand p eq x?u 000fffff fffffffe 000fffff fffffffe
186 atand p eq x?u 000fffff ffffffff 000fffff ffffffff
187 atand p eq x?u 80000000 00000001 80000000 00000001
188 atand p eq x?u 80000000 00000002 80000000 00000002
189 atand p eq x?u 80040000 00000000 80040000 00000000
190 atand p eq x?u 80080000 00000000 80080000 00000000
191 atand p eq x?u 800fffff fffffffe 800fffff fffffffe
192 atand p eq x?u 800fffff ffffffff 800fffff ffffffff
193 atand p uo - 7fffe000 00000000 7fffe000 00000000
194 atand p uo - fff80000 00000000 00000000 00000000
195 atand p uo - ffffe000 00000000 ffffe000 00000000
196 atand p uo v 7ff00000 00000001 00000000 00000000
197 atand p uo v 7ff02000 00000000 7fffe000 00000000
198 atand p uo v fff02000 00000000 ffffe000 00000000
199 atand p vn x 3e480000 00000000 3e480000 00000000
200 atand p vn x be480000 00000000 be480000 00000000
201 atand z eq x 00100000 00000000 00100000 00000000
202 atand z eq x 00100000 00000001 00100000 00000001
203 atand z eq x 00100000 00000002 00100000 00000002
204 atand z eq x 00200000 00000000 00200000 00000000
205 atand z eq x 00300000 00000000 00300000 00000000
206 atand z eq x 80100000 00000000 80100000 00000000
207 atand z eq x 80100000 00000001 80100000 00000001
208 atand z eq x 80100000 00000002 80100000 00000002
209 atand z eq x 80200000 00000000 80200000 00000000
210 atand z eq x 80300000 00000000 80300000 00000000
211 atand z eq x?u 00000000 00000001 00000000 00000001
212 atand z eq x?u 00000000 00000002 00000000 00000002
213 atand z eq x?u 00040000 00000000 00040000 00000000
214 atand z eq x?u 00080000 00000000 00080000 00000000
215 atand z eq x?u 000fffff fffffffe 000fffff fffffffe
216 atand z eq x?u 000fffff ffffffff 000fffff ffffffff
217 atand z eq x?u 80000000 00000001 80000000 00000001
218 atand z eq x?u 80000000 00000002 80000000 00000002
219 atand z eq x?u 80040000 00000000 80040000 00000000
220 atand z eq x?u 80080000 00000000 80080000 00000000
221 atand z eq x?u 800fffff fffffffe 800fffff fffffffe
222 atand z eq x?u 800fffff ffffffff 800fffff ffffffff
223 atand z uo - 7fffe000 00000000 7fffe000 00000000
224 atand z uo - fff80000 00000000 00000000 00000000
225 atand z uo - ffffe000 00000000 ffffe000 00000000
226 atand z uo v 7ff00000 00000001 00000000 00000000
227 atand z uo v 7ff02000 00000000 7fffe000 00000000
228 atand z uo v fff02000 00000000 ffffe000 00000000
229 atand z vn x 3e480000 00000000 3e480000 00000000
230 atand z vn x be480000 00000000 be480000 00000000