Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

683 lines
19 KiB

  1. .file "acosf.s"
  2. // Copyright (c) 2000, 2001, Intel Corporation
  3. // All rights reserved.
  4. //
  5. // Contributed 2/2/2000 by John Harrison, Ted Kubaska, Bob Norin, Shane Story,
  6. // and Ping Tak Peter Tang of the Computational Software Lab, Intel Corporation.
  7. //
  8. // WARRANTY DISCLAIMER
  9. //
  10. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  11. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  13. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS
  14. // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  15. // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  16. // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  17. // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  18. // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING
  19. // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  20. // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  21. //
  22. // Intel Corporation is the author of this code, and requests that all
  23. // problem reports or change requests be submitted to it directly at
  24. // http://developer.intel.com/opensource.
  25. // History
  26. //==============================================================
  27. // 2/02/00 Initial version
  28. // 6/28/00 Improved speed
  29. // 6/31/00 Changed register allocation because of some duplicate macros
  30. // moved nan exit bundle up to gain a cycle.
  31. // 8/15/00 Bundle added after call to __libm_error_support to properly
  32. // set [the previously overwritten] GR_Parameter_RESULT.
  33. // 8/17/00 Changed predicate register macro-usage to direct predicate
  34. // names due to an assembler bug.
  35. // 10/17/00 Improved speed of x=0 and x=1 paths, set D flag if x denormal.
  36. // 3/13/01 Corrected sign of imm1 value in dep instruction.
  37. // Description
  38. //=========================================
  39. // The acosf function computes the principle value of the arc sine of x.
  40. // A doman error occurs for arguments not in the range [-1,+1].
  41. // The acosf function returns the arc cosine in the range [0, +pi] radians.
  42. // acos(1) returns +0
  43. // acos(x) returns a Nan and raises the invalid exception for |x| >1
  44. // |x| <= sqrt(2)/2. get Ax and Bx
  45. // poly_p1 = x p1
  46. // poly_p3 = x2 p4 + p3
  47. // poly_p1 = x2 (poly_p1) + x = x2(x p1) + x
  48. // poly_p2 = x2( poly_p3) + p2 = x2(x2 p4 + p3) + p2
  49. // poly_Ax = x5(x2( poly_p3) + p2) + x2(x p1) + x
  50. // = x5(x2(x2 p4 + p3) + p2) + x2(x p1) + x
  51. // poly_p7 = x2 p8 + p7
  52. // poly_p5 = x2 p6 + p5
  53. // poly_p7 = x4 p9 + (x2 p8 + p7)
  54. // poly_Bx = x4 (x4 p9 + (x2 p8 + p7)) + x2 p6 + p5
  55. // sinf1 = x11(x4 (x4 p9 + (x2 p8 + p7)) + x2 p6 + p5) + x5(x2(x2 p4 + p3) + p2) + x2(x p1) + x
  56. // = x19 p9 + x17 p8 + x15 p7 x13 p6 + x11 p5 + x9 p4 + x7 p3 + x5 p2 + x3 p1 + x
  57. // answer1 = pi/2 - sinf1
  58. // |x| > sqrt(2)/2
  59. // Get z = sqrt(1-x2)
  60. // Get polynomial in t = 1-x2
  61. // t2 = t t
  62. // t4 = t2 t2
  63. // poly_p4 = t p5 + p4
  64. // poly_p1 = t p1 + 1
  65. // poly_p6 = t p7 + p6
  66. // poly_p2 = t p3 + p2
  67. // poly_p8 = t p9 + p8
  68. // poly_p4 = t2 poly_p6 + poly_p4
  69. // = t2 (t p7 + p6) + (t p5 + p4)
  70. // poly_p2 = t2 poly_p2 + poly_p1
  71. // = t2 (t p3 + p2) + (t p1 + 1)
  72. // poly_p4 = t4 poly_p8 + poly_p4
  73. // = t4 (t p9 + p8) + (t2 (t p7 + p6) + (t p5 + p4))
  74. // P(t) = poly_p2 + t4 poly_p8
  75. // = t2 (t p3 + p2) + (t p1 + 1) + t4 (t4 (t p9 + p8) + (t2 (t p7 + p6) + (t p5 + p4)))
  76. // = t3 p3 + t2 p2 + t p1 + 1 + t9 p9 + t8 p8 + t7 p7 + t6 p6 + t5 p5 + t4 p4
  77. // answer2 = sign(x) z P(t) if x>0
  78. // = sign(x) z P(t) + pi if x<0
  79. //
  80. // Assembly macros
  81. //=========================================
  82. // predicate registers
  83. //acosf_pred_LEsqrt2by2 = p7
  84. //acosf_pred_GTsqrt2by2 = p8
  85. // integer registers
  86. ACOSF_Addr1 = r33
  87. ACOSF_Addr2 = r34
  88. ACOSF_GR_1by2 = r35
  89. ACOSF_GR_3by2 = r36
  90. ACOSF_GR_5by2 = r37
  91. GR_SAVE_B0 = r38
  92. GR_SAVE_PFS = r39
  93. GR_SAVE_GP = r40
  94. GR_Parameter_X = r41
  95. GR_Parameter_Y = r42
  96. GR_Parameter_RESULT = r43
  97. GR_Parameter_TAG = r44
  98. // floating point registers
  99. acosf_y = f32
  100. acosf_abs_x = f33
  101. acosf_x2 = f34
  102. acosf_sgn_x = f35
  103. acosf_1by2 = f36
  104. acosf_3by2 = f37
  105. acosf_5by2 = f38
  106. acosf_coeff_P3 = f39
  107. acosf_coeff_P8 = f40
  108. acosf_coeff_P1 = f41
  109. acosf_coeff_P4 = f42
  110. acosf_coeff_P5 = f43
  111. acosf_coeff_P2 = f44
  112. acosf_coeff_P7 = f45
  113. acosf_coeff_P6 = f46
  114. acosf_coeff_P9 = f47
  115. acosf_x2 = f48
  116. acosf_x3 = f49
  117. acosf_x4 = f50
  118. acosf_x8 = f51
  119. acosf_x5 = f52
  120. acosf_const_piby2 = f53
  121. acosf_const_sqrt2by2 = f54
  122. acosf_x11 = f55
  123. acosf_poly_p1 = f56
  124. acosf_poly_p3 = f57
  125. acosf_sinf1 = f58
  126. acosf_poly_p2 = f59
  127. acosf_poly_Ax = f60
  128. acosf_poly_p7 = f61
  129. acosf_poly_p5 = f62
  130. acosf_sgnx_t4 = f63
  131. acosf_poly_Bx = f64
  132. acosf_t = f65
  133. acosf_yby2 = f66
  134. acosf_B = f67
  135. acosf_B2 = f68
  136. acosf_Az = f69
  137. acosf_dz = f70
  138. acosf_Sz = f71
  139. acosf_d2z = f72
  140. acosf_Fz = f73
  141. acosf_z = f74
  142. acosf_sgnx_z = f75
  143. acosf_t2 = f76
  144. acosf_2poly_p4 = f77
  145. acosf_2poly_p6 = f78
  146. acosf_2poly_p1 = f79
  147. acosf_2poly_p2 = f80
  148. acosf_2poly_p8 = f81
  149. acosf_t4 = f82
  150. acosf_Pt = f83
  151. acosf_sgnx_2poly_p2 = f84
  152. acosf_sgn_x_piby2 = f85
  153. acosf_poly_p7a = f86
  154. acosf_2poly_p4a = f87
  155. acosf_2poly_p4b = f88
  156. acosf_2poly_p2a = f89
  157. acosf_poly_p1a = f90
  158. // Data tables
  159. //==============================================================
  160. .data
  161. .align 16
  162. acosf_coeff_1_table:
  163. data8 0x3FC5555607DCF816 // P1
  164. data8 0x3F9CF81AD9BAB2C6 // P4
  165. data8 0x3FC59E0975074DF3 // P7
  166. data8 0xBFA6F4CC2780AA1D // P6
  167. data8 0x3FC2DD45292E93CB // P9
  168. data8 0x3fe6a09e667f3bcd // sqrt(2)/2
  169. acosf_coeff_2_table:
  170. data8 0x3FA6F108E31EFBA6 // P3
  171. data8 0xBFCA31BF175D82A0 // P8
  172. data8 0x3FA30C0337F6418B // P5
  173. data8 0x3FB332C9266CB1F9 // P2
  174. data8 0x3ff921fb54442d18 // pi_by_2
  175. .align 32
  176. .global acosf
  177. .section .text
  178. .proc acosf
  179. .align 32
  180. acosf:
  181. // Load the addresses of the two tables.
  182. // Then, load the coefficients and other constants.
  183. { .mfi
  184. alloc r32 = ar.pfs,1,8,4,0
  185. fnma.s1 acosf_t = f8,f8,f1
  186. dep.z ACOSF_GR_1by2 = 0x3f,24,8 // 0x3f000000
  187. }
  188. { .mfi
  189. addl ACOSF_Addr1 = @ltoff(acosf_coeff_1_table),gp
  190. fma.s1 acosf_x2 = f8,f8,f0
  191. addl ACOSF_Addr2 = @ltoff(acosf_coeff_2_table),gp ;;
  192. }
  193. { .mfi
  194. ld8 ACOSF_Addr1 = [ACOSF_Addr1]
  195. fmerge.s acosf_abs_x = f1,f8
  196. dep ACOSF_GR_3by2 = -1,r0,22,8 // 0x3fc00000
  197. }
  198. { .mlx
  199. nop.m 999
  200. movl ACOSF_GR_5by2 = 0x40200000;;
  201. }
  202. { .mfi
  203. setf.s acosf_1by2 = ACOSF_GR_1by2
  204. fmerge.s acosf_sgn_x = f8,f1
  205. nop.i 999
  206. }
  207. { .mfi
  208. ld8 ACOSF_Addr2 = [ACOSF_Addr2]
  209. nop.f 0
  210. nop.i 999;;
  211. }
  212. { .mfi
  213. setf.s acosf_5by2 = ACOSF_GR_5by2
  214. fcmp.lt.s1 p11,p12 = f8,f0
  215. nop.i 999;;
  216. }
  217. { .mmf
  218. ldfpd acosf_coeff_P1,acosf_coeff_P4 = [ACOSF_Addr1],16
  219. setf.s acosf_3by2 = ACOSF_GR_3by2
  220. fclass.m.unc p8,p0 = f8, 0xc3 ;; //@qnan | @snan
  221. }
  222. { .mfi
  223. ldfpd acosf_coeff_P7,acosf_coeff_P6 = [ACOSF_Addr1],16
  224. fma.s1 acosf_t2 = acosf_t,acosf_t,f0
  225. nop.i 999
  226. }
  227. { .mfi
  228. ldfpd acosf_coeff_P3,acosf_coeff_P8 = [ACOSF_Addr2],16
  229. fma.s1 acosf_x4 = acosf_x2,acosf_x2,f0
  230. nop.i 999;;
  231. }
  232. { .mfi
  233. ldfpd acosf_coeff_P9,acosf_const_sqrt2by2 = [ACOSF_Addr1]
  234. fclass.m.unc p10,p0 = f8, 0x07 //@zero
  235. nop.i 999
  236. }
  237. { .mfi
  238. ldfpd acosf_coeff_P5,acosf_coeff_P2 = [ACOSF_Addr2],16
  239. fma.s1 acosf_x3 = f8,acosf_x2,f0
  240. nop.i 999;;
  241. }
  242. { .mfi
  243. ldfd acosf_const_piby2 = [ACOSF_Addr2]
  244. frsqrta.s1 acosf_B,p0 = acosf_t
  245. nop.i 999
  246. }
  247. { .mfb
  248. nop.m 999
  249. (p8) fma.s f8 = f8,f1,f0
  250. (p8) br.ret.spnt b0 ;; // Exit if x=nan
  251. }
  252. { .mfb
  253. nop.m 999
  254. fcmp.eq.s1 p6,p0 = acosf_abs_x,f1
  255. (p10) br.cond.spnt ACOSF_ZERO ;; // Branch if x=0
  256. }
  257. { .mfi
  258. nop.m 999
  259. fcmp.gt.s1 p9,p0 = acosf_abs_x,f1
  260. nop.i 999;;
  261. }
  262. { .mfi
  263. nop.m 999
  264. fma.s1 acosf_x8 = acosf_x4,acosf_x4,f0
  265. nop.i 999
  266. }
  267. { .mfb
  268. nop.m 999
  269. fma.s1 acosf_t4 = acosf_t2,acosf_t2,f0
  270. (p6) br.cond.spnt ACOSF_ABS_ONE ;; // Branch if |x|=1
  271. }
  272. { .mfi
  273. nop.m 999
  274. fma.s1 acosf_x5 = acosf_x2,acosf_x3,f0
  275. nop.i 999
  276. }
  277. { .mfb
  278. (p9) mov GR_Parameter_TAG = 59
  279. fma.s1 acosf_yby2 = acosf_t,acosf_1by2,f0
  280. (p9) br.cond.spnt __libm_error_region ;; // Branch if |x|>1
  281. }
  282. { .mfi
  283. nop.m 999
  284. fma.s1 acosf_Az = acosf_t,acosf_B,f0
  285. nop.i 999
  286. }
  287. { .mfi
  288. nop.m 999
  289. fma.s1 acosf_B2 = acosf_B,acosf_B,f0
  290. nop.i 999;;
  291. }
  292. { .mfi
  293. nop.m 999
  294. fma.s1 acosf_poly_p1 = f8,acosf_coeff_P1,f0
  295. nop.i 999
  296. }
  297. { .mfi
  298. nop.m 999
  299. fma.s1 acosf_2poly_p1 = acosf_coeff_P1,acosf_t,f1
  300. nop.i 999;;
  301. }
  302. { .mfi
  303. nop.m 999
  304. fma.s1 acosf_poly_p3 = acosf_coeff_P4,acosf_x2,acosf_coeff_P3
  305. nop.i 999
  306. }
  307. { .mfi
  308. nop.m 999
  309. fma.s1 acosf_2poly_p6 = acosf_coeff_P7,acosf_t,acosf_coeff_P6
  310. nop.i 999;;
  311. }
  312. { .mfi
  313. nop.m 999
  314. fma.s1 acosf_poly_p7 = acosf_x2,acosf_coeff_P8,acosf_coeff_P7
  315. nop.i 999
  316. }
  317. { .mfi
  318. nop.m 999
  319. fma.s1 acosf_2poly_p2 = acosf_coeff_P3,acosf_t,acosf_coeff_P2
  320. nop.i 999;;
  321. }
  322. { .mfi
  323. nop.m 999
  324. fma.s1 acosf_poly_p5 = acosf_x2,acosf_coeff_P6,acosf_coeff_P5
  325. nop.i 999
  326. }
  327. { .mfi
  328. nop.m 999
  329. fma.s1 acosf_2poly_p4 = acosf_coeff_P5,acosf_t,acosf_coeff_P4
  330. nop.i 999;;
  331. }
  332. { .mfi
  333. nop.m 999
  334. fma.s1 acosf_x11 = acosf_x8,acosf_x3,f0
  335. nop.i 999
  336. }
  337. { .mfi
  338. nop.m 999
  339. fnma.s1 acosf_dz = acosf_B2,acosf_yby2,acosf_1by2
  340. nop.i 999;;
  341. }
  342. { .mfi
  343. nop.m 999
  344. fma.s1 acosf_poly_p1a = acosf_x2,acosf_poly_p1,f8
  345. nop.i 999
  346. }
  347. { .mfi
  348. nop.m 999
  349. fma.s1 acosf_2poly_p8 = acosf_coeff_P9,acosf_t,acosf_coeff_P8
  350. nop.i 999;;
  351. }
  352. // Get the absolute value of x and determine the region in which x lies
  353. { .mfi
  354. nop.m 999
  355. fcmp.le.s1 p7,p8 = acosf_abs_x,acosf_const_sqrt2by2
  356. nop.i 999
  357. }
  358. { .mfi
  359. nop.m 999
  360. fma.s1 acosf_poly_p2 = acosf_x2,acosf_poly_p3,acosf_coeff_P2
  361. nop.i 999;;
  362. }
  363. { .mfi
  364. nop.m 999
  365. fma.s1 acosf_poly_p7a = acosf_x4,acosf_coeff_P9,acosf_poly_p7
  366. nop.i 999
  367. }
  368. { .mfi
  369. nop.m 999
  370. fma.s1 acosf_2poly_p2a = acosf_2poly_p2,acosf_t2,acosf_2poly_p1
  371. nop.i 999;;
  372. }
  373. { .mfi
  374. nop.m 999
  375. (p8) fma.s1 acosf_sgnx_t4 = acosf_sgn_x,acosf_t4,f0
  376. nop.i 999
  377. }
  378. { .mfi
  379. nop.m 999
  380. (p8) fma.s1 acosf_2poly_p4a = acosf_2poly_p6,acosf_t2,acosf_2poly_p4
  381. nop.i 999;;
  382. }
  383. { .mfi
  384. nop.m 999
  385. (p8) fma.s1 acosf_Sz = acosf_5by2,acosf_dz,acosf_3by2
  386. nop.i 999
  387. }
  388. { .mfi
  389. nop.m 999
  390. (p8) fma.s1 acosf_d2z = acosf_dz,acosf_dz,f0
  391. nop.i 999;;
  392. }
  393. { .mfi
  394. nop.m 999
  395. (p8) fnma.d.s1 acosf_sgn_x_piby2 = acosf_sgn_x,acosf_const_piby2,acosf_const_piby2
  396. nop.i 999
  397. }
  398. { .mfi
  399. nop.m 999
  400. (p7) fma.s1 acosf_poly_Ax = acosf_x5,acosf_poly_p2,acosf_poly_p1a
  401. nop.i 999;;
  402. }
  403. { .mfi
  404. nop.m 999
  405. (p7) fma.s1 acosf_poly_Bx = acosf_x4,acosf_poly_p7a,acosf_poly_p5
  406. nop.i 999
  407. }
  408. { .mfi
  409. nop.m 999
  410. (p8) fma.s1 acosf_sgnx_2poly_p2 = acosf_sgn_x,acosf_2poly_p2a,f0
  411. nop.i 999;;
  412. }
  413. { .mfi
  414. nop.m 999
  415. fcmp.eq.s0 p6,p0 = f8,f0 // Only purpose is to set D if x denormal
  416. nop.i 999
  417. }
  418. { .mfi
  419. nop.m 999
  420. (p8) fma.s1 acosf_2poly_p4b = acosf_2poly_p8,acosf_t4,acosf_2poly_p4a
  421. nop.i 999;;
  422. }
  423. { .mfi
  424. nop.m 999
  425. (p8) fma.s1 acosf_Fz = acosf_d2z,acosf_Sz,acosf_dz
  426. nop.i 999;;
  427. }
  428. { .mfi
  429. nop.m 999
  430. (p8) fma.d.s1 acosf_Pt = acosf_2poly_p4b,acosf_sgnx_t4,acosf_sgnx_2poly_p2
  431. nop.i 999;;
  432. }
  433. { .mfi
  434. nop.m 999
  435. (p8) fma.d.s1 acosf_z = acosf_Az,acosf_Fz,acosf_Az
  436. nop.i 999 ;;
  437. }
  438. { .mfi
  439. nop.m 999
  440. (p7) fma.d.s1 acosf_sinf1 = acosf_x11,acosf_poly_Bx,acosf_poly_Ax
  441. nop.i 999;;
  442. }
  443. .pred.rel "mutex",p8,p7 //acosf_pred_GTsqrt2by2,acosf_pred_LEsqrt2by2
  444. { .mfi
  445. nop.m 999
  446. (p8) fma.s f8 = acosf_z,acosf_Pt,acosf_sgn_x_piby2
  447. nop.i 999
  448. }
  449. { .mfb
  450. nop.m 999
  451. (p7) fms.s f8 = acosf_const_piby2,f1,acosf_sinf1
  452. br.ret.sptk b0 ;;
  453. }
  454. ACOSF_ZERO:
  455. // Here if x=0
  456. { .mfb
  457. nop.m 999
  458. fma.s f8 = acosf_const_piby2,f1,f0 // acosf(0)=pi/2
  459. br.ret.sptk b0 ;;
  460. }
  461. .pred.rel "mutex",p11,p12
  462. ACOSF_ABS_ONE:
  463. // Here if |x|=1
  464. { .mfi
  465. nop.m 999
  466. (p11) fma.s f8 = acosf_const_piby2,f1,acosf_const_piby2 // acosf(-1)=pi
  467. nop.i 999
  468. }
  469. { .mfb
  470. nop.m 999
  471. (p12) fma.s f8 = f1,f0,f0 // acosf(1)=0
  472. br.ret.sptk b0 ;;
  473. }
  474. .endp acosf
  475. // Stack operations when calling error support.
  476. // (1) (2)
  477. // sp -> + psp -> +
  478. // | |
  479. // | | <- GR_Y
  480. // | |
  481. // | <-GR_Y Y2->|
  482. // | |
  483. // | | <- GR_X
  484. // | |
  485. // sp-64 -> + sp -> +
  486. // save ar.pfs save b0
  487. // save gp
  488. // Stack operations when calling error support.
  489. // (3) (call) (4)
  490. // psp -> + sp -> +
  491. // | |
  492. // R3 ->| <- GR_RESULT | -> f8
  493. // | |
  494. // Y2 ->| <- GR_Y |
  495. // | |
  496. // X1 ->| |
  497. // | |
  498. // sp -> + +
  499. // restore gp
  500. // restore ar.pfs
  501. .proc __libm_error_region
  502. __libm_error_region:
  503. .prologue
  504. { .mfi
  505. add GR_Parameter_Y=-32,sp // Parameter 2 value
  506. nop.f 999
  507. .save ar.pfs,GR_SAVE_PFS
  508. mov GR_SAVE_PFS=ar.pfs // Save ar.pfs
  509. }
  510. { .mfi
  511. .fframe 64
  512. add sp=-64,sp // Create new stack
  513. nop.f 0
  514. mov GR_SAVE_GP=gp // Save gp
  515. };;
  516. { .mmi
  517. stfs [GR_Parameter_Y] = f1,16 // Store Parameter 2 on stack
  518. add GR_Parameter_X = 16,sp // Parameter 1 address
  519. .save b0, GR_SAVE_B0
  520. mov GR_SAVE_B0=b0 // Save b0
  521. };;
  522. .body
  523. { .mfi
  524. nop.m 0
  525. frcpa.s0 f9,p0 = f0,f0
  526. nop.i 0
  527. };;
  528. { .mib
  529. stfs [GR_Parameter_X] = f8 // Store Parameter 1 on stack
  530. add GR_Parameter_RESULT = 0,GR_Parameter_Y
  531. nop.b 0 // Parameter 3 address
  532. }
  533. { .mib
  534. stfs [GR_Parameter_Y] = f9 // Store Parameter 3 on stack
  535. add GR_Parameter_Y = -16,GR_Parameter_Y
  536. br.call.sptk b0=__libm_error_support# // Call error handling function
  537. };;
  538. { .mmi
  539. nop.m 0
  540. nop.m 0
  541. add GR_Parameter_RESULT = 48,sp
  542. };;
  543. { .mmi
  544. ldfs f8 = [GR_Parameter_RESULT] // Get return result off stack
  545. .restore
  546. add sp = 64,sp // Restore stack pointer
  547. mov b0 = GR_SAVE_B0 // Restore return address
  548. };;
  549. { .mib
  550. mov gp = GR_SAVE_GP // Restore gp
  551. mov ar.pfs = GR_SAVE_PFS // Restore ar.pfs
  552. br.ret.sptk b0 // Return
  553. };;
  554. .endp __libm_error_region
  555. .type __libm_error_support#,@function
  556. .global __libm_error_support#