ccosl.S 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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 "ccosl.c"
  38. .text
  39. ..TXTST0:
  40. # -- Begin ccosl
  41. .text
  42. .align 16,0x90
  43. .globl ccosl
  44. ccosl:
  45. # parameter 1: 112 + %rsp
  46. ..B1.1:
  47. .cfi_startproc
  48. ..___tag_value_ccosl.1:
  49. ..L2:
  50. pushq %rbx
  51. .cfi_def_cfa_offset 16
  52. .cfi_offset 3, -16
  53. subq $96, %rsp
  54. .cfi_def_cfa_offset 112
  55. xorb %bl, %bl
  56. fldt .L_2il0floatpacket.5(%rip)
  57. movq %fs:40, %rax
  58. xorq %rsp, %rax
  59. movq %rax, 80(%rsp)
  60. fstpt 16(%rsp)
  61. fldt 16(%rsp)
  62. fstpt 32(%rsp)
  63. fldt 32(%rsp)
  64. fstpt 48(%rsp)
  65. fldt 48(%rsp)
  66. fstpt 64(%rsp)
  67. ..B1.2:
  68. fnstcw 2(%rsp)
  69. ..B1.3:
  70. movzwl 2(%rsp), %edx
  71. movl %edx, %eax
  72. andl $768, %eax
  73. cmpl $768, %eax
  74. je ..B1.7
  75. ..B1.4:
  76. orl $-64768, %edx
  77. movw %dx, (%rsp)
  78. ..B1.5:
  79. fldcw (%rsp)
  80. ..B1.6:
  81. movb $1, %bl
  82. ..B1.7:
  83. fldt 112(%rsp)
  84. movzwl 136(%rsp), %eax
  85. andl $32767, %eax
  86. fstpt 64(%rsp)
  87. cmpl $32767, %eax
  88. fldt 128(%rsp)
  89. fstpt 48(%rsp)
  90. jl ..B1.9
  91. ..B1.8:
  92. movq $0x8000000000000000, %rax
  93. cmpq 128(%rsp), %rax
  94. jne ..B1.10
  95. ..B1.9:
  96. movb 137(%rsp), %al
  97. notb %al
  98. movb 57(%rsp), %dl
  99. andb $-128, %al
  100. andb $127, %dl
  101. orb %al, %dl
  102. movb %dl, 57(%rsp)
  103. ..B1.10:
  104. addq $-32, %rsp
  105. .cfi_def_cfa_offset 144
  106. movq %rsp, %rdi
  107. movq 80(%rsp), %rax
  108. movq 88(%rsp), %rdx
  109. movq 96(%rsp), %rcx
  110. movq 104(%rsp), %rsi
  111. movq %rax, (%rdi)
  112. movq %rdx, 8(%rdi)
  113. movq %rcx, 16(%rdi)
  114. movq %rsi, 24(%rdi)
  115. call ccoshl@PLT
  116. ..B1.19:
  117. fxch %st(1)
  118. addq $32, %rsp
  119. .cfi_def_cfa_offset 112
  120. fxch %st(1)
  121. fstpt 16(%rsp)
  122. testb %bl, %bl
  123. fstpt 32(%rsp)
  124. je ..B1.12
  125. ..B1.11:
  126. fldcw 2(%rsp)
  127. ..B1.12:
  128. movq 80(%rsp), %rax
  129. xorq %rsp, %rax
  130. cmpq %fs:40, %rax
  131. jne ..B1.16
  132. ..B1.13:
  133. fldt 16(%rsp)
  134. fldt 32(%rsp)
  135. movq 80(%rsp), %rax
  136. xorq %rsp, %rax
  137. cmpq %fs:40, %rax
  138. jne ..B1.15
  139. ..B1.14:
  140. addq $96, %rsp
  141. .cfi_def_cfa_offset 16
  142. .cfi_restore 3
  143. popq %rbx
  144. .cfi_def_cfa_offset 8
  145. fxch %st(1)
  146. ret
  147. .cfi_def_cfa_offset 112
  148. .cfi_offset 3, -16
  149. ..B1.15:
  150. fstp %st(1)
  151. fstp %st(0)
  152. call __stack_chk_fail@PLT
  153. ..B1.16:
  154. call __stack_chk_fail@PLT
  155. .align 16,0x90
  156. .cfi_endproc
  157. .type ccosl,@function
  158. .size ccosl,.-ccosl
  159. .data
  160. # -- End ccosl
  161. .section .rodata, "a"
  162. .align 16
  163. .align 16
  164. .L_2il0floatpacket.5:
  165. .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  166. .type .L_2il0floatpacket.5,@object
  167. .size .L_2il0floatpacket.5,16
  168. .data
  169. .section .note.GNU-stack, ""
  170. // -- Begin DWARF2 SEGMENT .eh_frame
  171. .section .eh_frame,"a",@progbits
  172. .eh_frame_seg:
  173. .align 1
  174. # End