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.

zaxpy_sse.S 63 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158
  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. #ifndef WINDOWS_ABI
  41. #define M ARG1
  42. #define X ARG4
  43. #define INCX ARG5
  44. #define Y ARG6
  45. #define INCY ARG2
  46. #else
  47. #define M ARG1
  48. #define X ARG2
  49. #define INCX ARG3
  50. #define Y ARG4
  51. #define INCY %r10
  52. #endif
  53. #define YY %r11
  54. #define ALPHA_R %xmm14
  55. #define ALPHA_I %xmm15
  56. #include "l1param.h"
  57. PROLOGUE
  58. PROFCODE
  59. #ifndef WINDOWS_ABI
  60. movq 8(%rsp), INCY
  61. #else
  62. movaps %xmm3, %xmm0
  63. movss 40(%rsp), %xmm1
  64. movq 48(%rsp), X
  65. movq 56(%rsp), INCX
  66. movq 64(%rsp), Y
  67. movq 72(%rsp), INCY
  68. #endif
  69. SAVEREGISTERS
  70. salq $ZBASE_SHIFT, INCX
  71. salq $ZBASE_SHIFT, INCY
  72. testq M, M
  73. jle .L999
  74. cmpq $2 * SIZE, INCX
  75. jne .L100
  76. cmpq $2 * SIZE, INCY
  77. jne .L100
  78. pcmpeqb %xmm7, %xmm7
  79. psllq $63, %xmm7
  80. pshufd $0, %xmm0, ALPHA_R
  81. pshufd $0, %xmm1, ALPHA_I
  82. #ifndef CONJ
  83. shufps $0xb1, %xmm7, %xmm7
  84. xorpd %xmm7, ALPHA_I
  85. #else
  86. xorpd %xmm7, ALPHA_R
  87. #endif
  88. subq $-32 * SIZE, X
  89. subq $-32 * SIZE, Y
  90. testq $2 * SIZE, Y
  91. je .L10
  92. movsd -32 * SIZE(X), %xmm0
  93. movsd -32 * SIZE(Y), %xmm1
  94. pshufd $0xb1, %xmm0, %xmm8
  95. mulps ALPHA_R, %xmm0
  96. mulps ALPHA_I, %xmm8
  97. addps %xmm8, %xmm0
  98. addps %xmm1, %xmm0
  99. movlps %xmm0, -32 * SIZE(Y)
  100. addq $2 * SIZE, X
  101. addq $2 * SIZE, Y
  102. decq M
  103. jle .L999
  104. ALIGN_2
  105. .L10:
  106. testq $SIZE, Y
  107. jne .L50
  108. testq $3 * SIZE, X
  109. jne .L20
  110. movq M, %rax
  111. sarq $4, %rax
  112. jle .L15
  113. movaps -32 * SIZE(X), %xmm0
  114. movaps -28 * SIZE(X), %xmm1
  115. movaps -24 * SIZE(X), %xmm2
  116. movaps -20 * SIZE(X), %xmm3
  117. decq %rax
  118. jle .L12
  119. ALIGN_3
  120. .L11:
  121. movaps -16 * SIZE(X), %xmm4
  122. movaps -12 * SIZE(X), %xmm5
  123. #ifdef PREFETCHW
  124. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  125. #endif
  126. pshufd $0xb1, %xmm0, %xmm8
  127. mulps ALPHA_R, %xmm0
  128. mulps ALPHA_I, %xmm8
  129. addps -32 * SIZE(Y), %xmm0
  130. addps %xmm8, %xmm0
  131. movaps %xmm0, -32 * SIZE(Y)
  132. pshufd $0xb1, %xmm1, %xmm8
  133. mulps ALPHA_R, %xmm1
  134. mulps ALPHA_I, %xmm8
  135. addps -28 * SIZE(Y), %xmm1
  136. addps %xmm8, %xmm1
  137. movaps %xmm1, -28 * SIZE(Y)
  138. movaps -8 * SIZE(X), %xmm6
  139. movaps -4 * SIZE(X), %xmm7
  140. #ifdef PREFETCH
  141. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  142. #endif
  143. pshufd $0xb1, %xmm2, %xmm8
  144. mulps ALPHA_R, %xmm2
  145. mulps ALPHA_I, %xmm8
  146. addps -24 * SIZE(Y), %xmm2
  147. addps %xmm8, %xmm2
  148. movaps %xmm2, -24 * SIZE(Y)
  149. pshufd $0xb1, %xmm3, %xmm8
  150. mulps ALPHA_R, %xmm3
  151. mulps ALPHA_I, %xmm8
  152. addps -20 * SIZE(Y), %xmm3
  153. addps %xmm8, %xmm3
  154. movaps %xmm3, -20 * SIZE(Y)
  155. movaps 0 * SIZE(X), %xmm0
  156. movaps 4 * SIZE(X), %xmm1
  157. #if defined(PREFETCHW) && !defined(FETCH128)
  158. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  159. #endif
  160. pshufd $0xb1, %xmm4, %xmm8
  161. mulps ALPHA_R, %xmm4
  162. mulps ALPHA_I, %xmm8
  163. addps -16 * SIZE(Y), %xmm4
  164. addps %xmm8, %xmm4
  165. movaps %xmm4, -16 * SIZE(Y)
  166. pshufd $0xb1, %xmm5, %xmm8
  167. mulps ALPHA_R, %xmm5
  168. mulps ALPHA_I, %xmm8
  169. addps -12 * SIZE(Y), %xmm5
  170. addps %xmm8, %xmm5
  171. movaps %xmm5, -12 * SIZE(Y)
  172. movaps 8 * SIZE(X), %xmm2
  173. movaps 12 * SIZE(X), %xmm3
  174. #if defined(PREFETCH) && !defined(FETCH128)
  175. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  176. #endif
  177. pshufd $0xb1, %xmm6, %xmm8
  178. mulps ALPHA_R, %xmm6
  179. mulps ALPHA_I, %xmm8
  180. addps -8 * SIZE(Y), %xmm6
  181. addps %xmm8, %xmm6
  182. movaps %xmm6, -8 * SIZE(Y)
  183. pshufd $0xb1, %xmm7, %xmm8
  184. mulps ALPHA_R, %xmm7
  185. mulps ALPHA_I, %xmm8
  186. addps -4 * SIZE(Y), %xmm7
  187. addps %xmm8, %xmm7
  188. movaps %xmm7, -4 * SIZE(Y)
  189. subq $-32 * SIZE, X
  190. subq $-32 * SIZE, Y
  191. decq %rax
  192. jg .L11
  193. ALIGN_3
  194. .L12:
  195. movaps -16 * SIZE(X), %xmm4
  196. movaps -12 * SIZE(X), %xmm5
  197. pshufd $0xb1, %xmm0, %xmm8
  198. mulps ALPHA_R, %xmm0
  199. mulps ALPHA_I, %xmm8
  200. addps -32 * SIZE(Y), %xmm0
  201. addps %xmm8, %xmm0
  202. movaps %xmm0, -32 * SIZE(Y)
  203. pshufd $0xb1, %xmm1, %xmm8
  204. mulps ALPHA_R, %xmm1
  205. mulps ALPHA_I, %xmm8
  206. addps -28 * SIZE(Y), %xmm1
  207. addps %xmm8, %xmm1
  208. movaps %xmm1, -28 * SIZE(Y)
  209. movaps -8 * SIZE(X), %xmm6
  210. movaps -4 * SIZE(X), %xmm7
  211. pshufd $0xb1, %xmm2, %xmm8
  212. mulps ALPHA_R, %xmm2
  213. mulps ALPHA_I, %xmm8
  214. addps -24 * SIZE(Y), %xmm2
  215. addps %xmm8, %xmm2
  216. movaps %xmm2, -24 * SIZE(Y)
  217. pshufd $0xb1, %xmm3, %xmm8
  218. mulps ALPHA_R, %xmm3
  219. mulps ALPHA_I, %xmm8
  220. addps -20 * SIZE(Y), %xmm3
  221. addps %xmm8, %xmm3
  222. movaps %xmm3, -20 * SIZE(Y)
  223. pshufd $0xb1, %xmm4, %xmm8
  224. mulps ALPHA_R, %xmm4
  225. mulps ALPHA_I, %xmm8
  226. addps -16 * SIZE(Y), %xmm4
  227. addps %xmm8, %xmm4
  228. movaps %xmm4, -16 * SIZE(Y)
  229. pshufd $0xb1, %xmm5, %xmm8
  230. mulps ALPHA_R, %xmm5
  231. mulps ALPHA_I, %xmm8
  232. addps -12 * SIZE(Y), %xmm5
  233. addps %xmm8, %xmm5
  234. movaps %xmm5, -12 * SIZE(Y)
  235. pshufd $0xb1, %xmm6, %xmm8
  236. mulps ALPHA_R, %xmm6
  237. mulps ALPHA_I, %xmm8
  238. addps -8 * SIZE(Y), %xmm6
  239. addps %xmm8, %xmm6
  240. movaps %xmm6, -8 * SIZE(Y)
  241. pshufd $0xb1, %xmm7, %xmm8
  242. mulps ALPHA_R, %xmm7
  243. mulps ALPHA_I, %xmm8
  244. addps -4 * SIZE(Y), %xmm7
  245. addps %xmm8, %xmm7
  246. movaps %xmm7, -4 * SIZE(Y)
  247. subq $-32 * SIZE, X
  248. subq $-32 * SIZE, Y
  249. ALIGN_3
  250. .L15:
  251. testq $8, M
  252. jle .L16
  253. movaps -32 * SIZE(X), %xmm0
  254. movaps -28 * SIZE(X), %xmm1
  255. pshufd $0xb1, %xmm0, %xmm8
  256. mulps ALPHA_R, %xmm0
  257. mulps ALPHA_I, %xmm8
  258. addps -32 * SIZE(Y), %xmm0
  259. addps %xmm8, %xmm0
  260. movaps %xmm0, -32 * SIZE(Y)
  261. pshufd $0xb1, %xmm1, %xmm8
  262. mulps ALPHA_R, %xmm1
  263. mulps ALPHA_I, %xmm8
  264. addps -28 * SIZE(Y), %xmm1
  265. addps %xmm8, %xmm1
  266. movaps %xmm1, -28 * SIZE(Y)
  267. movaps -24 * SIZE(X), %xmm2
  268. movaps -20 * SIZE(X), %xmm3
  269. pshufd $0xb1, %xmm2, %xmm8
  270. mulps ALPHA_R, %xmm2
  271. mulps ALPHA_I, %xmm8
  272. addps -24 * SIZE(Y), %xmm2
  273. addps %xmm8, %xmm2
  274. movaps %xmm2, -24 * SIZE(Y)
  275. pshufd $0xb1, %xmm3, %xmm8
  276. mulps ALPHA_R, %xmm3
  277. mulps ALPHA_I, %xmm8
  278. addps -20 * SIZE(Y), %xmm3
  279. addps %xmm8, %xmm3
  280. movaps %xmm3, -20 * SIZE(Y)
  281. addq $16 * SIZE, X
  282. addq $16 * SIZE, Y
  283. ALIGN_2
  284. .L16:
  285. testq $4, M
  286. jle .L17
  287. movaps -32 * SIZE(X), %xmm0
  288. movaps -28 * SIZE(X), %xmm1
  289. pshufd $0xb1, %xmm0, %xmm8
  290. mulps ALPHA_R, %xmm0
  291. mulps ALPHA_I, %xmm8
  292. addps -32 * SIZE(Y), %xmm0
  293. addps %xmm8, %xmm0
  294. movaps %xmm0, -32 * SIZE(Y)
  295. pshufd $0xb1, %xmm1, %xmm8
  296. mulps ALPHA_R, %xmm1
  297. mulps ALPHA_I, %xmm8
  298. addps -28 * SIZE(Y), %xmm1
  299. addps %xmm8, %xmm1
  300. movaps %xmm1, -28 * SIZE(Y)
  301. addq $8 * SIZE, X
  302. addq $8 * SIZE, Y
  303. ALIGN_2
  304. .L17:
  305. testq $2, M
  306. jle .L18
  307. movaps -32 * SIZE(X), %xmm0
  308. pshufd $0xb1, %xmm0, %xmm8
  309. mulps ALPHA_R, %xmm0
  310. mulps ALPHA_I, %xmm8
  311. addps -32 * SIZE(Y), %xmm0
  312. addps %xmm8, %xmm0
  313. movaps %xmm0, -32 * SIZE(Y)
  314. addq $4 * SIZE, X
  315. addq $4 * SIZE, Y
  316. ALIGN_2
  317. .L18:
  318. testq $1, M
  319. jle .L999
  320. movsd -32 * SIZE(X), %xmm0
  321. pshufd $0xb1, %xmm0, %xmm8
  322. mulps ALPHA_R, %xmm0
  323. mulps ALPHA_I, %xmm8
  324. movsd -32 * SIZE(Y), %xmm1
  325. addps %xmm1, %xmm0
  326. addps %xmm8, %xmm0
  327. movlps %xmm0, -32 * SIZE(Y)
  328. jmp .L999
  329. ALIGN_3
  330. .L20:
  331. #ifdef ALIGNED_ACCESS
  332. testq $2 * SIZE, X
  333. jne .L30
  334. subq $1 * SIZE, X
  335. movaps -32 * SIZE(X), %xmm0
  336. movq M, %rax
  337. sarq $4, %rax
  338. jle .L25
  339. movaps -28 * SIZE(X), %xmm1
  340. movaps -24 * SIZE(X), %xmm2
  341. movaps -20 * SIZE(X), %xmm3
  342. movaps -16 * SIZE(X), %xmm4
  343. decq %rax
  344. jle .L22
  345. ALIGN_3
  346. .L21:
  347. movaps -12 * SIZE(X), %xmm5
  348. movaps -8 * SIZE(X), %xmm6
  349. #ifdef PREFETCHW
  350. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  351. #endif
  352. movss %xmm1, %xmm0
  353. SHUFPS_39 %xmm0, %xmm0
  354. pshufd $0xb1, %xmm0, %xmm8
  355. mulps ALPHA_R, %xmm0
  356. mulps ALPHA_I, %xmm8
  357. addps -32 * SIZE(Y), %xmm0
  358. addps %xmm8, %xmm0
  359. movaps %xmm0, -32 * SIZE(Y)
  360. movss %xmm2, %xmm1
  361. SHUFPS_39 %xmm1, %xmm1
  362. pshufd $0xb1, %xmm1, %xmm8
  363. mulps ALPHA_R, %xmm1
  364. mulps ALPHA_I, %xmm8
  365. addps -28 * SIZE(Y), %xmm1
  366. addps %xmm8, %xmm1
  367. movaps %xmm1, -28 * SIZE(Y)
  368. movaps -4 * SIZE(X), %xmm7
  369. movaps 0 * SIZE(X), %xmm0
  370. #ifdef PREFETCH
  371. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  372. #endif
  373. movss %xmm3, %xmm2
  374. SHUFPS_39 %xmm2, %xmm2
  375. pshufd $0xb1, %xmm2, %xmm8
  376. mulps ALPHA_R, %xmm2
  377. mulps ALPHA_I, %xmm8
  378. addps -24 * SIZE(Y), %xmm2
  379. addps %xmm8, %xmm2
  380. movaps %xmm2, -24 * SIZE(Y)
  381. movss %xmm4, %xmm3
  382. SHUFPS_39 %xmm3, %xmm3
  383. pshufd $0xb1, %xmm3, %xmm8
  384. mulps ALPHA_R, %xmm3
  385. mulps ALPHA_I, %xmm8
  386. addps -20 * SIZE(Y), %xmm3
  387. addps %xmm8, %xmm3
  388. movaps %xmm3, -20 * SIZE(Y)
  389. movaps 4 * SIZE(X), %xmm1
  390. movaps 8 * SIZE(X), %xmm2
  391. #if defined(PREFETCHW) && !defined(FETCH128)
  392. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  393. #endif
  394. movss %xmm5, %xmm4
  395. SHUFPS_39 %xmm4, %xmm4
  396. pshufd $0xb1, %xmm4, %xmm8
  397. mulps ALPHA_R, %xmm4
  398. mulps ALPHA_I, %xmm8
  399. addps -16 * SIZE(Y), %xmm4
  400. addps %xmm8, %xmm4
  401. movaps %xmm4, -16 * SIZE(Y)
  402. movss %xmm6, %xmm5
  403. SHUFPS_39 %xmm5, %xmm5
  404. pshufd $0xb1, %xmm5, %xmm8
  405. mulps ALPHA_R, %xmm5
  406. mulps ALPHA_I, %xmm8
  407. addps -12 * SIZE(Y), %xmm5
  408. addps %xmm8, %xmm5
  409. movaps %xmm5, -12 * SIZE(Y)
  410. movaps 12 * SIZE(X), %xmm3
  411. movaps 16 * SIZE(X), %xmm4
  412. #if defined(PREFETCH) && !defined(FETCH128)
  413. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  414. #endif
  415. movss %xmm7, %xmm6
  416. SHUFPS_39 %xmm6, %xmm6
  417. pshufd $0xb1, %xmm6, %xmm8
  418. mulps ALPHA_R, %xmm6
  419. mulps ALPHA_I, %xmm8
  420. addps -8 * SIZE(Y), %xmm6
  421. addps %xmm8, %xmm6
  422. movaps %xmm6, -8 * SIZE(Y)
  423. movss %xmm0, %xmm7
  424. SHUFPS_39 %xmm7, %xmm7
  425. pshufd $0xb1, %xmm7, %xmm8
  426. mulps ALPHA_R, %xmm7
  427. mulps ALPHA_I, %xmm8
  428. addps -4 * SIZE(Y), %xmm7
  429. addps %xmm8, %xmm7
  430. movaps %xmm7, -4 * SIZE(Y)
  431. subq $-32 * SIZE, X
  432. subq $-32 * SIZE, Y
  433. decq %rax
  434. jg .L21
  435. ALIGN_3
  436. .L22:
  437. movaps -12 * SIZE(X), %xmm5
  438. movaps -8 * SIZE(X), %xmm6
  439. movss %xmm1, %xmm0
  440. SHUFPS_39 %xmm0, %xmm0
  441. pshufd $0xb1, %xmm0, %xmm8
  442. mulps ALPHA_R, %xmm0
  443. mulps ALPHA_I, %xmm8
  444. addps -32 * SIZE(Y), %xmm0
  445. addps %xmm8, %xmm0
  446. movaps %xmm0, -32 * SIZE(Y)
  447. movss %xmm2, %xmm1
  448. SHUFPS_39 %xmm1, %xmm1
  449. pshufd $0xb1, %xmm1, %xmm8
  450. mulps ALPHA_R, %xmm1
  451. mulps ALPHA_I, %xmm8
  452. addps -28 * SIZE(Y), %xmm1
  453. addps %xmm8, %xmm1
  454. movaps %xmm1, -28 * SIZE(Y)
  455. movaps -4 * SIZE(X), %xmm7
  456. movaps 0 * SIZE(X), %xmm0
  457. movss %xmm3, %xmm2
  458. SHUFPS_39 %xmm2, %xmm2
  459. pshufd $0xb1, %xmm2, %xmm8
  460. mulps ALPHA_R, %xmm2
  461. mulps ALPHA_I, %xmm8
  462. addps -24 * SIZE(Y), %xmm2
  463. addps %xmm8, %xmm2
  464. movaps %xmm2, -24 * SIZE(Y)
  465. movss %xmm4, %xmm3
  466. SHUFPS_39 %xmm3, %xmm3
  467. pshufd $0xb1, %xmm3, %xmm8
  468. mulps ALPHA_R, %xmm3
  469. mulps ALPHA_I, %xmm8
  470. addps -20 * SIZE(Y), %xmm3
  471. addps %xmm8, %xmm3
  472. movaps %xmm3, -20 * SIZE(Y)
  473. movss %xmm5, %xmm4
  474. SHUFPS_39 %xmm4, %xmm4
  475. pshufd $0xb1, %xmm4, %xmm8
  476. mulps ALPHA_R, %xmm4
  477. mulps ALPHA_I, %xmm8
  478. addps -16 * SIZE(Y), %xmm4
  479. addps %xmm8, %xmm4
  480. movaps %xmm4, -16 * SIZE(Y)
  481. movss %xmm6, %xmm5
  482. SHUFPS_39 %xmm5, %xmm5
  483. pshufd $0xb1, %xmm5, %xmm8
  484. mulps ALPHA_R, %xmm5
  485. mulps ALPHA_I, %xmm8
  486. addps -12 * SIZE(Y), %xmm5
  487. addps %xmm8, %xmm5
  488. movaps %xmm5, -12 * SIZE(Y)
  489. movss %xmm7, %xmm6
  490. SHUFPS_39 %xmm6, %xmm6
  491. pshufd $0xb1, %xmm6, %xmm8
  492. mulps ALPHA_R, %xmm6
  493. mulps ALPHA_I, %xmm8
  494. addps -8 * SIZE(Y), %xmm6
  495. addps %xmm8, %xmm6
  496. movaps %xmm6, -8 * SIZE(Y)
  497. movss %xmm0, %xmm7
  498. SHUFPS_39 %xmm7, %xmm7
  499. pshufd $0xb1, %xmm7, %xmm8
  500. mulps ALPHA_R, %xmm7
  501. mulps ALPHA_I, %xmm8
  502. addps -4 * SIZE(Y), %xmm7
  503. addps %xmm8, %xmm7
  504. movaps %xmm7, -4 * SIZE(Y)
  505. subq $-32 * SIZE, X
  506. subq $-32 * SIZE, Y
  507. ALIGN_3
  508. .L25:
  509. testq $8, M
  510. jle .L26
  511. movaps -28 * SIZE(X), %xmm1
  512. movaps -24 * SIZE(X), %xmm2
  513. movss %xmm1, %xmm0
  514. SHUFPS_39 %xmm0, %xmm0
  515. pshufd $0xb1, %xmm0, %xmm8
  516. mulps ALPHA_R, %xmm0
  517. mulps ALPHA_I, %xmm8
  518. addps -32 * SIZE(Y), %xmm0
  519. addps %xmm8, %xmm0
  520. movaps %xmm0, -32 * SIZE(Y)
  521. movss %xmm2, %xmm1
  522. SHUFPS_39 %xmm1, %xmm1
  523. pshufd $0xb1, %xmm1, %xmm8
  524. mulps ALPHA_R, %xmm1
  525. mulps ALPHA_I, %xmm8
  526. addps -28 * SIZE(Y), %xmm1
  527. addps %xmm8, %xmm1
  528. movaps %xmm1, -28 * SIZE(Y)
  529. movaps -20 * SIZE(X), %xmm3
  530. movaps -16 * SIZE(X), %xmm0
  531. movss %xmm3, %xmm2
  532. SHUFPS_39 %xmm2, %xmm2
  533. pshufd $0xb1, %xmm2, %xmm8
  534. mulps ALPHA_R, %xmm2
  535. mulps ALPHA_I, %xmm8
  536. addps -24 * SIZE(Y), %xmm2
  537. addps %xmm8, %xmm2
  538. movaps %xmm2, -24 * SIZE(Y)
  539. movss %xmm0, %xmm3
  540. SHUFPS_39 %xmm3, %xmm3
  541. pshufd $0xb1, %xmm3, %xmm8
  542. mulps ALPHA_R, %xmm3
  543. mulps ALPHA_I, %xmm8
  544. addps -20 * SIZE(Y), %xmm3
  545. addps %xmm8, %xmm3
  546. movaps %xmm3, -20 * SIZE(Y)
  547. addq $16 * SIZE, X
  548. addq $16 * SIZE, Y
  549. ALIGN_2
  550. .L26:
  551. testq $4, M
  552. jle .L27
  553. movaps -28 * SIZE(X), %xmm1
  554. movaps -24 * SIZE(X), %xmm2
  555. movss %xmm1, %xmm0
  556. SHUFPS_39 %xmm0, %xmm0
  557. pshufd $0xb1, %xmm0, %xmm8
  558. mulps ALPHA_R, %xmm0
  559. mulps ALPHA_I, %xmm8
  560. addps -32 * SIZE(Y), %xmm0
  561. addps %xmm8, %xmm0
  562. movaps %xmm0, -32 * SIZE(Y)
  563. movss %xmm2, %xmm1
  564. SHUFPS_39 %xmm1, %xmm1
  565. pshufd $0xb1, %xmm1, %xmm8
  566. mulps ALPHA_R, %xmm1
  567. mulps ALPHA_I, %xmm8
  568. addps -28 * SIZE(Y), %xmm1
  569. addps %xmm8, %xmm1
  570. movaps %xmm1, -28 * SIZE(Y)
  571. movaps %xmm2, %xmm0
  572. addq $8 * SIZE, X
  573. addq $8 * SIZE, Y
  574. ALIGN_2
  575. .L27:
  576. testq $2, M
  577. jle .L28
  578. movaps -28 * SIZE(X), %xmm1
  579. movss %xmm1, %xmm0
  580. SHUFPS_39 %xmm0, %xmm0
  581. pshufd $0xb1, %xmm0, %xmm8
  582. mulps ALPHA_R, %xmm0
  583. mulps ALPHA_I, %xmm8
  584. addps -32 * SIZE(Y), %xmm0
  585. addps %xmm8, %xmm0
  586. movaps %xmm0, -32 * SIZE(Y)
  587. movaps %xmm1, %xmm0
  588. addq $4 * SIZE, X
  589. addq $4 * SIZE, Y
  590. ALIGN_2
  591. .L28:
  592. testq $1, M
  593. jle .L999
  594. pshufd $0x06, %xmm0, %xmm8
  595. pshufd $0x09, %xmm0, %xmm0
  596. mulps ALPHA_I, %xmm8
  597. mulps ALPHA_R, %xmm0
  598. addps -32 * SIZE(Y), %xmm8
  599. addps %xmm8, %xmm0
  600. movlps %xmm0, -32 * SIZE(Y)
  601. jmp .L999
  602. ALIGN_3
  603. .L30:
  604. testq $1 * SIZE, X
  605. jne .L40
  606. #endif
  607. movq M, %rax
  608. sarq $4, %rax
  609. jle .L35
  610. movsd -32 * SIZE(X), %xmm0
  611. movhps -30 * SIZE(X), %xmm0
  612. movsd -28 * SIZE(X), %xmm1
  613. movhps -26 * SIZE(X), %xmm1
  614. movsd -24 * SIZE(X), %xmm2
  615. movhps -22 * SIZE(X), %xmm2
  616. movsd -20 * SIZE(X), %xmm3
  617. movhps -18 * SIZE(X), %xmm3
  618. decq %rax
  619. jle .L32
  620. ALIGN_3
  621. .L31:
  622. movsd -16 * SIZE(X), %xmm4
  623. movhps -14 * SIZE(X), %xmm4
  624. #ifdef PREFETCHW
  625. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  626. #endif
  627. pshufd $0xb1, %xmm0, %xmm8
  628. mulps ALPHA_R, %xmm0
  629. mulps ALPHA_I, %xmm8
  630. addps -32 * SIZE(Y), %xmm0
  631. addps %xmm8, %xmm0
  632. movaps %xmm0, -32 * SIZE(Y)
  633. movsd -12 * SIZE(X), %xmm5
  634. movhps -10 * SIZE(X), %xmm5
  635. pshufd $0xb1, %xmm1, %xmm8
  636. mulps ALPHA_R, %xmm1
  637. mulps ALPHA_I, %xmm8
  638. addps -28 * SIZE(Y), %xmm1
  639. addps %xmm8, %xmm1
  640. movaps %xmm1, -28 * SIZE(Y)
  641. movsd -8 * SIZE(X), %xmm6
  642. movhps -6 * SIZE(X), %xmm6
  643. #ifdef PREFETCH
  644. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  645. #endif
  646. pshufd $0xb1, %xmm2, %xmm8
  647. mulps ALPHA_R, %xmm2
  648. mulps ALPHA_I, %xmm8
  649. addps -24 * SIZE(Y), %xmm2
  650. addps %xmm8, %xmm2
  651. movaps %xmm2, -24 * SIZE(Y)
  652. movsd -4 * SIZE(X), %xmm7
  653. movhps -2 * SIZE(X), %xmm7
  654. pshufd $0xb1, %xmm3, %xmm8
  655. mulps ALPHA_R, %xmm3
  656. mulps ALPHA_I, %xmm8
  657. addps -20 * SIZE(Y), %xmm3
  658. addps %xmm8, %xmm3
  659. movaps %xmm3, -20 * SIZE(Y)
  660. movsd 0 * SIZE(X), %xmm0
  661. movhps 2 * SIZE(X), %xmm0
  662. #if defined(PREFETCHW) && !defined(FETCH128)
  663. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  664. #endif
  665. pshufd $0xb1, %xmm4, %xmm8
  666. mulps ALPHA_R, %xmm4
  667. mulps ALPHA_I, %xmm8
  668. addps -16 * SIZE(Y), %xmm4
  669. addps %xmm8, %xmm4
  670. movaps %xmm4, -16 * SIZE(Y)
  671. movsd 4 * SIZE(X), %xmm1
  672. movhps 6 * SIZE(X), %xmm1
  673. pshufd $0xb1, %xmm5, %xmm8
  674. mulps ALPHA_R, %xmm5
  675. mulps ALPHA_I, %xmm8
  676. addps -12 * SIZE(Y), %xmm5
  677. addps %xmm8, %xmm5
  678. movaps %xmm5, -12 * SIZE(Y)
  679. movsd 8 * SIZE(X), %xmm2
  680. movhps 10 * SIZE(X), %xmm2
  681. #if defined(PREFETCH) && !defined(FETCH128)
  682. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  683. #endif
  684. pshufd $0xb1, %xmm6, %xmm8
  685. mulps ALPHA_R, %xmm6
  686. mulps ALPHA_I, %xmm8
  687. addps -8 * SIZE(Y), %xmm6
  688. addps %xmm8, %xmm6
  689. movaps %xmm6, -8 * SIZE(Y)
  690. movsd 12 * SIZE(X), %xmm3
  691. movhps 14 * SIZE(X), %xmm3
  692. pshufd $0xb1, %xmm7, %xmm8
  693. mulps ALPHA_R, %xmm7
  694. mulps ALPHA_I, %xmm8
  695. addps -4 * SIZE(Y), %xmm7
  696. addps %xmm8, %xmm7
  697. movaps %xmm7, -4 * SIZE(Y)
  698. subq $-32 * SIZE, X
  699. subq $-32 * SIZE, Y
  700. decq %rax
  701. jg .L31
  702. ALIGN_3
  703. .L32:
  704. movsd -16 * SIZE(X), %xmm4
  705. movhps -14 * SIZE(X), %xmm4
  706. pshufd $0xb1, %xmm0, %xmm8
  707. mulps ALPHA_R, %xmm0
  708. mulps ALPHA_I, %xmm8
  709. addps -32 * SIZE(Y), %xmm0
  710. addps %xmm8, %xmm0
  711. movaps %xmm0, -32 * SIZE(Y)
  712. movsd -12 * SIZE(X), %xmm5
  713. movhps -10 * SIZE(X), %xmm5
  714. pshufd $0xb1, %xmm1, %xmm8
  715. mulps ALPHA_R, %xmm1
  716. mulps ALPHA_I, %xmm8
  717. addps -28 * SIZE(Y), %xmm1
  718. addps %xmm8, %xmm1
  719. movaps %xmm1, -28 * SIZE(Y)
  720. movsd -8 * SIZE(X), %xmm6
  721. movhps -6 * SIZE(X), %xmm6
  722. pshufd $0xb1, %xmm2, %xmm8
  723. mulps ALPHA_R, %xmm2
  724. mulps ALPHA_I, %xmm8
  725. addps -24 * SIZE(Y), %xmm2
  726. addps %xmm8, %xmm2
  727. movaps %xmm2, -24 * SIZE(Y)
  728. movsd -4 * SIZE(X), %xmm7
  729. movhps -2 * SIZE(X), %xmm7
  730. pshufd $0xb1, %xmm3, %xmm8
  731. mulps ALPHA_R, %xmm3
  732. mulps ALPHA_I, %xmm8
  733. addps -20 * SIZE(Y), %xmm3
  734. addps %xmm8, %xmm3
  735. movaps %xmm3, -20 * SIZE(Y)
  736. pshufd $0xb1, %xmm4, %xmm8
  737. mulps ALPHA_R, %xmm4
  738. mulps ALPHA_I, %xmm8
  739. addps -16 * SIZE(Y), %xmm4
  740. addps %xmm8, %xmm4
  741. movaps %xmm4, -16 * SIZE(Y)
  742. pshufd $0xb1, %xmm5, %xmm8
  743. mulps ALPHA_R, %xmm5
  744. mulps ALPHA_I, %xmm8
  745. addps -12 * SIZE(Y), %xmm5
  746. addps %xmm8, %xmm5
  747. movaps %xmm5, -12 * SIZE(Y)
  748. pshufd $0xb1, %xmm6, %xmm8
  749. mulps ALPHA_R, %xmm6
  750. mulps ALPHA_I, %xmm8
  751. addps -8 * SIZE(Y), %xmm6
  752. addps %xmm8, %xmm6
  753. movaps %xmm6, -8 * SIZE(Y)
  754. pshufd $0xb1, %xmm7, %xmm8
  755. mulps ALPHA_R, %xmm7
  756. mulps ALPHA_I, %xmm8
  757. addps -4 * SIZE(Y), %xmm7
  758. addps %xmm8, %xmm7
  759. movaps %xmm7, -4 * SIZE(Y)
  760. subq $-32 * SIZE, X
  761. subq $-32 * SIZE, Y
  762. ALIGN_3
  763. .L35:
  764. testq $8, M
  765. jle .L36
  766. movsd -32 * SIZE(X), %xmm0
  767. movhps -30 * SIZE(X), %xmm0
  768. movsd -28 * SIZE(X), %xmm1
  769. movhps -26 * SIZE(X), %xmm1
  770. pshufd $0xb1, %xmm0, %xmm8
  771. mulps ALPHA_R, %xmm0
  772. mulps ALPHA_I, %xmm8
  773. addps -32 * SIZE(Y), %xmm0
  774. addps %xmm8, %xmm0
  775. movaps %xmm0, -32 * SIZE(Y)
  776. pshufd $0xb1, %xmm1, %xmm8
  777. mulps ALPHA_R, %xmm1
  778. mulps ALPHA_I, %xmm8
  779. addps -28 * SIZE(Y), %xmm1
  780. addps %xmm8, %xmm1
  781. movaps %xmm1, -28 * SIZE(Y)
  782. movsd -24 * SIZE(X), %xmm2
  783. movhps -22 * SIZE(X), %xmm2
  784. movsd -20 * SIZE(X), %xmm3
  785. movhps -18 * SIZE(X), %xmm3
  786. pshufd $0xb1, %xmm2, %xmm8
  787. mulps ALPHA_R, %xmm2
  788. mulps ALPHA_I, %xmm8
  789. addps -24 * SIZE(Y), %xmm2
  790. addps %xmm8, %xmm2
  791. movaps %xmm2, -24 * SIZE(Y)
  792. pshufd $0xb1, %xmm3, %xmm8
  793. mulps ALPHA_R, %xmm3
  794. mulps ALPHA_I, %xmm8
  795. addps -20 * SIZE(Y), %xmm3
  796. addps %xmm8, %xmm3
  797. movaps %xmm3, -20 * SIZE(Y)
  798. addq $16 * SIZE, X
  799. addq $16 * SIZE, Y
  800. ALIGN_2
  801. .L36:
  802. testq $4, M
  803. jle .L37
  804. movsd -32 * SIZE(X), %xmm0
  805. movhps -30 * SIZE(X), %xmm0
  806. movsd -28 * SIZE(X), %xmm1
  807. movhps -26 * SIZE(X), %xmm1
  808. pshufd $0xb1, %xmm0, %xmm8
  809. mulps ALPHA_R, %xmm0
  810. mulps ALPHA_I, %xmm8
  811. addps -32 * SIZE(Y), %xmm0
  812. addps %xmm8, %xmm0
  813. movaps %xmm0, -32 * SIZE(Y)
  814. pshufd $0xb1, %xmm1, %xmm8
  815. mulps ALPHA_R, %xmm1
  816. mulps ALPHA_I, %xmm8
  817. addps -28 * SIZE(Y), %xmm1
  818. addps %xmm8, %xmm1
  819. movaps %xmm1, -28 * SIZE(Y)
  820. addq $8 * SIZE, X
  821. addq $8 * SIZE, Y
  822. ALIGN_2
  823. .L37:
  824. testq $2, M
  825. jle .L38
  826. movsd -32 * SIZE(X), %xmm0
  827. movhps -30 * SIZE(X), %xmm0
  828. pshufd $0xb1, %xmm0, %xmm8
  829. mulps ALPHA_R, %xmm0
  830. mulps ALPHA_I, %xmm8
  831. addps -32 * SIZE(Y), %xmm0
  832. addps %xmm8, %xmm0
  833. movaps %xmm0, -32 * SIZE(Y)
  834. addq $4 * SIZE, X
  835. addq $4 * SIZE, Y
  836. ALIGN_2
  837. .L38:
  838. testq $1, M
  839. jle .L999
  840. movsd -32 * SIZE(X), %xmm0
  841. pshufd $0xb1, %xmm0, %xmm8
  842. mulps ALPHA_R, %xmm0
  843. mulps ALPHA_I, %xmm8
  844. movsd -32 * SIZE(Y), %xmm1
  845. addps %xmm1, %xmm0
  846. addps %xmm8, %xmm0
  847. movlps %xmm0, -32 * SIZE(Y)
  848. jmp .L999
  849. ALIGN_3
  850. #ifdef ALIGNED_ACCESS
  851. .L40:
  852. subq $3 * SIZE, X
  853. movaps -32 * SIZE(X), %xmm0
  854. movq M, %rax
  855. sarq $4, %rax
  856. jle .L45
  857. movaps -28 * SIZE(X), %xmm1
  858. movaps -24 * SIZE(X), %xmm2
  859. movaps -20 * SIZE(X), %xmm3
  860. movaps -16 * SIZE(X), %xmm4
  861. decq %rax
  862. jle .L42
  863. ALIGN_3
  864. .L41:
  865. movaps -12 * SIZE(X), %xmm5
  866. movaps -8 * SIZE(X), %xmm6
  867. #ifdef PREFETCHW
  868. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  869. #endif
  870. movss %xmm1, %xmm0
  871. shufps $0x93, %xmm1, %xmm0
  872. pshufd $0xb1, %xmm0, %xmm8
  873. mulps ALPHA_R, %xmm0
  874. mulps ALPHA_I, %xmm8
  875. addps -32 * SIZE(Y), %xmm0
  876. addps %xmm8, %xmm0
  877. movaps %xmm0, -32 * SIZE(Y)
  878. movss %xmm2, %xmm1
  879. shufps $0x93, %xmm2, %xmm1
  880. pshufd $0xb1, %xmm1, %xmm8
  881. mulps ALPHA_R, %xmm1
  882. mulps ALPHA_I, %xmm8
  883. addps -28 * SIZE(Y), %xmm1
  884. addps %xmm8, %xmm1
  885. movaps %xmm1, -28 * SIZE(Y)
  886. movaps -4 * SIZE(X), %xmm7
  887. movaps 0 * SIZE(X), %xmm0
  888. #ifdef PREFETCH
  889. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  890. #endif
  891. movss %xmm3, %xmm2
  892. shufps $0x93, %xmm3, %xmm2
  893. pshufd $0xb1, %xmm2, %xmm8
  894. mulps ALPHA_R, %xmm2
  895. mulps ALPHA_I, %xmm8
  896. addps -24 * SIZE(Y), %xmm2
  897. addps %xmm8, %xmm2
  898. movaps %xmm2, -24 * SIZE(Y)
  899. movss %xmm4, %xmm3
  900. shufps $0x93, %xmm4, %xmm3
  901. pshufd $0xb1, %xmm3, %xmm8
  902. mulps ALPHA_R, %xmm3
  903. mulps ALPHA_I, %xmm8
  904. addps -20 * SIZE(Y), %xmm3
  905. addps %xmm8, %xmm3
  906. movaps %xmm3, -20 * SIZE(Y)
  907. movaps 4 * SIZE(X), %xmm1
  908. movaps 8 * SIZE(X), %xmm2
  909. #if defined(PREFETCHW) && !defined(FETCH128)
  910. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  911. #endif
  912. movss %xmm5, %xmm4
  913. shufps $0x93, %xmm5, %xmm4
  914. pshufd $0xb1, %xmm4, %xmm8
  915. mulps ALPHA_R, %xmm4
  916. mulps ALPHA_I, %xmm8
  917. addps -16 * SIZE(Y), %xmm4
  918. addps %xmm8, %xmm4
  919. movaps %xmm4, -16 * SIZE(Y)
  920. movss %xmm6, %xmm5
  921. shufps $0x93, %xmm6, %xmm5
  922. pshufd $0xb1, %xmm5, %xmm8
  923. mulps ALPHA_R, %xmm5
  924. mulps ALPHA_I, %xmm8
  925. addps -12 * SIZE(Y), %xmm5
  926. addps %xmm8, %xmm5
  927. movaps %xmm5, -12 * SIZE(Y)
  928. movaps 12 * SIZE(X), %xmm3
  929. movaps 16 * SIZE(X), %xmm4
  930. #if defined(PREFETCH) && !defined(FETCH128)
  931. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  932. #endif
  933. movss %xmm7, %xmm6
  934. shufps $0x93, %xmm7, %xmm6
  935. pshufd $0xb1, %xmm6, %xmm8
  936. mulps ALPHA_R, %xmm6
  937. mulps ALPHA_I, %xmm8
  938. addps -8 * SIZE(Y), %xmm6
  939. addps %xmm8, %xmm6
  940. movaps %xmm6, -8 * SIZE(Y)
  941. movss %xmm0, %xmm7
  942. shufps $0x93, %xmm0, %xmm7
  943. pshufd $0xb1, %xmm7, %xmm8
  944. mulps ALPHA_R, %xmm7
  945. mulps ALPHA_I, %xmm8
  946. addps -4 * SIZE(Y), %xmm7
  947. addps %xmm8, %xmm7
  948. movaps %xmm7, -4 * SIZE(Y)
  949. subq $-32 * SIZE, X
  950. subq $-32 * SIZE, Y
  951. decq %rax
  952. jg .L41
  953. ALIGN_3
  954. .L42:
  955. movaps -12 * SIZE(X), %xmm5
  956. movaps -8 * SIZE(X), %xmm6
  957. movss %xmm1, %xmm0
  958. shufps $0x93, %xmm1, %xmm0
  959. pshufd $0xb1, %xmm0, %xmm8
  960. mulps ALPHA_R, %xmm0
  961. mulps ALPHA_I, %xmm8
  962. addps -32 * SIZE(Y), %xmm0
  963. addps %xmm8, %xmm0
  964. movaps %xmm0, -32 * SIZE(Y)
  965. movss %xmm2, %xmm1
  966. shufps $0x93, %xmm2, %xmm1
  967. pshufd $0xb1, %xmm1, %xmm8
  968. mulps ALPHA_R, %xmm1
  969. mulps ALPHA_I, %xmm8
  970. addps -28 * SIZE(Y), %xmm1
  971. addps %xmm8, %xmm1
  972. movaps %xmm1, -28 * SIZE(Y)
  973. movaps -4 * SIZE(X), %xmm7
  974. movaps 0 * SIZE(X), %xmm0
  975. movss %xmm3, %xmm2
  976. shufps $0x93, %xmm3, %xmm2
  977. pshufd $0xb1, %xmm2, %xmm8
  978. mulps ALPHA_R, %xmm2
  979. mulps ALPHA_I, %xmm8
  980. addps -24 * SIZE(Y), %xmm2
  981. addps %xmm8, %xmm2
  982. movaps %xmm2, -24 * SIZE(Y)
  983. movss %xmm4, %xmm3
  984. shufps $0x93, %xmm4, %xmm3
  985. pshufd $0xb1, %xmm3, %xmm8
  986. mulps ALPHA_R, %xmm3
  987. mulps ALPHA_I, %xmm8
  988. addps -20 * SIZE(Y), %xmm3
  989. addps %xmm8, %xmm3
  990. movaps %xmm3, -20 * SIZE(Y)
  991. movss %xmm5, %xmm4
  992. shufps $0x93, %xmm5, %xmm4
  993. pshufd $0xb1, %xmm4, %xmm8
  994. mulps ALPHA_R, %xmm4
  995. mulps ALPHA_I, %xmm8
  996. addps -16 * SIZE(Y), %xmm4
  997. addps %xmm8, %xmm4
  998. movaps %xmm4, -16 * SIZE(Y)
  999. movss %xmm6, %xmm5
  1000. shufps $0x93, %xmm6, %xmm5
  1001. pshufd $0xb1, %xmm5, %xmm8
  1002. mulps ALPHA_R, %xmm5
  1003. mulps ALPHA_I, %xmm8
  1004. addps -12 * SIZE(Y), %xmm5
  1005. addps %xmm8, %xmm5
  1006. movaps %xmm5, -12 * SIZE(Y)
  1007. movss %xmm7, %xmm6
  1008. shufps $0x93, %xmm7, %xmm6
  1009. pshufd $0xb1, %xmm6, %xmm8
  1010. mulps ALPHA_R, %xmm6
  1011. mulps ALPHA_I, %xmm8
  1012. addps -8 * SIZE(Y), %xmm6
  1013. addps %xmm8, %xmm6
  1014. movaps %xmm6, -8 * SIZE(Y)
  1015. movss %xmm0, %xmm7
  1016. shufps $0x93, %xmm0, %xmm7
  1017. pshufd $0xb1, %xmm7, %xmm8
  1018. mulps ALPHA_R, %xmm7
  1019. mulps ALPHA_I, %xmm8
  1020. addps -4 * SIZE(Y), %xmm7
  1021. addps %xmm8, %xmm7
  1022. movaps %xmm7, -4 * SIZE(Y)
  1023. subq $-32 * SIZE, X
  1024. subq $-32 * SIZE, Y
  1025. ALIGN_3
  1026. .L45:
  1027. testq $8, M
  1028. jle .L46
  1029. movaps -28 * SIZE(X), %xmm1
  1030. movaps -24 * SIZE(X), %xmm2
  1031. movss %xmm1, %xmm0
  1032. shufps $0x93, %xmm1, %xmm0
  1033. pshufd $0xb1, %xmm0, %xmm8
  1034. mulps ALPHA_R, %xmm0
  1035. mulps ALPHA_I, %xmm8
  1036. addps -32 * SIZE(Y), %xmm0
  1037. addps %xmm8, %xmm0
  1038. movaps %xmm0, -32 * SIZE(Y)
  1039. movss %xmm2, %xmm1
  1040. shufps $0x93, %xmm2, %xmm1
  1041. pshufd $0xb1, %xmm1, %xmm8
  1042. mulps ALPHA_R, %xmm1
  1043. mulps ALPHA_I, %xmm8
  1044. addps -28 * SIZE(Y), %xmm1
  1045. addps %xmm8, %xmm1
  1046. movaps %xmm1, -28 * SIZE(Y)
  1047. movaps -20 * SIZE(X), %xmm3
  1048. movaps -16 * SIZE(X), %xmm0
  1049. movss %xmm3, %xmm2
  1050. shufps $0x93, %xmm3, %xmm2
  1051. pshufd $0xb1, %xmm2, %xmm8
  1052. mulps ALPHA_R, %xmm2
  1053. mulps ALPHA_I, %xmm8
  1054. addps -24 * SIZE(Y), %xmm2
  1055. addps %xmm8, %xmm2
  1056. movaps %xmm2, -24 * SIZE(Y)
  1057. movss %xmm0, %xmm3
  1058. shufps $0x93, %xmm0, %xmm3
  1059. pshufd $0xb1, %xmm3, %xmm8
  1060. mulps ALPHA_R, %xmm3
  1061. mulps ALPHA_I, %xmm8
  1062. addps -20 * SIZE(Y), %xmm3
  1063. addps %xmm8, %xmm3
  1064. movaps %xmm3, -20 * SIZE(Y)
  1065. addq $16 * SIZE, X
  1066. addq $16 * SIZE, Y
  1067. ALIGN_2
  1068. .L46:
  1069. testq $4, M
  1070. jle .L47
  1071. movaps -28 * SIZE(X), %xmm1
  1072. movaps -24 * SIZE(X), %xmm2
  1073. movss %xmm1, %xmm0
  1074. shufps $0x93, %xmm1, %xmm0
  1075. pshufd $0xb1, %xmm0, %xmm8
  1076. mulps ALPHA_R, %xmm0
  1077. mulps ALPHA_I, %xmm8
  1078. addps -32 * SIZE(Y), %xmm0
  1079. addps %xmm8, %xmm0
  1080. movaps %xmm0, -32 * SIZE(Y)
  1081. movss %xmm2, %xmm1
  1082. shufps $0x93, %xmm2, %xmm1
  1083. pshufd $0xb1, %xmm1, %xmm8
  1084. mulps ALPHA_R, %xmm1
  1085. mulps ALPHA_I, %xmm8
  1086. addps -28 * SIZE(Y), %xmm1
  1087. addps %xmm8, %xmm1
  1088. movaps %xmm1, -28 * SIZE(Y)
  1089. movaps %xmm2, %xmm0
  1090. addq $8 * SIZE, X
  1091. addq $8 * SIZE, Y
  1092. ALIGN_2
  1093. .L47:
  1094. testq $2, M
  1095. jle .L48
  1096. movaps -28 * SIZE(X), %xmm1
  1097. movss %xmm1, %xmm0
  1098. shufps $0x93, %xmm1, %xmm0
  1099. pshufd $0xb1, %xmm0, %xmm8
  1100. mulps ALPHA_R, %xmm0
  1101. mulps ALPHA_I, %xmm8
  1102. addps -32 * SIZE(Y), %xmm0
  1103. addps %xmm8, %xmm0
  1104. movaps %xmm0, -32 * SIZE(Y)
  1105. movaps %xmm1, %xmm0
  1106. addq $4 * SIZE, X
  1107. addq $4 * SIZE, Y
  1108. ALIGN_2
  1109. .L48:
  1110. testq $1, M
  1111. jle .L999
  1112. movaps -28 * SIZE(X), %xmm1
  1113. movsd -32 * SIZE(Y), %xmm2
  1114. movss %xmm1, %xmm0
  1115. shufps $0x93, %xmm1, %xmm0
  1116. pshufd $0xb1, %xmm0, %xmm8
  1117. mulps ALPHA_R, %xmm0
  1118. mulps ALPHA_I, %xmm8
  1119. addps %xmm8, %xmm0
  1120. addps %xmm2, %xmm0
  1121. movlps %xmm0, -32 * SIZE(Y)
  1122. jmp .L999
  1123. ALIGN_3
  1124. #endif
  1125. .L50:
  1126. xorps %xmm0, %xmm0
  1127. subq $1 * SIZE, Y
  1128. testq $3 * SIZE, X
  1129. jne .L60
  1130. movq M, %rax
  1131. sarq $4, %rax
  1132. jle .L55
  1133. movaps -32 * SIZE(X), %xmm1
  1134. movaps -28 * SIZE(X), %xmm2
  1135. movaps -24 * SIZE(X), %xmm3
  1136. movaps -20 * SIZE(X), %xmm4
  1137. decq %rax
  1138. jle .L52
  1139. ALIGN_3
  1140. .L51:
  1141. movaps -16 * SIZE(X), %xmm5
  1142. movaps -12 * SIZE(X), %xmm6
  1143. #ifdef PREFETCHW
  1144. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  1145. #endif
  1146. pshufd $0xb1, %xmm1, %xmm8
  1147. mulps ALPHA_R, %xmm1
  1148. mulps ALPHA_I, %xmm8
  1149. addps %xmm8, %xmm1
  1150. movss %xmm1, %xmm0
  1151. shufps $0x93, %xmm1, %xmm0
  1152. addps -32 * SIZE(Y), %xmm0
  1153. movaps %xmm0, -32 * SIZE(Y)
  1154. pshufd $0xb1, %xmm2, %xmm8
  1155. mulps ALPHA_R, %xmm2
  1156. mulps ALPHA_I, %xmm8
  1157. addps %xmm8, %xmm2
  1158. movss %xmm2, %xmm1
  1159. shufps $0x93, %xmm2, %xmm1
  1160. addps -28 * SIZE(Y), %xmm1
  1161. movaps %xmm1, -28 * SIZE(Y)
  1162. movaps -8 * SIZE(X), %xmm7
  1163. movaps -4 * SIZE(X), %xmm0
  1164. #ifdef PREFETCH
  1165. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  1166. #endif
  1167. pshufd $0xb1, %xmm3, %xmm8
  1168. mulps ALPHA_R, %xmm3
  1169. mulps ALPHA_I, %xmm8
  1170. addps %xmm8, %xmm3
  1171. movss %xmm3, %xmm2
  1172. shufps $0x93, %xmm3, %xmm2
  1173. addps -24 * SIZE(Y), %xmm2
  1174. movaps %xmm2, -24 * SIZE(Y)
  1175. pshufd $0xb1, %xmm4, %xmm8
  1176. mulps ALPHA_R, %xmm4
  1177. mulps ALPHA_I, %xmm8
  1178. addps %xmm8, %xmm4
  1179. movss %xmm4, %xmm3
  1180. shufps $0x93, %xmm4, %xmm3
  1181. addps -20 * SIZE(Y), %xmm3
  1182. movaps %xmm3, -20 * SIZE(Y)
  1183. movaps 0 * SIZE(X), %xmm1
  1184. movaps 4 * SIZE(X), %xmm2
  1185. #if defined(PREFETCHW) && !defined(FETCH128)
  1186. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  1187. #endif
  1188. pshufd $0xb1, %xmm5, %xmm8
  1189. mulps ALPHA_R, %xmm5
  1190. mulps ALPHA_I, %xmm8
  1191. addps %xmm8, %xmm5
  1192. movss %xmm5, %xmm4
  1193. shufps $0x93, %xmm5, %xmm4
  1194. addps -16 * SIZE(Y), %xmm4
  1195. movaps %xmm4, -16 * SIZE(Y)
  1196. pshufd $0xb1, %xmm6, %xmm8
  1197. mulps ALPHA_R, %xmm6
  1198. mulps ALPHA_I, %xmm8
  1199. addps %xmm8, %xmm6
  1200. movss %xmm6, %xmm5
  1201. shufps $0x93, %xmm6, %xmm5
  1202. addps -12 * SIZE(Y), %xmm5
  1203. movaps %xmm5, -12 * SIZE(Y)
  1204. movaps 8 * SIZE(X), %xmm3
  1205. movaps 12 * SIZE(X), %xmm4
  1206. #if defined(PREFETCH) && !defined(FETCH128)
  1207. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  1208. #endif
  1209. pshufd $0xb1, %xmm7, %xmm8
  1210. mulps ALPHA_R, %xmm7
  1211. mulps ALPHA_I, %xmm8
  1212. addps %xmm8, %xmm7
  1213. movss %xmm7, %xmm6
  1214. shufps $0x93, %xmm7, %xmm6
  1215. addps -8 * SIZE(Y), %xmm6
  1216. movaps %xmm6, -8 * SIZE(Y)
  1217. pshufd $0xb1, %xmm0, %xmm8
  1218. mulps ALPHA_R, %xmm0
  1219. mulps ALPHA_I, %xmm8
  1220. addps %xmm8, %xmm0
  1221. movss %xmm0, %xmm7
  1222. shufps $0x93, %xmm0, %xmm7
  1223. addps -4 * SIZE(Y), %xmm7
  1224. movaps %xmm7, -4 * SIZE(Y)
  1225. subq $-32 * SIZE, X
  1226. subq $-32 * SIZE, Y
  1227. decq %rax
  1228. jg .L51
  1229. ALIGN_3
  1230. .L52:
  1231. movaps -16 * SIZE(X), %xmm5
  1232. movaps -12 * SIZE(X), %xmm6
  1233. pshufd $0xb1, %xmm1, %xmm8
  1234. mulps ALPHA_R, %xmm1
  1235. mulps ALPHA_I, %xmm8
  1236. addps %xmm8, %xmm1
  1237. movss %xmm1, %xmm0
  1238. shufps $0x93, %xmm1, %xmm0
  1239. addps -32 * SIZE(Y), %xmm0
  1240. movaps %xmm0, -32 * SIZE(Y)
  1241. pshufd $0xb1, %xmm2, %xmm8
  1242. mulps ALPHA_R, %xmm2
  1243. mulps ALPHA_I, %xmm8
  1244. addps %xmm8, %xmm2
  1245. movss %xmm2, %xmm1
  1246. shufps $0x93, %xmm2, %xmm1
  1247. addps -28 * SIZE(Y), %xmm1
  1248. movaps %xmm1, -28 * SIZE(Y)
  1249. movaps -8 * SIZE(X), %xmm7
  1250. movaps -4 * SIZE(X), %xmm0
  1251. pshufd $0xb1, %xmm3, %xmm8
  1252. mulps ALPHA_R, %xmm3
  1253. mulps ALPHA_I, %xmm8
  1254. addps %xmm8, %xmm3
  1255. movss %xmm3, %xmm2
  1256. shufps $0x93, %xmm3, %xmm2
  1257. addps -24 * SIZE(Y), %xmm2
  1258. movaps %xmm2, -24 * SIZE(Y)
  1259. pshufd $0xb1, %xmm4, %xmm8
  1260. mulps ALPHA_R, %xmm4
  1261. mulps ALPHA_I, %xmm8
  1262. addps %xmm8, %xmm4
  1263. movss %xmm4, %xmm3
  1264. shufps $0x93, %xmm4, %xmm3
  1265. addps -20 * SIZE(Y), %xmm3
  1266. movaps %xmm3, -20 * SIZE(Y)
  1267. pshufd $0xb1, %xmm5, %xmm8
  1268. mulps ALPHA_R, %xmm5
  1269. mulps ALPHA_I, %xmm8
  1270. addps %xmm8, %xmm5
  1271. movss %xmm5, %xmm4
  1272. shufps $0x93, %xmm5, %xmm4
  1273. addps -16 * SIZE(Y), %xmm4
  1274. movaps %xmm4, -16 * SIZE(Y)
  1275. pshufd $0xb1, %xmm6, %xmm8
  1276. mulps ALPHA_R, %xmm6
  1277. mulps ALPHA_I, %xmm8
  1278. addps %xmm8, %xmm6
  1279. movss %xmm6, %xmm5
  1280. shufps $0x93, %xmm6, %xmm5
  1281. addps -12 * SIZE(Y), %xmm5
  1282. movaps %xmm5, -12 * SIZE(Y)
  1283. pshufd $0xb1, %xmm7, %xmm8
  1284. mulps ALPHA_R, %xmm7
  1285. mulps ALPHA_I, %xmm8
  1286. addps %xmm8, %xmm7
  1287. movss %xmm7, %xmm6
  1288. shufps $0x93, %xmm7, %xmm6
  1289. addps -8 * SIZE(Y), %xmm6
  1290. movaps %xmm6, -8 * SIZE(Y)
  1291. pshufd $0xb1, %xmm0, %xmm8
  1292. mulps ALPHA_R, %xmm0
  1293. mulps ALPHA_I, %xmm8
  1294. addps %xmm8, %xmm0
  1295. movss %xmm0, %xmm7
  1296. shufps $0x93, %xmm0, %xmm7
  1297. addps -4 * SIZE(Y), %xmm7
  1298. movaps %xmm7, -4 * SIZE(Y)
  1299. subq $-32 * SIZE, X
  1300. subq $-32 * SIZE, Y
  1301. ALIGN_3
  1302. .L55:
  1303. testq $8, M
  1304. jle .L56
  1305. movaps -32 * SIZE(X), %xmm1
  1306. movaps -28 * SIZE(X), %xmm2
  1307. pshufd $0xb1, %xmm1, %xmm8
  1308. mulps ALPHA_R, %xmm1
  1309. mulps ALPHA_I, %xmm8
  1310. addps %xmm8, %xmm1
  1311. movss %xmm1, %xmm0
  1312. shufps $0x93, %xmm1, %xmm0
  1313. addps -32 * SIZE(Y), %xmm0
  1314. movaps %xmm0, -32 * SIZE(Y)
  1315. pshufd $0xb1, %xmm2, %xmm8
  1316. mulps ALPHA_R, %xmm2
  1317. mulps ALPHA_I, %xmm8
  1318. addps %xmm8, %xmm2
  1319. movss %xmm2, %xmm1
  1320. shufps $0x93, %xmm2, %xmm1
  1321. addps -28 * SIZE(Y), %xmm1
  1322. movaps %xmm1, -28 * SIZE(Y)
  1323. movaps -24 * SIZE(X), %xmm3
  1324. movaps -20 * SIZE(X), %xmm0
  1325. pshufd $0xb1, %xmm3, %xmm8
  1326. mulps ALPHA_R, %xmm3
  1327. mulps ALPHA_I, %xmm8
  1328. addps %xmm8, %xmm3
  1329. movss %xmm3, %xmm2
  1330. shufps $0x93, %xmm3, %xmm2
  1331. addps -24 * SIZE(Y), %xmm2
  1332. movaps %xmm2, -24 * SIZE(Y)
  1333. pshufd $0xb1, %xmm0, %xmm8
  1334. mulps ALPHA_R, %xmm0
  1335. mulps ALPHA_I, %xmm8
  1336. addps %xmm8, %xmm0
  1337. movss %xmm0, %xmm3
  1338. shufps $0x93, %xmm0, %xmm3
  1339. addps -20 * SIZE(Y), %xmm3
  1340. movaps %xmm3, -20 * SIZE(Y)
  1341. addq $16 * SIZE, X
  1342. addq $16 * SIZE, Y
  1343. ALIGN_2
  1344. .L56:
  1345. testq $4, M
  1346. jle .L57
  1347. movaps -32 * SIZE(X), %xmm1
  1348. movaps -28 * SIZE(X), %xmm2
  1349. pshufd $0xb1, %xmm1, %xmm8
  1350. mulps ALPHA_R, %xmm1
  1351. mulps ALPHA_I, %xmm8
  1352. addps %xmm8, %xmm1
  1353. movss %xmm1, %xmm0
  1354. shufps $0x93, %xmm1, %xmm0
  1355. addps -32 * SIZE(Y), %xmm0
  1356. movaps %xmm0, -32 * SIZE(Y)
  1357. pshufd $0xb1, %xmm2, %xmm8
  1358. mulps ALPHA_R, %xmm2
  1359. mulps ALPHA_I, %xmm8
  1360. addps %xmm8, %xmm2
  1361. movss %xmm2, %xmm1
  1362. shufps $0x93, %xmm2, %xmm1
  1363. addps -28 * SIZE(Y), %xmm1
  1364. movaps %xmm1, -28 * SIZE(Y)
  1365. movaps %xmm2, %xmm0
  1366. addq $8 * SIZE, X
  1367. addq $8 * SIZE, Y
  1368. ALIGN_2
  1369. .L57:
  1370. testq $2, M
  1371. jle .L58
  1372. movaps -32 * SIZE(X), %xmm1
  1373. pshufd $0xb1, %xmm1, %xmm8
  1374. mulps ALPHA_R, %xmm1
  1375. mulps ALPHA_I, %xmm8
  1376. addps %xmm8, %xmm1
  1377. movss %xmm1, %xmm0
  1378. shufps $0x93, %xmm1, %xmm0
  1379. addps -32 * SIZE(Y), %xmm0
  1380. movaps %xmm0, -32 * SIZE(Y)
  1381. movaps %xmm1, %xmm0
  1382. addq $4 * SIZE, X
  1383. addq $4 * SIZE, Y
  1384. ALIGN_2
  1385. .L58:
  1386. testq $1, M
  1387. jle .L59
  1388. #ifdef movsd
  1389. xorps %xmm1, %xmm1
  1390. #endif
  1391. movsd -32 * SIZE(X), %xmm1
  1392. pshufd $0xb1, %xmm1, %xmm8
  1393. mulps ALPHA_R, %xmm1
  1394. mulps ALPHA_I, %xmm8
  1395. addps %xmm8, %xmm1
  1396. movss %xmm1, %xmm0
  1397. shufps $0x93, %xmm1, %xmm0
  1398. addps -32 * SIZE(Y), %xmm0
  1399. movaps %xmm0, -32 * SIZE(Y)
  1400. jmp .L999
  1401. ALIGN_3
  1402. .L59:
  1403. shufps $0x93, %xmm0, %xmm0
  1404. addss -32 * SIZE(Y), %xmm0
  1405. movss %xmm0, -32 * SIZE(Y)
  1406. jmp .L999
  1407. ALIGN_3
  1408. .L60:
  1409. #ifdef ALIGNED_ACCESS
  1410. testq $2 * SIZE, X
  1411. jne .L70
  1412. subq $1 * SIZE, X
  1413. movaps -32 * SIZE(X), %xmm1
  1414. movq M, %rax
  1415. sarq $4, %rax
  1416. jle .L65
  1417. movaps -28 * SIZE(X), %xmm2
  1418. movaps -24 * SIZE(X), %xmm3
  1419. decq %rax
  1420. jle .L62
  1421. ALIGN_3
  1422. .L61:
  1423. movaps -20 * SIZE(X), %xmm4
  1424. movaps -16 * SIZE(X), %xmm5
  1425. #ifdef PREFETCHW
  1426. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  1427. #endif
  1428. movss %xmm2, %xmm1
  1429. SHUFPS_39 %xmm1, %xmm1
  1430. pshufd $0xb1, %xmm1, %xmm8
  1431. mulps ALPHA_R, %xmm1
  1432. mulps ALPHA_I, %xmm8
  1433. addps %xmm8, %xmm1
  1434. movss %xmm1, %xmm0
  1435. shufps $0x93, %xmm1, %xmm0
  1436. addps -32 * SIZE(Y), %xmm0
  1437. movaps %xmm0, -32 * SIZE(Y)
  1438. movss %xmm3, %xmm2
  1439. SHUFPS_39 %xmm2, %xmm2
  1440. pshufd $0xb1, %xmm2, %xmm8
  1441. mulps ALPHA_R, %xmm2
  1442. mulps ALPHA_I, %xmm8
  1443. addps %xmm8, %xmm2
  1444. movss %xmm2, %xmm1
  1445. shufps $0x93, %xmm2, %xmm1
  1446. addps -28 * SIZE(Y), %xmm1
  1447. movaps %xmm1, -28 * SIZE(Y)
  1448. movaps -12 * SIZE(X), %xmm6
  1449. movaps -8 * SIZE(X), %xmm7
  1450. #ifdef PREFETCH
  1451. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  1452. #endif
  1453. movss %xmm4, %xmm3
  1454. SHUFPS_39 %xmm3, %xmm3
  1455. pshufd $0xb1, %xmm3, %xmm8
  1456. mulps ALPHA_R, %xmm3
  1457. mulps ALPHA_I, %xmm8
  1458. addps %xmm8, %xmm3
  1459. movss %xmm3, %xmm2
  1460. shufps $0x93, %xmm3, %xmm2
  1461. addps -24 * SIZE(Y), %xmm2
  1462. movaps %xmm2, -24 * SIZE(Y)
  1463. movss %xmm5, %xmm4
  1464. SHUFPS_39 %xmm4, %xmm4
  1465. pshufd $0xb1, %xmm4, %xmm8
  1466. mulps ALPHA_R, %xmm4
  1467. mulps ALPHA_I, %xmm8
  1468. addps %xmm8, %xmm4
  1469. movss %xmm4, %xmm3
  1470. shufps $0x93, %xmm4, %xmm3
  1471. addps -20 * SIZE(Y), %xmm3
  1472. movaps %xmm3, -20 * SIZE(Y)
  1473. #if defined(PREFETCHW) && !defined(FETCH128)
  1474. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  1475. #endif
  1476. movaps -4 * SIZE(X), %xmm0
  1477. movaps 0 * SIZE(X), %xmm1
  1478. movss %xmm6, %xmm5
  1479. SHUFPS_39 %xmm5, %xmm5
  1480. pshufd $0xb1, %xmm5, %xmm8
  1481. mulps ALPHA_R, %xmm5
  1482. mulps ALPHA_I, %xmm8
  1483. addps %xmm8, %xmm5
  1484. movss %xmm5, %xmm4
  1485. shufps $0x93, %xmm5, %xmm4
  1486. addps -16 * SIZE(Y), %xmm4
  1487. movaps %xmm4, -16 * SIZE(Y)
  1488. movss %xmm7, %xmm6
  1489. SHUFPS_39 %xmm6, %xmm6
  1490. pshufd $0xb1, %xmm6, %xmm8
  1491. mulps ALPHA_R, %xmm6
  1492. mulps ALPHA_I, %xmm8
  1493. addps %xmm8, %xmm6
  1494. movss %xmm6, %xmm5
  1495. shufps $0x93, %xmm6, %xmm5
  1496. addps -12 * SIZE(Y), %xmm5
  1497. movaps %xmm5, -12 * SIZE(Y)
  1498. movaps 4 * SIZE(X), %xmm2
  1499. movaps 8 * SIZE(X), %xmm3
  1500. #if defined(PREFETCH) && !defined(FETCH128)
  1501. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  1502. #endif
  1503. movss %xmm0, %xmm7
  1504. SHUFPS_39 %xmm7, %xmm7
  1505. pshufd $0xb1, %xmm7, %xmm8
  1506. mulps ALPHA_R, %xmm7
  1507. mulps ALPHA_I, %xmm8
  1508. addps %xmm8, %xmm7
  1509. movss %xmm7, %xmm6
  1510. shufps $0x93, %xmm7, %xmm6
  1511. addps -8 * SIZE(Y), %xmm6
  1512. movaps %xmm6, -8 * SIZE(Y)
  1513. movss %xmm1, %xmm0
  1514. SHUFPS_39 %xmm0, %xmm0
  1515. pshufd $0xb1, %xmm0, %xmm8
  1516. mulps ALPHA_R, %xmm0
  1517. mulps ALPHA_I, %xmm8
  1518. addps %xmm8, %xmm0
  1519. movss %xmm0, %xmm7
  1520. shufps $0x93, %xmm0, %xmm7
  1521. addps -4 * SIZE(Y), %xmm7
  1522. movaps %xmm7, -4 * SIZE(Y)
  1523. subq $-32 * SIZE, X
  1524. subq $-32 * SIZE, Y
  1525. decq %rax
  1526. jg .L61
  1527. ALIGN_3
  1528. .L62:
  1529. movaps -20 * SIZE(X), %xmm4
  1530. movaps -16 * SIZE(X), %xmm5
  1531. movss %xmm2, %xmm1
  1532. SHUFPS_39 %xmm1, %xmm1
  1533. pshufd $0xb1, %xmm1, %xmm8
  1534. mulps ALPHA_R, %xmm1
  1535. mulps ALPHA_I, %xmm8
  1536. addps %xmm8, %xmm1
  1537. movss %xmm1, %xmm0
  1538. shufps $0x93, %xmm1, %xmm0
  1539. addps -32 * SIZE(Y), %xmm0
  1540. movaps %xmm0, -32 * SIZE(Y)
  1541. movss %xmm3, %xmm2
  1542. SHUFPS_39 %xmm2, %xmm2
  1543. pshufd $0xb1, %xmm2, %xmm8
  1544. mulps ALPHA_R, %xmm2
  1545. mulps ALPHA_I, %xmm8
  1546. addps %xmm8, %xmm2
  1547. movss %xmm2, %xmm1
  1548. shufps $0x93, %xmm2, %xmm1
  1549. addps -28 * SIZE(Y), %xmm1
  1550. movaps %xmm1, -28 * SIZE(Y)
  1551. movaps -12 * SIZE(X), %xmm6
  1552. movaps -8 * SIZE(X), %xmm7
  1553. movss %xmm4, %xmm3
  1554. SHUFPS_39 %xmm3, %xmm3
  1555. pshufd $0xb1, %xmm3, %xmm8
  1556. mulps ALPHA_R, %xmm3
  1557. mulps ALPHA_I, %xmm8
  1558. addps %xmm8, %xmm3
  1559. movss %xmm3, %xmm2
  1560. shufps $0x93, %xmm3, %xmm2
  1561. addps -24 * SIZE(Y), %xmm2
  1562. movaps %xmm2, -24 * SIZE(Y)
  1563. movss %xmm5, %xmm4
  1564. SHUFPS_39 %xmm4, %xmm4
  1565. pshufd $0xb1, %xmm4, %xmm8
  1566. mulps ALPHA_R, %xmm4
  1567. mulps ALPHA_I, %xmm8
  1568. addps %xmm8, %xmm4
  1569. movss %xmm4, %xmm3
  1570. shufps $0x93, %xmm4, %xmm3
  1571. addps -20 * SIZE(Y), %xmm3
  1572. movaps %xmm3, -20 * SIZE(Y)
  1573. movss %xmm6, %xmm5
  1574. SHUFPS_39 %xmm5, %xmm5
  1575. pshufd $0xb1, %xmm5, %xmm8
  1576. mulps ALPHA_R, %xmm5
  1577. mulps ALPHA_I, %xmm8
  1578. addps %xmm8, %xmm5
  1579. movss %xmm5, %xmm4
  1580. shufps $0x93, %xmm5, %xmm4
  1581. addps -16 * SIZE(Y), %xmm4
  1582. movaps %xmm4, -16 * SIZE(Y)
  1583. movaps -4 * SIZE(X), %xmm0
  1584. movaps 0 * SIZE(X), %xmm1
  1585. movss %xmm7, %xmm6
  1586. SHUFPS_39 %xmm6, %xmm6
  1587. pshufd $0xb1, %xmm6, %xmm8
  1588. mulps ALPHA_R, %xmm6
  1589. mulps ALPHA_I, %xmm8
  1590. addps %xmm8, %xmm6
  1591. movss %xmm6, %xmm5
  1592. shufps $0x93, %xmm6, %xmm5
  1593. addps -12 * SIZE(Y), %xmm5
  1594. movaps %xmm5, -12 * SIZE(Y)
  1595. movss %xmm0, %xmm7
  1596. SHUFPS_39 %xmm7, %xmm7
  1597. pshufd $0xb1, %xmm7, %xmm8
  1598. mulps ALPHA_R, %xmm7
  1599. mulps ALPHA_I, %xmm8
  1600. addps %xmm8, %xmm7
  1601. movss %xmm7, %xmm6
  1602. shufps $0x93, %xmm7, %xmm6
  1603. addps -8 * SIZE(Y), %xmm6
  1604. movaps %xmm6, -8 * SIZE(Y)
  1605. movss %xmm1, %xmm0
  1606. SHUFPS_39 %xmm0, %xmm0
  1607. pshufd $0xb1, %xmm0, %xmm8
  1608. mulps ALPHA_R, %xmm0
  1609. mulps ALPHA_I, %xmm8
  1610. addps %xmm8, %xmm0
  1611. movss %xmm0, %xmm7
  1612. shufps $0x93, %xmm0, %xmm7
  1613. addps -4 * SIZE(Y), %xmm7
  1614. movaps %xmm7, -4 * SIZE(Y)
  1615. subq $-32 * SIZE, X
  1616. subq $-32 * SIZE, Y
  1617. ALIGN_3
  1618. .L65:
  1619. testq $8, M
  1620. jle .L66
  1621. movaps -28 * SIZE(X), %xmm2
  1622. movaps -24 * SIZE(X), %xmm3
  1623. movss %xmm2, %xmm1
  1624. SHUFPS_39 %xmm1, %xmm1
  1625. pshufd $0xb1, %xmm1, %xmm8
  1626. mulps ALPHA_R, %xmm1
  1627. mulps ALPHA_I, %xmm8
  1628. addps %xmm8, %xmm1
  1629. movss %xmm1, %xmm0
  1630. shufps $0x93, %xmm1, %xmm0
  1631. addps -32 * SIZE(Y), %xmm0
  1632. movaps %xmm0, -32 * SIZE(Y)
  1633. movss %xmm3, %xmm2
  1634. SHUFPS_39 %xmm2, %xmm2
  1635. pshufd $0xb1, %xmm2, %xmm8
  1636. mulps ALPHA_R, %xmm2
  1637. mulps ALPHA_I, %xmm8
  1638. addps %xmm8, %xmm2
  1639. movss %xmm2, %xmm1
  1640. shufps $0x93, %xmm2, %xmm1
  1641. addps -28 * SIZE(Y), %xmm1
  1642. movaps %xmm1, -28 * SIZE(Y)
  1643. movaps -20 * SIZE(X), %xmm0
  1644. movaps -16 * SIZE(X), %xmm1
  1645. movss %xmm0, %xmm3
  1646. SHUFPS_39 %xmm3, %xmm3
  1647. pshufd $0xb1, %xmm3, %xmm8
  1648. mulps ALPHA_R, %xmm3
  1649. mulps ALPHA_I, %xmm8
  1650. addps %xmm8, %xmm3
  1651. movss %xmm3, %xmm2
  1652. shufps $0x93, %xmm3, %xmm2
  1653. addps -24 * SIZE(Y), %xmm2
  1654. movaps %xmm2, -24 * SIZE(Y)
  1655. movss %xmm1, %xmm0
  1656. SHUFPS_39 %xmm0, %xmm0
  1657. pshufd $0xb1, %xmm0, %xmm8
  1658. mulps ALPHA_R, %xmm0
  1659. mulps ALPHA_I, %xmm8
  1660. addps %xmm8, %xmm0
  1661. movss %xmm0, %xmm3
  1662. shufps $0x93, %xmm0, %xmm3
  1663. addps -20 * SIZE(Y), %xmm3
  1664. movaps %xmm3, -20 * SIZE(Y)
  1665. addq $16 * SIZE, X
  1666. addq $16 * SIZE, Y
  1667. ALIGN_2
  1668. .L66:
  1669. testq $4, M
  1670. jle .L67
  1671. movaps -28 * SIZE(X), %xmm2
  1672. movaps -24 * SIZE(X), %xmm3
  1673. movss %xmm2, %xmm1
  1674. SHUFPS_39 %xmm1, %xmm1
  1675. pshufd $0xb1, %xmm1, %xmm8
  1676. mulps ALPHA_R, %xmm1
  1677. mulps ALPHA_I, %xmm8
  1678. addps %xmm8, %xmm1
  1679. movss %xmm1, %xmm0
  1680. shufps $0x93, %xmm1, %xmm0
  1681. addps -32 * SIZE(Y), %xmm0
  1682. movaps %xmm0, -32 * SIZE(Y)
  1683. movss %xmm3, %xmm2
  1684. SHUFPS_39 %xmm2, %xmm2
  1685. pshufd $0xb1, %xmm2, %xmm8
  1686. mulps ALPHA_R, %xmm2
  1687. mulps ALPHA_I, %xmm8
  1688. addps %xmm8, %xmm2
  1689. movss %xmm2, %xmm1
  1690. shufps $0x93, %xmm2, %xmm1
  1691. addps -28 * SIZE(Y), %xmm1
  1692. movaps %xmm1, -28 * SIZE(Y)
  1693. movaps %xmm2, %xmm0
  1694. movaps %xmm3, %xmm1
  1695. addq $8 * SIZE, X
  1696. addq $8 * SIZE, Y
  1697. ALIGN_2
  1698. .L67:
  1699. testq $2, M
  1700. jle .L68
  1701. movaps -28 * SIZE(X), %xmm2
  1702. movss %xmm2, %xmm1
  1703. SHUFPS_39 %xmm1, %xmm1
  1704. pshufd $0xb1, %xmm1, %xmm8
  1705. mulps ALPHA_R, %xmm1
  1706. mulps ALPHA_I, %xmm8
  1707. addps %xmm8, %xmm1
  1708. movss %xmm1, %xmm0
  1709. shufps $0x93, %xmm1, %xmm0
  1710. addps -32 * SIZE(Y), %xmm0
  1711. movaps %xmm0, -32 * SIZE(Y)
  1712. movaps %xmm1, %xmm0
  1713. movaps %xmm2, %xmm1
  1714. addq $4 * SIZE, X
  1715. addq $4 * SIZE, Y
  1716. ALIGN_2
  1717. .L68:
  1718. testq $1, M
  1719. jle .L69
  1720. movaps -28 * SIZE(X), %xmm2
  1721. movss %xmm2, %xmm1
  1722. SHUFPS_39 %xmm1, %xmm1
  1723. pshufd $0xb1, %xmm1, %xmm8
  1724. mulps ALPHA_R, %xmm1
  1725. mulps ALPHA_I, %xmm8
  1726. addps %xmm8, %xmm1
  1727. movss %xmm1, %xmm0
  1728. shufps $0x93, %xmm1, %xmm0
  1729. addps -32 * SIZE(Y), %xmm0
  1730. movlps %xmm0, -32 * SIZE(Y)
  1731. movhlps %xmm0, %xmm0
  1732. movss %xmm0, -30 * SIZE(Y)
  1733. jmp .L999
  1734. .L69:
  1735. shufps $0x93, %xmm0, %xmm0
  1736. addss -32 * SIZE(Y), %xmm0
  1737. movss %xmm0, -32 * SIZE(Y)
  1738. jmp .L999
  1739. ALIGN_3
  1740. .L70:
  1741. testq $1 * SIZE, X
  1742. jne .L80
  1743. #endif
  1744. movq M, %rax
  1745. sarq $4, %rax
  1746. jle .L75
  1747. movsd -32 * SIZE(X), %xmm1
  1748. movhps -30 * SIZE(X), %xmm1
  1749. movsd -28 * SIZE(X), %xmm2
  1750. movhps -26 * SIZE(X), %xmm2
  1751. movsd -24 * SIZE(X), %xmm3
  1752. movhps -22 * SIZE(X), %xmm3
  1753. movsd -20 * SIZE(X), %xmm4
  1754. movhps -18 * SIZE(X), %xmm4
  1755. decq %rax
  1756. jle .L72
  1757. ALIGN_3
  1758. .L71:
  1759. movsd -16 * SIZE(X), %xmm5
  1760. movhps -14 * SIZE(X), %xmm5
  1761. movsd -12 * SIZE(X), %xmm6
  1762. movhps -10 * SIZE(X), %xmm6
  1763. #ifdef PREFETCHW
  1764. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  1765. #endif
  1766. pshufd $0xb1, %xmm1, %xmm8
  1767. mulps ALPHA_R, %xmm1
  1768. mulps ALPHA_I, %xmm8
  1769. addps %xmm8, %xmm1
  1770. movss %xmm1, %xmm0
  1771. shufps $0x93, %xmm1, %xmm0
  1772. addps -32 * SIZE(Y), %xmm0
  1773. movaps %xmm0, -32 * SIZE(Y)
  1774. pshufd $0xb1, %xmm2, %xmm8
  1775. mulps ALPHA_R, %xmm2
  1776. mulps ALPHA_I, %xmm8
  1777. addps %xmm8, %xmm2
  1778. movss %xmm2, %xmm1
  1779. shufps $0x93, %xmm2, %xmm1
  1780. addps -28 * SIZE(Y), %xmm1
  1781. movaps %xmm1, -28 * SIZE(Y)
  1782. movsd -8 * SIZE(X), %xmm7
  1783. movhps -6 * SIZE(X), %xmm7
  1784. movsd -4 * SIZE(X), %xmm0
  1785. movhps -2 * SIZE(X), %xmm0
  1786. #ifdef PREFETCH
  1787. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  1788. #endif
  1789. pshufd $0xb1, %xmm3, %xmm8
  1790. mulps ALPHA_R, %xmm3
  1791. mulps ALPHA_I, %xmm8
  1792. addps %xmm8, %xmm3
  1793. movss %xmm3, %xmm2
  1794. shufps $0x93, %xmm3, %xmm2
  1795. addps -24 * SIZE(Y), %xmm2
  1796. movaps %xmm2, -24 * SIZE(Y)
  1797. pshufd $0xb1, %xmm4, %xmm8
  1798. mulps ALPHA_R, %xmm4
  1799. mulps ALPHA_I, %xmm8
  1800. addps %xmm8, %xmm4
  1801. movss %xmm4, %xmm3
  1802. shufps $0x93, %xmm4, %xmm3
  1803. addps -20 * SIZE(Y), %xmm3
  1804. movaps %xmm3, -20 * SIZE(Y)
  1805. movsd 0 * SIZE(X), %xmm1
  1806. movhps 2 * SIZE(X), %xmm1
  1807. movsd 4 * SIZE(X), %xmm2
  1808. movhps 6 * SIZE(X), %xmm2
  1809. #if defined(PREFETCHW) && !defined(FETCH128)
  1810. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  1811. #endif
  1812. pshufd $0xb1, %xmm5, %xmm8
  1813. mulps ALPHA_R, %xmm5
  1814. mulps ALPHA_I, %xmm8
  1815. addps %xmm8, %xmm5
  1816. movss %xmm5, %xmm4
  1817. shufps $0x93, %xmm5, %xmm4
  1818. addps -16 * SIZE(Y), %xmm4
  1819. movaps %xmm4, -16 * SIZE(Y)
  1820. pshufd $0xb1, %xmm6, %xmm8
  1821. mulps ALPHA_R, %xmm6
  1822. mulps ALPHA_I, %xmm8
  1823. addps %xmm8, %xmm6
  1824. movss %xmm6, %xmm5
  1825. shufps $0x93, %xmm6, %xmm5
  1826. addps -12 * SIZE(Y), %xmm5
  1827. movaps %xmm5, -12 * SIZE(Y)
  1828. movsd 8 * SIZE(X), %xmm3
  1829. movhps 10 * SIZE(X), %xmm3
  1830. movsd 12 * SIZE(X), %xmm4
  1831. movhps 14 * SIZE(X), %xmm4
  1832. #if defined(PREFETCH) && !defined(FETCH128)
  1833. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  1834. #endif
  1835. pshufd $0xb1, %xmm7, %xmm8
  1836. mulps ALPHA_R, %xmm7
  1837. mulps ALPHA_I, %xmm8
  1838. addps %xmm8, %xmm7
  1839. movss %xmm7, %xmm6
  1840. shufps $0x93, %xmm7, %xmm6
  1841. addps -8 * SIZE(Y), %xmm6
  1842. movaps %xmm6, -8 * SIZE(Y)
  1843. pshufd $0xb1, %xmm0, %xmm8
  1844. mulps ALPHA_R, %xmm0
  1845. mulps ALPHA_I, %xmm8
  1846. addps %xmm8, %xmm0
  1847. movss %xmm0, %xmm7
  1848. shufps $0x93, %xmm0, %xmm7
  1849. addps -4 * SIZE(Y), %xmm7
  1850. movaps %xmm7, -4 * SIZE(Y)
  1851. subq $-32 * SIZE, X
  1852. subq $-32 * SIZE, Y
  1853. decq %rax
  1854. jg .L71
  1855. ALIGN_3
  1856. .L72:
  1857. movsd -16 * SIZE(X), %xmm5
  1858. movhps -14 * SIZE(X), %xmm5
  1859. movsd -12 * SIZE(X), %xmm6
  1860. movhps -10 * SIZE(X), %xmm6
  1861. pshufd $0xb1, %xmm1, %xmm8
  1862. mulps ALPHA_R, %xmm1
  1863. mulps ALPHA_I, %xmm8
  1864. addps %xmm8, %xmm1
  1865. movss %xmm1, %xmm0
  1866. shufps $0x93, %xmm1, %xmm0
  1867. addps -32 * SIZE(Y), %xmm0
  1868. movaps %xmm0, -32 * SIZE(Y)
  1869. pshufd $0xb1, %xmm2, %xmm8
  1870. mulps ALPHA_R, %xmm2
  1871. mulps ALPHA_I, %xmm8
  1872. addps %xmm8, %xmm2
  1873. movss %xmm2, %xmm1
  1874. shufps $0x93, %xmm2, %xmm1
  1875. addps -28 * SIZE(Y), %xmm1
  1876. movaps %xmm1, -28 * SIZE(Y)
  1877. movsd -8 * SIZE(X), %xmm7
  1878. movhps -6 * SIZE(X), %xmm7
  1879. movsd -4 * SIZE(X), %xmm0
  1880. movhps -2 * SIZE(X), %xmm0
  1881. pshufd $0xb1, %xmm3, %xmm8
  1882. mulps ALPHA_R, %xmm3
  1883. mulps ALPHA_I, %xmm8
  1884. addps %xmm8, %xmm3
  1885. movss %xmm3, %xmm2
  1886. shufps $0x93, %xmm3, %xmm2
  1887. addps -24 * SIZE(Y), %xmm2
  1888. movaps %xmm2, -24 * SIZE(Y)
  1889. pshufd $0xb1, %xmm4, %xmm8
  1890. mulps ALPHA_R, %xmm4
  1891. mulps ALPHA_I, %xmm8
  1892. addps %xmm8, %xmm4
  1893. movss %xmm4, %xmm3
  1894. shufps $0x93, %xmm4, %xmm3
  1895. addps -20 * SIZE(Y), %xmm3
  1896. movaps %xmm3, -20 * SIZE(Y)
  1897. pshufd $0xb1, %xmm5, %xmm8
  1898. mulps ALPHA_R, %xmm5
  1899. mulps ALPHA_I, %xmm8
  1900. addps %xmm8, %xmm5
  1901. movss %xmm5, %xmm4
  1902. shufps $0x93, %xmm5, %xmm4
  1903. addps -16 * SIZE(Y), %xmm4
  1904. movaps %xmm4, -16 * SIZE(Y)
  1905. pshufd $0xb1, %xmm6, %xmm8
  1906. mulps ALPHA_R, %xmm6
  1907. mulps ALPHA_I, %xmm8
  1908. addps %xmm8, %xmm6
  1909. movss %xmm6, %xmm5
  1910. shufps $0x93, %xmm6, %xmm5
  1911. addps -12 * SIZE(Y), %xmm5
  1912. movaps %xmm5, -12 * SIZE(Y)
  1913. pshufd $0xb1, %xmm7, %xmm8
  1914. mulps ALPHA_R, %xmm7
  1915. mulps ALPHA_I, %xmm8
  1916. addps %xmm8, %xmm7
  1917. movss %xmm7, %xmm6
  1918. shufps $0x93, %xmm7, %xmm6
  1919. addps -8 * SIZE(Y), %xmm6
  1920. movaps %xmm6, -8 * SIZE(Y)
  1921. pshufd $0xb1, %xmm0, %xmm8
  1922. mulps ALPHA_R, %xmm0
  1923. mulps ALPHA_I, %xmm8
  1924. addps %xmm8, %xmm0
  1925. movss %xmm0, %xmm7
  1926. shufps $0x93, %xmm0, %xmm7
  1927. addps -4 * SIZE(Y), %xmm7
  1928. movaps %xmm7, -4 * SIZE(Y)
  1929. subq $-32 * SIZE, X
  1930. subq $-32 * SIZE, Y
  1931. ALIGN_3
  1932. .L75:
  1933. testq $8, M
  1934. jle .L76
  1935. movsd -32 * SIZE(X), %xmm1
  1936. movhps -30 * SIZE(X), %xmm1
  1937. movsd -28 * SIZE(X), %xmm2
  1938. movhps -26 * SIZE(X), %xmm2
  1939. pshufd $0xb1, %xmm1, %xmm8
  1940. mulps ALPHA_R, %xmm1
  1941. mulps ALPHA_I, %xmm8
  1942. addps %xmm8, %xmm1
  1943. movss %xmm1, %xmm0
  1944. shufps $0x93, %xmm1, %xmm0
  1945. addps -32 * SIZE(Y), %xmm0
  1946. movaps %xmm0, -32 * SIZE(Y)
  1947. pshufd $0xb1, %xmm2, %xmm8
  1948. mulps ALPHA_R, %xmm2
  1949. mulps ALPHA_I, %xmm8
  1950. addps %xmm8, %xmm2
  1951. movss %xmm2, %xmm1
  1952. shufps $0x93, %xmm2, %xmm1
  1953. addps -28 * SIZE(Y), %xmm1
  1954. movaps %xmm1, -28 * SIZE(Y)
  1955. movsd -24 * SIZE(X), %xmm3
  1956. movhps -22 * SIZE(X), %xmm3
  1957. movsd -20 * SIZE(X), %xmm0
  1958. movhps -18 * SIZE(X), %xmm0
  1959. pshufd $0xb1, %xmm3, %xmm8
  1960. mulps ALPHA_R, %xmm3
  1961. mulps ALPHA_I, %xmm8
  1962. addps %xmm8, %xmm3
  1963. movss %xmm3, %xmm2
  1964. shufps $0x93, %xmm3, %xmm2
  1965. addps -24 * SIZE(Y), %xmm2
  1966. movaps %xmm2, -24 * SIZE(Y)
  1967. pshufd $0xb1, %xmm0, %xmm8
  1968. mulps ALPHA_R, %xmm0
  1969. mulps ALPHA_I, %xmm8
  1970. addps %xmm8, %xmm0
  1971. movss %xmm0, %xmm3
  1972. shufps $0x93, %xmm0, %xmm3
  1973. addps -20 * SIZE(Y), %xmm3
  1974. movaps %xmm3, -20 * SIZE(Y)
  1975. addq $16 * SIZE, X
  1976. addq $16 * SIZE, Y
  1977. ALIGN_2
  1978. .L76:
  1979. testq $4, M
  1980. jle .L77
  1981. movsd -32 * SIZE(X), %xmm1
  1982. movhps -30 * SIZE(X), %xmm1
  1983. pshufd $0xb1, %xmm1, %xmm8
  1984. mulps ALPHA_R, %xmm1
  1985. mulps ALPHA_I, %xmm8
  1986. addps %xmm8, %xmm1
  1987. movss %xmm1, %xmm0
  1988. shufps $0x93, %xmm1, %xmm0
  1989. addps -32 * SIZE(Y), %xmm0
  1990. movaps %xmm0, -32 * SIZE(Y)
  1991. movsd -28 * SIZE(X), %xmm2
  1992. movhps -26 * SIZE(X), %xmm2
  1993. pshufd $0xb1, %xmm2, %xmm8
  1994. mulps ALPHA_R, %xmm2
  1995. mulps ALPHA_I, %xmm8
  1996. addps %xmm8, %xmm2
  1997. movss %xmm2, %xmm1
  1998. shufps $0x93, %xmm2, %xmm1
  1999. addps -28 * SIZE(Y), %xmm1
  2000. movaps %xmm1, -28 * SIZE(Y)
  2001. movaps %xmm2, %xmm0
  2002. addq $8 * SIZE, X
  2003. addq $8 * SIZE, Y
  2004. ALIGN_2
  2005. .L77:
  2006. testq $2, M
  2007. jle .L78
  2008. movsd -32 * SIZE(X), %xmm1
  2009. movhps -30 * SIZE(X), %xmm1
  2010. pshufd $0xb1, %xmm1, %xmm8
  2011. mulps ALPHA_R, %xmm1
  2012. mulps ALPHA_I, %xmm8
  2013. addps %xmm8, %xmm1
  2014. movss %xmm1, %xmm0
  2015. shufps $0x93, %xmm1, %xmm0
  2016. addps -32 * SIZE(Y), %xmm0
  2017. movaps %xmm0, -32 * SIZE(Y)
  2018. movaps %xmm1, %xmm0
  2019. addq $4 * SIZE, X
  2020. addq $4 * SIZE, Y
  2021. ALIGN_2
  2022. .L78:
  2023. testq $1, M
  2024. jle .L79
  2025. #ifdef movsd
  2026. xorps %xmm1, %xmm1
  2027. #endif
  2028. movsd -32 * SIZE(X), %xmm1
  2029. pshufd $0xb1, %xmm1, %xmm8
  2030. mulps ALPHA_R, %xmm1
  2031. mulps ALPHA_I, %xmm8
  2032. addps %xmm8, %xmm1
  2033. movss %xmm1, %xmm0
  2034. shufps $0x93, %xmm1, %xmm0
  2035. addps -32 * SIZE(Y), %xmm0
  2036. movaps %xmm0, -32 * SIZE(Y)
  2037. jmp .L999
  2038. ALIGN_3
  2039. .L79:
  2040. shufps $0x93, %xmm0, %xmm0
  2041. addss -32 * SIZE(Y), %xmm0
  2042. movss %xmm0, -32 * SIZE(Y)
  2043. jmp .L999
  2044. ALIGN_3
  2045. #ifdef ALIGNED_ACCESS
  2046. .L80:
  2047. subq $3 * SIZE, X
  2048. movaps -32 * SIZE(X), %xmm1
  2049. movq M, %rax
  2050. sarq $4, %rax
  2051. jle .L85
  2052. movaps -28 * SIZE(X), %xmm2
  2053. movaps -24 * SIZE(X), %xmm3
  2054. decq %rax
  2055. jle .L82
  2056. ALIGN_3
  2057. .L81:
  2058. movaps -20 * SIZE(X), %xmm4
  2059. movaps -16 * SIZE(X), %xmm5
  2060. #ifdef PREFETCHW
  2061. PREFETCHW (PREFETCHSIZE + 0) - PREOFFSET(Y)
  2062. #endif
  2063. movss %xmm2, %xmm1
  2064. shufps $0x93, %xmm2, %xmm1
  2065. pshufd $0xb1, %xmm1, %xmm8
  2066. mulps ALPHA_R, %xmm1
  2067. mulps ALPHA_I, %xmm8
  2068. addps %xmm8, %xmm1
  2069. movss %xmm1, %xmm0
  2070. shufps $0x93, %xmm1, %xmm0
  2071. addps -32 * SIZE(Y), %xmm0
  2072. movaps %xmm0, -32 * SIZE(Y)
  2073. movss %xmm3, %xmm2
  2074. shufps $0x93, %xmm3, %xmm2
  2075. pshufd $0xb1, %xmm2, %xmm8
  2076. mulps ALPHA_R, %xmm2
  2077. mulps ALPHA_I, %xmm8
  2078. addps %xmm8, %xmm2
  2079. movss %xmm2, %xmm1
  2080. shufps $0x93, %xmm2, %xmm1
  2081. addps -28 * SIZE(Y), %xmm1
  2082. movaps %xmm1, -28 * SIZE(Y)
  2083. movaps -12 * SIZE(X), %xmm6
  2084. movaps -8 * SIZE(X), %xmm7
  2085. #ifdef PREFETCH
  2086. PREFETCH (PREFETCHSIZE + 0) - PREOFFSET(X)
  2087. #endif
  2088. movss %xmm4, %xmm3
  2089. shufps $0x93, %xmm4, %xmm3
  2090. pshufd $0xb1, %xmm3, %xmm8
  2091. mulps ALPHA_R, %xmm3
  2092. mulps ALPHA_I, %xmm8
  2093. addps %xmm8, %xmm3
  2094. movss %xmm3, %xmm2
  2095. shufps $0x93, %xmm3, %xmm2
  2096. addps -24 * SIZE(Y), %xmm2
  2097. movaps %xmm2, -24 * SIZE(Y)
  2098. movss %xmm5, %xmm4
  2099. shufps $0x93, %xmm5, %xmm4
  2100. pshufd $0xb1, %xmm4, %xmm8
  2101. mulps ALPHA_R, %xmm4
  2102. mulps ALPHA_I, %xmm8
  2103. addps %xmm8, %xmm4
  2104. movss %xmm4, %xmm3
  2105. shufps $0x93, %xmm4, %xmm3
  2106. addps -20 * SIZE(Y), %xmm3
  2107. movaps %xmm3, -20 * SIZE(Y)
  2108. #if defined(PREFETCHW) && !defined(FETCH128)
  2109. PREFETCHW (PREFETCHSIZE + 64) - PREOFFSET(Y)
  2110. #endif
  2111. movaps -4 * SIZE(X), %xmm0
  2112. movaps 0 * SIZE(X), %xmm1
  2113. movss %xmm6, %xmm5
  2114. shufps $0x93, %xmm6, %xmm5
  2115. pshufd $0xb1, %xmm5, %xmm8
  2116. mulps ALPHA_R, %xmm5
  2117. mulps ALPHA_I, %xmm8
  2118. addps %xmm8, %xmm5
  2119. movss %xmm5, %xmm4
  2120. shufps $0x93, %xmm5, %xmm4
  2121. addps -16 * SIZE(Y), %xmm4
  2122. movaps %xmm4, -16 * SIZE(Y)
  2123. movss %xmm7, %xmm6
  2124. shufps $0x93, %xmm7, %xmm6
  2125. pshufd $0xb1, %xmm6, %xmm8
  2126. mulps ALPHA_R, %xmm6
  2127. mulps ALPHA_I, %xmm8
  2128. addps %xmm8, %xmm6
  2129. movss %xmm6, %xmm5
  2130. shufps $0x93, %xmm6, %xmm5
  2131. addps -12 * SIZE(Y), %xmm5
  2132. movaps %xmm5, -12 * SIZE(Y)
  2133. movaps 4 * SIZE(X), %xmm2
  2134. movaps 8 * SIZE(X), %xmm3
  2135. #if defined(PREFETCH) && !defined(FETCH128)
  2136. PREFETCH (PREFETCHSIZE + 64) - PREOFFSET(X)
  2137. #endif
  2138. movss %xmm0, %xmm7
  2139. shufps $0x93, %xmm0, %xmm7
  2140. pshufd $0xb1, %xmm7, %xmm8
  2141. mulps ALPHA_R, %xmm7
  2142. mulps ALPHA_I, %xmm8
  2143. addps %xmm8, %xmm7
  2144. movss %xmm7, %xmm6
  2145. shufps $0x93, %xmm7, %xmm6
  2146. addps -8 * SIZE(Y), %xmm6
  2147. movaps %xmm6, -8 * SIZE(Y)
  2148. movss %xmm1, %xmm0
  2149. shufps $0x93, %xmm1, %xmm0
  2150. pshufd $0xb1, %xmm0, %xmm8
  2151. mulps ALPHA_R, %xmm0
  2152. mulps ALPHA_I, %xmm8
  2153. addps %xmm8, %xmm0
  2154. movss %xmm0, %xmm7
  2155. shufps $0x93, %xmm0, %xmm7
  2156. addps -4 * SIZE(Y), %xmm7
  2157. movaps %xmm7, -4 * SIZE(Y)
  2158. subq $-32 * SIZE, X
  2159. subq $-32 * SIZE, Y
  2160. decq %rax
  2161. jg .L81
  2162. ALIGN_3
  2163. .L82:
  2164. movaps -20 * SIZE(X), %xmm4
  2165. movaps -16 * SIZE(X), %xmm5
  2166. movss %xmm2, %xmm1
  2167. shufps $0x93, %xmm2, %xmm1
  2168. pshufd $0xb1, %xmm1, %xmm8
  2169. mulps ALPHA_R, %xmm1
  2170. mulps ALPHA_I, %xmm8
  2171. addps %xmm8, %xmm1
  2172. movss %xmm1, %xmm0
  2173. shufps $0x93, %xmm1, %xmm0
  2174. addps -32 * SIZE(Y), %xmm0
  2175. movaps %xmm0, -32 * SIZE(Y)
  2176. movss %xmm3, %xmm2
  2177. shufps $0x93, %xmm3, %xmm2
  2178. pshufd $0xb1, %xmm2, %xmm8
  2179. mulps ALPHA_R, %xmm2
  2180. mulps ALPHA_I, %xmm8
  2181. addps %xmm8, %xmm2
  2182. movss %xmm2, %xmm1
  2183. shufps $0x93, %xmm2, %xmm1
  2184. addps -28 * SIZE(Y), %xmm1
  2185. movaps %xmm1, -28 * SIZE(Y)
  2186. movaps -12 * SIZE(X), %xmm6
  2187. movaps -8 * SIZE(X), %xmm7
  2188. movss %xmm4, %xmm3
  2189. shufps $0x93, %xmm4, %xmm3
  2190. pshufd $0xb1, %xmm3, %xmm8
  2191. mulps ALPHA_R, %xmm3
  2192. mulps ALPHA_I, %xmm8
  2193. addps %xmm8, %xmm3
  2194. movss %xmm3, %xmm2
  2195. shufps $0x93, %xmm3, %xmm2
  2196. addps -24 * SIZE(Y), %xmm2
  2197. movaps %xmm2, -24 * SIZE(Y)
  2198. movss %xmm5, %xmm4
  2199. shufps $0x93, %xmm5, %xmm4
  2200. pshufd $0xb1, %xmm4, %xmm8
  2201. mulps ALPHA_R, %xmm4
  2202. mulps ALPHA_I, %xmm8
  2203. addps %xmm8, %xmm4
  2204. movss %xmm4, %xmm3
  2205. shufps $0x93, %xmm4, %xmm3
  2206. addps -20 * SIZE(Y), %xmm3
  2207. movaps %xmm3, -20 * SIZE(Y)
  2208. movss %xmm6, %xmm5
  2209. shufps $0x93, %xmm6, %xmm5
  2210. pshufd $0xb1, %xmm5, %xmm8
  2211. mulps ALPHA_R, %xmm5
  2212. mulps ALPHA_I, %xmm8
  2213. addps %xmm8, %xmm5
  2214. movss %xmm5, %xmm4
  2215. shufps $0x93, %xmm5, %xmm4
  2216. addps -16 * SIZE(Y), %xmm4
  2217. movaps %xmm4, -16 * SIZE(Y)
  2218. movaps -4 * SIZE(X), %xmm0
  2219. movaps 0 * SIZE(X), %xmm1
  2220. movss %xmm7, %xmm6
  2221. shufps $0x93, %xmm7, %xmm6
  2222. pshufd $0xb1, %xmm6, %xmm8
  2223. mulps ALPHA_R, %xmm6
  2224. mulps ALPHA_I, %xmm8
  2225. addps %xmm8, %xmm6
  2226. movss %xmm6, %xmm5
  2227. shufps $0x93, %xmm6, %xmm5
  2228. addps -12 * SIZE(Y), %xmm5
  2229. movaps %xmm5, -12 * SIZE(Y)
  2230. movss %xmm0, %xmm7
  2231. shufps $0x93, %xmm0, %xmm7
  2232. pshufd $0xb1, %xmm7, %xmm8
  2233. mulps ALPHA_R, %xmm7
  2234. mulps ALPHA_I, %xmm8
  2235. addps %xmm8, %xmm7
  2236. movss %xmm7, %xmm6
  2237. shufps $0x93, %xmm7, %xmm6
  2238. addps -8 * SIZE(Y), %xmm6
  2239. movaps %xmm6, -8 * SIZE(Y)
  2240. movss %xmm1, %xmm0
  2241. shufps $0x93, %xmm1, %xmm0
  2242. pshufd $0xb1, %xmm0, %xmm8
  2243. mulps ALPHA_R, %xmm0
  2244. mulps ALPHA_I, %xmm8
  2245. addps %xmm8, %xmm0
  2246. movss %xmm0, %xmm7
  2247. shufps $0x93, %xmm0, %xmm7
  2248. addps -4 * SIZE(Y), %xmm7
  2249. movaps %xmm7, -4 * SIZE(Y)
  2250. subq $-32 * SIZE, X
  2251. subq $-32 * SIZE, Y
  2252. ALIGN_3
  2253. .L85:
  2254. testq $8, M
  2255. jle .L86
  2256. movaps -28 * SIZE(X), %xmm2
  2257. movaps -24 * SIZE(X), %xmm3
  2258. movss %xmm2, %xmm1
  2259. shufps $0x93, %xmm2, %xmm1
  2260. pshufd $0xb1, %xmm1, %xmm8
  2261. mulps ALPHA_R, %xmm1
  2262. mulps ALPHA_I, %xmm8
  2263. addps %xmm8, %xmm1
  2264. movss %xmm1, %xmm0
  2265. shufps $0x93, %xmm1, %xmm0
  2266. addps -32 * SIZE(Y), %xmm0
  2267. movaps %xmm0, -32 * SIZE(Y)
  2268. movss %xmm3, %xmm2
  2269. shufps $0x93, %xmm3, %xmm2
  2270. pshufd $0xb1, %xmm2, %xmm8
  2271. mulps ALPHA_R, %xmm2
  2272. mulps ALPHA_I, %xmm8
  2273. addps %xmm8, %xmm2
  2274. movss %xmm2, %xmm1
  2275. shufps $0x93, %xmm2, %xmm1
  2276. addps -28 * SIZE(Y), %xmm1
  2277. movaps %xmm1, -28 * SIZE(Y)
  2278. movaps -20 * SIZE(X), %xmm0
  2279. movaps -16 * SIZE(X), %xmm1
  2280. movss %xmm0, %xmm3
  2281. shufps $0x93, %xmm0, %xmm3
  2282. pshufd $0xb1, %xmm3, %xmm8
  2283. mulps ALPHA_R, %xmm3
  2284. mulps ALPHA_I, %xmm8
  2285. addps %xmm8, %xmm3
  2286. movss %xmm3, %xmm2
  2287. shufps $0x93, %xmm3, %xmm2
  2288. addps -24 * SIZE(Y), %xmm2
  2289. movaps %xmm2, -24 * SIZE(Y)
  2290. movss %xmm1, %xmm0
  2291. shufps $0x93, %xmm1, %xmm0
  2292. pshufd $0xb1, %xmm0, %xmm8
  2293. mulps ALPHA_R, %xmm0
  2294. mulps ALPHA_I, %xmm8
  2295. addps %xmm8, %xmm0
  2296. movss %xmm0, %xmm3
  2297. shufps $0x93, %xmm0, %xmm3
  2298. addps -20 * SIZE(Y), %xmm3
  2299. movaps %xmm3, -20 * SIZE(Y)
  2300. addq $16 * SIZE, X
  2301. addq $16 * SIZE, Y
  2302. ALIGN_2
  2303. .L86:
  2304. testq $4, M
  2305. jle .L87
  2306. movaps -28 * SIZE(X), %xmm2
  2307. movaps -24 * SIZE(X), %xmm3
  2308. movss %xmm2, %xmm1
  2309. shufps $0x93, %xmm2, %xmm1
  2310. pshufd $0xb1, %xmm1, %xmm8
  2311. mulps ALPHA_R, %xmm1
  2312. mulps ALPHA_I, %xmm8
  2313. addps %xmm8, %xmm1
  2314. movss %xmm1, %xmm0
  2315. shufps $0x93, %xmm1, %xmm0
  2316. addps -32 * SIZE(Y), %xmm0
  2317. movaps %xmm0, -32 * SIZE(Y)
  2318. movss %xmm3, %xmm2
  2319. shufps $0x93, %xmm3, %xmm2
  2320. pshufd $0xb1, %xmm2, %xmm8
  2321. mulps ALPHA_R, %xmm2
  2322. mulps ALPHA_I, %xmm8
  2323. addps %xmm8, %xmm2
  2324. movss %xmm2, %xmm1
  2325. shufps $0x93, %xmm2, %xmm1
  2326. addps -28 * SIZE(Y), %xmm1
  2327. movaps %xmm1, -28 * SIZE(Y)
  2328. movaps %xmm2, %xmm0
  2329. movaps %xmm3, %xmm1
  2330. addq $8 * SIZE, X
  2331. addq $8 * SIZE, Y
  2332. ALIGN_2
  2333. .L87:
  2334. testq $2, M
  2335. jle .L88
  2336. movaps -28 * SIZE(X), %xmm2
  2337. movss %xmm2, %xmm1
  2338. shufps $0x93, %xmm2, %xmm1
  2339. pshufd $0xb1, %xmm1, %xmm8
  2340. mulps ALPHA_R, %xmm1
  2341. mulps ALPHA_I, %xmm8
  2342. addps %xmm8, %xmm1
  2343. movss %xmm1, %xmm0
  2344. shufps $0x93, %xmm1, %xmm0
  2345. addps -32 * SIZE(Y), %xmm0
  2346. movaps %xmm0, -32 * SIZE(Y)
  2347. movaps %xmm1, %xmm0
  2348. movaps %xmm2, %xmm1
  2349. addq $4 * SIZE, X
  2350. addq $4 * SIZE, Y
  2351. ALIGN_2
  2352. .L88:
  2353. testq $1, M
  2354. jle .L89
  2355. movaps -28 * SIZE(X), %xmm2
  2356. movss %xmm2, %xmm1
  2357. shufps $0x93, %xmm2, %xmm1
  2358. pshufd $0xb1, %xmm1, %xmm8
  2359. mulps ALPHA_R, %xmm1
  2360. mulps ALPHA_I, %xmm8
  2361. addps %xmm8, %xmm1
  2362. movss %xmm1, %xmm0
  2363. shufps $0x93, %xmm1, %xmm0
  2364. addps -32 * SIZE(Y), %xmm0
  2365. movlps %xmm0, -32 * SIZE(Y)
  2366. movhlps %xmm0, %xmm0
  2367. movss %xmm0, -30 * SIZE(Y)
  2368. jmp .L999
  2369. .L89:
  2370. shufps $0x93, %xmm0, %xmm0
  2371. addss -32 * SIZE(Y), %xmm0
  2372. movss %xmm0, -32 * SIZE(Y)
  2373. jmp .L999
  2374. ALIGN_3
  2375. #endif
  2376. .L100:
  2377. #ifndef CONJ
  2378. pshufd $0, %xmm0, %xmm14
  2379. pshufd $0, %xmm1, %xmm15
  2380. pxor %xmm13, %xmm13
  2381. subps %xmm15, %xmm13
  2382. unpcklps %xmm14, %xmm13
  2383. unpcklps %xmm15, %xmm14
  2384. movaps %xmm13, %xmm15
  2385. #else
  2386. pshufd $0, %xmm0, %xmm14
  2387. pshufd $0, %xmm1, %xmm15
  2388. pxor %xmm13, %xmm13
  2389. subps %xmm14, %xmm13
  2390. unpcklps %xmm15, %xmm14
  2391. unpcklps %xmm13, %xmm15
  2392. #endif
  2393. //If incx==0 || incy==0, avoid unloop and jump to end.
  2394. cmpq $0, INCX
  2395. je .L200
  2396. cmpq $0, INCY
  2397. je .L200
  2398. movq Y, YY
  2399. movq M, %rax
  2400. sarq $3, %rax
  2401. jle .L105
  2402. ALIGN_3
  2403. .L102:
  2404. movsd (X), %xmm0
  2405. addq INCX, X
  2406. movhps (X), %xmm0
  2407. addq INCX, X
  2408. movsd (X), %xmm2
  2409. addq INCX, X
  2410. movhps (X), %xmm2
  2411. addq INCX, X
  2412. movsd (X), %xmm4
  2413. addq INCX, X
  2414. movhps (X), %xmm4
  2415. addq INCX, X
  2416. movsd (X), %xmm6
  2417. addq INCX, X
  2418. movhps (X), %xmm6
  2419. addq INCX, X
  2420. #ifdef HAVE_SSE3
  2421. movshdup %xmm0, %xmm1
  2422. movsldup %xmm0, %xmm0
  2423. movshdup %xmm2, %xmm3
  2424. movsldup %xmm2, %xmm2
  2425. movshdup %xmm4, %xmm5
  2426. movsldup %xmm4, %xmm4
  2427. movshdup %xmm6, %xmm7
  2428. movsldup %xmm6, %xmm6
  2429. #else
  2430. pshufd $0xf5, %xmm0, %xmm1
  2431. shufps $0xa0, %xmm0, %xmm0
  2432. pshufd $0xf5, %xmm2, %xmm3
  2433. shufps $0xa0, %xmm2, %xmm2
  2434. pshufd $0xf5, %xmm4, %xmm5
  2435. shufps $0xa0, %xmm4, %xmm4
  2436. pshufd $0xf5, %xmm6, %xmm7
  2437. shufps $0xa0, %xmm6, %xmm6
  2438. #endif
  2439. mulps %xmm14, %xmm0
  2440. mulps %xmm15, %xmm1
  2441. mulps %xmm14, %xmm2
  2442. mulps %xmm15, %xmm3
  2443. mulps %xmm14, %xmm4
  2444. mulps %xmm15, %xmm5
  2445. mulps %xmm14, %xmm6
  2446. mulps %xmm15, %xmm7
  2447. movsd (Y), %xmm8
  2448. addq INCY, Y
  2449. movhps (Y), %xmm8
  2450. addq INCY, Y
  2451. movsd (Y), %xmm9
  2452. addq INCY, Y
  2453. movhps (Y), %xmm9
  2454. addq INCY, Y
  2455. movsd (Y), %xmm10
  2456. addq INCY, Y
  2457. movhps (Y), %xmm10
  2458. addq INCY, Y
  2459. movsd (Y), %xmm11
  2460. addq INCY, Y
  2461. movhps (Y), %xmm11
  2462. addq INCY, Y
  2463. addps %xmm0, %xmm8
  2464. addps %xmm1, %xmm8
  2465. addps %xmm2, %xmm9
  2466. addps %xmm3, %xmm9
  2467. addps %xmm4, %xmm10
  2468. addps %xmm5, %xmm10
  2469. addps %xmm6, %xmm11
  2470. addps %xmm7, %xmm11
  2471. movsd %xmm8, (YY)
  2472. addq INCY, YY
  2473. movhps %xmm8, (YY)
  2474. addq INCY, YY
  2475. movsd %xmm9, (YY)
  2476. addq INCY, YY
  2477. movhps %xmm9, (YY)
  2478. addq INCY, YY
  2479. movsd %xmm10, (YY)
  2480. addq INCY, YY
  2481. movhps %xmm10, (YY)
  2482. addq INCY, YY
  2483. movsd %xmm11, (YY)
  2484. addq INCY, YY
  2485. movhps %xmm11, (YY)
  2486. addq INCY, YY
  2487. decq %rax
  2488. jg .L102
  2489. ALIGN_3
  2490. .L105:
  2491. testq $4, M
  2492. jle .L106
  2493. movsd (X), %xmm0
  2494. addq INCX, X
  2495. movhps (X), %xmm0
  2496. addq INCX, X
  2497. movsd (X), %xmm2
  2498. addq INCX, X
  2499. movhps (X), %xmm2
  2500. addq INCX, X
  2501. #ifdef HAVE_SSE3
  2502. movshdup %xmm0, %xmm1
  2503. movsldup %xmm0, %xmm0
  2504. movshdup %xmm2, %xmm3
  2505. movsldup %xmm2, %xmm2
  2506. #else
  2507. pshufd $0xf5, %xmm0, %xmm1
  2508. shufps $0xa0, %xmm0, %xmm0
  2509. pshufd $0xf5, %xmm2, %xmm3
  2510. shufps $0xa0, %xmm2, %xmm2
  2511. #endif
  2512. mulps %xmm14, %xmm0
  2513. mulps %xmm15, %xmm1
  2514. mulps %xmm14, %xmm2
  2515. mulps %xmm15, %xmm3
  2516. movsd (Y), %xmm8
  2517. addq INCY, Y
  2518. movhps (Y), %xmm8
  2519. addq INCY, Y
  2520. movsd (Y), %xmm9
  2521. addq INCY, Y
  2522. movhps (Y), %xmm9
  2523. addq INCY, Y
  2524. addps %xmm0, %xmm8
  2525. addps %xmm1, %xmm8
  2526. addps %xmm2, %xmm9
  2527. addps %xmm3, %xmm9
  2528. movsd %xmm8, (YY)
  2529. addq INCY, YY
  2530. movhps %xmm8, (YY)
  2531. addq INCY, YY
  2532. movsd %xmm9, (YY)
  2533. addq INCY, YY
  2534. movhps %xmm9, (YY)
  2535. addq INCY, YY
  2536. ALIGN_3
  2537. .L106:
  2538. testq $2, M
  2539. jle .L107
  2540. movsd (X), %xmm0
  2541. addq INCX, X
  2542. movhps (X), %xmm0
  2543. addq INCX, X
  2544. #ifdef HAVE_SSE3
  2545. movshdup %xmm0, %xmm1
  2546. movsldup %xmm0, %xmm0
  2547. #else
  2548. pshufd $0xf5, %xmm0, %xmm1
  2549. shufps $0xa0, %xmm0, %xmm0
  2550. #endif
  2551. mulps %xmm14, %xmm0
  2552. mulps %xmm15, %xmm1
  2553. movsd (Y), %xmm8
  2554. addq INCY, Y
  2555. movhps (Y), %xmm8
  2556. addq INCY, Y
  2557. addps %xmm0, %xmm8
  2558. addps %xmm1, %xmm8
  2559. movsd %xmm8, (YY)
  2560. addq INCY, YY
  2561. movhps %xmm8, (YY)
  2562. addq INCY, YY
  2563. ALIGN_3
  2564. .L107:
  2565. testq $1, M
  2566. jle .L999
  2567. movsd (X), %xmm0
  2568. #ifdef HAVE_SSE3
  2569. movshdup %xmm0, %xmm1
  2570. movsldup %xmm0, %xmm0
  2571. #else
  2572. pshufd $0xf5, %xmm0, %xmm1
  2573. shufps $0xa0, %xmm0, %xmm0
  2574. #endif
  2575. mulps %xmm14, %xmm0
  2576. mulps %xmm15, %xmm1
  2577. movsd (Y), %xmm8
  2578. addps %xmm0, %xmm8
  2579. addps %xmm1, %xmm8
  2580. movsd %xmm8, (Y)
  2581. jmp .L999
  2582. ALIGN_3
  2583. .L200:
  2584. movq M, %rax
  2585. cmpq $0, %rax
  2586. jle .L999
  2587. ALIGN_3
  2588. .L201:
  2589. movsd (X), %xmm0
  2590. addq INCX, X
  2591. #ifdef HAVE_SSE3
  2592. movshdup %xmm0, %xmm1
  2593. movsldup %xmm0, %xmm0
  2594. #else
  2595. pshufd $0xf5, %xmm0, %xmm1
  2596. shufps $0xa0, %xmm0, %xmm0
  2597. #endif
  2598. mulps %xmm14, %xmm0
  2599. mulps %xmm15, %xmm1
  2600. movsd (Y), %xmm8
  2601. addps %xmm0, %xmm8
  2602. addps %xmm1, %xmm8
  2603. movsd %xmm8, (Y)
  2604. addq INCY, Y
  2605. decq %rax
  2606. jg .L201
  2607. ALIGN_3
  2608. .L999:
  2609. xorq %rax, %rax
  2610. RESTOREREGISTERS
  2611. ret
  2612. EPILOGUE