ge25519_nielsadd_p1p1.S 79 KB

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