insn-x86-dat-src.c 89 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * This file contains instructions for testing by the test titled:
  4. *
  5. * "Test x86 instruction decoder - new instructions"
  6. *
  7. * Note that the 'Expecting' comment lines are consumed by the
  8. * gen-insn-x86-dat.awk script and have the format:
  9. *
  10. * Expecting: <op> <branch> <rel>
  11. *
  12. * If this file is changed, remember to run the gen-insn-x86-dat.sh
  13. * script and commit the result.
  14. *
  15. * Refer to insn-x86.c for more details.
  16. */
  17. int main(void)
  18. {
  19. /* Following line is a marker for the awk script - do not change */
  20. asm volatile("rdtsc"); /* Start here */
  21. /* Test fix for vcvtph2ps in x86-opcode-map.txt */
  22. asm volatile("vcvtph2ps %xmm3,%ymm5");
  23. #ifdef __x86_64__
  24. /* AVX-512: Instructions with the same op codes as Mask Instructions */
  25. asm volatile("cmovno %rax,%rbx");
  26. asm volatile("cmovno 0x12345678(%rax),%rcx");
  27. asm volatile("cmovno 0x12345678(%rax),%cx");
  28. asm volatile("cmove %rax,%rbx");
  29. asm volatile("cmove 0x12345678(%rax),%rcx");
  30. asm volatile("cmove 0x12345678(%rax),%cx");
  31. asm volatile("seto 0x12345678(%rax)");
  32. asm volatile("setno 0x12345678(%rax)");
  33. asm volatile("setb 0x12345678(%rax)");
  34. asm volatile("setc 0x12345678(%rax)");
  35. asm volatile("setnae 0x12345678(%rax)");
  36. asm volatile("setae 0x12345678(%rax)");
  37. asm volatile("setnb 0x12345678(%rax)");
  38. asm volatile("setnc 0x12345678(%rax)");
  39. asm volatile("sets 0x12345678(%rax)");
  40. asm volatile("setns 0x12345678(%rax)");
  41. /* AVX-512: Mask Instructions */
  42. asm volatile("kandw %k7,%k6,%k5");
  43. asm volatile("kandq %k7,%k6,%k5");
  44. asm volatile("kandb %k7,%k6,%k5");
  45. asm volatile("kandd %k7,%k6,%k5");
  46. asm volatile("kandnw %k7,%k6,%k5");
  47. asm volatile("kandnq %k7,%k6,%k5");
  48. asm volatile("kandnb %k7,%k6,%k5");
  49. asm volatile("kandnd %k7,%k6,%k5");
  50. asm volatile("knotw %k7,%k6");
  51. asm volatile("knotq %k7,%k6");
  52. asm volatile("knotb %k7,%k6");
  53. asm volatile("knotd %k7,%k6");
  54. asm volatile("korw %k7,%k6,%k5");
  55. asm volatile("korq %k7,%k6,%k5");
  56. asm volatile("korb %k7,%k6,%k5");
  57. asm volatile("kord %k7,%k6,%k5");
  58. asm volatile("kxnorw %k7,%k6,%k5");
  59. asm volatile("kxnorq %k7,%k6,%k5");
  60. asm volatile("kxnorb %k7,%k6,%k5");
  61. asm volatile("kxnord %k7,%k6,%k5");
  62. asm volatile("kxorw %k7,%k6,%k5");
  63. asm volatile("kxorq %k7,%k6,%k5");
  64. asm volatile("kxorb %k7,%k6,%k5");
  65. asm volatile("kxord %k7,%k6,%k5");
  66. asm volatile("kaddw %k7,%k6,%k5");
  67. asm volatile("kaddq %k7,%k6,%k5");
  68. asm volatile("kaddb %k7,%k6,%k5");
  69. asm volatile("kaddd %k7,%k6,%k5");
  70. asm volatile("kunpckbw %k7,%k6,%k5");
  71. asm volatile("kunpckwd %k7,%k6,%k5");
  72. asm volatile("kunpckdq %k7,%k6,%k5");
  73. asm volatile("kmovw %k6,%k5");
  74. asm volatile("kmovw (%rcx),%k5");
  75. asm volatile("kmovw 0x123(%rax,%r14,8),%k5");
  76. asm volatile("kmovw %k5,(%rcx)");
  77. asm volatile("kmovw %k5,0x123(%rax,%r14,8)");
  78. asm volatile("kmovw %eax,%k5");
  79. asm volatile("kmovw %ebp,%k5");
  80. asm volatile("kmovw %r13d,%k5");
  81. asm volatile("kmovw %k5,%eax");
  82. asm volatile("kmovw %k5,%ebp");
  83. asm volatile("kmovw %k5,%r13d");
  84. asm volatile("kmovq %k6,%k5");
  85. asm volatile("kmovq (%rcx),%k5");
  86. asm volatile("kmovq 0x123(%rax,%r14,8),%k5");
  87. asm volatile("kmovq %k5,(%rcx)");
  88. asm volatile("kmovq %k5,0x123(%rax,%r14,8)");
  89. asm volatile("kmovq %rax,%k5");
  90. asm volatile("kmovq %rbp,%k5");
  91. asm volatile("kmovq %r13,%k5");
  92. asm volatile("kmovq %k5,%rax");
  93. asm volatile("kmovq %k5,%rbp");
  94. asm volatile("kmovq %k5,%r13");
  95. asm volatile("kmovb %k6,%k5");
  96. asm volatile("kmovb (%rcx),%k5");
  97. asm volatile("kmovb 0x123(%rax,%r14,8),%k5");
  98. asm volatile("kmovb %k5,(%rcx)");
  99. asm volatile("kmovb %k5,0x123(%rax,%r14,8)");
  100. asm volatile("kmovb %eax,%k5");
  101. asm volatile("kmovb %ebp,%k5");
  102. asm volatile("kmovb %r13d,%k5");
  103. asm volatile("kmovb %k5,%eax");
  104. asm volatile("kmovb %k5,%ebp");
  105. asm volatile("kmovb %k5,%r13d");
  106. asm volatile("kmovd %k6,%k5");
  107. asm volatile("kmovd (%rcx),%k5");
  108. asm volatile("kmovd 0x123(%rax,%r14,8),%k5");
  109. asm volatile("kmovd %k5,(%rcx)");
  110. asm volatile("kmovd %k5,0x123(%rax,%r14,8)");
  111. asm volatile("kmovd %eax,%k5");
  112. asm volatile("kmovd %ebp,%k5");
  113. asm volatile("kmovd %r13d,%k5");
  114. asm volatile("kmovd %k5,%eax");
  115. asm volatile("kmovd %k5,%ebp");
  116. asm volatile("kmovd %k5,%r13d");
  117. asm volatile("kortestw %k6,%k5");
  118. asm volatile("kortestq %k6,%k5");
  119. asm volatile("kortestb %k6,%k5");
  120. asm volatile("kortestd %k6,%k5");
  121. asm volatile("ktestw %k6,%k5");
  122. asm volatile("ktestq %k6,%k5");
  123. asm volatile("ktestb %k6,%k5");
  124. asm volatile("ktestd %k6,%k5");
  125. asm volatile("kshiftrw $0x12,%k6,%k5");
  126. asm volatile("kshiftrq $0x5b,%k6,%k5");
  127. asm volatile("kshiftlw $0x12,%k6,%k5");
  128. asm volatile("kshiftlq $0x5b,%k6,%k5");
  129. /* AVX-512: Op code 0f 5b */
  130. asm volatile("vcvtdq2ps %xmm5,%xmm6");
  131. asm volatile("vcvtqq2ps %zmm29,%ymm6{%k7}");
  132. asm volatile("vcvtps2dq %xmm5,%xmm6");
  133. asm volatile("vcvttps2dq %xmm5,%xmm6");
  134. /* AVX-512: Op code 0f 6f */
  135. asm volatile("movq %mm0,%mm4");
  136. asm volatile("vmovdqa %ymm4,%ymm6");
  137. asm volatile("vmovdqa32 %zmm25,%zmm26");
  138. asm volatile("vmovdqa64 %zmm25,%zmm26");
  139. asm volatile("vmovdqu %ymm4,%ymm6");
  140. asm volatile("vmovdqu32 %zmm29,%zmm30");
  141. asm volatile("vmovdqu64 %zmm25,%zmm26");
  142. asm volatile("vmovdqu8 %zmm29,%zmm30");
  143. asm volatile("vmovdqu16 %zmm25,%zmm26");
  144. /* AVX-512: Op code 0f 78 */
  145. asm volatile("vmread %rax,%rbx");
  146. asm volatile("vcvttps2udq %zmm25,%zmm26");
  147. asm volatile("vcvttpd2udq %zmm29,%ymm6{%k7}");
  148. asm volatile("vcvttsd2usi %xmm6,%rax");
  149. asm volatile("vcvttss2usi %xmm6,%rax");
  150. asm volatile("vcvttps2uqq %ymm5,%zmm26{%k7}");
  151. asm volatile("vcvttpd2uqq %zmm29,%zmm30");
  152. /* AVX-512: Op code 0f 79 */
  153. asm volatile("vmwrite %rax,%rbx");
  154. asm volatile("vcvtps2udq %zmm25,%zmm26");
  155. asm volatile("vcvtpd2udq %zmm29,%ymm6{%k7}");
  156. asm volatile("vcvtsd2usi %xmm6,%rax");
  157. asm volatile("vcvtss2usi %xmm6,%rax");
  158. asm volatile("vcvtps2uqq %ymm5,%zmm26{%k7}");
  159. asm volatile("vcvtpd2uqq %zmm29,%zmm30");
  160. /* AVX-512: Op code 0f 7a */
  161. asm volatile("vcvtudq2pd %ymm5,%zmm29{%k7}");
  162. asm volatile("vcvtuqq2pd %zmm25,%zmm26");
  163. asm volatile("vcvtudq2ps %zmm29,%zmm30");
  164. asm volatile("vcvtuqq2ps %zmm25,%ymm26{%k7}");
  165. asm volatile("vcvttps2qq %ymm25,%zmm26{%k7}");
  166. asm volatile("vcvttpd2qq %zmm29,%zmm30");
  167. /* AVX-512: Op code 0f 7b */
  168. asm volatile("vcvtusi2sd %eax,%xmm5,%xmm6");
  169. asm volatile("vcvtusi2ss %eax,%xmm5,%xmm6");
  170. asm volatile("vcvtps2qq %ymm5,%zmm26{%k7}");
  171. asm volatile("vcvtpd2qq %zmm29,%zmm30");
  172. /* AVX-512: Op code 0f 7f */
  173. asm volatile("movq.s %mm0,%mm4");
  174. asm volatile("vmovdqa %ymm8,%ymm6");
  175. asm volatile("vmovdqa32.s %zmm25,%zmm26");
  176. asm volatile("vmovdqa64.s %zmm25,%zmm26");
  177. asm volatile("vmovdqu %ymm8,%ymm6");
  178. asm volatile("vmovdqu32.s %zmm25,%zmm26");
  179. asm volatile("vmovdqu64.s %zmm25,%zmm26");
  180. asm volatile("vmovdqu8.s %zmm30,(%rcx)");
  181. asm volatile("vmovdqu16.s %zmm25,%zmm26");
  182. /* AVX-512: Op code 0f db */
  183. asm volatile("pand %mm1,%mm2");
  184. asm volatile("pand %xmm1,%xmm2");
  185. asm volatile("vpand %ymm4,%ymm6,%ymm2");
  186. asm volatile("vpandd %zmm24,%zmm25,%zmm26");
  187. asm volatile("vpandq %zmm24,%zmm25,%zmm26");
  188. /* AVX-512: Op code 0f df */
  189. asm volatile("pandn %mm1,%mm2");
  190. asm volatile("pandn %xmm1,%xmm2");
  191. asm volatile("vpandn %ymm4,%ymm6,%ymm2");
  192. asm volatile("vpandnd %zmm24,%zmm25,%zmm26");
  193. asm volatile("vpandnq %zmm24,%zmm25,%zmm26");
  194. /* AVX-512: Op code 0f e6 */
  195. asm volatile("vcvttpd2dq %xmm1,%xmm2");
  196. asm volatile("vcvtdq2pd %xmm5,%xmm6");
  197. asm volatile("vcvtdq2pd %ymm5,%zmm26{%k7}");
  198. asm volatile("vcvtqq2pd %zmm25,%zmm26");
  199. asm volatile("vcvtpd2dq %xmm1,%xmm2");
  200. /* AVX-512: Op code 0f eb */
  201. asm volatile("por %mm4,%mm6");
  202. asm volatile("vpor %ymm4,%ymm6,%ymm2");
  203. asm volatile("vpord %zmm24,%zmm25,%zmm26");
  204. asm volatile("vporq %zmm24,%zmm25,%zmm26");
  205. /* AVX-512: Op code 0f ef */
  206. asm volatile("pxor %mm4,%mm6");
  207. asm volatile("vpxor %ymm4,%ymm6,%ymm2");
  208. asm volatile("vpxord %zmm24,%zmm25,%zmm26");
  209. asm volatile("vpxorq %zmm24,%zmm25,%zmm26");
  210. /* AVX-512: Op code 0f 38 10 */
  211. asm volatile("pblendvb %xmm1,%xmm0");
  212. asm volatile("vpsrlvw %zmm27,%zmm28,%zmm29");
  213. asm volatile("vpmovuswb %zmm28,%ymm6{%k7}");
  214. /* AVX-512: Op code 0f 38 11 */
  215. asm volatile("vpmovusdb %zmm28,%xmm6{%k7}");
  216. asm volatile("vpsravw %zmm27,%zmm28,%zmm29");
  217. /* AVX-512: Op code 0f 38 12 */
  218. asm volatile("vpmovusqb %zmm27,%xmm6{%k7}");
  219. asm volatile("vpsllvw %zmm27,%zmm28,%zmm29");
  220. /* AVX-512: Op code 0f 38 13 */
  221. asm volatile("vcvtph2ps %xmm3,%ymm5");
  222. asm volatile("vcvtph2ps %ymm5,%zmm27{%k7}");
  223. asm volatile("vpmovusdw %zmm27,%ymm6{%k7}");
  224. /* AVX-512: Op code 0f 38 14 */
  225. asm volatile("blendvps %xmm1,%xmm0");
  226. asm volatile("vpmovusqw %zmm27,%xmm6{%k7}");
  227. asm volatile("vprorvd %zmm27,%zmm28,%zmm29");
  228. asm volatile("vprorvq %zmm27,%zmm28,%zmm29");
  229. /* AVX-512: Op code 0f 38 15 */
  230. asm volatile("blendvpd %xmm1,%xmm0");
  231. asm volatile("vpmovusqd %zmm27,%ymm6{%k7}");
  232. asm volatile("vprolvd %zmm27,%zmm28,%zmm29");
  233. asm volatile("vprolvq %zmm27,%zmm28,%zmm29");
  234. /* AVX-512: Op code 0f 38 16 */
  235. asm volatile("vpermps %ymm4,%ymm6,%ymm2");
  236. asm volatile("vpermps %ymm24,%ymm26,%ymm22{%k7}");
  237. asm volatile("vpermpd %ymm24,%ymm26,%ymm22{%k7}");
  238. /* AVX-512: Op code 0f 38 19 */
  239. asm volatile("vbroadcastsd %xmm4,%ymm6");
  240. asm volatile("vbroadcastf32x2 %xmm27,%zmm26");
  241. /* AVX-512: Op code 0f 38 1a */
  242. asm volatile("vbroadcastf128 (%rcx),%ymm4");
  243. asm volatile("vbroadcastf32x4 (%rcx),%zmm26");
  244. asm volatile("vbroadcastf64x2 (%rcx),%zmm26");
  245. /* AVX-512: Op code 0f 38 1b */
  246. asm volatile("vbroadcastf32x8 (%rcx),%zmm27");
  247. asm volatile("vbroadcastf64x4 (%rcx),%zmm26");
  248. /* AVX-512: Op code 0f 38 1f */
  249. asm volatile("vpabsq %zmm27,%zmm28");
  250. /* AVX-512: Op code 0f 38 20 */
  251. asm volatile("vpmovsxbw %xmm4,%xmm5");
  252. asm volatile("vpmovswb %zmm27,%ymm6{%k7}");
  253. /* AVX-512: Op code 0f 38 21 */
  254. asm volatile("vpmovsxbd %xmm4,%ymm6");
  255. asm volatile("vpmovsdb %zmm27,%xmm6{%k7}");
  256. /* AVX-512: Op code 0f 38 22 */
  257. asm volatile("vpmovsxbq %xmm4,%ymm4");
  258. asm volatile("vpmovsqb %zmm27,%xmm6{%k7}");
  259. /* AVX-512: Op code 0f 38 23 */
  260. asm volatile("vpmovsxwd %xmm4,%ymm4");
  261. asm volatile("vpmovsdw %zmm27,%ymm6{%k7}");
  262. /* AVX-512: Op code 0f 38 24 */
  263. asm volatile("vpmovsxwq %xmm4,%ymm6");
  264. asm volatile("vpmovsqw %zmm27,%xmm6{%k7}");
  265. /* AVX-512: Op code 0f 38 25 */
  266. asm volatile("vpmovsxdq %xmm4,%ymm4");
  267. asm volatile("vpmovsqd %zmm27,%ymm6{%k7}");
  268. /* AVX-512: Op code 0f 38 26 */
  269. asm volatile("vptestmb %zmm27,%zmm28,%k5");
  270. asm volatile("vptestmw %zmm27,%zmm28,%k5");
  271. asm volatile("vptestnmb %zmm26,%zmm27,%k5");
  272. asm volatile("vptestnmw %zmm26,%zmm27,%k5");
  273. /* AVX-512: Op code 0f 38 27 */
  274. asm volatile("vptestmd %zmm27,%zmm28,%k5");
  275. asm volatile("vptestmq %zmm27,%zmm28,%k5");
  276. asm volatile("vptestnmd %zmm26,%zmm27,%k5");
  277. asm volatile("vptestnmq %zmm26,%zmm27,%k5");
  278. /* AVX-512: Op code 0f 38 28 */
  279. asm volatile("vpmuldq %ymm4,%ymm6,%ymm2");
  280. asm volatile("vpmovm2b %k5,%zmm28");
  281. asm volatile("vpmovm2w %k5,%zmm28");
  282. /* AVX-512: Op code 0f 38 29 */
  283. asm volatile("vpcmpeqq %ymm4,%ymm6,%ymm2");
  284. asm volatile("vpmovb2m %zmm28,%k5");
  285. asm volatile("vpmovw2m %zmm28,%k5");
  286. /* AVX-512: Op code 0f 38 2a */
  287. asm volatile("vmovntdqa (%rcx),%ymm4");
  288. asm volatile("vpbroadcastmb2q %k6,%zmm30");
  289. /* AVX-512: Op code 0f 38 2c */
  290. asm volatile("vmaskmovps (%rcx),%ymm4,%ymm6");
  291. asm volatile("vscalefps %zmm24,%zmm25,%zmm26");
  292. asm volatile("vscalefpd %zmm24,%zmm25,%zmm26");
  293. /* AVX-512: Op code 0f 38 2d */
  294. asm volatile("vmaskmovpd (%rcx),%ymm4,%ymm6");
  295. asm volatile("vscalefss %xmm24,%xmm25,%xmm26{%k7}");
  296. asm volatile("vscalefsd %xmm24,%xmm25,%xmm26{%k7}");
  297. /* AVX-512: Op code 0f 38 30 */
  298. asm volatile("vpmovzxbw %xmm4,%ymm4");
  299. asm volatile("vpmovwb %zmm27,%ymm6{%k7}");
  300. /* AVX-512: Op code 0f 38 31 */
  301. asm volatile("vpmovzxbd %xmm4,%ymm6");
  302. asm volatile("vpmovdb %zmm27,%xmm6{%k7}");
  303. /* AVX-512: Op code 0f 38 32 */
  304. asm volatile("vpmovzxbq %xmm4,%ymm4");
  305. asm volatile("vpmovqb %zmm27,%xmm6{%k7}");
  306. /* AVX-512: Op code 0f 38 33 */
  307. asm volatile("vpmovzxwd %xmm4,%ymm4");
  308. asm volatile("vpmovdw %zmm27,%ymm6{%k7}");
  309. /* AVX-512: Op code 0f 38 34 */
  310. asm volatile("vpmovzxwq %xmm4,%ymm6");
  311. asm volatile("vpmovqw %zmm27,%xmm6{%k7}");
  312. /* AVX-512: Op code 0f 38 35 */
  313. asm volatile("vpmovzxdq %xmm4,%ymm4");
  314. asm volatile("vpmovqd %zmm27,%ymm6{%k7}");
  315. /* AVX-512: Op code 0f 38 38 */
  316. asm volatile("vpermd %ymm4,%ymm6,%ymm2");
  317. asm volatile("vpermd %ymm24,%ymm26,%ymm22{%k7}");
  318. asm volatile("vpermq %ymm24,%ymm26,%ymm22{%k7}");
  319. /* AVX-512: Op code 0f 38 38 */
  320. asm volatile("vpminsb %ymm4,%ymm6,%ymm2");
  321. asm volatile("vpmovm2d %k5,%zmm28");
  322. asm volatile("vpmovm2q %k5,%zmm28");
  323. /* AVX-512: Op code 0f 38 39 */
  324. asm volatile("vpminsd %xmm1,%xmm2,%xmm3");
  325. asm volatile("vpminsd %zmm24,%zmm25,%zmm26");
  326. asm volatile("vpminsq %zmm24,%zmm25,%zmm26");
  327. asm volatile("vpmovd2m %zmm28,%k5");
  328. asm volatile("vpmovq2m %zmm28,%k5");
  329. /* AVX-512: Op code 0f 38 3a */
  330. asm volatile("vpminuw %ymm4,%ymm6,%ymm2");
  331. asm volatile("vpbroadcastmw2d %k6,%zmm28");
  332. /* AVX-512: Op code 0f 38 3b */
  333. asm volatile("vpminud %ymm4,%ymm6,%ymm2");
  334. asm volatile("vpminud %zmm24,%zmm25,%zmm26");
  335. asm volatile("vpminuq %zmm24,%zmm25,%zmm26");
  336. /* AVX-512: Op code 0f 38 3d */
  337. asm volatile("vpmaxsd %ymm4,%ymm6,%ymm2");
  338. asm volatile("vpmaxsd %zmm24,%zmm25,%zmm26");
  339. asm volatile("vpmaxsq %zmm24,%zmm25,%zmm26");
  340. /* AVX-512: Op code 0f 38 3f */
  341. asm volatile("vpmaxud %ymm4,%ymm6,%ymm2");
  342. asm volatile("vpmaxud %zmm24,%zmm25,%zmm26");
  343. asm volatile("vpmaxuq %zmm24,%zmm25,%zmm26");
  344. /* AVX-512: Op code 0f 38 42 */
  345. asm volatile("vpmulld %ymm4,%ymm6,%ymm2");
  346. asm volatile("vpmulld %zmm24,%zmm25,%zmm26");
  347. asm volatile("vpmullq %zmm24,%zmm25,%zmm26");
  348. /* AVX-512: Op code 0f 38 42 */
  349. asm volatile("vgetexpps %zmm25,%zmm26");
  350. asm volatile("vgetexppd %zmm27,%zmm28");
  351. /* AVX-512: Op code 0f 38 43 */
  352. asm volatile("vgetexpss %xmm24,%xmm25,%xmm26{%k7}");
  353. asm volatile("vgetexpsd %xmm28,%xmm29,%xmm30{%k7}");
  354. /* AVX-512: Op code 0f 38 44 */
  355. asm volatile("vplzcntd %zmm27,%zmm28");
  356. asm volatile("vplzcntq %zmm27,%zmm28");
  357. /* AVX-512: Op code 0f 38 46 */
  358. asm volatile("vpsravd %ymm4,%ymm6,%ymm2");
  359. asm volatile("vpsravd %zmm24,%zmm25,%zmm26");
  360. asm volatile("vpsravq %zmm24,%zmm25,%zmm26");
  361. /* AVX-512: Op code 0f 38 4c */
  362. asm volatile("vrcp14ps %zmm25,%zmm26");
  363. asm volatile("vrcp14pd %zmm27,%zmm28");
  364. /* AVX-512: Op code 0f 38 4d */
  365. asm volatile("vrcp14ss %xmm24,%xmm25,%xmm26{%k7}");
  366. asm volatile("vrcp14sd %xmm24,%xmm25,%xmm26{%k7}");
  367. /* AVX-512: Op code 0f 38 4e */
  368. asm volatile("vrsqrt14ps %zmm25,%zmm26");
  369. asm volatile("vrsqrt14pd %zmm27,%zmm28");
  370. /* AVX-512: Op code 0f 38 4f */
  371. asm volatile("vrsqrt14ss %xmm24,%xmm25,%xmm26{%k7}");
  372. asm volatile("vrsqrt14sd %xmm24,%xmm25,%xmm26{%k7}");
  373. /* AVX-512: Op code 0f 38 59 */
  374. asm volatile("vpbroadcastq %xmm4,%xmm6");
  375. asm volatile("vbroadcasti32x2 %xmm27,%zmm26");
  376. /* AVX-512: Op code 0f 38 5a */
  377. asm volatile("vbroadcasti128 (%rcx),%ymm4");
  378. asm volatile("vbroadcasti32x4 (%rcx),%zmm26");
  379. asm volatile("vbroadcasti64x2 (%rcx),%zmm26");
  380. /* AVX-512: Op code 0f 38 5b */
  381. asm volatile("vbroadcasti32x8 (%rcx),%zmm28");
  382. asm volatile("vbroadcasti64x4 (%rcx),%zmm26");
  383. /* AVX-512: Op code 0f 38 64 */
  384. asm volatile("vpblendmd %zmm26,%zmm27,%zmm28");
  385. asm volatile("vpblendmq %zmm26,%zmm27,%zmm28");
  386. /* AVX-512: Op code 0f 38 65 */
  387. asm volatile("vblendmps %zmm24,%zmm25,%zmm26");
  388. asm volatile("vblendmpd %zmm26,%zmm27,%zmm28");
  389. /* AVX-512: Op code 0f 38 66 */
  390. asm volatile("vpblendmb %zmm26,%zmm27,%zmm28");
  391. asm volatile("vpblendmw %zmm26,%zmm27,%zmm28");
  392. /* AVX-512: Op code 0f 38 75 */
  393. asm volatile("vpermi2b %zmm24,%zmm25,%zmm26");
  394. asm volatile("vpermi2w %zmm26,%zmm27,%zmm28");
  395. /* AVX-512: Op code 0f 38 76 */
  396. asm volatile("vpermi2d %zmm26,%zmm27,%zmm28");
  397. asm volatile("vpermi2q %zmm26,%zmm27,%zmm28");
  398. /* AVX-512: Op code 0f 38 77 */
  399. asm volatile("vpermi2ps %zmm26,%zmm27,%zmm28");
  400. asm volatile("vpermi2pd %zmm26,%zmm27,%zmm28");
  401. /* AVX-512: Op code 0f 38 7a */
  402. asm volatile("vpbroadcastb %eax,%xmm30");
  403. /* AVX-512: Op code 0f 38 7b */
  404. asm volatile("vpbroadcastw %eax,%xmm30");
  405. /* AVX-512: Op code 0f 38 7c */
  406. asm volatile("vpbroadcastd %eax,%xmm30");
  407. asm volatile("vpbroadcastq %rax,%zmm30");
  408. /* AVX-512: Op code 0f 38 7d */
  409. asm volatile("vpermt2b %zmm26,%zmm27,%zmm28");
  410. asm volatile("vpermt2w %zmm26,%zmm27,%zmm28");
  411. /* AVX-512: Op code 0f 38 7e */
  412. asm volatile("vpermt2d %zmm26,%zmm27,%zmm28");
  413. asm volatile("vpermt2q %zmm26,%zmm27,%zmm28");
  414. /* AVX-512: Op code 0f 38 7f */
  415. asm volatile("vpermt2ps %zmm26,%zmm27,%zmm28");
  416. asm volatile("vpermt2pd %zmm26,%zmm27,%zmm28");
  417. /* AVX-512: Op code 0f 38 83 */
  418. asm volatile("vpmultishiftqb %zmm26,%zmm27,%zmm28");
  419. /* AVX-512: Op code 0f 38 88 */
  420. asm volatile("vexpandps (%rcx),%zmm26");
  421. asm volatile("vexpandpd (%rcx),%zmm28");
  422. /* AVX-512: Op code 0f 38 89 */
  423. asm volatile("vpexpandd (%rcx),%zmm28");
  424. asm volatile("vpexpandq (%rcx),%zmm26");
  425. /* AVX-512: Op code 0f 38 8a */
  426. asm volatile("vcompressps %zmm28,(%rcx)");
  427. asm volatile("vcompresspd %zmm28,(%rcx)");
  428. /* AVX-512: Op code 0f 38 8b */
  429. asm volatile("vpcompressd %zmm28,(%rcx)");
  430. asm volatile("vpcompressq %zmm26,(%rcx)");
  431. /* AVX-512: Op code 0f 38 8d */
  432. asm volatile("vpermb %zmm26,%zmm27,%zmm28");
  433. asm volatile("vpermw %zmm26,%zmm27,%zmm28");
  434. /* AVX-512: Op code 0f 38 90 */
  435. asm volatile("vpgatherdd %xmm2,0x02(%rbp,%xmm7,2),%xmm1");
  436. asm volatile("vpgatherdq %xmm2,0x04(%rbp,%xmm7,2),%xmm1");
  437. asm volatile("vpgatherdd 0x7b(%rbp,%zmm27,8),%zmm26{%k1}");
  438. asm volatile("vpgatherdq 0x7b(%rbp,%ymm27,8),%zmm26{%k1}");
  439. /* AVX-512: Op code 0f 38 91 */
  440. asm volatile("vpgatherqd %xmm2,0x02(%rbp,%xmm7,2),%xmm1");
  441. asm volatile("vpgatherqq %xmm2,0x02(%rbp,%xmm7,2),%xmm1");
  442. asm volatile("vpgatherqd 0x7b(%rbp,%zmm27,8),%ymm26{%k1}");
  443. asm volatile("vpgatherqq 0x7b(%rbp,%zmm27,8),%zmm26{%k1}");
  444. /* AVX-512: Op code 0f 38 a0 */
  445. asm volatile("vpscatterdd %zmm28,0x7b(%rbp,%zmm29,8){%k1}");
  446. asm volatile("vpscatterdq %zmm26,0x7b(%rbp,%ymm27,8){%k1}");
  447. /* AVX-512: Op code 0f 38 a1 */
  448. asm volatile("vpscatterqd %ymm6,0x7b(%rbp,%zmm29,8){%k1}");
  449. asm volatile("vpscatterqq %ymm6,0x7b(%rbp,%ymm27,8){%k1}");
  450. /* AVX-512: Op code 0f 38 a2 */
  451. asm volatile("vscatterdps %zmm28,0x7b(%rbp,%zmm29,8){%k1}");
  452. asm volatile("vscatterdpd %zmm28,0x7b(%rbp,%ymm27,8){%k1}");
  453. /* AVX-512: Op code 0f 38 a3 */
  454. asm volatile("vscatterqps %ymm6,0x7b(%rbp,%zmm29,8){%k1}");
  455. asm volatile("vscatterqpd %zmm28,0x7b(%rbp,%zmm29,8){%k1}");
  456. /* AVX-512: Op code 0f 38 b4 */
  457. asm volatile("vpmadd52luq %zmm26,%zmm27,%zmm28");
  458. /* AVX-512: Op code 0f 38 b5 */
  459. asm volatile("vpmadd52huq %zmm26,%zmm27,%zmm28");
  460. /* AVX-512: Op code 0f 38 c4 */
  461. asm volatile("vpconflictd %zmm26,%zmm27");
  462. asm volatile("vpconflictq %zmm26,%zmm27");
  463. /* AVX-512: Op code 0f 38 c8 */
  464. asm volatile("vexp2ps %zmm29,%zmm30");
  465. asm volatile("vexp2pd %zmm26,%zmm27");
  466. /* AVX-512: Op code 0f 38 ca */
  467. asm volatile("vrcp28ps %zmm29,%zmm30");
  468. asm volatile("vrcp28pd %zmm26,%zmm27");
  469. /* AVX-512: Op code 0f 38 cb */
  470. asm volatile("vrcp28ss %xmm28,%xmm29,%xmm30{%k7}");
  471. asm volatile("vrcp28sd %xmm25,%xmm26,%xmm27{%k7}");
  472. /* AVX-512: Op code 0f 38 cc */
  473. asm volatile("vrsqrt28ps %zmm29,%zmm30");
  474. asm volatile("vrsqrt28pd %zmm26,%zmm27");
  475. /* AVX-512: Op code 0f 38 cd */
  476. asm volatile("vrsqrt28ss %xmm28,%xmm29,%xmm30{%k7}");
  477. asm volatile("vrsqrt28sd %xmm25,%xmm26,%xmm27{%k7}");
  478. /* AVX-512: Op code 0f 3a 03 */
  479. asm volatile("valignd $0x12,%zmm28,%zmm29,%zmm30");
  480. asm volatile("valignq $0x12,%zmm25,%zmm26,%zmm27");
  481. /* AVX-512: Op code 0f 3a 08 */
  482. asm volatile("vroundps $0x5,%ymm6,%ymm2");
  483. asm volatile("vrndscaleps $0x12,%zmm25,%zmm26");
  484. /* AVX-512: Op code 0f 3a 09 */
  485. asm volatile("vroundpd $0x5,%ymm6,%ymm2");
  486. asm volatile("vrndscalepd $0x12,%zmm25,%zmm26");
  487. /* AVX-512: Op code 0f 3a 1a */
  488. asm volatile("vroundss $0x5,%xmm4,%xmm6,%xmm2");
  489. asm volatile("vrndscaless $0x12,%xmm24,%xmm25,%xmm26{%k7}");
  490. /* AVX-512: Op code 0f 3a 0b */
  491. asm volatile("vroundsd $0x5,%xmm4,%xmm6,%xmm2");
  492. asm volatile("vrndscalesd $0x12,%xmm24,%xmm25,%xmm26{%k7}");
  493. /* AVX-512: Op code 0f 3a 18 */
  494. asm volatile("vinsertf128 $0x5,%xmm4,%ymm4,%ymm6");
  495. asm volatile("vinsertf32x4 $0x12,%xmm24,%zmm25,%zmm26{%k7}");
  496. asm volatile("vinsertf64x2 $0x12,%xmm24,%zmm25,%zmm26{%k7}");
  497. /* AVX-512: Op code 0f 3a 19 */
  498. asm volatile("vextractf128 $0x5,%ymm4,%xmm4");
  499. asm volatile("vextractf32x4 $0x12,%zmm25,%xmm26{%k7}");
  500. asm volatile("vextractf64x2 $0x12,%zmm25,%xmm26{%k7}");
  501. /* AVX-512: Op code 0f 3a 1a */
  502. asm volatile("vinsertf32x8 $0x12,%ymm25,%zmm26,%zmm27{%k7}");
  503. asm volatile("vinsertf64x4 $0x12,%ymm28,%zmm29,%zmm30{%k7}");
  504. /* AVX-512: Op code 0f 3a 1b */
  505. asm volatile("vextractf32x8 $0x12,%zmm29,%ymm30{%k7}");
  506. asm volatile("vextractf64x4 $0x12,%zmm26,%ymm27{%k7}");
  507. /* AVX-512: Op code 0f 3a 1e */
  508. asm volatile("vpcmpud $0x12,%zmm29,%zmm30,%k5");
  509. asm volatile("vpcmpuq $0x12,%zmm26,%zmm27,%k5");
  510. /* AVX-512: Op code 0f 3a 1f */
  511. asm volatile("vpcmpd $0x12,%zmm29,%zmm30,%k5");
  512. asm volatile("vpcmpq $0x12,%zmm26,%zmm27,%k5");
  513. /* AVX-512: Op code 0f 3a 23 */
  514. asm volatile("vshuff32x4 $0x12,%zmm28,%zmm29,%zmm30");
  515. asm volatile("vshuff64x2 $0x12,%zmm25,%zmm26,%zmm27");
  516. /* AVX-512: Op code 0f 3a 25 */
  517. asm volatile("vpternlogd $0x12,%zmm28,%zmm29,%zmm30");
  518. asm volatile("vpternlogq $0x12,%zmm28,%zmm29,%zmm30");
  519. /* AVX-512: Op code 0f 3a 26 */
  520. asm volatile("vgetmantps $0x12,%zmm26,%zmm27");
  521. asm volatile("vgetmantpd $0x12,%zmm29,%zmm30");
  522. /* AVX-512: Op code 0f 3a 27 */
  523. asm volatile("vgetmantss $0x12,%xmm25,%xmm26,%xmm27{%k7}");
  524. asm volatile("vgetmantsd $0x12,%xmm28,%xmm29,%xmm30{%k7}");
  525. /* AVX-512: Op code 0f 3a 38 */
  526. asm volatile("vinserti128 $0x5,%xmm4,%ymm4,%ymm6");
  527. asm volatile("vinserti32x4 $0x12,%xmm24,%zmm25,%zmm26{%k7}");
  528. asm volatile("vinserti64x2 $0x12,%xmm24,%zmm25,%zmm26{%k7}");
  529. /* AVX-512: Op code 0f 3a 39 */
  530. asm volatile("vextracti128 $0x5,%ymm4,%xmm6");
  531. asm volatile("vextracti32x4 $0x12,%zmm25,%xmm26{%k7}");
  532. asm volatile("vextracti64x2 $0x12,%zmm25,%xmm26{%k7}");
  533. /* AVX-512: Op code 0f 3a 3a */
  534. asm volatile("vinserti32x8 $0x12,%ymm28,%zmm29,%zmm30{%k7}");
  535. asm volatile("vinserti64x4 $0x12,%ymm25,%zmm26,%zmm27{%k7}");
  536. /* AVX-512: Op code 0f 3a 3b */
  537. asm volatile("vextracti32x8 $0x12,%zmm29,%ymm30{%k7}");
  538. asm volatile("vextracti64x4 $0x12,%zmm26,%ymm27{%k7}");
  539. /* AVX-512: Op code 0f 3a 3e */
  540. asm volatile("vpcmpub $0x12,%zmm29,%zmm30,%k5");
  541. asm volatile("vpcmpuw $0x12,%zmm26,%zmm27,%k5");
  542. /* AVX-512: Op code 0f 3a 3f */
  543. asm volatile("vpcmpb $0x12,%zmm29,%zmm30,%k5");
  544. asm volatile("vpcmpw $0x12,%zmm26,%zmm27,%k5");
  545. /* AVX-512: Op code 0f 3a 43 */
  546. asm volatile("vmpsadbw $0x5,%ymm4,%ymm6,%ymm2");
  547. asm volatile("vdbpsadbw $0x12,%zmm4,%zmm5,%zmm6");
  548. /* AVX-512: Op code 0f 3a 43 */
  549. asm volatile("vshufi32x4 $0x12,%zmm25,%zmm26,%zmm27");
  550. asm volatile("vshufi64x2 $0x12,%zmm28,%zmm29,%zmm30");
  551. /* AVX-512: Op code 0f 3a 50 */
  552. asm volatile("vrangeps $0x12,%zmm25,%zmm26,%zmm27");
  553. asm volatile("vrangepd $0x12,%zmm28,%zmm29,%zmm30");
  554. /* AVX-512: Op code 0f 3a 51 */
  555. asm volatile("vrangess $0x12,%xmm25,%xmm26,%xmm27");
  556. asm volatile("vrangesd $0x12,%xmm28,%xmm29,%xmm30");
  557. /* AVX-512: Op code 0f 3a 54 */
  558. asm volatile("vfixupimmps $0x12,%zmm28,%zmm29,%zmm30");
  559. asm volatile("vfixupimmpd $0x12,%zmm25,%zmm26,%zmm27");
  560. /* AVX-512: Op code 0f 3a 55 */
  561. asm volatile("vfixupimmss $0x12,%xmm28,%xmm29,%xmm30{%k7}");
  562. asm volatile("vfixupimmsd $0x12,%xmm25,%xmm26,%xmm27{%k7}");
  563. /* AVX-512: Op code 0f 3a 56 */
  564. asm volatile("vreduceps $0x12,%zmm26,%zmm27");
  565. asm volatile("vreducepd $0x12,%zmm29,%zmm30");
  566. /* AVX-512: Op code 0f 3a 57 */
  567. asm volatile("vreducess $0x12,%xmm25,%xmm26,%xmm27");
  568. asm volatile("vreducesd $0x12,%xmm28,%xmm29,%xmm30");
  569. /* AVX-512: Op code 0f 3a 66 */
  570. asm volatile("vfpclassps $0x12,%zmm27,%k5");
  571. asm volatile("vfpclasspd $0x12,%zmm30,%k5");
  572. /* AVX-512: Op code 0f 3a 67 */
  573. asm volatile("vfpclassss $0x12,%xmm27,%k5");
  574. asm volatile("vfpclasssd $0x12,%xmm30,%k5");
  575. /* AVX-512: Op code 0f 72 (Grp13) */
  576. asm volatile("vprord $0x12,%zmm25,%zmm26");
  577. asm volatile("vprorq $0x12,%zmm25,%zmm26");
  578. asm volatile("vprold $0x12,%zmm29,%zmm30");
  579. asm volatile("vprolq $0x12,%zmm29,%zmm30");
  580. asm volatile("psrad $0x2,%mm6");
  581. asm volatile("vpsrad $0x5,%ymm6,%ymm2");
  582. asm volatile("vpsrad $0x5,%zmm26,%zmm22");
  583. asm volatile("vpsraq $0x5,%zmm26,%zmm22");
  584. /* AVX-512: Op code 0f 38 c6 (Grp18) */
  585. asm volatile("vgatherpf0dps 0x7b(%r14,%zmm31,8){%k1}");
  586. asm volatile("vgatherpf0dpd 0x7b(%r14,%ymm31,8){%k1}");
  587. asm volatile("vgatherpf1dps 0x7b(%r14,%zmm31,8){%k1}");
  588. asm volatile("vgatherpf1dpd 0x7b(%r14,%ymm31,8){%k1}");
  589. asm volatile("vscatterpf0dps 0x7b(%r14,%zmm31,8){%k1}");
  590. asm volatile("vscatterpf0dpd 0x7b(%r14,%ymm31,8){%k1}");
  591. asm volatile("vscatterpf1dps 0x7b(%r14,%zmm31,8){%k1}");
  592. asm volatile("vscatterpf1dpd 0x7b(%r14,%ymm31,8){%k1}");
  593. /* AVX-512: Op code 0f 38 c7 (Grp19) */
  594. asm volatile("vgatherpf0qps 0x7b(%r14,%zmm31,8){%k1}");
  595. asm volatile("vgatherpf0qpd 0x7b(%r14,%zmm31,8){%k1}");
  596. asm volatile("vgatherpf1qps 0x7b(%r14,%zmm31,8){%k1}");
  597. asm volatile("vgatherpf1qpd 0x7b(%r14,%zmm31,8){%k1}");
  598. asm volatile("vscatterpf0qps 0x7b(%r14,%zmm31,8){%k1}");
  599. asm volatile("vscatterpf0qpd 0x7b(%r14,%zmm31,8){%k1}");
  600. asm volatile("vscatterpf1qps 0x7b(%r14,%zmm31,8){%k1}");
  601. asm volatile("vscatterpf1qpd 0x7b(%r14,%zmm31,8){%k1}");
  602. /* AVX-512: Examples */
  603. asm volatile("vaddpd %zmm28,%zmm29,%zmm30");
  604. asm volatile("vaddpd %zmm28,%zmm29,%zmm30{%k7}");
  605. asm volatile("vaddpd %zmm28,%zmm29,%zmm30{%k7}{z}");
  606. asm volatile("vaddpd {rn-sae},%zmm28,%zmm29,%zmm30");
  607. asm volatile("vaddpd {ru-sae},%zmm28,%zmm29,%zmm30");
  608. asm volatile("vaddpd {rd-sae},%zmm28,%zmm29,%zmm30");
  609. asm volatile("vaddpd {rz-sae},%zmm28,%zmm29,%zmm30");
  610. asm volatile("vaddpd (%rcx),%zmm29,%zmm30");
  611. asm volatile("vaddpd 0x123(%rax,%r14,8),%zmm29,%zmm30");
  612. asm volatile("vaddpd (%rcx){1to8},%zmm29,%zmm30");
  613. asm volatile("vaddpd 0x1fc0(%rdx),%zmm29,%zmm30");
  614. asm volatile("vaddpd 0x3f8(%rdx){1to8},%zmm29,%zmm30");
  615. asm volatile("vcmpeq_uqps 0x1fc(%rdx){1to16},%zmm30,%k5");
  616. asm volatile("vcmpltsd 0x123(%rax,%r14,8),%xmm29,%k5{%k7}");
  617. asm volatile("vcmplesd {sae},%xmm28,%xmm29,%k5{%k7}");
  618. asm volatile("vgetmantss $0x5b,0x123(%rax,%r14,8),%xmm29,%xmm30{%k7}");
  619. /* bndmk m64, bnd */
  620. asm volatile("bndmk (%rax), %bnd0");
  621. asm volatile("bndmk (%r8), %bnd0");
  622. asm volatile("bndmk (0x12345678), %bnd0");
  623. asm volatile("bndmk (%rax), %bnd3");
  624. asm volatile("bndmk (%rcx,%rax,1), %bnd0");
  625. asm volatile("bndmk 0x12345678(,%rax,1), %bnd0");
  626. asm volatile("bndmk (%rax,%rcx,1), %bnd0");
  627. asm volatile("bndmk (%rax,%rcx,8), %bnd0");
  628. asm volatile("bndmk 0x12(%rax), %bnd0");
  629. asm volatile("bndmk 0x12(%rbp), %bnd0");
  630. asm volatile("bndmk 0x12(%rcx,%rax,1), %bnd0");
  631. asm volatile("bndmk 0x12(%rbp,%rax,1), %bnd0");
  632. asm volatile("bndmk 0x12(%rax,%rcx,1), %bnd0");
  633. asm volatile("bndmk 0x12(%rax,%rcx,8), %bnd0");
  634. asm volatile("bndmk 0x12345678(%rax), %bnd0");
  635. asm volatile("bndmk 0x12345678(%rbp), %bnd0");
  636. asm volatile("bndmk 0x12345678(%rcx,%rax,1), %bnd0");
  637. asm volatile("bndmk 0x12345678(%rbp,%rax,1), %bnd0");
  638. asm volatile("bndmk 0x12345678(%rax,%rcx,1), %bnd0");
  639. asm volatile("bndmk 0x12345678(%rax,%rcx,8), %bnd0");
  640. /* bndcl r/m64, bnd */
  641. asm volatile("bndcl (%rax), %bnd0");
  642. asm volatile("bndcl (%r8), %bnd0");
  643. asm volatile("bndcl (0x12345678), %bnd0");
  644. asm volatile("bndcl (%rax), %bnd3");
  645. asm volatile("bndcl (%rcx,%rax,1), %bnd0");
  646. asm volatile("bndcl 0x12345678(,%rax,1), %bnd0");
  647. asm volatile("bndcl (%rax,%rcx,1), %bnd0");
  648. asm volatile("bndcl (%rax,%rcx,8), %bnd0");
  649. asm volatile("bndcl 0x12(%rax), %bnd0");
  650. asm volatile("bndcl 0x12(%rbp), %bnd0");
  651. asm volatile("bndcl 0x12(%rcx,%rax,1), %bnd0");
  652. asm volatile("bndcl 0x12(%rbp,%rax,1), %bnd0");
  653. asm volatile("bndcl 0x12(%rax,%rcx,1), %bnd0");
  654. asm volatile("bndcl 0x12(%rax,%rcx,8), %bnd0");
  655. asm volatile("bndcl 0x12345678(%rax), %bnd0");
  656. asm volatile("bndcl 0x12345678(%rbp), %bnd0");
  657. asm volatile("bndcl 0x12345678(%rcx,%rax,1), %bnd0");
  658. asm volatile("bndcl 0x12345678(%rbp,%rax,1), %bnd0");
  659. asm volatile("bndcl 0x12345678(%rax,%rcx,1), %bnd0");
  660. asm volatile("bndcl 0x12345678(%rax,%rcx,8), %bnd0");
  661. asm volatile("bndcl %rax, %bnd0");
  662. /* bndcu r/m64, bnd */
  663. asm volatile("bndcu (%rax), %bnd0");
  664. asm volatile("bndcu (%r8), %bnd0");
  665. asm volatile("bndcu (0x12345678), %bnd0");
  666. asm volatile("bndcu (%rax), %bnd3");
  667. asm volatile("bndcu (%rcx,%rax,1), %bnd0");
  668. asm volatile("bndcu 0x12345678(,%rax,1), %bnd0");
  669. asm volatile("bndcu (%rax,%rcx,1), %bnd0");
  670. asm volatile("bndcu (%rax,%rcx,8), %bnd0");
  671. asm volatile("bndcu 0x12(%rax), %bnd0");
  672. asm volatile("bndcu 0x12(%rbp), %bnd0");
  673. asm volatile("bndcu 0x12(%rcx,%rax,1), %bnd0");
  674. asm volatile("bndcu 0x12(%rbp,%rax,1), %bnd0");
  675. asm volatile("bndcu 0x12(%rax,%rcx,1), %bnd0");
  676. asm volatile("bndcu 0x12(%rax,%rcx,8), %bnd0");
  677. asm volatile("bndcu 0x12345678(%rax), %bnd0");
  678. asm volatile("bndcu 0x12345678(%rbp), %bnd0");
  679. asm volatile("bndcu 0x12345678(%rcx,%rax,1), %bnd0");
  680. asm volatile("bndcu 0x12345678(%rbp,%rax,1), %bnd0");
  681. asm volatile("bndcu 0x12345678(%rax,%rcx,1), %bnd0");
  682. asm volatile("bndcu 0x12345678(%rax,%rcx,8), %bnd0");
  683. asm volatile("bndcu %rax, %bnd0");
  684. /* bndcn r/m64, bnd */
  685. asm volatile("bndcn (%rax), %bnd0");
  686. asm volatile("bndcn (%r8), %bnd0");
  687. asm volatile("bndcn (0x12345678), %bnd0");
  688. asm volatile("bndcn (%rax), %bnd3");
  689. asm volatile("bndcn (%rcx,%rax,1), %bnd0");
  690. asm volatile("bndcn 0x12345678(,%rax,1), %bnd0");
  691. asm volatile("bndcn (%rax,%rcx,1), %bnd0");
  692. asm volatile("bndcn (%rax,%rcx,8), %bnd0");
  693. asm volatile("bndcn 0x12(%rax), %bnd0");
  694. asm volatile("bndcn 0x12(%rbp), %bnd0");
  695. asm volatile("bndcn 0x12(%rcx,%rax,1), %bnd0");
  696. asm volatile("bndcn 0x12(%rbp,%rax,1), %bnd0");
  697. asm volatile("bndcn 0x12(%rax,%rcx,1), %bnd0");
  698. asm volatile("bndcn 0x12(%rax,%rcx,8), %bnd0");
  699. asm volatile("bndcn 0x12345678(%rax), %bnd0");
  700. asm volatile("bndcn 0x12345678(%rbp), %bnd0");
  701. asm volatile("bndcn 0x12345678(%rcx,%rax,1), %bnd0");
  702. asm volatile("bndcn 0x12345678(%rbp,%rax,1), %bnd0");
  703. asm volatile("bndcn 0x12345678(%rax,%rcx,1), %bnd0");
  704. asm volatile("bndcn 0x12345678(%rax,%rcx,8), %bnd0");
  705. asm volatile("bndcn %rax, %bnd0");
  706. /* bndmov m128, bnd */
  707. asm volatile("bndmov (%rax), %bnd0");
  708. asm volatile("bndmov (%r8), %bnd0");
  709. asm volatile("bndmov (0x12345678), %bnd0");
  710. asm volatile("bndmov (%rax), %bnd3");
  711. asm volatile("bndmov (%rcx,%rax,1), %bnd0");
  712. asm volatile("bndmov 0x12345678(,%rax,1), %bnd0");
  713. asm volatile("bndmov (%rax,%rcx,1), %bnd0");
  714. asm volatile("bndmov (%rax,%rcx,8), %bnd0");
  715. asm volatile("bndmov 0x12(%rax), %bnd0");
  716. asm volatile("bndmov 0x12(%rbp), %bnd0");
  717. asm volatile("bndmov 0x12(%rcx,%rax,1), %bnd0");
  718. asm volatile("bndmov 0x12(%rbp,%rax,1), %bnd0");
  719. asm volatile("bndmov 0x12(%rax,%rcx,1), %bnd0");
  720. asm volatile("bndmov 0x12(%rax,%rcx,8), %bnd0");
  721. asm volatile("bndmov 0x12345678(%rax), %bnd0");
  722. asm volatile("bndmov 0x12345678(%rbp), %bnd0");
  723. asm volatile("bndmov 0x12345678(%rcx,%rax,1), %bnd0");
  724. asm volatile("bndmov 0x12345678(%rbp,%rax,1), %bnd0");
  725. asm volatile("bndmov 0x12345678(%rax,%rcx,1), %bnd0");
  726. asm volatile("bndmov 0x12345678(%rax,%rcx,8), %bnd0");
  727. /* bndmov bnd, m128 */
  728. asm volatile("bndmov %bnd0, (%rax)");
  729. asm volatile("bndmov %bnd0, (%r8)");
  730. asm volatile("bndmov %bnd0, (0x12345678)");
  731. asm volatile("bndmov %bnd3, (%rax)");
  732. asm volatile("bndmov %bnd0, (%rcx,%rax,1)");
  733. asm volatile("bndmov %bnd0, 0x12345678(,%rax,1)");
  734. asm volatile("bndmov %bnd0, (%rax,%rcx,1)");
  735. asm volatile("bndmov %bnd0, (%rax,%rcx,8)");
  736. asm volatile("bndmov %bnd0, 0x12(%rax)");
  737. asm volatile("bndmov %bnd0, 0x12(%rbp)");
  738. asm volatile("bndmov %bnd0, 0x12(%rcx,%rax,1)");
  739. asm volatile("bndmov %bnd0, 0x12(%rbp,%rax,1)");
  740. asm volatile("bndmov %bnd0, 0x12(%rax,%rcx,1)");
  741. asm volatile("bndmov %bnd0, 0x12(%rax,%rcx,8)");
  742. asm volatile("bndmov %bnd0, 0x12345678(%rax)");
  743. asm volatile("bndmov %bnd0, 0x12345678(%rbp)");
  744. asm volatile("bndmov %bnd0, 0x12345678(%rcx,%rax,1)");
  745. asm volatile("bndmov %bnd0, 0x12345678(%rbp,%rax,1)");
  746. asm volatile("bndmov %bnd0, 0x12345678(%rax,%rcx,1)");
  747. asm volatile("bndmov %bnd0, 0x12345678(%rax,%rcx,8)");
  748. /* bndmov bnd2, bnd1 */
  749. asm volatile("bndmov %bnd0, %bnd1");
  750. asm volatile("bndmov %bnd1, %bnd0");
  751. /* bndldx mib, bnd */
  752. asm volatile("bndldx (%rax), %bnd0");
  753. asm volatile("bndldx (%r8), %bnd0");
  754. asm volatile("bndldx (0x12345678), %bnd0");
  755. asm volatile("bndldx (%rax), %bnd3");
  756. asm volatile("bndldx (%rcx,%rax,1), %bnd0");
  757. asm volatile("bndldx 0x12345678(,%rax,1), %bnd0");
  758. asm volatile("bndldx (%rax,%rcx,1), %bnd0");
  759. asm volatile("bndldx 0x12(%rax), %bnd0");
  760. asm volatile("bndldx 0x12(%rbp), %bnd0");
  761. asm volatile("bndldx 0x12(%rcx,%rax,1), %bnd0");
  762. asm volatile("bndldx 0x12(%rbp,%rax,1), %bnd0");
  763. asm volatile("bndldx 0x12(%rax,%rcx,1), %bnd0");
  764. asm volatile("bndldx 0x12345678(%rax), %bnd0");
  765. asm volatile("bndldx 0x12345678(%rbp), %bnd0");
  766. asm volatile("bndldx 0x12345678(%rcx,%rax,1), %bnd0");
  767. asm volatile("bndldx 0x12345678(%rbp,%rax,1), %bnd0");
  768. asm volatile("bndldx 0x12345678(%rax,%rcx,1), %bnd0");
  769. /* bndstx bnd, mib */
  770. asm volatile("bndstx %bnd0, (%rax)");
  771. asm volatile("bndstx %bnd0, (%r8)");
  772. asm volatile("bndstx %bnd0, (0x12345678)");
  773. asm volatile("bndstx %bnd3, (%rax)");
  774. asm volatile("bndstx %bnd0, (%rcx,%rax,1)");
  775. asm volatile("bndstx %bnd0, 0x12345678(,%rax,1)");
  776. asm volatile("bndstx %bnd0, (%rax,%rcx,1)");
  777. asm volatile("bndstx %bnd0, 0x12(%rax)");
  778. asm volatile("bndstx %bnd0, 0x12(%rbp)");
  779. asm volatile("bndstx %bnd0, 0x12(%rcx,%rax,1)");
  780. asm volatile("bndstx %bnd0, 0x12(%rbp,%rax,1)");
  781. asm volatile("bndstx %bnd0, 0x12(%rax,%rcx,1)");
  782. asm volatile("bndstx %bnd0, 0x12345678(%rax)");
  783. asm volatile("bndstx %bnd0, 0x12345678(%rbp)");
  784. asm volatile("bndstx %bnd0, 0x12345678(%rcx,%rax,1)");
  785. asm volatile("bndstx %bnd0, 0x12345678(%rbp,%rax,1)");
  786. asm volatile("bndstx %bnd0, 0x12345678(%rax,%rcx,1)");
  787. /* bnd prefix on call, ret, jmp and all jcc */
  788. asm volatile("bnd call label1"); /* Expecting: call unconditional 0 */
  789. asm volatile("bnd call *(%eax)"); /* Expecting: call indirect 0 */
  790. asm volatile("bnd ret"); /* Expecting: ret indirect 0 */
  791. asm volatile("bnd jmp label1"); /* Expecting: jmp unconditional 0 */
  792. asm volatile("bnd jmp label1"); /* Expecting: jmp unconditional 0 */
  793. asm volatile("bnd jmp *(%ecx)"); /* Expecting: jmp indirect 0 */
  794. asm volatile("bnd jne label1"); /* Expecting: jcc conditional 0 */
  795. /* sha1rnds4 imm8, xmm2/m128, xmm1 */
  796. asm volatile("sha1rnds4 $0x0, %xmm1, %xmm0");
  797. asm volatile("sha1rnds4 $0x91, %xmm7, %xmm2");
  798. asm volatile("sha1rnds4 $0x91, %xmm8, %xmm0");
  799. asm volatile("sha1rnds4 $0x91, %xmm7, %xmm8");
  800. asm volatile("sha1rnds4 $0x91, %xmm15, %xmm8");
  801. asm volatile("sha1rnds4 $0x91, (%rax), %xmm0");
  802. asm volatile("sha1rnds4 $0x91, (%r8), %xmm0");
  803. asm volatile("sha1rnds4 $0x91, (0x12345678), %xmm0");
  804. asm volatile("sha1rnds4 $0x91, (%rax), %xmm3");
  805. asm volatile("sha1rnds4 $0x91, (%rcx,%rax,1), %xmm0");
  806. asm volatile("sha1rnds4 $0x91, 0x12345678(,%rax,1), %xmm0");
  807. asm volatile("sha1rnds4 $0x91, (%rax,%rcx,1), %xmm0");
  808. asm volatile("sha1rnds4 $0x91, (%rax,%rcx,8), %xmm0");
  809. asm volatile("sha1rnds4 $0x91, 0x12(%rax), %xmm0");
  810. asm volatile("sha1rnds4 $0x91, 0x12(%rbp), %xmm0");
  811. asm volatile("sha1rnds4 $0x91, 0x12(%rcx,%rax,1), %xmm0");
  812. asm volatile("sha1rnds4 $0x91, 0x12(%rbp,%rax,1), %xmm0");
  813. asm volatile("sha1rnds4 $0x91, 0x12(%rax,%rcx,1), %xmm0");
  814. asm volatile("sha1rnds4 $0x91, 0x12(%rax,%rcx,8), %xmm0");
  815. asm volatile("sha1rnds4 $0x91, 0x12345678(%rax), %xmm0");
  816. asm volatile("sha1rnds4 $0x91, 0x12345678(%rbp), %xmm0");
  817. asm volatile("sha1rnds4 $0x91, 0x12345678(%rcx,%rax,1), %xmm0");
  818. asm volatile("sha1rnds4 $0x91, 0x12345678(%rbp,%rax,1), %xmm0");
  819. asm volatile("sha1rnds4 $0x91, 0x12345678(%rax,%rcx,1), %xmm0");
  820. asm volatile("sha1rnds4 $0x91, 0x12345678(%rax,%rcx,8), %xmm0");
  821. asm volatile("sha1rnds4 $0x91, 0x12345678(%rax,%rcx,8), %xmm15");
  822. /* sha1nexte xmm2/m128, xmm1 */
  823. asm volatile("sha1nexte %xmm1, %xmm0");
  824. asm volatile("sha1nexte %xmm7, %xmm2");
  825. asm volatile("sha1nexte %xmm8, %xmm0");
  826. asm volatile("sha1nexte %xmm7, %xmm8");
  827. asm volatile("sha1nexte %xmm15, %xmm8");
  828. asm volatile("sha1nexte (%rax), %xmm0");
  829. asm volatile("sha1nexte (%r8), %xmm0");
  830. asm volatile("sha1nexte (0x12345678), %xmm0");
  831. asm volatile("sha1nexte (%rax), %xmm3");
  832. asm volatile("sha1nexte (%rcx,%rax,1), %xmm0");
  833. asm volatile("sha1nexte 0x12345678(,%rax,1), %xmm0");
  834. asm volatile("sha1nexte (%rax,%rcx,1), %xmm0");
  835. asm volatile("sha1nexte (%rax,%rcx,8), %xmm0");
  836. asm volatile("sha1nexte 0x12(%rax), %xmm0");
  837. asm volatile("sha1nexte 0x12(%rbp), %xmm0");
  838. asm volatile("sha1nexte 0x12(%rcx,%rax,1), %xmm0");
  839. asm volatile("sha1nexte 0x12(%rbp,%rax,1), %xmm0");
  840. asm volatile("sha1nexte 0x12(%rax,%rcx,1), %xmm0");
  841. asm volatile("sha1nexte 0x12(%rax,%rcx,8), %xmm0");
  842. asm volatile("sha1nexte 0x12345678(%rax), %xmm0");
  843. asm volatile("sha1nexte 0x12345678(%rbp), %xmm0");
  844. asm volatile("sha1nexte 0x12345678(%rcx,%rax,1), %xmm0");
  845. asm volatile("sha1nexte 0x12345678(%rbp,%rax,1), %xmm0");
  846. asm volatile("sha1nexte 0x12345678(%rax,%rcx,1), %xmm0");
  847. asm volatile("sha1nexte 0x12345678(%rax,%rcx,8), %xmm0");
  848. asm volatile("sha1nexte 0x12345678(%rax,%rcx,8), %xmm15");
  849. /* sha1msg1 xmm2/m128, xmm1 */
  850. asm volatile("sha1msg1 %xmm1, %xmm0");
  851. asm volatile("sha1msg1 %xmm7, %xmm2");
  852. asm volatile("sha1msg1 %xmm8, %xmm0");
  853. asm volatile("sha1msg1 %xmm7, %xmm8");
  854. asm volatile("sha1msg1 %xmm15, %xmm8");
  855. asm volatile("sha1msg1 (%rax), %xmm0");
  856. asm volatile("sha1msg1 (%r8), %xmm0");
  857. asm volatile("sha1msg1 (0x12345678), %xmm0");
  858. asm volatile("sha1msg1 (%rax), %xmm3");
  859. asm volatile("sha1msg1 (%rcx,%rax,1), %xmm0");
  860. asm volatile("sha1msg1 0x12345678(,%rax,1), %xmm0");
  861. asm volatile("sha1msg1 (%rax,%rcx,1), %xmm0");
  862. asm volatile("sha1msg1 (%rax,%rcx,8), %xmm0");
  863. asm volatile("sha1msg1 0x12(%rax), %xmm0");
  864. asm volatile("sha1msg1 0x12(%rbp), %xmm0");
  865. asm volatile("sha1msg1 0x12(%rcx,%rax,1), %xmm0");
  866. asm volatile("sha1msg1 0x12(%rbp,%rax,1), %xmm0");
  867. asm volatile("sha1msg1 0x12(%rax,%rcx,1), %xmm0");
  868. asm volatile("sha1msg1 0x12(%rax,%rcx,8), %xmm0");
  869. asm volatile("sha1msg1 0x12345678(%rax), %xmm0");
  870. asm volatile("sha1msg1 0x12345678(%rbp), %xmm0");
  871. asm volatile("sha1msg1 0x12345678(%rcx,%rax,1), %xmm0");
  872. asm volatile("sha1msg1 0x12345678(%rbp,%rax,1), %xmm0");
  873. asm volatile("sha1msg1 0x12345678(%rax,%rcx,1), %xmm0");
  874. asm volatile("sha1msg1 0x12345678(%rax,%rcx,8), %xmm0");
  875. asm volatile("sha1msg1 0x12345678(%rax,%rcx,8), %xmm15");
  876. /* sha1msg2 xmm2/m128, xmm1 */
  877. asm volatile("sha1msg2 %xmm1, %xmm0");
  878. asm volatile("sha1msg2 %xmm7, %xmm2");
  879. asm volatile("sha1msg2 %xmm8, %xmm0");
  880. asm volatile("sha1msg2 %xmm7, %xmm8");
  881. asm volatile("sha1msg2 %xmm15, %xmm8");
  882. asm volatile("sha1msg2 (%rax), %xmm0");
  883. asm volatile("sha1msg2 (%r8), %xmm0");
  884. asm volatile("sha1msg2 (0x12345678), %xmm0");
  885. asm volatile("sha1msg2 (%rax), %xmm3");
  886. asm volatile("sha1msg2 (%rcx,%rax,1), %xmm0");
  887. asm volatile("sha1msg2 0x12345678(,%rax,1), %xmm0");
  888. asm volatile("sha1msg2 (%rax,%rcx,1), %xmm0");
  889. asm volatile("sha1msg2 (%rax,%rcx,8), %xmm0");
  890. asm volatile("sha1msg2 0x12(%rax), %xmm0");
  891. asm volatile("sha1msg2 0x12(%rbp), %xmm0");
  892. asm volatile("sha1msg2 0x12(%rcx,%rax,1), %xmm0");
  893. asm volatile("sha1msg2 0x12(%rbp,%rax,1), %xmm0");
  894. asm volatile("sha1msg2 0x12(%rax,%rcx,1), %xmm0");
  895. asm volatile("sha1msg2 0x12(%rax,%rcx,8), %xmm0");
  896. asm volatile("sha1msg2 0x12345678(%rax), %xmm0");
  897. asm volatile("sha1msg2 0x12345678(%rbp), %xmm0");
  898. asm volatile("sha1msg2 0x12345678(%rcx,%rax,1), %xmm0");
  899. asm volatile("sha1msg2 0x12345678(%rbp,%rax,1), %xmm0");
  900. asm volatile("sha1msg2 0x12345678(%rax,%rcx,1), %xmm0");
  901. asm volatile("sha1msg2 0x12345678(%rax,%rcx,8), %xmm0");
  902. asm volatile("sha1msg2 0x12345678(%rax,%rcx,8), %xmm15");
  903. /* sha256rnds2 <XMM0>, xmm2/m128, xmm1 */
  904. /* Note sha256rnds2 has an implicit operand 'xmm0' */
  905. asm volatile("sha256rnds2 %xmm4, %xmm1");
  906. asm volatile("sha256rnds2 %xmm7, %xmm2");
  907. asm volatile("sha256rnds2 %xmm8, %xmm1");
  908. asm volatile("sha256rnds2 %xmm7, %xmm8");
  909. asm volatile("sha256rnds2 %xmm15, %xmm8");
  910. asm volatile("sha256rnds2 (%rax), %xmm1");
  911. asm volatile("sha256rnds2 (%r8), %xmm1");
  912. asm volatile("sha256rnds2 (0x12345678), %xmm1");
  913. asm volatile("sha256rnds2 (%rax), %xmm3");
  914. asm volatile("sha256rnds2 (%rcx,%rax,1), %xmm1");
  915. asm volatile("sha256rnds2 0x12345678(,%rax,1), %xmm1");
  916. asm volatile("sha256rnds2 (%rax,%rcx,1), %xmm1");
  917. asm volatile("sha256rnds2 (%rax,%rcx,8), %xmm1");
  918. asm volatile("sha256rnds2 0x12(%rax), %xmm1");
  919. asm volatile("sha256rnds2 0x12(%rbp), %xmm1");
  920. asm volatile("sha256rnds2 0x12(%rcx,%rax,1), %xmm1");
  921. asm volatile("sha256rnds2 0x12(%rbp,%rax,1), %xmm1");
  922. asm volatile("sha256rnds2 0x12(%rax,%rcx,1), %xmm1");
  923. asm volatile("sha256rnds2 0x12(%rax,%rcx,8), %xmm1");
  924. asm volatile("sha256rnds2 0x12345678(%rax), %xmm1");
  925. asm volatile("sha256rnds2 0x12345678(%rbp), %xmm1");
  926. asm volatile("sha256rnds2 0x12345678(%rcx,%rax,1), %xmm1");
  927. asm volatile("sha256rnds2 0x12345678(%rbp,%rax,1), %xmm1");
  928. asm volatile("sha256rnds2 0x12345678(%rax,%rcx,1), %xmm1");
  929. asm volatile("sha256rnds2 0x12345678(%rax,%rcx,8), %xmm1");
  930. asm volatile("sha256rnds2 0x12345678(%rax,%rcx,8), %xmm15");
  931. /* sha256msg1 xmm2/m128, xmm1 */
  932. asm volatile("sha256msg1 %xmm1, %xmm0");
  933. asm volatile("sha256msg1 %xmm7, %xmm2");
  934. asm volatile("sha256msg1 %xmm8, %xmm0");
  935. asm volatile("sha256msg1 %xmm7, %xmm8");
  936. asm volatile("sha256msg1 %xmm15, %xmm8");
  937. asm volatile("sha256msg1 (%rax), %xmm0");
  938. asm volatile("sha256msg1 (%r8), %xmm0");
  939. asm volatile("sha256msg1 (0x12345678), %xmm0");
  940. asm volatile("sha256msg1 (%rax), %xmm3");
  941. asm volatile("sha256msg1 (%rcx,%rax,1), %xmm0");
  942. asm volatile("sha256msg1 0x12345678(,%rax,1), %xmm0");
  943. asm volatile("sha256msg1 (%rax,%rcx,1), %xmm0");
  944. asm volatile("sha256msg1 (%rax,%rcx,8), %xmm0");
  945. asm volatile("sha256msg1 0x12(%rax), %xmm0");
  946. asm volatile("sha256msg1 0x12(%rbp), %xmm0");
  947. asm volatile("sha256msg1 0x12(%rcx,%rax,1), %xmm0");
  948. asm volatile("sha256msg1 0x12(%rbp,%rax,1), %xmm0");
  949. asm volatile("sha256msg1 0x12(%rax,%rcx,1), %xmm0");
  950. asm volatile("sha256msg1 0x12(%rax,%rcx,8), %xmm0");
  951. asm volatile("sha256msg1 0x12345678(%rax), %xmm0");
  952. asm volatile("sha256msg1 0x12345678(%rbp), %xmm0");
  953. asm volatile("sha256msg1 0x12345678(%rcx,%rax,1), %xmm0");
  954. asm volatile("sha256msg1 0x12345678(%rbp,%rax,1), %xmm0");
  955. asm volatile("sha256msg1 0x12345678(%rax,%rcx,1), %xmm0");
  956. asm volatile("sha256msg1 0x12345678(%rax,%rcx,8), %xmm0");
  957. asm volatile("sha256msg1 0x12345678(%rax,%rcx,8), %xmm15");
  958. /* sha256msg2 xmm2/m128, xmm1 */
  959. asm volatile("sha256msg2 %xmm1, %xmm0");
  960. asm volatile("sha256msg2 %xmm7, %xmm2");
  961. asm volatile("sha256msg2 %xmm8, %xmm0");
  962. asm volatile("sha256msg2 %xmm7, %xmm8");
  963. asm volatile("sha256msg2 %xmm15, %xmm8");
  964. asm volatile("sha256msg2 (%rax), %xmm0");
  965. asm volatile("sha256msg2 (%r8), %xmm0");
  966. asm volatile("sha256msg2 (0x12345678), %xmm0");
  967. asm volatile("sha256msg2 (%rax), %xmm3");
  968. asm volatile("sha256msg2 (%rcx,%rax,1), %xmm0");
  969. asm volatile("sha256msg2 0x12345678(,%rax,1), %xmm0");
  970. asm volatile("sha256msg2 (%rax,%rcx,1), %xmm0");
  971. asm volatile("sha256msg2 (%rax,%rcx,8), %xmm0");
  972. asm volatile("sha256msg2 0x12(%rax), %xmm0");
  973. asm volatile("sha256msg2 0x12(%rbp), %xmm0");
  974. asm volatile("sha256msg2 0x12(%rcx,%rax,1), %xmm0");
  975. asm volatile("sha256msg2 0x12(%rbp,%rax,1), %xmm0");
  976. asm volatile("sha256msg2 0x12(%rax,%rcx,1), %xmm0");
  977. asm volatile("sha256msg2 0x12(%rax,%rcx,8), %xmm0");
  978. asm volatile("sha256msg2 0x12345678(%rax), %xmm0");
  979. asm volatile("sha256msg2 0x12345678(%rbp), %xmm0");
  980. asm volatile("sha256msg2 0x12345678(%rcx,%rax,1), %xmm0");
  981. asm volatile("sha256msg2 0x12345678(%rbp,%rax,1), %xmm0");
  982. asm volatile("sha256msg2 0x12345678(%rax,%rcx,1), %xmm0");
  983. asm volatile("sha256msg2 0x12345678(%rax,%rcx,8), %xmm0");
  984. asm volatile("sha256msg2 0x12345678(%rax,%rcx,8), %xmm15");
  985. /* clflushopt m8 */
  986. asm volatile("clflushopt (%rax)");
  987. asm volatile("clflushopt (%r8)");
  988. asm volatile("clflushopt (0x12345678)");
  989. asm volatile("clflushopt 0x12345678(%rax,%rcx,8)");
  990. asm volatile("clflushopt 0x12345678(%r8,%rcx,8)");
  991. /* Also check instructions in the same group encoding as clflushopt */
  992. asm volatile("clflush (%rax)");
  993. asm volatile("clflush (%r8)");
  994. asm volatile("sfence");
  995. /* clwb m8 */
  996. asm volatile("clwb (%rax)");
  997. asm volatile("clwb (%r8)");
  998. asm volatile("clwb (0x12345678)");
  999. asm volatile("clwb 0x12345678(%rax,%rcx,8)");
  1000. asm volatile("clwb 0x12345678(%r8,%rcx,8)");
  1001. /* Also check instructions in the same group encoding as clwb */
  1002. asm volatile("xsaveopt (%rax)");
  1003. asm volatile("xsaveopt (%r8)");
  1004. asm volatile("mfence");
  1005. /* xsavec mem */
  1006. asm volatile("xsavec (%rax)");
  1007. asm volatile("xsavec (%r8)");
  1008. asm volatile("xsavec (0x12345678)");
  1009. asm volatile("xsavec 0x12345678(%rax,%rcx,8)");
  1010. asm volatile("xsavec 0x12345678(%r8,%rcx,8)");
  1011. /* xsaves mem */
  1012. asm volatile("xsaves (%rax)");
  1013. asm volatile("xsaves (%r8)");
  1014. asm volatile("xsaves (0x12345678)");
  1015. asm volatile("xsaves 0x12345678(%rax,%rcx,8)");
  1016. asm volatile("xsaves 0x12345678(%r8,%rcx,8)");
  1017. /* xrstors mem */
  1018. asm volatile("xrstors (%rax)");
  1019. asm volatile("xrstors (%r8)");
  1020. asm volatile("xrstors (0x12345678)");
  1021. asm volatile("xrstors 0x12345678(%rax,%rcx,8)");
  1022. asm volatile("xrstors 0x12345678(%r8,%rcx,8)");
  1023. /* ptwrite */
  1024. asm volatile("ptwrite (%rax)");
  1025. asm volatile("ptwrite (%r8)");
  1026. asm volatile("ptwrite (0x12345678)");
  1027. asm volatile("ptwrite 0x12345678(%rax,%rcx,8)");
  1028. asm volatile("ptwrite 0x12345678(%r8,%rcx,8)");
  1029. asm volatile("ptwritel (%rax)");
  1030. asm volatile("ptwritel (%r8)");
  1031. asm volatile("ptwritel (0x12345678)");
  1032. asm volatile("ptwritel 0x12345678(%rax,%rcx,8)");
  1033. asm volatile("ptwritel 0x12345678(%r8,%rcx,8)");
  1034. asm volatile("ptwriteq (%rax)");
  1035. asm volatile("ptwriteq (%r8)");
  1036. asm volatile("ptwriteq (0x12345678)");
  1037. asm volatile("ptwriteq 0x12345678(%rax,%rcx,8)");
  1038. asm volatile("ptwriteq 0x12345678(%r8,%rcx,8)");
  1039. #else /* #ifdef __x86_64__ */
  1040. /* bound r32, mem (same op code as EVEX prefix) */
  1041. asm volatile("bound %eax, 0x12345678(%ecx)");
  1042. asm volatile("bound %ecx, 0x12345678(%eax)");
  1043. asm volatile("bound %edx, 0x12345678(%eax)");
  1044. asm volatile("bound %ebx, 0x12345678(%eax)");
  1045. asm volatile("bound %esp, 0x12345678(%eax)");
  1046. asm volatile("bound %ebp, 0x12345678(%eax)");
  1047. asm volatile("bound %esi, 0x12345678(%eax)");
  1048. asm volatile("bound %edi, 0x12345678(%eax)");
  1049. asm volatile("bound %ecx, (%eax)");
  1050. asm volatile("bound %eax, (0x12345678)");
  1051. asm volatile("bound %edx, (%ecx,%eax,1)");
  1052. asm volatile("bound %edx, 0x12345678(,%eax,1)");
  1053. asm volatile("bound %edx, (%eax,%ecx,1)");
  1054. asm volatile("bound %edx, (%eax,%ecx,8)");
  1055. asm volatile("bound %edx, 0x12(%eax)");
  1056. asm volatile("bound %edx, 0x12(%ebp)");
  1057. asm volatile("bound %edx, 0x12(%ecx,%eax,1)");
  1058. asm volatile("bound %edx, 0x12(%ebp,%eax,1)");
  1059. asm volatile("bound %edx, 0x12(%eax,%ecx,1)");
  1060. asm volatile("bound %edx, 0x12(%eax,%ecx,8)");
  1061. asm volatile("bound %edx, 0x12345678(%eax)");
  1062. asm volatile("bound %edx, 0x12345678(%ebp)");
  1063. asm volatile("bound %edx, 0x12345678(%ecx,%eax,1)");
  1064. asm volatile("bound %edx, 0x12345678(%ebp,%eax,1)");
  1065. asm volatile("bound %edx, 0x12345678(%eax,%ecx,1)");
  1066. asm volatile("bound %edx, 0x12345678(%eax,%ecx,8)");
  1067. /* bound r16, mem (same op code as EVEX prefix) */
  1068. asm volatile("bound %ax, 0x12345678(%ecx)");
  1069. asm volatile("bound %cx, 0x12345678(%eax)");
  1070. asm volatile("bound %dx, 0x12345678(%eax)");
  1071. asm volatile("bound %bx, 0x12345678(%eax)");
  1072. asm volatile("bound %sp, 0x12345678(%eax)");
  1073. asm volatile("bound %bp, 0x12345678(%eax)");
  1074. asm volatile("bound %si, 0x12345678(%eax)");
  1075. asm volatile("bound %di, 0x12345678(%eax)");
  1076. asm volatile("bound %cx, (%eax)");
  1077. asm volatile("bound %ax, (0x12345678)");
  1078. asm volatile("bound %dx, (%ecx,%eax,1)");
  1079. asm volatile("bound %dx, 0x12345678(,%eax,1)");
  1080. asm volatile("bound %dx, (%eax,%ecx,1)");
  1081. asm volatile("bound %dx, (%eax,%ecx,8)");
  1082. asm volatile("bound %dx, 0x12(%eax)");
  1083. asm volatile("bound %dx, 0x12(%ebp)");
  1084. asm volatile("bound %dx, 0x12(%ecx,%eax,1)");
  1085. asm volatile("bound %dx, 0x12(%ebp,%eax,1)");
  1086. asm volatile("bound %dx, 0x12(%eax,%ecx,1)");
  1087. asm volatile("bound %dx, 0x12(%eax,%ecx,8)");
  1088. asm volatile("bound %dx, 0x12345678(%eax)");
  1089. asm volatile("bound %dx, 0x12345678(%ebp)");
  1090. asm volatile("bound %dx, 0x12345678(%ecx,%eax,1)");
  1091. asm volatile("bound %dx, 0x12345678(%ebp,%eax,1)");
  1092. asm volatile("bound %dx, 0x12345678(%eax,%ecx,1)");
  1093. asm volatile("bound %dx, 0x12345678(%eax,%ecx,8)");
  1094. /* AVX-512: Instructions with the same op codes as Mask Instructions */
  1095. asm volatile("cmovno %eax,%ebx");
  1096. asm volatile("cmovno 0x12345678(%eax),%ecx");
  1097. asm volatile("cmovno 0x12345678(%eax),%cx");
  1098. asm volatile("cmove %eax,%ebx");
  1099. asm volatile("cmove 0x12345678(%eax),%ecx");
  1100. asm volatile("cmove 0x12345678(%eax),%cx");
  1101. asm volatile("seto 0x12345678(%eax)");
  1102. asm volatile("setno 0x12345678(%eax)");
  1103. asm volatile("setb 0x12345678(%eax)");
  1104. asm volatile("setc 0x12345678(%eax)");
  1105. asm volatile("setnae 0x12345678(%eax)");
  1106. asm volatile("setae 0x12345678(%eax)");
  1107. asm volatile("setnb 0x12345678(%eax)");
  1108. asm volatile("setnc 0x12345678(%eax)");
  1109. asm volatile("sets 0x12345678(%eax)");
  1110. asm volatile("setns 0x12345678(%eax)");
  1111. /* AVX-512: Mask Instructions */
  1112. asm volatile("kandw %k7,%k6,%k5");
  1113. asm volatile("kandq %k7,%k6,%k5");
  1114. asm volatile("kandb %k7,%k6,%k5");
  1115. asm volatile("kandd %k7,%k6,%k5");
  1116. asm volatile("kandnw %k7,%k6,%k5");
  1117. asm volatile("kandnq %k7,%k6,%k5");
  1118. asm volatile("kandnb %k7,%k6,%k5");
  1119. asm volatile("kandnd %k7,%k6,%k5");
  1120. asm volatile("knotw %k7,%k6");
  1121. asm volatile("knotq %k7,%k6");
  1122. asm volatile("knotb %k7,%k6");
  1123. asm volatile("knotd %k7,%k6");
  1124. asm volatile("korw %k7,%k6,%k5");
  1125. asm volatile("korq %k7,%k6,%k5");
  1126. asm volatile("korb %k7,%k6,%k5");
  1127. asm volatile("kord %k7,%k6,%k5");
  1128. asm volatile("kxnorw %k7,%k6,%k5");
  1129. asm volatile("kxnorq %k7,%k6,%k5");
  1130. asm volatile("kxnorb %k7,%k6,%k5");
  1131. asm volatile("kxnord %k7,%k6,%k5");
  1132. asm volatile("kxorw %k7,%k6,%k5");
  1133. asm volatile("kxorq %k7,%k6,%k5");
  1134. asm volatile("kxorb %k7,%k6,%k5");
  1135. asm volatile("kxord %k7,%k6,%k5");
  1136. asm volatile("kaddw %k7,%k6,%k5");
  1137. asm volatile("kaddq %k7,%k6,%k5");
  1138. asm volatile("kaddb %k7,%k6,%k5");
  1139. asm volatile("kaddd %k7,%k6,%k5");
  1140. asm volatile("kunpckbw %k7,%k6,%k5");
  1141. asm volatile("kunpckwd %k7,%k6,%k5");
  1142. asm volatile("kunpckdq %k7,%k6,%k5");
  1143. asm volatile("kmovw %k6,%k5");
  1144. asm volatile("kmovw (%ecx),%k5");
  1145. asm volatile("kmovw 0x123(%eax,%ecx,8),%k5");
  1146. asm volatile("kmovw %k5,(%ecx)");
  1147. asm volatile("kmovw %k5,0x123(%eax,%ecx,8)");
  1148. asm volatile("kmovw %eax,%k5");
  1149. asm volatile("kmovw %ebp,%k5");
  1150. asm volatile("kmovw %k5,%eax");
  1151. asm volatile("kmovw %k5,%ebp");
  1152. asm volatile("kmovq %k6,%k5");
  1153. asm volatile("kmovq (%ecx),%k5");
  1154. asm volatile("kmovq 0x123(%eax,%ecx,8),%k5");
  1155. asm volatile("kmovq %k5,(%ecx)");
  1156. asm volatile("kmovq %k5,0x123(%eax,%ecx,8)");
  1157. asm volatile("kmovb %k6,%k5");
  1158. asm volatile("kmovb (%ecx),%k5");
  1159. asm volatile("kmovb 0x123(%eax,%ecx,8),%k5");
  1160. asm volatile("kmovb %k5,(%ecx)");
  1161. asm volatile("kmovb %k5,0x123(%eax,%ecx,8)");
  1162. asm volatile("kmovb %eax,%k5");
  1163. asm volatile("kmovb %ebp,%k5");
  1164. asm volatile("kmovb %k5,%eax");
  1165. asm volatile("kmovb %k5,%ebp");
  1166. asm volatile("kmovd %k6,%k5");
  1167. asm volatile("kmovd (%ecx),%k5");
  1168. asm volatile("kmovd 0x123(%eax,%ecx,8),%k5");
  1169. asm volatile("kmovd %k5,(%ecx)");
  1170. asm volatile("kmovd %k5,0x123(%eax,%ecx,8)");
  1171. asm volatile("kmovd %eax,%k5");
  1172. asm volatile("kmovd %ebp,%k5");
  1173. asm volatile("kmovd %k5,%eax");
  1174. asm volatile("kmovd %k5,%ebp");
  1175. asm volatile("kortestw %k6,%k5");
  1176. asm volatile("kortestq %k6,%k5");
  1177. asm volatile("kortestb %k6,%k5");
  1178. asm volatile("kortestd %k6,%k5");
  1179. asm volatile("ktestw %k6,%k5");
  1180. asm volatile("ktestq %k6,%k5");
  1181. asm volatile("ktestb %k6,%k5");
  1182. asm volatile("ktestd %k6,%k5");
  1183. asm volatile("kshiftrw $0x12,%k6,%k5");
  1184. asm volatile("kshiftrq $0x5b,%k6,%k5");
  1185. asm volatile("kshiftlw $0x12,%k6,%k5");
  1186. asm volatile("kshiftlq $0x5b,%k6,%k5");
  1187. /* AVX-512: Op code 0f 5b */
  1188. asm volatile("vcvtdq2ps %xmm5,%xmm6");
  1189. asm volatile("vcvtqq2ps %zmm5,%ymm6{%k7}");
  1190. asm volatile("vcvtps2dq %xmm5,%xmm6");
  1191. asm volatile("vcvttps2dq %xmm5,%xmm6");
  1192. /* AVX-512: Op code 0f 6f */
  1193. asm volatile("movq %mm0,%mm4");
  1194. asm volatile("vmovdqa %ymm4,%ymm6");
  1195. asm volatile("vmovdqa32 %zmm5,%zmm6");
  1196. asm volatile("vmovdqa64 %zmm5,%zmm6");
  1197. asm volatile("vmovdqu %ymm4,%ymm6");
  1198. asm volatile("vmovdqu32 %zmm5,%zmm6");
  1199. asm volatile("vmovdqu64 %zmm5,%zmm6");
  1200. asm volatile("vmovdqu8 %zmm5,%zmm6");
  1201. asm volatile("vmovdqu16 %zmm5,%zmm6");
  1202. /* AVX-512: Op code 0f 78 */
  1203. asm volatile("vmread %eax,%ebx");
  1204. asm volatile("vcvttps2udq %zmm5,%zmm6");
  1205. asm volatile("vcvttpd2udq %zmm5,%ymm6{%k7}");
  1206. asm volatile("vcvttsd2usi %xmm6,%eax");
  1207. asm volatile("vcvttss2usi %xmm6,%eax");
  1208. asm volatile("vcvttps2uqq %ymm5,%zmm6{%k7}");
  1209. asm volatile("vcvttpd2uqq %zmm5,%zmm6");
  1210. /* AVX-512: Op code 0f 79 */
  1211. asm volatile("vmwrite %eax,%ebx");
  1212. asm volatile("vcvtps2udq %zmm5,%zmm6");
  1213. asm volatile("vcvtpd2udq %zmm5,%ymm6{%k7}");
  1214. asm volatile("vcvtsd2usi %xmm6,%eax");
  1215. asm volatile("vcvtss2usi %xmm6,%eax");
  1216. asm volatile("vcvtps2uqq %ymm5,%zmm6{%k7}");
  1217. asm volatile("vcvtpd2uqq %zmm5,%zmm6");
  1218. /* AVX-512: Op code 0f 7a */
  1219. asm volatile("vcvtudq2pd %ymm5,%zmm6{%k7}");
  1220. asm volatile("vcvtuqq2pd %zmm5,%zmm6");
  1221. asm volatile("vcvtudq2ps %zmm5,%zmm6");
  1222. asm volatile("vcvtuqq2ps %zmm5,%ymm6{%k7}");
  1223. asm volatile("vcvttps2qq %ymm5,%zmm6{%k7}");
  1224. asm volatile("vcvttpd2qq %zmm5,%zmm6");
  1225. /* AVX-512: Op code 0f 7b */
  1226. asm volatile("vcvtusi2sd %eax,%xmm5,%xmm6");
  1227. asm volatile("vcvtusi2ss %eax,%xmm5,%xmm6");
  1228. asm volatile("vcvtps2qq %ymm5,%zmm6{%k7}");
  1229. asm volatile("vcvtpd2qq %zmm5,%zmm6");
  1230. /* AVX-512: Op code 0f 7f */
  1231. asm volatile("movq.s %mm0,%mm4");
  1232. asm volatile("vmovdqa.s %ymm5,%ymm6");
  1233. asm volatile("vmovdqa32.s %zmm5,%zmm6");
  1234. asm volatile("vmovdqa64.s %zmm5,%zmm6");
  1235. asm volatile("vmovdqu.s %ymm5,%ymm6");
  1236. asm volatile("vmovdqu32.s %zmm5,%zmm6");
  1237. asm volatile("vmovdqu64.s %zmm5,%zmm6");
  1238. asm volatile("vmovdqu8.s %zmm5,%zmm6");
  1239. asm volatile("vmovdqu16.s %zmm5,%zmm6");
  1240. /* AVX-512: Op code 0f db */
  1241. asm volatile("pand %mm1,%mm2");
  1242. asm volatile("pand %xmm1,%xmm2");
  1243. asm volatile("vpand %ymm4,%ymm6,%ymm2");
  1244. asm volatile("vpandd %zmm4,%zmm5,%zmm6");
  1245. asm volatile("vpandq %zmm4,%zmm5,%zmm6");
  1246. /* AVX-512: Op code 0f df */
  1247. asm volatile("pandn %mm1,%mm2");
  1248. asm volatile("pandn %xmm1,%xmm2");
  1249. asm volatile("vpandn %ymm4,%ymm6,%ymm2");
  1250. asm volatile("vpandnd %zmm4,%zmm5,%zmm6");
  1251. asm volatile("vpandnq %zmm4,%zmm5,%zmm6");
  1252. /* AVX-512: Op code 0f e6 */
  1253. asm volatile("vcvttpd2dq %xmm1,%xmm2");
  1254. asm volatile("vcvtdq2pd %xmm5,%xmm6");
  1255. asm volatile("vcvtdq2pd %ymm5,%zmm6{%k7}");
  1256. asm volatile("vcvtqq2pd %zmm5,%zmm6");
  1257. asm volatile("vcvtpd2dq %xmm1,%xmm2");
  1258. /* AVX-512: Op code 0f eb */
  1259. asm volatile("por %mm4,%mm6");
  1260. asm volatile("vpor %ymm4,%ymm6,%ymm2");
  1261. asm volatile("vpord %zmm4,%zmm5,%zmm6");
  1262. asm volatile("vporq %zmm4,%zmm5,%zmm6");
  1263. /* AVX-512: Op code 0f ef */
  1264. asm volatile("pxor %mm4,%mm6");
  1265. asm volatile("vpxor %ymm4,%ymm6,%ymm2");
  1266. asm volatile("vpxord %zmm4,%zmm5,%zmm6");
  1267. asm volatile("vpxorq %zmm4,%zmm5,%zmm6");
  1268. /* AVX-512: Op code 0f 38 10 */
  1269. asm volatile("pblendvb %xmm1,%xmm0");
  1270. asm volatile("vpsrlvw %zmm4,%zmm5,%zmm6");
  1271. asm volatile("vpmovuswb %zmm5,%ymm6{%k7}");
  1272. /* AVX-512: Op code 0f 38 11 */
  1273. asm volatile("vpmovusdb %zmm5,%xmm6{%k7}");
  1274. asm volatile("vpsravw %zmm4,%zmm5,%zmm6");
  1275. /* AVX-512: Op code 0f 38 12 */
  1276. asm volatile("vpmovusqb %zmm5,%xmm6{%k7}");
  1277. asm volatile("vpsllvw %zmm4,%zmm5,%zmm6");
  1278. /* AVX-512: Op code 0f 38 13 */
  1279. asm volatile("vcvtph2ps %xmm3,%ymm5");
  1280. asm volatile("vcvtph2ps %ymm5,%zmm6{%k7}");
  1281. asm volatile("vpmovusdw %zmm5,%ymm6{%k7}");
  1282. /* AVX-512: Op code 0f 38 14 */
  1283. asm volatile("blendvps %xmm1,%xmm0");
  1284. asm volatile("vpmovusqw %zmm5,%xmm6{%k7}");
  1285. asm volatile("vprorvd %zmm4,%zmm5,%zmm6");
  1286. asm volatile("vprorvq %zmm4,%zmm5,%zmm6");
  1287. /* AVX-512: Op code 0f 38 15 */
  1288. asm volatile("blendvpd %xmm1,%xmm0");
  1289. asm volatile("vpmovusqd %zmm5,%ymm6{%k7}");
  1290. asm volatile("vprolvd %zmm4,%zmm5,%zmm6");
  1291. asm volatile("vprolvq %zmm4,%zmm5,%zmm6");
  1292. /* AVX-512: Op code 0f 38 16 */
  1293. asm volatile("vpermps %ymm4,%ymm6,%ymm2");
  1294. asm volatile("vpermps %ymm4,%ymm6,%ymm2{%k7}");
  1295. asm volatile("vpermpd %ymm4,%ymm6,%ymm2{%k7}");
  1296. /* AVX-512: Op code 0f 38 19 */
  1297. asm volatile("vbroadcastsd %xmm4,%ymm6");
  1298. asm volatile("vbroadcastf32x2 %xmm7,%zmm6");
  1299. /* AVX-512: Op code 0f 38 1a */
  1300. asm volatile("vbroadcastf128 (%ecx),%ymm4");
  1301. asm volatile("vbroadcastf32x4 (%ecx),%zmm6");
  1302. asm volatile("vbroadcastf64x2 (%ecx),%zmm6");
  1303. /* AVX-512: Op code 0f 38 1b */
  1304. asm volatile("vbroadcastf32x8 (%ecx),%zmm6");
  1305. asm volatile("vbroadcastf64x4 (%ecx),%zmm6");
  1306. /* AVX-512: Op code 0f 38 1f */
  1307. asm volatile("vpabsq %zmm4,%zmm6");
  1308. /* AVX-512: Op code 0f 38 20 */
  1309. asm volatile("vpmovsxbw %xmm4,%xmm5");
  1310. asm volatile("vpmovswb %zmm5,%ymm6{%k7}");
  1311. /* AVX-512: Op code 0f 38 21 */
  1312. asm volatile("vpmovsxbd %xmm4,%ymm6");
  1313. asm volatile("vpmovsdb %zmm5,%xmm6{%k7}");
  1314. /* AVX-512: Op code 0f 38 22 */
  1315. asm volatile("vpmovsxbq %xmm4,%ymm4");
  1316. asm volatile("vpmovsqb %zmm5,%xmm6{%k7}");
  1317. /* AVX-512: Op code 0f 38 23 */
  1318. asm volatile("vpmovsxwd %xmm4,%ymm4");
  1319. asm volatile("vpmovsdw %zmm5,%ymm6{%k7}");
  1320. /* AVX-512: Op code 0f 38 24 */
  1321. asm volatile("vpmovsxwq %xmm4,%ymm6");
  1322. asm volatile("vpmovsqw %zmm5,%xmm6{%k7}");
  1323. /* AVX-512: Op code 0f 38 25 */
  1324. asm volatile("vpmovsxdq %xmm4,%ymm4");
  1325. asm volatile("vpmovsqd %zmm5,%ymm6{%k7}");
  1326. /* AVX-512: Op code 0f 38 26 */
  1327. asm volatile("vptestmb %zmm5,%zmm6,%k5");
  1328. asm volatile("vptestmw %zmm5,%zmm6,%k5");
  1329. asm volatile("vptestnmb %zmm4,%zmm5,%k5");
  1330. asm volatile("vptestnmw %zmm4,%zmm5,%k5");
  1331. /* AVX-512: Op code 0f 38 27 */
  1332. asm volatile("vptestmd %zmm5,%zmm6,%k5");
  1333. asm volatile("vptestmq %zmm5,%zmm6,%k5");
  1334. asm volatile("vptestnmd %zmm4,%zmm5,%k5");
  1335. asm volatile("vptestnmq %zmm4,%zmm5,%k5");
  1336. /* AVX-512: Op code 0f 38 28 */
  1337. asm volatile("vpmuldq %ymm4,%ymm6,%ymm2");
  1338. asm volatile("vpmovm2b %k5,%zmm6");
  1339. asm volatile("vpmovm2w %k5,%zmm6");
  1340. /* AVX-512: Op code 0f 38 29 */
  1341. asm volatile("vpcmpeqq %ymm4,%ymm6,%ymm2");
  1342. asm volatile("vpmovb2m %zmm6,%k5");
  1343. asm volatile("vpmovw2m %zmm6,%k5");
  1344. /* AVX-512: Op code 0f 38 2a */
  1345. asm volatile("vmovntdqa (%ecx),%ymm4");
  1346. asm volatile("vpbroadcastmb2q %k6,%zmm1");
  1347. /* AVX-512: Op code 0f 38 2c */
  1348. asm volatile("vmaskmovps (%ecx),%ymm4,%ymm6");
  1349. asm volatile("vscalefps %zmm4,%zmm5,%zmm6");
  1350. asm volatile("vscalefpd %zmm4,%zmm5,%zmm6");
  1351. /* AVX-512: Op code 0f 38 2d */
  1352. asm volatile("vmaskmovpd (%ecx),%ymm4,%ymm6");
  1353. asm volatile("vscalefss %xmm4,%xmm5,%xmm6{%k7}");
  1354. asm volatile("vscalefsd %xmm4,%xmm5,%xmm6{%k7}");
  1355. /* AVX-512: Op code 0f 38 30 */
  1356. asm volatile("vpmovzxbw %xmm4,%ymm4");
  1357. asm volatile("vpmovwb %zmm5,%ymm6{%k7}");
  1358. /* AVX-512: Op code 0f 38 31 */
  1359. asm volatile("vpmovzxbd %xmm4,%ymm6");
  1360. asm volatile("vpmovdb %zmm5,%xmm6{%k7}");
  1361. /* AVX-512: Op code 0f 38 32 */
  1362. asm volatile("vpmovzxbq %xmm4,%ymm4");
  1363. asm volatile("vpmovqb %zmm5,%xmm6{%k7}");
  1364. /* AVX-512: Op code 0f 38 33 */
  1365. asm volatile("vpmovzxwd %xmm4,%ymm4");
  1366. asm volatile("vpmovdw %zmm5,%ymm6{%k7}");
  1367. /* AVX-512: Op code 0f 38 34 */
  1368. asm volatile("vpmovzxwq %xmm4,%ymm6");
  1369. asm volatile("vpmovqw %zmm5,%xmm6{%k7}");
  1370. /* AVX-512: Op code 0f 38 35 */
  1371. asm volatile("vpmovzxdq %xmm4,%ymm4");
  1372. asm volatile("vpmovqd %zmm5,%ymm6{%k7}");
  1373. /* AVX-512: Op code 0f 38 36 */
  1374. asm volatile("vpermd %ymm4,%ymm6,%ymm2");
  1375. asm volatile("vpermd %ymm4,%ymm6,%ymm2{%k7}");
  1376. asm volatile("vpermq %ymm4,%ymm6,%ymm2{%k7}");
  1377. /* AVX-512: Op code 0f 38 38 */
  1378. asm volatile("vpminsb %ymm4,%ymm6,%ymm2");
  1379. asm volatile("vpmovm2d %k5,%zmm6");
  1380. asm volatile("vpmovm2q %k5,%zmm6");
  1381. /* AVX-512: Op code 0f 38 39 */
  1382. asm volatile("vpminsd %xmm1,%xmm2,%xmm3");
  1383. asm volatile("vpminsd %zmm4,%zmm5,%zmm6");
  1384. asm volatile("vpminsq %zmm4,%zmm5,%zmm6");
  1385. asm volatile("vpmovd2m %zmm6,%k5");
  1386. asm volatile("vpmovq2m %zmm6,%k5");
  1387. /* AVX-512: Op code 0f 38 3a */
  1388. asm volatile("vpminuw %ymm4,%ymm6,%ymm2");
  1389. asm volatile("vpbroadcastmw2d %k6,%zmm6");
  1390. /* AVX-512: Op code 0f 38 3b */
  1391. asm volatile("vpminud %ymm4,%ymm6,%ymm2");
  1392. asm volatile("vpminud %zmm4,%zmm5,%zmm6");
  1393. asm volatile("vpminuq %zmm4,%zmm5,%zmm6");
  1394. /* AVX-512: Op code 0f 38 3d */
  1395. asm volatile("vpmaxsd %ymm4,%ymm6,%ymm2");
  1396. asm volatile("vpmaxsd %zmm4,%zmm5,%zmm6");
  1397. asm volatile("vpmaxsq %zmm4,%zmm5,%zmm6");
  1398. /* AVX-512: Op code 0f 38 3f */
  1399. asm volatile("vpmaxud %ymm4,%ymm6,%ymm2");
  1400. asm volatile("vpmaxud %zmm4,%zmm5,%zmm6");
  1401. asm volatile("vpmaxuq %zmm4,%zmm5,%zmm6");
  1402. /* AVX-512: Op code 0f 38 40 */
  1403. asm volatile("vpmulld %ymm4,%ymm6,%ymm2");
  1404. asm volatile("vpmulld %zmm4,%zmm5,%zmm6");
  1405. asm volatile("vpmullq %zmm4,%zmm5,%zmm6");
  1406. /* AVX-512: Op code 0f 38 42 */
  1407. asm volatile("vgetexpps %zmm5,%zmm6");
  1408. asm volatile("vgetexppd %zmm5,%zmm6");
  1409. /* AVX-512: Op code 0f 38 43 */
  1410. asm volatile("vgetexpss %xmm4,%xmm5,%xmm6{%k7}");
  1411. asm volatile("vgetexpsd %xmm2,%xmm3,%xmm4{%k7}");
  1412. /* AVX-512: Op code 0f 38 44 */
  1413. asm volatile("vplzcntd %zmm5,%zmm6");
  1414. asm volatile("vplzcntq %zmm5,%zmm6");
  1415. /* AVX-512: Op code 0f 38 46 */
  1416. asm volatile("vpsravd %ymm4,%ymm6,%ymm2");
  1417. asm volatile("vpsravd %zmm4,%zmm5,%zmm6");
  1418. asm volatile("vpsravq %zmm4,%zmm5,%zmm6");
  1419. /* AVX-512: Op code 0f 38 4c */
  1420. asm volatile("vrcp14ps %zmm5,%zmm6");
  1421. asm volatile("vrcp14pd %zmm5,%zmm6");
  1422. /* AVX-512: Op code 0f 38 4d */
  1423. asm volatile("vrcp14ss %xmm4,%xmm5,%xmm6{%k7}");
  1424. asm volatile("vrcp14sd %xmm4,%xmm5,%xmm6{%k7}");
  1425. /* AVX-512: Op code 0f 38 4e */
  1426. asm volatile("vrsqrt14ps %zmm5,%zmm6");
  1427. asm volatile("vrsqrt14pd %zmm5,%zmm6");
  1428. /* AVX-512: Op code 0f 38 4f */
  1429. asm volatile("vrsqrt14ss %xmm4,%xmm5,%xmm6{%k7}");
  1430. asm volatile("vrsqrt14sd %xmm4,%xmm5,%xmm6{%k7}");
  1431. /* AVX-512: Op code 0f 38 59 */
  1432. asm volatile("vpbroadcastq %xmm4,%xmm6");
  1433. asm volatile("vbroadcasti32x2 %xmm7,%zmm6");
  1434. /* AVX-512: Op code 0f 38 5a */
  1435. asm volatile("vbroadcasti128 (%ecx),%ymm4");
  1436. asm volatile("vbroadcasti32x4 (%ecx),%zmm6");
  1437. asm volatile("vbroadcasti64x2 (%ecx),%zmm6");
  1438. /* AVX-512: Op code 0f 38 5b */
  1439. asm volatile("vbroadcasti32x8 (%ecx),%zmm6");
  1440. asm volatile("vbroadcasti64x4 (%ecx),%zmm6");
  1441. /* AVX-512: Op code 0f 38 64 */
  1442. asm volatile("vpblendmd %zmm4,%zmm5,%zmm6");
  1443. asm volatile("vpblendmq %zmm4,%zmm5,%zmm6");
  1444. /* AVX-512: Op code 0f 38 65 */
  1445. asm volatile("vblendmps %zmm4,%zmm5,%zmm6");
  1446. asm volatile("vblendmpd %zmm4,%zmm5,%zmm6");
  1447. /* AVX-512: Op code 0f 38 66 */
  1448. asm volatile("vpblendmb %zmm4,%zmm5,%zmm6");
  1449. asm volatile("vpblendmw %zmm4,%zmm5,%zmm6");
  1450. /* AVX-512: Op code 0f 38 75 */
  1451. asm volatile("vpermi2b %zmm4,%zmm5,%zmm6");
  1452. asm volatile("vpermi2w %zmm4,%zmm5,%zmm6");
  1453. /* AVX-512: Op code 0f 38 76 */
  1454. asm volatile("vpermi2d %zmm4,%zmm5,%zmm6");
  1455. asm volatile("vpermi2q %zmm4,%zmm5,%zmm6");
  1456. /* AVX-512: Op code 0f 38 77 */
  1457. asm volatile("vpermi2ps %zmm4,%zmm5,%zmm6");
  1458. asm volatile("vpermi2pd %zmm4,%zmm5,%zmm6");
  1459. /* AVX-512: Op code 0f 38 7a */
  1460. asm volatile("vpbroadcastb %eax,%xmm3");
  1461. /* AVX-512: Op code 0f 38 7b */
  1462. asm volatile("vpbroadcastw %eax,%xmm3");
  1463. /* AVX-512: Op code 0f 38 7c */
  1464. asm volatile("vpbroadcastd %eax,%xmm3");
  1465. /* AVX-512: Op code 0f 38 7d */
  1466. asm volatile("vpermt2b %zmm4,%zmm5,%zmm6");
  1467. asm volatile("vpermt2w %zmm4,%zmm5,%zmm6");
  1468. /* AVX-512: Op code 0f 38 7e */
  1469. asm volatile("vpermt2d %zmm4,%zmm5,%zmm6");
  1470. asm volatile("vpermt2q %zmm4,%zmm5,%zmm6");
  1471. /* AVX-512: Op code 0f 38 7f */
  1472. asm volatile("vpermt2ps %zmm4,%zmm5,%zmm6");
  1473. asm volatile("vpermt2pd %zmm4,%zmm5,%zmm6");
  1474. /* AVX-512: Op code 0f 38 83 */
  1475. asm volatile("vpmultishiftqb %zmm4,%zmm5,%zmm6");
  1476. /* AVX-512: Op code 0f 38 88 */
  1477. asm volatile("vexpandps (%ecx),%zmm6");
  1478. asm volatile("vexpandpd (%ecx),%zmm6");
  1479. /* AVX-512: Op code 0f 38 89 */
  1480. asm volatile("vpexpandd (%ecx),%zmm6");
  1481. asm volatile("vpexpandq (%ecx),%zmm6");
  1482. /* AVX-512: Op code 0f 38 8a */
  1483. asm volatile("vcompressps %zmm6,(%ecx)");
  1484. asm volatile("vcompresspd %zmm6,(%ecx)");
  1485. /* AVX-512: Op code 0f 38 8b */
  1486. asm volatile("vpcompressd %zmm6,(%ecx)");
  1487. asm volatile("vpcompressq %zmm6,(%ecx)");
  1488. /* AVX-512: Op code 0f 38 8d */
  1489. asm volatile("vpermb %zmm4,%zmm5,%zmm6");
  1490. asm volatile("vpermw %zmm4,%zmm5,%zmm6");
  1491. /* AVX-512: Op code 0f 38 90 */
  1492. asm volatile("vpgatherdd %xmm2,0x02(%ebp,%xmm7,2),%xmm1");
  1493. asm volatile("vpgatherdq %xmm2,0x04(%ebp,%xmm7,2),%xmm1");
  1494. asm volatile("vpgatherdd 0x7b(%ebp,%zmm7,8),%zmm6{%k1}");
  1495. asm volatile("vpgatherdq 0x7b(%ebp,%ymm7,8),%zmm6{%k1}");
  1496. /* AVX-512: Op code 0f 38 91 */
  1497. asm volatile("vpgatherqd %xmm2,0x02(%ebp,%xmm7,2),%xmm1");
  1498. asm volatile("vpgatherqq %xmm2,0x02(%ebp,%xmm7,2),%xmm1");
  1499. asm volatile("vpgatherqd 0x7b(%ebp,%zmm7,8),%ymm6{%k1}");
  1500. asm volatile("vpgatherqq 0x7b(%ebp,%zmm7,8),%zmm6{%k1}");
  1501. /* AVX-512: Op code 0f 38 a0 */
  1502. asm volatile("vpscatterdd %zmm6,0x7b(%ebp,%zmm7,8){%k1}");
  1503. asm volatile("vpscatterdq %zmm6,0x7b(%ebp,%ymm7,8){%k1}");
  1504. /* AVX-512: Op code 0f 38 a1 */
  1505. asm volatile("vpscatterqd %ymm6,0x7b(%ebp,%zmm7,8){%k1}");
  1506. asm volatile("vpscatterqq %ymm6,0x7b(%ebp,%ymm7,8){%k1}");
  1507. /* AVX-512: Op code 0f 38 a2 */
  1508. asm volatile("vscatterdps %zmm6,0x7b(%ebp,%zmm7,8){%k1}");
  1509. asm volatile("vscatterdpd %zmm6,0x7b(%ebp,%ymm7,8){%k1}");
  1510. /* AVX-512: Op code 0f 38 a3 */
  1511. asm volatile("vscatterqps %ymm6,0x7b(%ebp,%zmm7,8){%k1}");
  1512. asm volatile("vscatterqpd %zmm6,0x7b(%ebp,%zmm7,8){%k1}");
  1513. /* AVX-512: Op code 0f 38 b4 */
  1514. asm volatile("vpmadd52luq %zmm4,%zmm5,%zmm6");
  1515. /* AVX-512: Op code 0f 38 b5 */
  1516. asm volatile("vpmadd52huq %zmm4,%zmm5,%zmm6");
  1517. /* AVX-512: Op code 0f 38 c4 */
  1518. asm volatile("vpconflictd %zmm5,%zmm6");
  1519. asm volatile("vpconflictq %zmm5,%zmm6");
  1520. /* AVX-512: Op code 0f 38 c8 */
  1521. asm volatile("vexp2ps %zmm6,%zmm7");
  1522. asm volatile("vexp2pd %zmm6,%zmm7");
  1523. /* AVX-512: Op code 0f 38 ca */
  1524. asm volatile("vrcp28ps %zmm6,%zmm7");
  1525. asm volatile("vrcp28pd %zmm6,%zmm7");
  1526. /* AVX-512: Op code 0f 38 cb */
  1527. asm volatile("vrcp28ss %xmm5,%xmm6,%xmm7{%k7}");
  1528. asm volatile("vrcp28sd %xmm5,%xmm6,%xmm7{%k7}");
  1529. /* AVX-512: Op code 0f 38 cc */
  1530. asm volatile("vrsqrt28ps %zmm6,%zmm7");
  1531. asm volatile("vrsqrt28pd %zmm6,%zmm7");
  1532. /* AVX-512: Op code 0f 38 cd */
  1533. asm volatile("vrsqrt28ss %xmm5,%xmm6,%xmm7{%k7}");
  1534. asm volatile("vrsqrt28sd %xmm5,%xmm6,%xmm7{%k7}");
  1535. /* AVX-512: Op code 0f 3a 03 */
  1536. asm volatile("valignd $0x12,%zmm5,%zmm6,%zmm7");
  1537. asm volatile("valignq $0x12,%zmm5,%zmm6,%zmm7");
  1538. /* AVX-512: Op code 0f 3a 08 */
  1539. asm volatile("vroundps $0x5,%ymm6,%ymm2");
  1540. asm volatile("vrndscaleps $0x12,%zmm5,%zmm6");
  1541. /* AVX-512: Op code 0f 3a 09 */
  1542. asm volatile("vroundpd $0x5,%ymm6,%ymm2");
  1543. asm volatile("vrndscalepd $0x12,%zmm5,%zmm6");
  1544. /* AVX-512: Op code 0f 3a 0a */
  1545. asm volatile("vroundss $0x5,%xmm4,%xmm6,%xmm2");
  1546. asm volatile("vrndscaless $0x12,%xmm4,%xmm5,%xmm6{%k7}");
  1547. /* AVX-512: Op code 0f 3a 0b */
  1548. asm volatile("vroundsd $0x5,%xmm4,%xmm6,%xmm2");
  1549. asm volatile("vrndscalesd $0x12,%xmm4,%xmm5,%xmm6{%k7}");
  1550. /* AVX-512: Op code 0f 3a 18 */
  1551. asm volatile("vinsertf128 $0x5,%xmm4,%ymm4,%ymm6");
  1552. asm volatile("vinsertf32x4 $0x12,%xmm4,%zmm5,%zmm6{%k7}");
  1553. asm volatile("vinsertf64x2 $0x12,%xmm4,%zmm5,%zmm6{%k7}");
  1554. /* AVX-512: Op code 0f 3a 19 */
  1555. asm volatile("vextractf128 $0x5,%ymm4,%xmm4");
  1556. asm volatile("vextractf32x4 $0x12,%zmm5,%xmm6{%k7}");
  1557. asm volatile("vextractf64x2 $0x12,%zmm5,%xmm6{%k7}");
  1558. /* AVX-512: Op code 0f 3a 1a */
  1559. asm volatile("vinsertf32x8 $0x12,%ymm5,%zmm6,%zmm7{%k7}");
  1560. asm volatile("vinsertf64x4 $0x12,%ymm5,%zmm6,%zmm7{%k7}");
  1561. /* AVX-512: Op code 0f 3a 1b */
  1562. asm volatile("vextractf32x8 $0x12,%zmm6,%ymm7{%k7}");
  1563. asm volatile("vextractf64x4 $0x12,%zmm6,%ymm7{%k7}");
  1564. /* AVX-512: Op code 0f 3a 1e */
  1565. asm volatile("vpcmpud $0x12,%zmm6,%zmm7,%k5");
  1566. asm volatile("vpcmpuq $0x12,%zmm6,%zmm7,%k5");
  1567. /* AVX-512: Op code 0f 3a 1f */
  1568. asm volatile("vpcmpd $0x12,%zmm6,%zmm7,%k5");
  1569. asm volatile("vpcmpq $0x12,%zmm6,%zmm7,%k5");
  1570. /* AVX-512: Op code 0f 3a 23 */
  1571. asm volatile("vshuff32x4 $0x12,%zmm5,%zmm6,%zmm7");
  1572. asm volatile("vshuff64x2 $0x12,%zmm5,%zmm6,%zmm7");
  1573. /* AVX-512: Op code 0f 3a 25 */
  1574. asm volatile("vpternlogd $0x12,%zmm5,%zmm6,%zmm7");
  1575. asm volatile("vpternlogq $0x12,%zmm5,%zmm6,%zmm7");
  1576. /* AVX-512: Op code 0f 3a 26 */
  1577. asm volatile("vgetmantps $0x12,%zmm6,%zmm7");
  1578. asm volatile("vgetmantpd $0x12,%zmm6,%zmm7");
  1579. /* AVX-512: Op code 0f 3a 27 */
  1580. asm volatile("vgetmantss $0x12,%xmm5,%xmm6,%xmm7{%k7}");
  1581. asm volatile("vgetmantsd $0x12,%xmm5,%xmm6,%xmm7{%k7}");
  1582. /* AVX-512: Op code 0f 3a 38 */
  1583. asm volatile("vinserti128 $0x5,%xmm4,%ymm4,%ymm6");
  1584. asm volatile("vinserti32x4 $0x12,%xmm4,%zmm5,%zmm6{%k7}");
  1585. asm volatile("vinserti64x2 $0x12,%xmm4,%zmm5,%zmm6{%k7}");
  1586. /* AVX-512: Op code 0f 3a 39 */
  1587. asm volatile("vextracti128 $0x5,%ymm4,%xmm6");
  1588. asm volatile("vextracti32x4 $0x12,%zmm5,%xmm6{%k7}");
  1589. asm volatile("vextracti64x2 $0x12,%zmm5,%xmm6{%k7}");
  1590. /* AVX-512: Op code 0f 3a 3a */
  1591. asm volatile("vinserti32x8 $0x12,%ymm5,%zmm6,%zmm7{%k7}");
  1592. asm volatile("vinserti64x4 $0x12,%ymm5,%zmm6,%zmm7{%k7}");
  1593. /* AVX-512: Op code 0f 3a 3b */
  1594. asm volatile("vextracti32x8 $0x12,%zmm6,%ymm7{%k7}");
  1595. asm volatile("vextracti64x4 $0x12,%zmm6,%ymm7{%k7}");
  1596. /* AVX-512: Op code 0f 3a 3e */
  1597. asm volatile("vpcmpub $0x12,%zmm6,%zmm7,%k5");
  1598. asm volatile("vpcmpuw $0x12,%zmm6,%zmm7,%k5");
  1599. /* AVX-512: Op code 0f 3a 3f */
  1600. asm volatile("vpcmpb $0x12,%zmm6,%zmm7,%k5");
  1601. asm volatile("vpcmpw $0x12,%zmm6,%zmm7,%k5");
  1602. /* AVX-512: Op code 0f 3a 42 */
  1603. asm volatile("vmpsadbw $0x5,%ymm4,%ymm6,%ymm2");
  1604. asm volatile("vdbpsadbw $0x12,%zmm4,%zmm5,%zmm6");
  1605. /* AVX-512: Op code 0f 3a 43 */
  1606. asm volatile("vshufi32x4 $0x12,%zmm5,%zmm6,%zmm7");
  1607. asm volatile("vshufi64x2 $0x12,%zmm5,%zmm6,%zmm7");
  1608. /* AVX-512: Op code 0f 3a 50 */
  1609. asm volatile("vrangeps $0x12,%zmm5,%zmm6,%zmm7");
  1610. asm volatile("vrangepd $0x12,%zmm5,%zmm6,%zmm7");
  1611. /* AVX-512: Op code 0f 3a 51 */
  1612. asm volatile("vrangess $0x12,%xmm5,%xmm6,%xmm7");
  1613. asm volatile("vrangesd $0x12,%xmm5,%xmm6,%xmm7");
  1614. /* AVX-512: Op code 0f 3a 54 */
  1615. asm volatile("vfixupimmps $0x12,%zmm5,%zmm6,%zmm7");
  1616. asm volatile("vfixupimmpd $0x12,%zmm5,%zmm6,%zmm7");
  1617. /* AVX-512: Op code 0f 3a 55 */
  1618. asm volatile("vfixupimmss $0x12,%xmm5,%xmm6,%xmm7{%k7}");
  1619. asm volatile("vfixupimmsd $0x12,%xmm5,%xmm6,%xmm7{%k7}");
  1620. /* AVX-512: Op code 0f 3a 56 */
  1621. asm volatile("vreduceps $0x12,%zmm6,%zmm7");
  1622. asm volatile("vreducepd $0x12,%zmm6,%zmm7");
  1623. /* AVX-512: Op code 0f 3a 57 */
  1624. asm volatile("vreducess $0x12,%xmm5,%xmm6,%xmm7");
  1625. asm volatile("vreducesd $0x12,%xmm5,%xmm6,%xmm7");
  1626. /* AVX-512: Op code 0f 3a 66 */
  1627. asm volatile("vfpclassps $0x12,%zmm7,%k5");
  1628. asm volatile("vfpclasspd $0x12,%zmm7,%k5");
  1629. /* AVX-512: Op code 0f 3a 67 */
  1630. asm volatile("vfpclassss $0x12,%xmm7,%k5");
  1631. asm volatile("vfpclasssd $0x12,%xmm7,%k5");
  1632. /* AVX-512: Op code 0f 72 (Grp13) */
  1633. asm volatile("vprord $0x12,%zmm5,%zmm6");
  1634. asm volatile("vprorq $0x12,%zmm5,%zmm6");
  1635. asm volatile("vprold $0x12,%zmm5,%zmm6");
  1636. asm volatile("vprolq $0x12,%zmm5,%zmm6");
  1637. asm volatile("psrad $0x2,%mm6");
  1638. asm volatile("vpsrad $0x5,%ymm6,%ymm2");
  1639. asm volatile("vpsrad $0x5,%zmm6,%zmm2");
  1640. asm volatile("vpsraq $0x5,%zmm6,%zmm2");
  1641. /* AVX-512: Op code 0f 38 c6 (Grp18) */
  1642. asm volatile("vgatherpf0dps 0x7b(%ebp,%zmm7,8){%k1}");
  1643. asm volatile("vgatherpf0dpd 0x7b(%ebp,%ymm7,8){%k1}");
  1644. asm volatile("vgatherpf1dps 0x7b(%ebp,%zmm7,8){%k1}");
  1645. asm volatile("vgatherpf1dpd 0x7b(%ebp,%ymm7,8){%k1}");
  1646. asm volatile("vscatterpf0dps 0x7b(%ebp,%zmm7,8){%k1}");
  1647. asm volatile("vscatterpf0dpd 0x7b(%ebp,%ymm7,8){%k1}");
  1648. asm volatile("vscatterpf1dps 0x7b(%ebp,%zmm7,8){%k1}");
  1649. asm volatile("vscatterpf1dpd 0x7b(%ebp,%ymm7,8){%k1}");
  1650. /* AVX-512: Op code 0f 38 c7 (Grp19) */
  1651. asm volatile("vgatherpf0qps 0x7b(%ebp,%zmm7,8){%k1}");
  1652. asm volatile("vgatherpf0qpd 0x7b(%ebp,%zmm7,8){%k1}");
  1653. asm volatile("vgatherpf1qps 0x7b(%ebp,%zmm7,8){%k1}");
  1654. asm volatile("vgatherpf1qpd 0x7b(%ebp,%zmm7,8){%k1}");
  1655. asm volatile("vscatterpf0qps 0x7b(%ebp,%zmm7,8){%k1}");
  1656. asm volatile("vscatterpf0qpd 0x7b(%ebp,%zmm7,8){%k1}");
  1657. asm volatile("vscatterpf1qps 0x7b(%ebp,%zmm7,8){%k1}");
  1658. asm volatile("vscatterpf1qpd 0x7b(%ebp,%zmm7,8){%k1}");
  1659. /* AVX-512: Examples */
  1660. asm volatile("vaddpd %zmm4,%zmm5,%zmm6");
  1661. asm volatile("vaddpd %zmm4,%zmm5,%zmm6{%k7}");
  1662. asm volatile("vaddpd %zmm4,%zmm5,%zmm6{%k7}{z}");
  1663. asm volatile("vaddpd {rn-sae},%zmm4,%zmm5,%zmm6");
  1664. asm volatile("vaddpd {ru-sae},%zmm4,%zmm5,%zmm6");
  1665. asm volatile("vaddpd {rd-sae},%zmm4,%zmm5,%zmm6");
  1666. asm volatile("vaddpd {rz-sae},%zmm4,%zmm5,%zmm6");
  1667. asm volatile("vaddpd (%ecx),%zmm5,%zmm6");
  1668. asm volatile("vaddpd 0x123(%eax,%ecx,8),%zmm5,%zmm6");
  1669. asm volatile("vaddpd (%ecx){1to8},%zmm5,%zmm6");
  1670. asm volatile("vaddpd 0x1fc0(%edx),%zmm5,%zmm6");
  1671. asm volatile("vaddpd 0x3f8(%edx){1to8},%zmm5,%zmm6");
  1672. asm volatile("vcmpeq_uqps 0x1fc(%edx){1to16},%zmm6,%k5");
  1673. asm volatile("vcmpltsd 0x123(%eax,%ecx,8),%xmm3,%k5{%k7}");
  1674. asm volatile("vcmplesd {sae},%xmm4,%xmm5,%k5{%k7}");
  1675. asm volatile("vgetmantss $0x5b,0x123(%eax,%ecx,8),%xmm4,%xmm5{%k7}");
  1676. /* bndmk m32, bnd */
  1677. asm volatile("bndmk (%eax), %bnd0");
  1678. asm volatile("bndmk (0x12345678), %bnd0");
  1679. asm volatile("bndmk (%eax), %bnd3");
  1680. asm volatile("bndmk (%ecx,%eax,1), %bnd0");
  1681. asm volatile("bndmk 0x12345678(,%eax,1), %bnd0");
  1682. asm volatile("bndmk (%eax,%ecx,1), %bnd0");
  1683. asm volatile("bndmk (%eax,%ecx,8), %bnd0");
  1684. asm volatile("bndmk 0x12(%eax), %bnd0");
  1685. asm volatile("bndmk 0x12(%ebp), %bnd0");
  1686. asm volatile("bndmk 0x12(%ecx,%eax,1), %bnd0");
  1687. asm volatile("bndmk 0x12(%ebp,%eax,1), %bnd0");
  1688. asm volatile("bndmk 0x12(%eax,%ecx,1), %bnd0");
  1689. asm volatile("bndmk 0x12(%eax,%ecx,8), %bnd0");
  1690. asm volatile("bndmk 0x12345678(%eax), %bnd0");
  1691. asm volatile("bndmk 0x12345678(%ebp), %bnd0");
  1692. asm volatile("bndmk 0x12345678(%ecx,%eax,1), %bnd0");
  1693. asm volatile("bndmk 0x12345678(%ebp,%eax,1), %bnd0");
  1694. asm volatile("bndmk 0x12345678(%eax,%ecx,1), %bnd0");
  1695. asm volatile("bndmk 0x12345678(%eax,%ecx,8), %bnd0");
  1696. /* bndcl r/m32, bnd */
  1697. asm volatile("bndcl (%eax), %bnd0");
  1698. asm volatile("bndcl (0x12345678), %bnd0");
  1699. asm volatile("bndcl (%eax), %bnd3");
  1700. asm volatile("bndcl (%ecx,%eax,1), %bnd0");
  1701. asm volatile("bndcl 0x12345678(,%eax,1), %bnd0");
  1702. asm volatile("bndcl (%eax,%ecx,1), %bnd0");
  1703. asm volatile("bndcl (%eax,%ecx,8), %bnd0");
  1704. asm volatile("bndcl 0x12(%eax), %bnd0");
  1705. asm volatile("bndcl 0x12(%ebp), %bnd0");
  1706. asm volatile("bndcl 0x12(%ecx,%eax,1), %bnd0");
  1707. asm volatile("bndcl 0x12(%ebp,%eax,1), %bnd0");
  1708. asm volatile("bndcl 0x12(%eax,%ecx,1), %bnd0");
  1709. asm volatile("bndcl 0x12(%eax,%ecx,8), %bnd0");
  1710. asm volatile("bndcl 0x12345678(%eax), %bnd0");
  1711. asm volatile("bndcl 0x12345678(%ebp), %bnd0");
  1712. asm volatile("bndcl 0x12345678(%ecx,%eax,1), %bnd0");
  1713. asm volatile("bndcl 0x12345678(%ebp,%eax,1), %bnd0");
  1714. asm volatile("bndcl 0x12345678(%eax,%ecx,1), %bnd0");
  1715. asm volatile("bndcl 0x12345678(%eax,%ecx,8), %bnd0");
  1716. asm volatile("bndcl %eax, %bnd0");
  1717. /* bndcu r/m32, bnd */
  1718. asm volatile("bndcu (%eax), %bnd0");
  1719. asm volatile("bndcu (0x12345678), %bnd0");
  1720. asm volatile("bndcu (%eax), %bnd3");
  1721. asm volatile("bndcu (%ecx,%eax,1), %bnd0");
  1722. asm volatile("bndcu 0x12345678(,%eax,1), %bnd0");
  1723. asm volatile("bndcu (%eax,%ecx,1), %bnd0");
  1724. asm volatile("bndcu (%eax,%ecx,8), %bnd0");
  1725. asm volatile("bndcu 0x12(%eax), %bnd0");
  1726. asm volatile("bndcu 0x12(%ebp), %bnd0");
  1727. asm volatile("bndcu 0x12(%ecx,%eax,1), %bnd0");
  1728. asm volatile("bndcu 0x12(%ebp,%eax,1), %bnd0");
  1729. asm volatile("bndcu 0x12(%eax,%ecx,1), %bnd0");
  1730. asm volatile("bndcu 0x12(%eax,%ecx,8), %bnd0");
  1731. asm volatile("bndcu 0x12345678(%eax), %bnd0");
  1732. asm volatile("bndcu 0x12345678(%ebp), %bnd0");
  1733. asm volatile("bndcu 0x12345678(%ecx,%eax,1), %bnd0");
  1734. asm volatile("bndcu 0x12345678(%ebp,%eax,1), %bnd0");
  1735. asm volatile("bndcu 0x12345678(%eax,%ecx,1), %bnd0");
  1736. asm volatile("bndcu 0x12345678(%eax,%ecx,8), %bnd0");
  1737. asm volatile("bndcu %eax, %bnd0");
  1738. /* bndcn r/m32, bnd */
  1739. asm volatile("bndcn (%eax), %bnd0");
  1740. asm volatile("bndcn (0x12345678), %bnd0");
  1741. asm volatile("bndcn (%eax), %bnd3");
  1742. asm volatile("bndcn (%ecx,%eax,1), %bnd0");
  1743. asm volatile("bndcn 0x12345678(,%eax,1), %bnd0");
  1744. asm volatile("bndcn (%eax,%ecx,1), %bnd0");
  1745. asm volatile("bndcn (%eax,%ecx,8), %bnd0");
  1746. asm volatile("bndcn 0x12(%eax), %bnd0");
  1747. asm volatile("bndcn 0x12(%ebp), %bnd0");
  1748. asm volatile("bndcn 0x12(%ecx,%eax,1), %bnd0");
  1749. asm volatile("bndcn 0x12(%ebp,%eax,1), %bnd0");
  1750. asm volatile("bndcn 0x12(%eax,%ecx,1), %bnd0");
  1751. asm volatile("bndcn 0x12(%eax,%ecx,8), %bnd0");
  1752. asm volatile("bndcn 0x12345678(%eax), %bnd0");
  1753. asm volatile("bndcn 0x12345678(%ebp), %bnd0");
  1754. asm volatile("bndcn 0x12345678(%ecx,%eax,1), %bnd0");
  1755. asm volatile("bndcn 0x12345678(%ebp,%eax,1), %bnd0");
  1756. asm volatile("bndcn 0x12345678(%eax,%ecx,1), %bnd0");
  1757. asm volatile("bndcn 0x12345678(%eax,%ecx,8), %bnd0");
  1758. asm volatile("bndcn %eax, %bnd0");
  1759. /* bndmov m64, bnd */
  1760. asm volatile("bndmov (%eax), %bnd0");
  1761. asm volatile("bndmov (0x12345678), %bnd0");
  1762. asm volatile("bndmov (%eax), %bnd3");
  1763. asm volatile("bndmov (%ecx,%eax,1), %bnd0");
  1764. asm volatile("bndmov 0x12345678(,%eax,1), %bnd0");
  1765. asm volatile("bndmov (%eax,%ecx,1), %bnd0");
  1766. asm volatile("bndmov (%eax,%ecx,8), %bnd0");
  1767. asm volatile("bndmov 0x12(%eax), %bnd0");
  1768. asm volatile("bndmov 0x12(%ebp), %bnd0");
  1769. asm volatile("bndmov 0x12(%ecx,%eax,1), %bnd0");
  1770. asm volatile("bndmov 0x12(%ebp,%eax,1), %bnd0");
  1771. asm volatile("bndmov 0x12(%eax,%ecx,1), %bnd0");
  1772. asm volatile("bndmov 0x12(%eax,%ecx,8), %bnd0");
  1773. asm volatile("bndmov 0x12345678(%eax), %bnd0");
  1774. asm volatile("bndmov 0x12345678(%ebp), %bnd0");
  1775. asm volatile("bndmov 0x12345678(%ecx,%eax,1), %bnd0");
  1776. asm volatile("bndmov 0x12345678(%ebp,%eax,1), %bnd0");
  1777. asm volatile("bndmov 0x12345678(%eax,%ecx,1), %bnd0");
  1778. asm volatile("bndmov 0x12345678(%eax,%ecx,8), %bnd0");
  1779. /* bndmov bnd, m64 */
  1780. asm volatile("bndmov %bnd0, (%eax)");
  1781. asm volatile("bndmov %bnd0, (0x12345678)");
  1782. asm volatile("bndmov %bnd3, (%eax)");
  1783. asm volatile("bndmov %bnd0, (%ecx,%eax,1)");
  1784. asm volatile("bndmov %bnd0, 0x12345678(,%eax,1)");
  1785. asm volatile("bndmov %bnd0, (%eax,%ecx,1)");
  1786. asm volatile("bndmov %bnd0, (%eax,%ecx,8)");
  1787. asm volatile("bndmov %bnd0, 0x12(%eax)");
  1788. asm volatile("bndmov %bnd0, 0x12(%ebp)");
  1789. asm volatile("bndmov %bnd0, 0x12(%ecx,%eax,1)");
  1790. asm volatile("bndmov %bnd0, 0x12(%ebp,%eax,1)");
  1791. asm volatile("bndmov %bnd0, 0x12(%eax,%ecx,1)");
  1792. asm volatile("bndmov %bnd0, 0x12(%eax,%ecx,8)");
  1793. asm volatile("bndmov %bnd0, 0x12345678(%eax)");
  1794. asm volatile("bndmov %bnd0, 0x12345678(%ebp)");
  1795. asm volatile("bndmov %bnd0, 0x12345678(%ecx,%eax,1)");
  1796. asm volatile("bndmov %bnd0, 0x12345678(%ebp,%eax,1)");
  1797. asm volatile("bndmov %bnd0, 0x12345678(%eax,%ecx,1)");
  1798. asm volatile("bndmov %bnd0, 0x12345678(%eax,%ecx,8)");
  1799. /* bndmov bnd2, bnd1 */
  1800. asm volatile("bndmov %bnd0, %bnd1");
  1801. asm volatile("bndmov %bnd1, %bnd0");
  1802. /* bndldx mib, bnd */
  1803. asm volatile("bndldx (%eax), %bnd0");
  1804. asm volatile("bndldx (0x12345678), %bnd0");
  1805. asm volatile("bndldx (%eax), %bnd3");
  1806. asm volatile("bndldx (%ecx,%eax,1), %bnd0");
  1807. asm volatile("bndldx 0x12345678(,%eax,1), %bnd0");
  1808. asm volatile("bndldx (%eax,%ecx,1), %bnd0");
  1809. asm volatile("bndldx 0x12(%eax), %bnd0");
  1810. asm volatile("bndldx 0x12(%ebp), %bnd0");
  1811. asm volatile("bndldx 0x12(%ecx,%eax,1), %bnd0");
  1812. asm volatile("bndldx 0x12(%ebp,%eax,1), %bnd0");
  1813. asm volatile("bndldx 0x12(%eax,%ecx,1), %bnd0");
  1814. asm volatile("bndldx 0x12345678(%eax), %bnd0");
  1815. asm volatile("bndldx 0x12345678(%ebp), %bnd0");
  1816. asm volatile("bndldx 0x12345678(%ecx,%eax,1), %bnd0");
  1817. asm volatile("bndldx 0x12345678(%ebp,%eax,1), %bnd0");
  1818. asm volatile("bndldx 0x12345678(%eax,%ecx,1), %bnd0");
  1819. /* bndstx bnd, mib */
  1820. asm volatile("bndstx %bnd0, (%eax)");
  1821. asm volatile("bndstx %bnd0, (0x12345678)");
  1822. asm volatile("bndstx %bnd3, (%eax)");
  1823. asm volatile("bndstx %bnd0, (%ecx,%eax,1)");
  1824. asm volatile("bndstx %bnd0, 0x12345678(,%eax,1)");
  1825. asm volatile("bndstx %bnd0, (%eax,%ecx,1)");
  1826. asm volatile("bndstx %bnd0, 0x12(%eax)");
  1827. asm volatile("bndstx %bnd0, 0x12(%ebp)");
  1828. asm volatile("bndstx %bnd0, 0x12(%ecx,%eax,1)");
  1829. asm volatile("bndstx %bnd0, 0x12(%ebp,%eax,1)");
  1830. asm volatile("bndstx %bnd0, 0x12(%eax,%ecx,1)");
  1831. asm volatile("bndstx %bnd0, 0x12345678(%eax)");
  1832. asm volatile("bndstx %bnd0, 0x12345678(%ebp)");
  1833. asm volatile("bndstx %bnd0, 0x12345678(%ecx,%eax,1)");
  1834. asm volatile("bndstx %bnd0, 0x12345678(%ebp,%eax,1)");
  1835. asm volatile("bndstx %bnd0, 0x12345678(%eax,%ecx,1)");
  1836. /* bnd prefix on call, ret, jmp and all jcc */
  1837. asm volatile("bnd call label1"); /* Expecting: call unconditional 0xfffffffc */
  1838. asm volatile("bnd call *(%eax)"); /* Expecting: call indirect 0 */
  1839. asm volatile("bnd ret"); /* Expecting: ret indirect 0 */
  1840. asm volatile("bnd jmp label1"); /* Expecting: jmp unconditional 0xfffffffc */
  1841. asm volatile("bnd jmp label1"); /* Expecting: jmp unconditional 0xfffffffc */
  1842. asm volatile("bnd jmp *(%ecx)"); /* Expecting: jmp indirect 0 */
  1843. asm volatile("bnd jne label1"); /* Expecting: jcc conditional 0xfffffffc */
  1844. /* sha1rnds4 imm8, xmm2/m128, xmm1 */
  1845. asm volatile("sha1rnds4 $0x0, %xmm1, %xmm0");
  1846. asm volatile("sha1rnds4 $0x91, %xmm7, %xmm2");
  1847. asm volatile("sha1rnds4 $0x91, (%eax), %xmm0");
  1848. asm volatile("sha1rnds4 $0x91, (0x12345678), %xmm0");
  1849. asm volatile("sha1rnds4 $0x91, (%eax), %xmm3");
  1850. asm volatile("sha1rnds4 $0x91, (%ecx,%eax,1), %xmm0");
  1851. asm volatile("sha1rnds4 $0x91, 0x12345678(,%eax,1), %xmm0");
  1852. asm volatile("sha1rnds4 $0x91, (%eax,%ecx,1), %xmm0");
  1853. asm volatile("sha1rnds4 $0x91, (%eax,%ecx,8), %xmm0");
  1854. asm volatile("sha1rnds4 $0x91, 0x12(%eax), %xmm0");
  1855. asm volatile("sha1rnds4 $0x91, 0x12(%ebp), %xmm0");
  1856. asm volatile("sha1rnds4 $0x91, 0x12(%ecx,%eax,1), %xmm0");
  1857. asm volatile("sha1rnds4 $0x91, 0x12(%ebp,%eax,1), %xmm0");
  1858. asm volatile("sha1rnds4 $0x91, 0x12(%eax,%ecx,1), %xmm0");
  1859. asm volatile("sha1rnds4 $0x91, 0x12(%eax,%ecx,8), %xmm0");
  1860. asm volatile("sha1rnds4 $0x91, 0x12345678(%eax), %xmm0");
  1861. asm volatile("sha1rnds4 $0x91, 0x12345678(%ebp), %xmm0");
  1862. asm volatile("sha1rnds4 $0x91, 0x12345678(%ecx,%eax,1), %xmm0");
  1863. asm volatile("sha1rnds4 $0x91, 0x12345678(%ebp,%eax,1), %xmm0");
  1864. asm volatile("sha1rnds4 $0x91, 0x12345678(%eax,%ecx,1), %xmm0");
  1865. asm volatile("sha1rnds4 $0x91, 0x12345678(%eax,%ecx,8), %xmm0");
  1866. /* sha1nexte xmm2/m128, xmm1 */
  1867. asm volatile("sha1nexte %xmm1, %xmm0");
  1868. asm volatile("sha1nexte %xmm7, %xmm2");
  1869. asm volatile("sha1nexte (%eax), %xmm0");
  1870. asm volatile("sha1nexte (0x12345678), %xmm0");
  1871. asm volatile("sha1nexte (%eax), %xmm3");
  1872. asm volatile("sha1nexte (%ecx,%eax,1), %xmm0");
  1873. asm volatile("sha1nexte 0x12345678(,%eax,1), %xmm0");
  1874. asm volatile("sha1nexte (%eax,%ecx,1), %xmm0");
  1875. asm volatile("sha1nexte (%eax,%ecx,8), %xmm0");
  1876. asm volatile("sha1nexte 0x12(%eax), %xmm0");
  1877. asm volatile("sha1nexte 0x12(%ebp), %xmm0");
  1878. asm volatile("sha1nexte 0x12(%ecx,%eax,1), %xmm0");
  1879. asm volatile("sha1nexte 0x12(%ebp,%eax,1), %xmm0");
  1880. asm volatile("sha1nexte 0x12(%eax,%ecx,1), %xmm0");
  1881. asm volatile("sha1nexte 0x12(%eax,%ecx,8), %xmm0");
  1882. asm volatile("sha1nexte 0x12345678(%eax), %xmm0");
  1883. asm volatile("sha1nexte 0x12345678(%ebp), %xmm0");
  1884. asm volatile("sha1nexte 0x12345678(%ecx,%eax,1), %xmm0");
  1885. asm volatile("sha1nexte 0x12345678(%ebp,%eax,1), %xmm0");
  1886. asm volatile("sha1nexte 0x12345678(%eax,%ecx,1), %xmm0");
  1887. asm volatile("sha1nexte 0x12345678(%eax,%ecx,8), %xmm0");
  1888. /* sha1msg1 xmm2/m128, xmm1 */
  1889. asm volatile("sha1msg1 %xmm1, %xmm0");
  1890. asm volatile("sha1msg1 %xmm7, %xmm2");
  1891. asm volatile("sha1msg1 (%eax), %xmm0");
  1892. asm volatile("sha1msg1 (0x12345678), %xmm0");
  1893. asm volatile("sha1msg1 (%eax), %xmm3");
  1894. asm volatile("sha1msg1 (%ecx,%eax,1), %xmm0");
  1895. asm volatile("sha1msg1 0x12345678(,%eax,1), %xmm0");
  1896. asm volatile("sha1msg1 (%eax,%ecx,1), %xmm0");
  1897. asm volatile("sha1msg1 (%eax,%ecx,8), %xmm0");
  1898. asm volatile("sha1msg1 0x12(%eax), %xmm0");
  1899. asm volatile("sha1msg1 0x12(%ebp), %xmm0");
  1900. asm volatile("sha1msg1 0x12(%ecx,%eax,1), %xmm0");
  1901. asm volatile("sha1msg1 0x12(%ebp,%eax,1), %xmm0");
  1902. asm volatile("sha1msg1 0x12(%eax,%ecx,1), %xmm0");
  1903. asm volatile("sha1msg1 0x12(%eax,%ecx,8), %xmm0");
  1904. asm volatile("sha1msg1 0x12345678(%eax), %xmm0");
  1905. asm volatile("sha1msg1 0x12345678(%ebp), %xmm0");
  1906. asm volatile("sha1msg1 0x12345678(%ecx,%eax,1), %xmm0");
  1907. asm volatile("sha1msg1 0x12345678(%ebp,%eax,1), %xmm0");
  1908. asm volatile("sha1msg1 0x12345678(%eax,%ecx,1), %xmm0");
  1909. asm volatile("sha1msg1 0x12345678(%eax,%ecx,8), %xmm0");
  1910. /* sha1msg2 xmm2/m128, xmm1 */
  1911. asm volatile("sha1msg2 %xmm1, %xmm0");
  1912. asm volatile("sha1msg2 %xmm7, %xmm2");
  1913. asm volatile("sha1msg2 (%eax), %xmm0");
  1914. asm volatile("sha1msg2 (0x12345678), %xmm0");
  1915. asm volatile("sha1msg2 (%eax), %xmm3");
  1916. asm volatile("sha1msg2 (%ecx,%eax,1), %xmm0");
  1917. asm volatile("sha1msg2 0x12345678(,%eax,1), %xmm0");
  1918. asm volatile("sha1msg2 (%eax,%ecx,1), %xmm0");
  1919. asm volatile("sha1msg2 (%eax,%ecx,8), %xmm0");
  1920. asm volatile("sha1msg2 0x12(%eax), %xmm0");
  1921. asm volatile("sha1msg2 0x12(%ebp), %xmm0");
  1922. asm volatile("sha1msg2 0x12(%ecx,%eax,1), %xmm0");
  1923. asm volatile("sha1msg2 0x12(%ebp,%eax,1), %xmm0");
  1924. asm volatile("sha1msg2 0x12(%eax,%ecx,1), %xmm0");
  1925. asm volatile("sha1msg2 0x12(%eax,%ecx,8), %xmm0");
  1926. asm volatile("sha1msg2 0x12345678(%eax), %xmm0");
  1927. asm volatile("sha1msg2 0x12345678(%ebp), %xmm0");
  1928. asm volatile("sha1msg2 0x12345678(%ecx,%eax,1), %xmm0");
  1929. asm volatile("sha1msg2 0x12345678(%ebp,%eax,1), %xmm0");
  1930. asm volatile("sha1msg2 0x12345678(%eax,%ecx,1), %xmm0");
  1931. asm volatile("sha1msg2 0x12345678(%eax,%ecx,8), %xmm0");
  1932. /* sha256rnds2 <XMM0>, xmm2/m128, xmm1 */
  1933. /* Note sha256rnds2 has an implicit operand 'xmm0' */
  1934. asm volatile("sha256rnds2 %xmm4, %xmm1");
  1935. asm volatile("sha256rnds2 %xmm7, %xmm2");
  1936. asm volatile("sha256rnds2 (%eax), %xmm1");
  1937. asm volatile("sha256rnds2 (0x12345678), %xmm1");
  1938. asm volatile("sha256rnds2 (%eax), %xmm3");
  1939. asm volatile("sha256rnds2 (%ecx,%eax,1), %xmm1");
  1940. asm volatile("sha256rnds2 0x12345678(,%eax,1), %xmm1");
  1941. asm volatile("sha256rnds2 (%eax,%ecx,1), %xmm1");
  1942. asm volatile("sha256rnds2 (%eax,%ecx,8), %xmm1");
  1943. asm volatile("sha256rnds2 0x12(%eax), %xmm1");
  1944. asm volatile("sha256rnds2 0x12(%ebp), %xmm1");
  1945. asm volatile("sha256rnds2 0x12(%ecx,%eax,1), %xmm1");
  1946. asm volatile("sha256rnds2 0x12(%ebp,%eax,1), %xmm1");
  1947. asm volatile("sha256rnds2 0x12(%eax,%ecx,1), %xmm1");
  1948. asm volatile("sha256rnds2 0x12(%eax,%ecx,8), %xmm1");
  1949. asm volatile("sha256rnds2 0x12345678(%eax), %xmm1");
  1950. asm volatile("sha256rnds2 0x12345678(%ebp), %xmm1");
  1951. asm volatile("sha256rnds2 0x12345678(%ecx,%eax,1), %xmm1");
  1952. asm volatile("sha256rnds2 0x12345678(%ebp,%eax,1), %xmm1");
  1953. asm volatile("sha256rnds2 0x12345678(%eax,%ecx,1), %xmm1");
  1954. asm volatile("sha256rnds2 0x12345678(%eax,%ecx,8), %xmm1");
  1955. /* sha256msg1 xmm2/m128, xmm1 */
  1956. asm volatile("sha256msg1 %xmm1, %xmm0");
  1957. asm volatile("sha256msg1 %xmm7, %xmm2");
  1958. asm volatile("sha256msg1 (%eax), %xmm0");
  1959. asm volatile("sha256msg1 (0x12345678), %xmm0");
  1960. asm volatile("sha256msg1 (%eax), %xmm3");
  1961. asm volatile("sha256msg1 (%ecx,%eax,1), %xmm0");
  1962. asm volatile("sha256msg1 0x12345678(,%eax,1), %xmm0");
  1963. asm volatile("sha256msg1 (%eax,%ecx,1), %xmm0");
  1964. asm volatile("sha256msg1 (%eax,%ecx,8), %xmm0");
  1965. asm volatile("sha256msg1 0x12(%eax), %xmm0");
  1966. asm volatile("sha256msg1 0x12(%ebp), %xmm0");
  1967. asm volatile("sha256msg1 0x12(%ecx,%eax,1), %xmm0");
  1968. asm volatile("sha256msg1 0x12(%ebp,%eax,1), %xmm0");
  1969. asm volatile("sha256msg1 0x12(%eax,%ecx,1), %xmm0");
  1970. asm volatile("sha256msg1 0x12(%eax,%ecx,8), %xmm0");
  1971. asm volatile("sha256msg1 0x12345678(%eax), %xmm0");
  1972. asm volatile("sha256msg1 0x12345678(%ebp), %xmm0");
  1973. asm volatile("sha256msg1 0x12345678(%ecx,%eax,1), %xmm0");
  1974. asm volatile("sha256msg1 0x12345678(%ebp,%eax,1), %xmm0");
  1975. asm volatile("sha256msg1 0x12345678(%eax,%ecx,1), %xmm0");
  1976. asm volatile("sha256msg1 0x12345678(%eax,%ecx,8), %xmm0");
  1977. /* sha256msg2 xmm2/m128, xmm1 */
  1978. asm volatile("sha256msg2 %xmm1, %xmm0");
  1979. asm volatile("sha256msg2 %xmm7, %xmm2");
  1980. asm volatile("sha256msg2 (%eax), %xmm0");
  1981. asm volatile("sha256msg2 (0x12345678), %xmm0");
  1982. asm volatile("sha256msg2 (%eax), %xmm3");
  1983. asm volatile("sha256msg2 (%ecx,%eax,1), %xmm0");
  1984. asm volatile("sha256msg2 0x12345678(,%eax,1), %xmm0");
  1985. asm volatile("sha256msg2 (%eax,%ecx,1), %xmm0");
  1986. asm volatile("sha256msg2 (%eax,%ecx,8), %xmm0");
  1987. asm volatile("sha256msg2 0x12(%eax), %xmm0");
  1988. asm volatile("sha256msg2 0x12(%ebp), %xmm0");
  1989. asm volatile("sha256msg2 0x12(%ecx,%eax,1), %xmm0");
  1990. asm volatile("sha256msg2 0x12(%ebp,%eax,1), %xmm0");
  1991. asm volatile("sha256msg2 0x12(%eax,%ecx,1), %xmm0");
  1992. asm volatile("sha256msg2 0x12(%eax,%ecx,8), %xmm0");
  1993. asm volatile("sha256msg2 0x12345678(%eax), %xmm0");
  1994. asm volatile("sha256msg2 0x12345678(%ebp), %xmm0");
  1995. asm volatile("sha256msg2 0x12345678(%ecx,%eax,1), %xmm0");
  1996. asm volatile("sha256msg2 0x12345678(%ebp,%eax,1), %xmm0");
  1997. asm volatile("sha256msg2 0x12345678(%eax,%ecx,1), %xmm0");
  1998. asm volatile("sha256msg2 0x12345678(%eax,%ecx,8), %xmm0");
  1999. /* clflushopt m8 */
  2000. asm volatile("clflushopt (%eax)");
  2001. asm volatile("clflushopt (0x12345678)");
  2002. asm volatile("clflushopt 0x12345678(%eax,%ecx,8)");
  2003. /* Also check instructions in the same group encoding as clflushopt */
  2004. asm volatile("clflush (%eax)");
  2005. asm volatile("sfence");
  2006. /* clwb m8 */
  2007. asm volatile("clwb (%eax)");
  2008. asm volatile("clwb (0x12345678)");
  2009. asm volatile("clwb 0x12345678(%eax,%ecx,8)");
  2010. /* Also check instructions in the same group encoding as clwb */
  2011. asm volatile("xsaveopt (%eax)");
  2012. asm volatile("mfence");
  2013. /* xsavec mem */
  2014. asm volatile("xsavec (%eax)");
  2015. asm volatile("xsavec (0x12345678)");
  2016. asm volatile("xsavec 0x12345678(%eax,%ecx,8)");
  2017. /* xsaves mem */
  2018. asm volatile("xsaves (%eax)");
  2019. asm volatile("xsaves (0x12345678)");
  2020. asm volatile("xsaves 0x12345678(%eax,%ecx,8)");
  2021. /* xrstors mem */
  2022. asm volatile("xrstors (%eax)");
  2023. asm volatile("xrstors (0x12345678)");
  2024. asm volatile("xrstors 0x12345678(%eax,%ecx,8)");
  2025. /* ptwrite */
  2026. asm volatile("ptwrite (%eax)");
  2027. asm volatile("ptwrite (0x12345678)");
  2028. asm volatile("ptwrite 0x12345678(%eax,%ecx,8)");
  2029. asm volatile("ptwritel (%eax)");
  2030. asm volatile("ptwritel (0x12345678)");
  2031. asm volatile("ptwritel 0x12345678(%eax,%ecx,8)");
  2032. #endif /* #ifndef __x86_64__ */
  2033. /* Following line is a marker for the awk script - do not change */
  2034. asm volatile("rdtsc"); /* Stop here */
  2035. return 0;
  2036. }