signbit.S 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /*
  2. * Math library
  3. *
  4. * Copyright (C) 2016 Intel Corporation. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. * * Neither the name of Intel Corporation nor the names of its
  17. * contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. *
  32. *
  33. * Author Name <jingwei.zhang@intel.com>
  34. * History:
  35. * 03-14-2016 Initial version. numerics svn rev. 12864
  36. */
  37. .file "signbit.c"
  38. .text
  39. ..TXTST0:
  40. # -- Begin __signbitd
  41. .text
  42. .align 16,0x90
  43. .globl __signbitd
  44. __signbitd:
  45. # parameter 1: %xmm0
  46. ..B1.1:
  47. .cfi_startproc
  48. ..___tag_value___signbitd.1:
  49. ..L2:
  50. movsd %xmm0, -8(%rsp)
  51. movl -4(%rsp), %eax
  52. shrl $31, %eax
  53. ret
  54. .align 16,0x90
  55. .cfi_endproc
  56. .type __signbitd,@function
  57. .size __signbitd,.-__signbitd
  58. .data
  59. # -- End __signbitd
  60. .text
  61. # -- Begin signbitd
  62. .text
  63. .align 16,0x90
  64. .globl signbitd
  65. signbitd:
  66. # parameter 1: %xmm0
  67. ..B2.1:
  68. .cfi_startproc
  69. ..___tag_value_signbitd.4:
  70. ..L5:
  71. movsd %xmm0, -8(%rsp)
  72. movl -4(%rsp), %eax
  73. shrl $31, %eax
  74. ret
  75. .align 16,0x90
  76. .cfi_endproc
  77. .type signbitd,@function
  78. .size signbitd,.-signbitd
  79. .data
  80. # -- End signbitd
  81. .text
  82. # -- Begin __signbit
  83. .text
  84. .align 16,0x90
  85. .globl __signbit
  86. __signbit:
  87. # parameter 1: %xmm0
  88. ..B3.1:
  89. .cfi_startproc
  90. ..___tag_value___signbit.7:
  91. ..L8:
  92. movsd %xmm0, -8(%rsp)
  93. movl -4(%rsp), %eax
  94. shrl $31, %eax
  95. ret
  96. .align 16,0x90
  97. .cfi_endproc
  98. .type __signbit,@function
  99. .size __signbit,.-__signbit
  100. .data
  101. # -- End __signbit
  102. .text
  103. # -- Begin signbit
  104. .text
  105. .align 16,0x90
  106. .globl signbit
  107. signbit:
  108. # parameter 1: %xmm0
  109. ..B4.1:
  110. .cfi_startproc
  111. ..___tag_value_signbit.10:
  112. ..L11:
  113. movsd %xmm0, -8(%rsp)
  114. movl -4(%rsp), %eax
  115. shrl $31, %eax
  116. ret
  117. .align 16,0x90
  118. .cfi_endproc
  119. .type signbit,@function
  120. .size signbit,.-signbit
  121. .data
  122. # -- End signbit
  123. .text
  124. # -- Begin __signbitf
  125. .text
  126. .align 16,0x90
  127. .globl __signbitf
  128. __signbitf:
  129. # parameter 1: %xmm0
  130. ..B5.1:
  131. .cfi_startproc
  132. ..___tag_value___signbitf.13:
  133. ..L14:
  134. movd %xmm0, %eax
  135. shrl $31, %eax
  136. ret
  137. .align 16,0x90
  138. .cfi_endproc
  139. .type __signbitf,@function
  140. .size __signbitf,.-__signbitf
  141. .data
  142. # -- End __signbitf
  143. .text
  144. # -- Begin signbitf
  145. .text
  146. .align 16,0x90
  147. .globl signbitf
  148. signbitf:
  149. # parameter 1: %xmm0
  150. ..B6.1:
  151. .cfi_startproc
  152. ..___tag_value_signbitf.16:
  153. ..L17:
  154. movd %xmm0, %eax
  155. shrl $31, %eax
  156. ret
  157. .align 16,0x90
  158. .cfi_endproc
  159. .type signbitf,@function
  160. .size signbitf,.-signbitf
  161. .data
  162. # -- End signbitf
  163. .text
  164. # -- Begin __signbitl
  165. .text
  166. .align 16,0x90
  167. .globl __signbitl
  168. __signbitl:
  169. # parameter 1: 8 + %rsp
  170. ..B7.1:
  171. .cfi_startproc
  172. ..___tag_value___signbitl.19:
  173. ..L20:
  174. movzbl 17(%rsp), %eax
  175. shrl $7, %eax
  176. movzwl 16(%rsp), %edx
  177. shll $15, %eax
  178. andl $32767, %edx
  179. orl %edx, %eax
  180. shll $16, %eax
  181. movzwl 14(%rsp), %ecx
  182. orl %ecx, %eax
  183. shrl $31, %eax
  184. ret
  185. .align 16,0x90
  186. .cfi_endproc
  187. .type __signbitl,@function
  188. .size __signbitl,.-__signbitl
  189. .data
  190. # -- End __signbitl
  191. .text
  192. # -- Begin signbitl
  193. .text
  194. .align 16,0x90
  195. .globl signbitl
  196. signbitl:
  197. # parameter 1: 8 + %rsp
  198. ..B8.1:
  199. .cfi_startproc
  200. ..___tag_value_signbitl.22:
  201. ..L23:
  202. movzbl 17(%rsp), %eax
  203. shrl $7, %eax
  204. movzwl 16(%rsp), %edx
  205. shll $15, %eax
  206. andl $32767, %edx
  207. orl %edx, %eax
  208. shll $16, %eax
  209. movzwl 14(%rsp), %ecx
  210. orl %ecx, %eax
  211. shrl $31, %eax
  212. ret
  213. .align 16,0x90
  214. .cfi_endproc
  215. .type signbitl,@function
  216. .size signbitl,.-signbitl
  217. .data
  218. # -- End signbitl
  219. .data
  220. .section .note.GNU-stack, ""
  221. // -- Begin DWARF2 SEGMENT .eh_frame
  222. .section .eh_frame,"a",@progbits
  223. .eh_frame_seg:
  224. .align 1
  225. # End