You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

xgemm3m_kernel_2x2.S 13 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. /*********************************************************************/
  2. /* Copyright 2009, 2010 The University of Texas at Austin. */
  3. /* All rights reserved. */
  4. /* */
  5. /* Redistribution and use in source and binary forms, with or */
  6. /* without modification, are permitted provided that the following */
  7. /* conditions are met: */
  8. /* */
  9. /* 1. Redistributions of source code must retain the above */
  10. /* copyright notice, this list of conditions and the following */
  11. /* disclaimer. */
  12. /* */
  13. /* 2. Redistributions in binary form must reproduce the above */
  14. /* copyright notice, this list of conditions and the following */
  15. /* disclaimer in the documentation and/or other materials */
  16. /* provided with the distribution. */
  17. /* */
  18. /* THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF TEXAS AT */
  19. /* AUSTIN ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, */
  20. /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
  21. /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
  22. /* DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF TEXAS AT */
  23. /* AUSTIN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, */
  24. /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */
  25. /* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE */
  26. /* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR */
  27. /* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
  28. /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
  29. /* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT */
  30. /* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
  31. /* POSSIBILITY OF SUCH DAMAGE. */
  32. /* */
  33. /* The views and conclusions contained in the software and */
  34. /* documentation are those of the authors and should not be */
  35. /* interpreted as representing official policies, either expressed */
  36. /* or implied, of The University of Texas at Austin. */
  37. /*********************************************************************/
  38. #define ASSEMBLER
  39. #include "common.h"
  40. #if defined(OPTERON) || defined(BARCELONA)
  41. #define PREFETCH prefetch
  42. #define PREFETCHW prefetchw
  43. #else
  44. #define PREFETCH prefetcht0
  45. #define PREFETCHW prefetcht0
  46. #endif
  47. #define PREFETCHSIZE (5 + 4 * 10)
  48. #define STACK 16
  49. #define ARGS 16
  50. #define J 0 + STACK(%esp)
  51. #define KK 4 + STACK(%esp)
  52. #define KKK 8 + STACK(%esp)
  53. #define M 4 + STACK + ARGS(%esp)
  54. #define N 8 + STACK + ARGS(%esp)
  55. #define K 12 + STACK + ARGS(%esp)
  56. #define ALPHA_R 16 + STACK + ARGS(%esp)
  57. #define ALPHA_I 32 + STACK + ARGS(%esp)
  58. #define A 48 + STACK + ARGS(%esp)
  59. #define ARG_B 52 + STACK + ARGS(%esp)
  60. #define C 56 + STACK + ARGS(%esp)
  61. #define ARG_LDC 60 + STACK + ARGS(%esp)
  62. #define I %esi
  63. #define B %ebx
  64. #define CO %edi
  65. #define AO %edx
  66. #define BO %ecx
  67. #define LDC %ebp
  68. #define PREFETCH_OFFSET 48
  69. PROLOGUE
  70. subl $ARGS, %esp # Generate Stack Frame
  71. pushl %ebp
  72. pushl %edi
  73. pushl %esi
  74. pushl %ebx
  75. PROFCODE
  76. #if defined(TRMMKERNEL) && !defined(LEFT)
  77. movl OFFSET, %eax
  78. negl %eax
  79. movl %eax, KK
  80. #endif
  81. movl ARG_LDC, LDC
  82. movl ARG_B, B
  83. addl $8 * SIZE, A
  84. addl $8 * SIZE, B
  85. sall $ZBASE_SHIFT, LDC
  86. movl N, %eax
  87. sarl $1, %eax
  88. movl %eax, J
  89. je .L30
  90. ALIGN_4
  91. .L01:
  92. #if defined(TRMMKERNEL) && defined(LEFT)
  93. movl OFFSET, %eax
  94. movl %eax, KK
  95. #endif
  96. movl A, AO
  97. movl C, CO
  98. lea (, LDC, 2), %eax
  99. addl %eax, C
  100. movl M, I
  101. sarl $1, I
  102. je .L20
  103. ALIGN_4
  104. .L11:
  105. #if !defined(TRMMKERNEL) || \
  106. (defined(TRMMKERNEL) && defined(LEFT) && defined(TRANSA)) || \
  107. (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
  108. movl B, BO
  109. #else
  110. movl KK, %eax
  111. sall $BASE_SHIFT, %eax
  112. leal (AO, %eax, 2), AO
  113. leal (B, %eax, 2), BO
  114. #endif
  115. fldz
  116. fldz
  117. fldz
  118. fldz
  119. #if defined(HAVE_3DNOW)
  120. prefetchw 2 * SIZE(CO)
  121. prefetchw 2 * SIZE(CO, LDC, 1)
  122. #elif defined(HAVE_SSE)
  123. prefetchnta 2 * SIZE(CO)
  124. prefetchnta 2 * SIZE(CO, LDC, 1)
  125. #endif
  126. #ifndef TRMMKERNEL
  127. movl K, %eax
  128. #elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
  129. movl K, %eax
  130. subl KK, %eax
  131. movl %eax, KKK
  132. #else
  133. movl KK, %eax
  134. #ifdef LEFT
  135. addl $2, %eax
  136. #else
  137. addl $2, %eax
  138. #endif
  139. movl %eax, KKK
  140. #endif
  141. sarl $2, %eax
  142. je .L15
  143. ALIGN_4
  144. .L12:
  145. PREFETCH (PREFETCHSIZE + 0) * SIZE(AO)
  146. FLD -8 * SIZE(AO)
  147. FLD -8 * SIZE(BO)
  148. fld %st(1)
  149. fmul %st(1), %st
  150. faddp %st, %st(3)
  151. FLD -7 * SIZE(BO)
  152. fmul %st, %st(2)
  153. FLD -7 * SIZE(AO)
  154. fmul %st, %st(2)
  155. fmulp %st, %st(1)
  156. faddp %st, %st(6)
  157. faddp %st, %st(3)
  158. faddp %st, %st(3)
  159. FLD -6 * SIZE(AO)
  160. FLD -6 * SIZE(BO)
  161. fld %st(1)
  162. fmul %st(1), %st
  163. faddp %st, %st(3)
  164. FLD -5 * SIZE(BO)
  165. fmul %st, %st(2)
  166. FLD -5 * SIZE(AO)
  167. fmul %st, %st(2)
  168. fmulp %st, %st(1)
  169. faddp %st, %st(6)
  170. faddp %st, %st(3)
  171. faddp %st, %st(3)
  172. PREFETCH (PREFETCHSIZE + 4) * SIZE(AO)
  173. FLD -4 * SIZE(AO)
  174. FLD -4 * SIZE(BO)
  175. fld %st(1)
  176. fmul %st(1), %st
  177. faddp %st, %st(3)
  178. FLD -3 * SIZE(BO)
  179. fmul %st, %st(2)
  180. FLD -3 * SIZE(AO)
  181. fmul %st, %st(2)
  182. fmulp %st, %st(1)
  183. faddp %st, %st(6)
  184. faddp %st, %st(3)
  185. faddp %st, %st(3)
  186. FLD -2 * SIZE(AO)
  187. FLD -2 * SIZE(BO)
  188. fld %st(1)
  189. fmul %st(1), %st
  190. faddp %st, %st(3)
  191. FLD -1 * SIZE(BO)
  192. fmul %st, %st(2)
  193. FLD -1 * SIZE(AO)
  194. fmul %st, %st(2)
  195. fmulp %st, %st(1)
  196. faddp %st, %st(6)
  197. faddp %st, %st(3)
  198. faddp %st, %st(3)
  199. addl $8 * SIZE,AO
  200. addl $8 * SIZE,BO
  201. decl %eax
  202. jne .L12
  203. ALIGN_4
  204. .L15:
  205. #ifndef TRMMKERNEL
  206. movl K, %eax
  207. #else
  208. movl KKK, %eax
  209. #endif
  210. and $3, %eax
  211. je .L18
  212. ALIGN_4
  213. .L16:
  214. FLD -8 * SIZE(AO)
  215. FLD -8 * SIZE(BO)
  216. fld %st(1)
  217. fmul %st(1), %st
  218. faddp %st, %st(3)
  219. FLD -7 * SIZE(BO)
  220. fmul %st, %st(2)
  221. FLD -7 * SIZE(AO)
  222. fmul %st, %st(2)
  223. fmulp %st, %st(1)
  224. faddp %st, %st(6)
  225. faddp %st, %st(3)
  226. faddp %st, %st(3)
  227. addl $2 * SIZE,AO
  228. addl $2 * SIZE,BO
  229. decl %eax
  230. jne .L16
  231. ALIGN_4
  232. .L18:
  233. FLD ALPHA_I
  234. FLD ALPHA_R
  235. fld %st(2)
  236. fmul %st(1), %st
  237. FLD 0 * SIZE(CO)
  238. faddp %st, %st(1)
  239. FST 0 * SIZE(CO)
  240. fld %st(3)
  241. fmul %st(1), %st
  242. FLD 2 * SIZE(CO)
  243. faddp %st, %st(1)
  244. FST 2 * SIZE(CO)
  245. fld %st(4)
  246. fmul %st(1), %st
  247. FLD 0 * SIZE(CO, LDC)
  248. faddp %st, %st(1)
  249. FST 0 * SIZE(CO, LDC)
  250. fmul %st(5), %st
  251. FLD 2 * SIZE(CO, LDC)
  252. faddp %st, %st(1)
  253. FST 2 * SIZE(CO, LDC)
  254. fmul %st, %st(1)
  255. fmul %st, %st(2)
  256. fmul %st, %st(3)
  257. fmulp %st, %st(4)
  258. FLD 1 * SIZE(CO)
  259. faddp %st, %st(1)
  260. FST 1 * SIZE(CO)
  261. FLD 3 * SIZE(CO)
  262. faddp %st, %st(1)
  263. FST 3 * SIZE(CO)
  264. FLD 1 * SIZE(CO, LDC)
  265. faddp %st, %st(1)
  266. FST 1 * SIZE(CO, LDC)
  267. FLD 3 * SIZE(CO, LDC)
  268. faddp %st, %st(1)
  269. FST 3 * SIZE(CO, LDC)
  270. addl $4 * SIZE, CO
  271. decl I
  272. jne .L11
  273. ALIGN_4
  274. .L20:
  275. movl M, %eax
  276. andl $1, %eax
  277. je .L29
  278. ALIGN_4
  279. .L21:
  280. #if !defined(TRMMKERNEL) || \
  281. (defined(TRMMKERNEL) && defined(LEFT) && defined(TRANSA)) || \
  282. (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
  283. movl B, BO
  284. #else
  285. movl KK, %eax
  286. sall $BASE_SHIFT, %eax
  287. leal (AO, %eax, 1), AO
  288. leal ( B, %eax, 2), BO
  289. #endif
  290. fldz
  291. fldz
  292. #ifndef TRMMKERNEL
  293. movl K, %eax
  294. #elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
  295. movl K, %eax
  296. subl KK, %eax
  297. movl %eax, KKK
  298. #else
  299. movl KK, %eax
  300. #ifdef LEFT
  301. addl $1, %eax
  302. #else
  303. addl $2, %eax
  304. #endif
  305. movl %eax, KKK
  306. #endif
  307. sarl $2, %eax
  308. je .L25
  309. ALIGN_4
  310. .L22:
  311. PREFETCH (PREFETCHSIZE + 0) * SIZE(AO)
  312. FLD -8 * SIZE(AO)
  313. FLD -8 * SIZE(BO)
  314. fmul %st(1), %st
  315. faddp %st, %st(2)
  316. FLD -7 * SIZE(BO)
  317. fmulp %st, %st(1)
  318. faddp %st, %st(2)
  319. FLD -7 * SIZE(AO)
  320. FLD -6 * SIZE(BO)
  321. fmul %st(1), %st
  322. faddp %st, %st(2)
  323. FLD -5 * SIZE(BO)
  324. fmulp %st, %st(1)
  325. faddp %st, %st(2)
  326. FLD -6 * SIZE(AO)
  327. FLD -4 * SIZE(BO)
  328. fmul %st(1), %st
  329. faddp %st, %st(2)
  330. FLD -3 * SIZE(BO)
  331. fmulp %st, %st(1)
  332. faddp %st, %st(2)
  333. FLD -5 * SIZE(AO)
  334. FLD -2 * SIZE(BO)
  335. fmul %st(1), %st
  336. faddp %st, %st(2)
  337. FLD -1 * SIZE(BO)
  338. fmulp %st, %st(1)
  339. faddp %st, %st(2)
  340. addl $4 * SIZE,AO
  341. addl $8 * SIZE,BO
  342. decl %eax
  343. jne .L22
  344. ALIGN_4
  345. .L25:
  346. #ifndef TRMMKERNEL
  347. movl K, %eax
  348. #else
  349. movl KKK, %eax
  350. #endif
  351. and $3, %eax
  352. je .L28
  353. ALIGN_4
  354. .L26:
  355. FLD -8 * SIZE(AO)
  356. FLD -8 * SIZE(BO)
  357. fmul %st(1), %st
  358. faddp %st, %st(2)
  359. FLD -7 * SIZE(BO)
  360. fmulp %st, %st(1)
  361. faddp %st, %st(2)
  362. addl $1 * SIZE,AO
  363. addl $2 * SIZE,BO
  364. decl %eax
  365. jne .L26
  366. ALIGN_4
  367. .L28:
  368. FLD ALPHA_I
  369. FLD ALPHA_R
  370. fld %st(2)
  371. fmul %st(1), %st
  372. FLD 0 * SIZE(CO)
  373. faddp %st, %st(1)
  374. FST 0 * SIZE(CO)
  375. fmul %st(3), %st
  376. FLD 0 * SIZE(CO, LDC)
  377. faddp %st, %st(1)
  378. FST 0 * SIZE(CO, LDC)
  379. fmul %st, %st(1)
  380. fmulp %st, %st(2)
  381. FLD 1 * SIZE(CO)
  382. faddp %st, %st(1)
  383. FST 1 * SIZE(CO)
  384. FLD 1 * SIZE(CO, LDC)
  385. faddp %st, %st(1)
  386. FST 1 * SIZE(CO, LDC)
  387. ALIGN_4
  388. .L29:
  389. #if defined(TRMMKERNEL) && !defined(LEFT)
  390. addl $2, KK
  391. #endif
  392. movl BO, B
  393. decl J
  394. jne .L01
  395. ALIGN_4
  396. .L30:
  397. movl N, %eax
  398. testl $1, %eax
  399. je .L999
  400. #if defined(TRMMKERNEL) && defined(LEFT)
  401. movl OFFSET, %eax
  402. movl %eax, KK
  403. #endif
  404. movl A, AO
  405. movl C, CO
  406. addl LDC, C
  407. movl M, I
  408. sarl $1, I
  409. je .L40
  410. ALIGN_4
  411. .L31:
  412. #if !defined(TRMMKERNEL) || \
  413. (defined(TRMMKERNEL) && defined(LEFT) && defined(TRANSA)) || \
  414. (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
  415. movl B, BO
  416. #else
  417. movl KK, %eax
  418. sall $BASE_SHIFT, %eax
  419. leal (AO, %eax, 2), AO
  420. leal ( B, %eax, 1), BO
  421. #endif
  422. fldz
  423. fldz
  424. #if defined(HAVE_3DNOW)
  425. prefetchw 2 * SIZE(CO)
  426. #elif defined(HAVE_SSE)
  427. prefetchnta 2 * SIZE(CO)
  428. #endif
  429. #ifndef TRMMKERNEL
  430. movl K, %eax
  431. #elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
  432. movl K, %eax
  433. subl KK, %eax
  434. movl %eax, KKK
  435. #else
  436. movl KK, %eax
  437. #ifdef LEFT
  438. addl $2, %eax
  439. #else
  440. addl $1, %eax
  441. #endif
  442. movl %eax, KKK
  443. #endif
  444. sarl $2, %eax
  445. je .L35
  446. ALIGN_4
  447. .L32:
  448. PREFETCH (PREFETCHSIZE + 0) * SIZE(AO)
  449. FLD -8 * SIZE(BO)
  450. FLD -8 * SIZE(AO)
  451. fmul %st(1), %st
  452. faddp %st, %st(2)
  453. FLD -7 * SIZE(AO)
  454. fmulp %st, %st(1)
  455. faddp %st, %st(2)
  456. FLD -7 * SIZE(BO)
  457. FLD -6 * SIZE(AO)
  458. fmul %st(1), %st
  459. faddp %st, %st(2)
  460. FLD -5 * SIZE(AO)
  461. fmulp %st, %st(1)
  462. faddp %st, %st(2)
  463. FLD -6 * SIZE(BO)
  464. FLD -4 * SIZE(AO)
  465. fmul %st(1), %st
  466. faddp %st, %st(2)
  467. FLD -3 * SIZE(AO)
  468. fmulp %st, %st(1)
  469. faddp %st, %st(2)
  470. FLD -5 * SIZE(BO)
  471. FLD -2 * SIZE(AO)
  472. fmul %st(1), %st
  473. faddp %st, %st(2)
  474. FLD -1 * SIZE(AO)
  475. fmulp %st, %st(1)
  476. faddp %st, %st(2)
  477. addl $8 * SIZE,AO
  478. addl $4 * SIZE,BO
  479. decl %eax
  480. jne .L32
  481. ALIGN_4
  482. .L35:
  483. #ifndef TRMMKERNEL
  484. movl K, %eax
  485. #else
  486. movl KKK, %eax
  487. #endif
  488. and $3, %eax
  489. je .L38
  490. ALIGN_4
  491. .L36:
  492. FLD -8 * SIZE(BO)
  493. FLD -8 * SIZE(AO)
  494. fmul %st(1), %st
  495. faddp %st, %st(2)
  496. FLD -7 * SIZE(AO)
  497. fmulp %st, %st(1)
  498. faddp %st, %st(2)
  499. addl $2 * SIZE,AO
  500. addl $1 * SIZE,BO
  501. decl %eax
  502. jne .L36
  503. ALIGN_4
  504. .L38:
  505. FLD ALPHA_I
  506. FLD ALPHA_R
  507. fld %st(2)
  508. fmul %st(1), %st
  509. FLD 0 * SIZE(CO)
  510. faddp %st, %st(1)
  511. FST 0 * SIZE(CO)
  512. fmul %st(3), %st
  513. FLD 2 * SIZE(CO)
  514. faddp %st, %st(1)
  515. FST 2 * SIZE(CO)
  516. fmul %st, %st(1)
  517. fmulp %st, %st(2)
  518. FLD 1 * SIZE(CO)
  519. faddp %st, %st(1)
  520. FST 1 * SIZE(CO)
  521. FLD 3 * SIZE(CO)
  522. faddp %st, %st(1)
  523. FST 3 * SIZE(CO)
  524. addl $4 * SIZE, CO
  525. decl I
  526. jne .L31
  527. ALIGN_4
  528. .L40:
  529. movl M, %eax
  530. andl $1, %eax
  531. je .L49
  532. ALIGN_4
  533. .L41:
  534. #if !defined(TRMMKERNEL) || \
  535. (defined(TRMMKERNEL) && defined(LEFT) && defined(TRANSA)) || \
  536. (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
  537. movl B, BO
  538. #else
  539. movl KK, %eax
  540. sall $BASE_SHIFT, %eax
  541. leal (AO, %eax, 1), AO
  542. leal ( B, %eax, 1), BO
  543. #endif
  544. fldz
  545. #ifndef TRMMKERNEL
  546. movl K, %eax
  547. #elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
  548. movl K, %eax
  549. subl KK, %eax
  550. movl %eax, KKK
  551. #else
  552. movl KK, %eax
  553. #ifdef LEFT
  554. addl $1, %eax
  555. #else
  556. addl $1, %eax
  557. #endif
  558. movl %eax, KKK
  559. #endif
  560. sarl $2, %eax
  561. je .L45
  562. ALIGN_4
  563. .L42:
  564. PREFETCH (PREFETCHSIZE + 0) * SIZE(AO)
  565. FLD -8 * SIZE(AO)
  566. FLD -8 * SIZE(BO)
  567. fmulp %st, %st(1)
  568. faddp %st, %st(1)
  569. FLD -7 * SIZE(AO)
  570. FLD -7 * SIZE(BO)
  571. fmulp %st, %st(1)
  572. faddp %st, %st(1)
  573. FLD -6 * SIZE(AO)
  574. FLD -6 * SIZE(BO)
  575. fmulp %st, %st(1)
  576. faddp %st, %st(1)
  577. FLD -5 * SIZE(AO)
  578. FLD -5 * SIZE(BO)
  579. fmulp %st, %st(1)
  580. faddp %st, %st(1)
  581. addl $4 * SIZE,AO
  582. addl $4 * SIZE,BO
  583. decl %eax
  584. jne .L42
  585. ALIGN_4
  586. .L45:
  587. #ifndef TRMMKERNEL
  588. movl K, %eax
  589. #else
  590. movl KKK, %eax
  591. #endif
  592. and $3, %eax
  593. je .L48
  594. ALIGN_4
  595. .L46:
  596. FLD -8 * SIZE(AO)
  597. FLD -8 * SIZE(BO)
  598. fmulp %st, %st(1)
  599. faddp %st, %st(1)
  600. addl $1 * SIZE,AO
  601. addl $1 * SIZE,BO
  602. decl %eax
  603. jne .L46
  604. ALIGN_4
  605. .L48:
  606. FLD ALPHA_I
  607. FLD ALPHA_R
  608. fmul %st(2), %st
  609. FLD 0 * SIZE(CO)
  610. faddp %st, %st(1)
  611. FST 0 * SIZE(CO)
  612. fmulp %st(1), %st
  613. FLD 1 * SIZE(CO)
  614. faddp %st, %st(1)
  615. FST 1 * SIZE(CO)
  616. ALIGN_4
  617. .L49:
  618. #if defined(TRMMKERNEL) && !defined(LEFT)
  619. addl $1, KK
  620. #endif
  621. movl BO, B
  622. ALIGN_4
  623. .L999:
  624. popl %ebx
  625. popl %esi
  626. popl %edi
  627. popl %ebp
  628. addl $ARGS, %esp
  629. ret
  630. EPILOGUE