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.

zcopy_sse2.S 13 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  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. #define M ARG1 /* rdi */
  41. #define X ARG2 /* rsi */
  42. #define INCX ARG3 /* rdx */
  43. #define Y ARG4 /* rcx */
  44. #ifndef WINDOWS_ABI
  45. #define INCY ARG5 /* r8 */
  46. #else
  47. #define INCY %r10
  48. #endif
  49. #include "l1param.h"
  50. #ifdef OPTERON
  51. #define LOAD(OFFSET, ADDR, REG) xorps REG, REG; addpd OFFSET(ADDR), REG
  52. #else
  53. #define LOAD(OFFSET, ADDR, REG) movaps OFFSET(ADDR), REG
  54. #endif
  55. PROLOGUE
  56. PROFCODE
  57. #ifdef WINDOWS_ABI
  58. movq 40(%rsp), INCY
  59. #endif
  60. SAVEREGISTERS
  61. salq $ZBASE_SHIFT, INCX
  62. salq $ZBASE_SHIFT, INCY
  63. cmpq $2 * SIZE, INCX
  64. jne .L50
  65. cmpq $2 * SIZE, INCY
  66. jne .L50
  67. addq M, M
  68. #ifdef ALIGNED_ACCESS
  69. testq $SIZE, Y
  70. #else
  71. testq $SIZE, X
  72. #endif
  73. je .L10
  74. movsd (X), %xmm0
  75. movsd %xmm0, (Y)
  76. addq $1 * SIZE, X
  77. addq $1 * SIZE, Y
  78. decq M
  79. jle .L19
  80. ALIGN_4
  81. .L10:
  82. subq $-16 * SIZE, X
  83. subq $-16 * SIZE, Y
  84. #ifdef ALIGNED_ACCESS
  85. testq $SIZE, X
  86. #else
  87. testq $SIZE, Y
  88. #endif
  89. jne .L20
  90. movq M, %rax
  91. sarq $4, %rax
  92. jle .L13
  93. movaps -16 * SIZE(X), %xmm0
  94. movaps -14 * SIZE(X), %xmm1
  95. movaps -12 * SIZE(X), %xmm2
  96. movaps -10 * SIZE(X), %xmm3
  97. movaps -8 * SIZE(X), %xmm4
  98. movaps -6 * SIZE(X), %xmm5
  99. movaps -4 * SIZE(X), %xmm6
  100. movaps -2 * SIZE(X), %xmm7
  101. decq %rax
  102. jle .L12
  103. ALIGN_3
  104. .L11:
  105. #ifdef PREFETCHW
  106. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  107. #endif
  108. movaps %xmm0, -16 * SIZE(Y)
  109. LOAD( 0 * SIZE, X, %xmm0)
  110. movaps %xmm1, -14 * SIZE(Y)
  111. LOAD( 2 * SIZE, X, %xmm1)
  112. #ifdef PREFETCH
  113. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  114. #endif
  115. movaps %xmm2, -12 * SIZE(Y)
  116. LOAD( 4 * SIZE, X, %xmm2)
  117. movaps %xmm3, -10 * SIZE(Y)
  118. LOAD( 6 * SIZE, X, %xmm3)
  119. #if defined(PREFETCHW) && !defined(FETCH128)
  120. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  121. #endif
  122. movaps %xmm4, -8 * SIZE(Y)
  123. LOAD( 8 * SIZE, X, %xmm4)
  124. movaps %xmm5, -6 * SIZE(Y)
  125. LOAD(10 * SIZE, X, %xmm5)
  126. #if defined(PREFETCH) && !defined(FETCH128)
  127. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  128. #endif
  129. movaps %xmm6, -4 * SIZE(Y)
  130. LOAD(12 * SIZE, X, %xmm6)
  131. movaps %xmm7, -2 * SIZE(Y)
  132. LOAD(14 * SIZE, X, %xmm7)
  133. subq $-16 * SIZE, Y
  134. subq $-16 * SIZE, X
  135. decq %rax
  136. jg .L11
  137. ALIGN_3
  138. .L12:
  139. movaps %xmm0, -16 * SIZE(Y)
  140. movaps %xmm1, -14 * SIZE(Y)
  141. movaps %xmm2, -12 * SIZE(Y)
  142. movaps %xmm3, -10 * SIZE(Y)
  143. movaps %xmm4, -8 * SIZE(Y)
  144. movaps %xmm5, -6 * SIZE(Y)
  145. movaps %xmm6, -4 * SIZE(Y)
  146. movaps %xmm7, -2 * SIZE(Y)
  147. subq $-16 * SIZE, Y
  148. subq $-16 * SIZE, X
  149. ALIGN_3
  150. .L13:
  151. testq $8, M
  152. jle .L14
  153. ALIGN_3
  154. movaps -16 * SIZE(X), %xmm0
  155. movaps -14 * SIZE(X), %xmm1
  156. movaps -12 * SIZE(X), %xmm2
  157. movaps -10 * SIZE(X), %xmm3
  158. movaps %xmm0, -16 * SIZE(Y)
  159. movaps %xmm1, -14 * SIZE(Y)
  160. movaps %xmm2, -12 * SIZE(Y)
  161. movaps %xmm3, -10 * SIZE(Y)
  162. addq $8 * SIZE, X
  163. addq $8 * SIZE, Y
  164. ALIGN_3
  165. .L14:
  166. testq $4, M
  167. jle .L15
  168. ALIGN_3
  169. movaps -16 * SIZE(X), %xmm0
  170. movaps -14 * SIZE(X), %xmm1
  171. movaps %xmm0, -16 * SIZE(Y)
  172. movaps %xmm1, -14 * SIZE(Y)
  173. addq $4 * SIZE, X
  174. addq $4 * SIZE, Y
  175. ALIGN_3
  176. .L15:
  177. testq $2, M
  178. jle .L16
  179. ALIGN_3
  180. movaps -16 * SIZE(X), %xmm0
  181. movaps %xmm0, -16 * SIZE(Y)
  182. addq $2 * SIZE, X
  183. addq $2 * SIZE, Y
  184. ALIGN_3
  185. .L16:
  186. testq $1, M
  187. jle .L19
  188. ALIGN_3
  189. movsd -16 * SIZE(X), %xmm0
  190. movsd %xmm0, -16 * SIZE(Y)
  191. ALIGN_3
  192. .L19:
  193. xorq %rax,%rax
  194. RESTOREREGISTERS
  195. ret
  196. ALIGN_3
  197. .L20:
  198. #ifdef ALIGNED_ACCESS
  199. movhps -16 * SIZE(X), %xmm0
  200. movq M, %rax
  201. sarq $4, %rax
  202. jle .L23
  203. movaps -15 * SIZE(X), %xmm1
  204. movaps -13 * SIZE(X), %xmm2
  205. movaps -11 * SIZE(X), %xmm3
  206. movaps -9 * SIZE(X), %xmm4
  207. movaps -7 * SIZE(X), %xmm5
  208. movaps -5 * SIZE(X), %xmm6
  209. movaps -3 * SIZE(X), %xmm7
  210. decq %rax
  211. jle .L22
  212. ALIGN_4
  213. .L21:
  214. #ifdef PREFETCHW
  215. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  216. #endif
  217. SHUFPD_1 %xmm1, %xmm0
  218. movaps %xmm0, -16 * SIZE(Y)
  219. LOAD(-1 * SIZE, X, %xmm0)
  220. SHUFPD_1 %xmm2, %xmm1
  221. movaps %xmm1, -14 * SIZE(Y)
  222. LOAD( 1 * SIZE, X, %xmm1)
  223. #ifdef PREFETCH
  224. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  225. #endif
  226. SHUFPD_1 %xmm3, %xmm2
  227. movaps %xmm2, -12 * SIZE(Y)
  228. LOAD( 3 * SIZE, X, %xmm2)
  229. SHUFPD_1 %xmm4, %xmm3
  230. movaps %xmm3, -10 * SIZE(Y)
  231. LOAD( 5 * SIZE, X, %xmm3)
  232. #if defined(PREFETCHW) && !defined(FETCH128)
  233. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  234. #endif
  235. SHUFPD_1 %xmm5, %xmm4
  236. movaps %xmm4, -8 * SIZE(Y)
  237. LOAD( 7 * SIZE, X, %xmm4)
  238. SHUFPD_1 %xmm6, %xmm5
  239. movaps %xmm5, -6 * SIZE(Y)
  240. LOAD( 9 * SIZE, X, %xmm5)
  241. #if defined(PREFETCH) && !defined(FETCH128)
  242. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  243. #endif
  244. SHUFPD_1 %xmm7, %xmm6
  245. movaps %xmm6, -4 * SIZE(Y)
  246. LOAD(11 * SIZE, X, %xmm6)
  247. SHUFPD_1 %xmm0, %xmm7
  248. movaps %xmm7, -2 * SIZE(Y)
  249. LOAD(13 * SIZE, X, %xmm7)
  250. subq $-16 * SIZE, X
  251. subq $-16 * SIZE, Y
  252. decq %rax
  253. jg .L21
  254. ALIGN_3
  255. .L22:
  256. SHUFPD_1 %xmm1, %xmm0
  257. movaps %xmm0, -16 * SIZE(Y)
  258. LOAD(-1 * SIZE, X, %xmm0)
  259. SHUFPD_1 %xmm2, %xmm1
  260. movaps %xmm1, -14 * SIZE(Y)
  261. SHUFPD_1 %xmm3, %xmm2
  262. movaps %xmm2, -12 * SIZE(Y)
  263. SHUFPD_1 %xmm4, %xmm3
  264. movaps %xmm3, -10 * SIZE(Y)
  265. SHUFPD_1 %xmm5, %xmm4
  266. movaps %xmm4, -8 * SIZE(Y)
  267. SHUFPD_1 %xmm6, %xmm5
  268. movaps %xmm5, -6 * SIZE(Y)
  269. SHUFPD_1 %xmm7, %xmm6
  270. movaps %xmm6, -4 * SIZE(Y)
  271. SHUFPD_1 %xmm0, %xmm7
  272. movaps %xmm7, -2 * SIZE(Y)
  273. subq $-16 * SIZE, X
  274. subq $-16 * SIZE, Y
  275. ALIGN_3
  276. .L23:
  277. testq $8, M
  278. jle .L24
  279. ALIGN_3
  280. movaps -15 * SIZE(X), %xmm1
  281. movaps -13 * SIZE(X), %xmm2
  282. movaps -11 * SIZE(X), %xmm3
  283. movaps -9 * SIZE(X), %xmm8
  284. SHUFPD_1 %xmm1, %xmm0
  285. movaps %xmm0, -16 * SIZE(Y)
  286. SHUFPD_1 %xmm2, %xmm1
  287. movaps %xmm1, -14 * SIZE(Y)
  288. SHUFPD_1 %xmm3, %xmm2
  289. movaps %xmm2, -12 * SIZE(Y)
  290. SHUFPD_1 %xmm8, %xmm3
  291. movaps %xmm3, -10 * SIZE(Y)
  292. movaps %xmm8, %xmm0
  293. addq $8 * SIZE, X
  294. addq $8 * SIZE, Y
  295. ALIGN_3
  296. .L24:
  297. testq $4, M
  298. jle .L25
  299. ALIGN_3
  300. movaps -15 * SIZE(X), %xmm1
  301. movaps -13 * SIZE(X), %xmm2
  302. SHUFPD_1 %xmm1, %xmm0
  303. SHUFPD_1 %xmm2, %xmm1
  304. movaps %xmm0, -16 * SIZE(Y)
  305. movaps %xmm1, -14 * SIZE(Y)
  306. movaps %xmm2, %xmm0
  307. addq $4 * SIZE, X
  308. addq $4 * SIZE, Y
  309. ALIGN_3
  310. .L25:
  311. testq $2, M
  312. jle .L26
  313. ALIGN_3
  314. movaps -15 * SIZE(X), %xmm1
  315. SHUFPD_1 %xmm1, %xmm0
  316. movaps %xmm0, -16 * SIZE(Y)
  317. addq $2 * SIZE, X
  318. addq $2 * SIZE, Y
  319. ALIGN_3
  320. .L26:
  321. testq $1, M
  322. jle .L29
  323. ALIGN_3
  324. movsd -16 * SIZE(X), %xmm0
  325. movsd %xmm0, -16 * SIZE(Y)
  326. ALIGN_3
  327. .L29:
  328. xorq %rax,%rax
  329. RESTOREREGISTERS
  330. ret
  331. ALIGN_3
  332. #else
  333. movq M, %rax
  334. sarq $4, %rax
  335. jle .L23
  336. movaps -16 * SIZE(X), %xmm0
  337. movaps -14 * SIZE(X), %xmm1
  338. movaps -12 * SIZE(X), %xmm2
  339. movaps -10 * SIZE(X), %xmm3
  340. movaps -8 * SIZE(X), %xmm4
  341. movaps -6 * SIZE(X), %xmm5
  342. movaps -4 * SIZE(X), %xmm6
  343. movaps -2 * SIZE(X), %xmm7
  344. decq %rax
  345. jle .L22
  346. ALIGN_3
  347. .L21:
  348. #ifdef PREFETCHW
  349. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  350. #endif
  351. movlps %xmm0, -16 * SIZE(Y)
  352. movhps %xmm0, -15 * SIZE(Y)
  353. LOAD( 0 * SIZE, X, %xmm0)
  354. movlps %xmm1, -14 * SIZE(Y)
  355. movhps %xmm1, -13 * SIZE(Y)
  356. LOAD( 2 * SIZE, X, %xmm1)
  357. #ifdef PREFETCH
  358. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  359. #endif
  360. movlps %xmm2, -12 * SIZE(Y)
  361. movhps %xmm2, -11 * SIZE(Y)
  362. LOAD( 4 * SIZE, X, %xmm2)
  363. movlps %xmm3, -10 * SIZE(Y)
  364. movhps %xmm3, -9 * SIZE(Y)
  365. LOAD( 6 * SIZE, X, %xmm3)
  366. #if defined(PREFETCHW) && !defined(FETCH128)
  367. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  368. #endif
  369. movlps %xmm4, -8 * SIZE(Y)
  370. movhps %xmm4, -7 * SIZE(Y)
  371. LOAD( 8 * SIZE, X, %xmm4)
  372. movlps %xmm5, -6 * SIZE(Y)
  373. movhps %xmm5, -5 * SIZE(Y)
  374. LOAD(10 * SIZE, X, %xmm5)
  375. #if defined(PREFETCH) && !defined(FETCH128)
  376. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  377. #endif
  378. movlps %xmm6, -4 * SIZE(Y)
  379. movhps %xmm6, -3 * SIZE(Y)
  380. LOAD(12 * SIZE, X, %xmm6)
  381. movlps %xmm7, -2 * SIZE(Y)
  382. movhps %xmm7, -1 * SIZE(Y)
  383. LOAD(14 * SIZE, X, %xmm7)
  384. subq $-16 * SIZE, Y
  385. subq $-16 * SIZE, X
  386. decq %rax
  387. jg .L21
  388. ALIGN_3
  389. .L22:
  390. movlps %xmm0, -16 * SIZE(Y)
  391. movhps %xmm0, -15 * SIZE(Y)
  392. movlps %xmm1, -14 * SIZE(Y)
  393. movhps %xmm1, -13 * SIZE(Y)
  394. movlps %xmm2, -12 * SIZE(Y)
  395. movhps %xmm2, -11 * SIZE(Y)
  396. movlps %xmm3, -10 * SIZE(Y)
  397. movhps %xmm3, -9 * SIZE(Y)
  398. movlps %xmm4, -8 * SIZE(Y)
  399. movhps %xmm4, -7 * SIZE(Y)
  400. movlps %xmm5, -6 * SIZE(Y)
  401. movhps %xmm5, -5 * SIZE(Y)
  402. movlps %xmm6, -4 * SIZE(Y)
  403. movhps %xmm6, -3 * SIZE(Y)
  404. movlps %xmm7, -2 * SIZE(Y)
  405. movhps %xmm7, -1 * SIZE(Y)
  406. subq $-16 * SIZE, Y
  407. subq $-16 * SIZE, X
  408. ALIGN_3
  409. .L23:
  410. testq $8, M
  411. jle .L24
  412. ALIGN_3
  413. movaps -16 * SIZE(X), %xmm0
  414. movlps %xmm0, -16 * SIZE(Y)
  415. movhps %xmm0, -15 * SIZE(Y)
  416. movaps -14 * SIZE(X), %xmm1
  417. movlps %xmm1, -14 * SIZE(Y)
  418. movhps %xmm1, -13 * SIZE(Y)
  419. movaps -12 * SIZE(X), %xmm2
  420. movlps %xmm2, -12 * SIZE(Y)
  421. movhps %xmm2, -11 * SIZE(Y)
  422. movaps -10 * SIZE(X), %xmm3
  423. movlps %xmm3, -10 * SIZE(Y)
  424. movhps %xmm3, -9 * SIZE(Y)
  425. addq $8 * SIZE, X
  426. addq $8 * SIZE, Y
  427. ALIGN_3
  428. .L24:
  429. testq $4, M
  430. jle .L25
  431. ALIGN_3
  432. movaps -16 * SIZE(X), %xmm0
  433. movlps %xmm0, -16 * SIZE(Y)
  434. movhps %xmm0, -15 * SIZE(Y)
  435. movaps -14 * SIZE(X), %xmm1
  436. movlps %xmm1, -14 * SIZE(Y)
  437. movhps %xmm1, -13 * SIZE(Y)
  438. addq $4 * SIZE, X
  439. addq $4 * SIZE, Y
  440. ALIGN_3
  441. .L25:
  442. testq $2, M
  443. jle .L26
  444. ALIGN_3
  445. movaps -16 * SIZE(X), %xmm0
  446. movlps %xmm0, -16 * SIZE(Y)
  447. movhps %xmm0, -15 * SIZE(Y)
  448. addq $2 * SIZE, X
  449. addq $2 * SIZE, Y
  450. ALIGN_3
  451. .L26:
  452. testq $1, M
  453. jle .L29
  454. ALIGN_3
  455. movsd -16 * SIZE(X), %xmm0
  456. movsd %xmm0, -16 * SIZE(Y)
  457. ALIGN_3
  458. .L29:
  459. xorq %rax,%rax
  460. RESTOREREGISTERS
  461. ret
  462. ALIGN_3
  463. #endif
  464. .L50:
  465. movq M, %rax
  466. sarq $2, %rax
  467. jle .L55
  468. ALIGN_3
  469. .L51:
  470. movsd 0 * SIZE(X), %xmm0
  471. movhps 1 * SIZE(X), %xmm0
  472. addq INCX, X
  473. movsd 0 * SIZE(X), %xmm1
  474. movhps 1 * SIZE(X), %xmm1
  475. addq INCX, X
  476. movsd 0 * SIZE(X), %xmm2
  477. movhps 1 * SIZE(X), %xmm2
  478. addq INCX, X
  479. movsd 0 * SIZE(X), %xmm3
  480. movhps 1 * SIZE(X), %xmm3
  481. addq INCX, X
  482. movlps %xmm0, 0 * SIZE(Y)
  483. movhps %xmm0, 1 * SIZE(Y)
  484. addq INCY, Y
  485. movlps %xmm1, 0 * SIZE(Y)
  486. movhps %xmm1, 1 * SIZE(Y)
  487. addq INCY, Y
  488. movlps %xmm2, 0 * SIZE(Y)
  489. movhps %xmm2, 1 * SIZE(Y)
  490. addq INCY, Y
  491. movlps %xmm3, 0 * SIZE(Y)
  492. movhps %xmm3, 1 * SIZE(Y)
  493. addq INCY, Y
  494. decq %rax
  495. jg .L51
  496. ALIGN_3
  497. .L55:
  498. movq M, %rax
  499. andq $3, %rax
  500. jle .L57
  501. ALIGN_3
  502. .L56:
  503. movsd 0 * SIZE(X), %xmm0
  504. movhps 1 * SIZE(X), %xmm0
  505. addq INCX, X
  506. movlps %xmm0, 0 * SIZE(Y)
  507. movhps %xmm0, 1 * SIZE(Y)
  508. addq INCY, Y
  509. decq %rax
  510. jg .L56
  511. ALIGN_3
  512. .L57:
  513. xorq %rax, %rax
  514. RESTOREREGISTERS
  515. ret
  516. EPILOGUE