Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / ia64 / fpu / s_fpclassify.S
blobcbf0da3c927b718238b309b9468ac6b492ad4c12
1 /* Return classification value corresponding to argument.
2    Copyright (C) 2000-2015 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, see
17    <http://www.gnu.org/licenses/>.  */
19 #include <sysdep.h>
20 #undef ret
22 ENTRY (__fpclassify)
24 .mfi
25         fclass.m p6, p7 = farg0, @nat | @qnan | @snan
26         ;;
29 .mfb
30 (p6)    mov ret0 = 0
31 (p7)    fclass.m p7, p8 = farg0, @inf
32 (p6)    br.ret.sptk.many rp
33         ;;
36 .mfb
37 (p7)    mov ret0 = 1
38 (p8)    fclass.m p8, p6 = farg0, @zero
39 (p7)    br.ret.sptk.many rp
40         ;;
43 .mfb
44 (p8)    mov ret0 = 2
45 (p6)    fclass.m p6, p7 = farg0, @unorm
46 (p8)    br.ret.sptk.many rp
47         ;;
50         .pred.rel.mutex p6, p7
51 (p6)    mov ret0 = 3
52 (p7)    mov ret0 = 4
53         br.ret.sptk.many rp
55 END (__fpclassify)
57 strong_alias (__fpclassify, __fpclassifyf)
58 strong_alias (__fpclassify, __fpclassifyl)
59 libm_hidden_def (__fpclassify)
60 libm_hidden_def (__fpclassifyf)
61 libm_hidden_def (__fpclassifyl)