fisk 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1246) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/Rakefile +9 -3
  4. data/bin/build-machine.rb +44 -2
  5. data/bin/instruction.rb.erb +91 -0
  6. data/bin/instructions.rb.erb +45 -0
  7. data/fisk.gemspec +12 -0
  8. data/lib/fisk.rb +138 -50
  9. data/lib/fisk/encoding.rb +61 -0
  10. data/lib/fisk/helpers.rb +7 -0
  11. data/lib/fisk/instructions.rb +5054 -0
  12. data/lib/fisk/instructions/adc.rb +760 -0
  13. data/lib/fisk/instructions/adcx.rb +113 -0
  14. data/lib/fisk/instructions/add.rb +760 -0
  15. data/lib/fisk/instructions/addpd.rb +59 -0
  16. data/lib/fisk/instructions/addps.rb +57 -0
  17. data/lib/fisk/instructions/addsd.rb +59 -0
  18. data/lib/fisk/instructions/addss.rb +59 -0
  19. data/lib/fisk/instructions/addsubpd.rb +59 -0
  20. data/lib/fisk/instructions/addsubps.rb +59 -0
  21. data/lib/fisk/instructions/adox.rb +113 -0
  22. data/lib/fisk/instructions/aesdec.rb +61 -0
  23. data/lib/fisk/instructions/aesdeclast.rb +61 -0
  24. data/lib/fisk/instructions/aesenc.rb +61 -0
  25. data/lib/fisk/instructions/aesenclast.rb +61 -0
  26. data/lib/fisk/instructions/aesimc.rb +61 -0
  27. data/lib/fisk/instructions/aeskeygenassist.rb +65 -0
  28. data/lib/fisk/instructions/and.rb +760 -0
  29. data/lib/fisk/instructions/andn.rb +85 -0
  30. data/lib/fisk/instructions/andnpd.rb +59 -0
  31. data/lib/fisk/instructions/andnps.rb +57 -0
  32. data/lib/fisk/instructions/andpd.rb +59 -0
  33. data/lib/fisk/instructions/andps.rb +57 -0
  34. data/lib/fisk/instructions/bextr.rb +165 -0
  35. data/lib/fisk/instructions/blcfill.rb +81 -0
  36. data/lib/fisk/instructions/blci.rb +81 -0
  37. data/lib/fisk/instructions/blcic.rb +81 -0
  38. data/lib/fisk/instructions/blcmsk.rb +81 -0
  39. data/lib/fisk/instructions/blcs.rb +81 -0
  40. data/lib/fisk/instructions/blendpd.rb +65 -0
  41. data/lib/fisk/instructions/blendps.rb +65 -0
  42. data/lib/fisk/instructions/blendvpd.rb +63 -0
  43. data/lib/fisk/instructions/blendvps.rb +63 -0
  44. data/lib/fisk/instructions/blsfill.rb +81 -0
  45. data/lib/fisk/instructions/blsi.rb +81 -0
  46. data/lib/fisk/instructions/blsic.rb +81 -0
  47. data/lib/fisk/instructions/blsmsk.rb +81 -0
  48. data/lib/fisk/instructions/blsr.rb +81 -0
  49. data/lib/fisk/instructions/bsf.rb +155 -0
  50. data/lib/fisk/instructions/bsr.rb +155 -0
  51. data/lib/fisk/instructions/bswap.rb +47 -0
  52. data/lib/fisk/instructions/bt.rb +307 -0
  53. data/lib/fisk/instructions/btc.rb +307 -0
  54. data/lib/fisk/instructions/btr.rb +307 -0
  55. data/lib/fisk/instructions/bts.rb +307 -0
  56. data/lib/fisk/instructions/bzhi.rb +85 -0
  57. data/lib/fisk/instructions/call.rb +66 -0
  58. data/lib/fisk/instructions/cbw.rb +21 -0
  59. data/lib/fisk/instructions/cdq.rb +20 -0
  60. data/lib/fisk/instructions/cdqe.rb +26 -0
  61. data/lib/fisk/instructions/clc.rb +20 -0
  62. data/lib/fisk/instructions/cld.rb +20 -0
  63. data/lib/fisk/instructions/clflush.rb +32 -0
  64. data/lib/fisk/instructions/clflushopt.rb +33 -0
  65. data/lib/fisk/instructions/clwb.rb +33 -0
  66. data/lib/fisk/instructions/clzero.rb +22 -0
  67. data/lib/fisk/instructions/cmc.rb +20 -0
  68. data/lib/fisk/instructions/cmova.rb +155 -0
  69. data/lib/fisk/instructions/cmovae.rb +155 -0
  70. data/lib/fisk/instructions/cmovb.rb +155 -0
  71. data/lib/fisk/instructions/cmovbe.rb +155 -0
  72. data/lib/fisk/instructions/cmovc.rb +155 -0
  73. data/lib/fisk/instructions/cmove.rb +155 -0
  74. data/lib/fisk/instructions/cmovg.rb +155 -0
  75. data/lib/fisk/instructions/cmovge.rb +155 -0
  76. data/lib/fisk/instructions/cmovl.rb +155 -0
  77. data/lib/fisk/instructions/cmovle.rb +155 -0
  78. data/lib/fisk/instructions/cmovna.rb +155 -0
  79. data/lib/fisk/instructions/cmovnae.rb +155 -0
  80. data/lib/fisk/instructions/cmovnb.rb +155 -0
  81. data/lib/fisk/instructions/cmovnbe.rb +155 -0
  82. data/lib/fisk/instructions/cmovnc.rb +155 -0
  83. data/lib/fisk/instructions/cmovne.rb +155 -0
  84. data/lib/fisk/instructions/cmovng.rb +155 -0
  85. data/lib/fisk/instructions/cmovnge.rb +155 -0
  86. data/lib/fisk/instructions/cmovnl.rb +155 -0
  87. data/lib/fisk/instructions/cmovnle.rb +155 -0
  88. data/lib/fisk/instructions/cmovno.rb +155 -0
  89. data/lib/fisk/instructions/cmovnp.rb +155 -0
  90. data/lib/fisk/instructions/cmovns.rb +155 -0
  91. data/lib/fisk/instructions/cmovnz.rb +155 -0
  92. data/lib/fisk/instructions/cmovo.rb +155 -0
  93. data/lib/fisk/instructions/cmovp.rb +155 -0
  94. data/lib/fisk/instructions/cmovpe.rb +155 -0
  95. data/lib/fisk/instructions/cmovpo.rb +155 -0
  96. data/lib/fisk/instructions/cmovs.rb +155 -0
  97. data/lib/fisk/instructions/cmovz.rb +155 -0
  98. data/lib/fisk/instructions/cmp.rb +760 -0
  99. data/lib/fisk/instructions/cmppd.rb +63 -0
  100. data/lib/fisk/instructions/cmpps.rb +61 -0
  101. data/lib/fisk/instructions/cmpsd.rb +63 -0
  102. data/lib/fisk/instructions/cmpss.rb +63 -0
  103. data/lib/fisk/instructions/cmpxchg.rb +203 -0
  104. data/lib/fisk/instructions/cmpxchg16b.rb +32 -0
  105. data/lib/fisk/instructions/cmpxchg8b.rb +32 -0
  106. data/lib/fisk/instructions/comisd.rb +59 -0
  107. data/lib/fisk/instructions/comiss.rb +57 -0
  108. data/lib/fisk/instructions/cpuid.rb +21 -0
  109. data/lib/fisk/instructions/cqo.rb +26 -0
  110. data/lib/fisk/instructions/crc32.rb +271 -0
  111. data/lib/fisk/instructions/cvtdq2pd.rb +59 -0
  112. data/lib/fisk/instructions/cvtdq2ps.rb +57 -0
  113. data/lib/fisk/instructions/cvtpd2dq.rb +59 -0
  114. data/lib/fisk/instructions/cvtpd2pi.rb +59 -0
  115. data/lib/fisk/instructions/cvtpd2ps.rb +59 -0
  116. data/lib/fisk/instructions/cvtpi2pd.rb +59 -0
  117. data/lib/fisk/instructions/cvtpi2ps.rb +57 -0
  118. data/lib/fisk/instructions/cvtps2dq.rb +59 -0
  119. data/lib/fisk/instructions/cvtps2pd.rb +57 -0
  120. data/lib/fisk/instructions/cvtps2pi.rb +57 -0
  121. data/lib/fisk/instructions/cvtsd2si.rb +109 -0
  122. data/lib/fisk/instructions/cvtsd2ss.rb +59 -0
  123. data/lib/fisk/instructions/cvtsi2sd.rb +109 -0
  124. data/lib/fisk/instructions/cvtsi2ss.rb +109 -0
  125. data/lib/fisk/instructions/cvtss2sd.rb +59 -0
  126. data/lib/fisk/instructions/cvtss2si.rb +109 -0
  127. data/lib/fisk/instructions/cvttpd2dq.rb +59 -0
  128. data/lib/fisk/instructions/cvttpd2pi.rb +59 -0
  129. data/lib/fisk/instructions/cvttps2dq.rb +59 -0
  130. data/lib/fisk/instructions/cvttps2pi.rb +57 -0
  131. data/lib/fisk/instructions/cvttsd2si.rb +109 -0
  132. data/lib/fisk/instructions/cvttss2si.rb +109 -0
  133. data/lib/fisk/instructions/cwd.rb +21 -0
  134. data/lib/fisk/instructions/cwde.rb +20 -0
  135. data/lib/fisk/instructions/dec.rb +187 -0
  136. data/lib/fisk/instructions/div.rb +187 -0
  137. data/lib/fisk/instructions/divpd.rb +59 -0
  138. data/lib/fisk/instructions/divps.rb +57 -0
  139. data/lib/fisk/instructions/divsd.rb +59 -0
  140. data/lib/fisk/instructions/divss.rb +59 -0
  141. data/lib/fisk/instructions/dppd.rb +65 -0
  142. data/lib/fisk/instructions/dpps.rb +65 -0
  143. data/lib/fisk/instructions/emms.rb +21 -0
  144. data/lib/fisk/instructions/extractps.rb +65 -0
  145. data/lib/fisk/instructions/extrq.rb +62 -0
  146. data/lib/fisk/instructions/femms.rb +21 -0
  147. data/lib/fisk/instructions/haddpd.rb +59 -0
  148. data/lib/fisk/instructions/haddps.rb +59 -0
  149. data/lib/fisk/instructions/hsubpd.rb +59 -0
  150. data/lib/fisk/instructions/hsubps.rb +59 -0
  151. data/lib/fisk/instructions/idiv.rb +187 -0
  152. data/lib/fisk/instructions/imul.rb +637 -0
  153. data/lib/fisk/instructions/inc.rb +187 -0
  154. data/lib/fisk/instructions/insertps.rb +65 -0
  155. data/lib/fisk/instructions/insertq.rb +63 -0
  156. data/lib/fisk/instructions/int.rb +34 -0
  157. data/lib/fisk/instructions/ja.rb +36 -0
  158. data/lib/fisk/instructions/jae.rb +36 -0
  159. data/lib/fisk/instructions/jb.rb +36 -0
  160. data/lib/fisk/instructions/jbe.rb +36 -0
  161. data/lib/fisk/instructions/jc.rb +36 -0
  162. data/lib/fisk/instructions/je.rb +36 -0
  163. data/lib/fisk/instructions/jecxz.rb +22 -0
  164. data/lib/fisk/instructions/jg.rb +36 -0
  165. data/lib/fisk/instructions/jge.rb +36 -0
  166. data/lib/fisk/instructions/jl.rb +36 -0
  167. data/lib/fisk/instructions/jle.rb +36 -0
  168. data/lib/fisk/instructions/jmp.rb +79 -0
  169. data/lib/fisk/instructions/jna.rb +36 -0
  170. data/lib/fisk/instructions/jnae.rb +36 -0
  171. data/lib/fisk/instructions/jnb.rb +36 -0
  172. data/lib/fisk/instructions/jnbe.rb +36 -0
  173. data/lib/fisk/instructions/jnc.rb +36 -0
  174. data/lib/fisk/instructions/jne.rb +36 -0
  175. data/lib/fisk/instructions/jng.rb +36 -0
  176. data/lib/fisk/instructions/jnge.rb +36 -0
  177. data/lib/fisk/instructions/jnl.rb +36 -0
  178. data/lib/fisk/instructions/jnle.rb +36 -0
  179. data/lib/fisk/instructions/jno.rb +36 -0
  180. data/lib/fisk/instructions/jnp.rb +36 -0
  181. data/lib/fisk/instructions/jns.rb +36 -0
  182. data/lib/fisk/instructions/jnz.rb +36 -0
  183. data/lib/fisk/instructions/jo.rb +36 -0
  184. data/lib/fisk/instructions/jp.rb +36 -0
  185. data/lib/fisk/instructions/jpe.rb +36 -0
  186. data/lib/fisk/instructions/jpo.rb +36 -0
  187. data/lib/fisk/instructions/jrcxz.rb +22 -0
  188. data/lib/fisk/instructions/js.rb +36 -0
  189. data/lib/fisk/instructions/jz.rb +36 -0
  190. data/lib/fisk/instructions/kaddb.rb +28 -0
  191. data/lib/fisk/instructions/kaddd.rb +28 -0
  192. data/lib/fisk/instructions/kaddq.rb +28 -0
  193. data/lib/fisk/instructions/kaddw.rb +28 -0
  194. data/lib/fisk/instructions/kandb.rb +28 -0
  195. data/lib/fisk/instructions/kandd.rb +28 -0
  196. data/lib/fisk/instructions/kandnb.rb +28 -0
  197. data/lib/fisk/instructions/kandnd.rb +28 -0
  198. data/lib/fisk/instructions/kandnq.rb +28 -0
  199. data/lib/fisk/instructions/kandnw.rb +28 -0
  200. data/lib/fisk/instructions/kandq.rb +28 -0
  201. data/lib/fisk/instructions/kandw.rb +28 -0
  202. data/lib/fisk/instructions/kmovb.rb +99 -0
  203. data/lib/fisk/instructions/kmovd.rb +99 -0
  204. data/lib/fisk/instructions/kmovq.rb +99 -0
  205. data/lib/fisk/instructions/kmovw.rb +99 -0
  206. data/lib/fisk/instructions/knotb.rb +27 -0
  207. data/lib/fisk/instructions/knotd.rb +27 -0
  208. data/lib/fisk/instructions/knotq.rb +27 -0
  209. data/lib/fisk/instructions/knotw.rb +27 -0
  210. data/lib/fisk/instructions/korb.rb +28 -0
  211. data/lib/fisk/instructions/kord.rb +28 -0
  212. data/lib/fisk/instructions/korq.rb +28 -0
  213. data/lib/fisk/instructions/kortestb.rb +27 -0
  214. data/lib/fisk/instructions/kortestd.rb +27 -0
  215. data/lib/fisk/instructions/kortestq.rb +27 -0
  216. data/lib/fisk/instructions/kortestw.rb +27 -0
  217. data/lib/fisk/instructions/korw.rb +28 -0
  218. data/lib/fisk/instructions/kshiftlb.rb +29 -0
  219. data/lib/fisk/instructions/kshiftld.rb +29 -0
  220. data/lib/fisk/instructions/kshiftlq.rb +29 -0
  221. data/lib/fisk/instructions/kshiftlw.rb +29 -0
  222. data/lib/fisk/instructions/kshiftrb.rb +29 -0
  223. data/lib/fisk/instructions/kshiftrd.rb +29 -0
  224. data/lib/fisk/instructions/kshiftrq.rb +29 -0
  225. data/lib/fisk/instructions/kshiftrw.rb +29 -0
  226. data/lib/fisk/instructions/ktestb.rb +27 -0
  227. data/lib/fisk/instructions/ktestd.rb +27 -0
  228. data/lib/fisk/instructions/ktestq.rb +27 -0
  229. data/lib/fisk/instructions/ktestw.rb +27 -0
  230. data/lib/fisk/instructions/kunpckbw.rb +28 -0
  231. data/lib/fisk/instructions/kunpckdq.rb +28 -0
  232. data/lib/fisk/instructions/kunpckwd.rb +28 -0
  233. data/lib/fisk/instructions/kxnorb.rb +28 -0
  234. data/lib/fisk/instructions/kxnord.rb +28 -0
  235. data/lib/fisk/instructions/kxnorq.rb +28 -0
  236. data/lib/fisk/instructions/kxnorw.rb +28 -0
  237. data/lib/fisk/instructions/kxorb.rb +28 -0
  238. data/lib/fisk/instructions/kxord.rb +28 -0
  239. data/lib/fisk/instructions/kxorq.rb +28 -0
  240. data/lib/fisk/instructions/kxorw.rb +28 -0
  241. data/lib/fisk/instructions/lddqu.rb +34 -0
  242. data/lib/fisk/instructions/ldmxcsr.rb +32 -0
  243. data/lib/fisk/instructions/lea.rb +79 -0
  244. data/lib/fisk/instructions/lfence.rb +22 -0
  245. data/lib/fisk/instructions/lzcnt.rb +161 -0
  246. data/lib/fisk/instructions/maskmovdqu.rb +34 -0
  247. data/lib/fisk/instructions/maskmovq.rb +33 -0
  248. data/lib/fisk/instructions/maxpd.rb +59 -0
  249. data/lib/fisk/instructions/maxps.rb +57 -0
  250. data/lib/fisk/instructions/maxsd.rb +59 -0
  251. data/lib/fisk/instructions/maxss.rb +59 -0
  252. data/lib/fisk/instructions/mfence.rb +22 -0
  253. data/lib/fisk/instructions/minpd.rb +59 -0
  254. data/lib/fisk/instructions/minps.rb +57 -0
  255. data/lib/fisk/instructions/minsd.rb +59 -0
  256. data/lib/fisk/instructions/minss.rb +59 -0
  257. data/lib/fisk/instructions/monitor.rb +22 -0
  258. data/lib/fisk/instructions/monitorx.rb +22 -0
  259. data/lib/fisk/instructions/mov.rb +682 -0
  260. data/lib/fisk/instructions/movapd.rb +103 -0
  261. data/lib/fisk/instructions/movaps.rb +99 -0
  262. data/lib/fisk/instructions/movbe.rb +161 -0
  263. data/lib/fisk/instructions/movd.rb +205 -0
  264. data/lib/fisk/instructions/movddup.rb +59 -0
  265. data/lib/fisk/instructions/movdq2q.rb +34 -0
  266. data/lib/fisk/instructions/movdqa.rb +103 -0
  267. data/lib/fisk/instructions/movdqu.rb +103 -0
  268. data/lib/fisk/instructions/movhlps.rb +33 -0
  269. data/lib/fisk/instructions/movhpd.rb +59 -0
  270. data/lib/fisk/instructions/movhps.rb +57 -0
  271. data/lib/fisk/instructions/movlhps.rb +33 -0
  272. data/lib/fisk/instructions/movlpd.rb +59 -0
  273. data/lib/fisk/instructions/movlps.rb +57 -0
  274. data/lib/fisk/instructions/movmskpd.rb +34 -0
  275. data/lib/fisk/instructions/movmskps.rb +33 -0
  276. data/lib/fisk/instructions/movntdq.rb +34 -0
  277. data/lib/fisk/instructions/movntdqa.rb +35 -0
  278. data/lib/fisk/instructions/movnti.rb +57 -0
  279. data/lib/fisk/instructions/movntpd.rb +34 -0
  280. data/lib/fisk/instructions/movntps.rb +33 -0
  281. data/lib/fisk/instructions/movntq.rb +33 -0
  282. data/lib/fisk/instructions/movntsd.rb +34 -0
  283. data/lib/fisk/instructions/movntss.rb +34 -0
  284. data/lib/fisk/instructions/movq.rb +365 -0
  285. data/lib/fisk/instructions/movq2dq.rb +34 -0
  286. data/lib/fisk/instructions/movsd.rb +103 -0
  287. data/lib/fisk/instructions/movshdup.rb +59 -0
  288. data/lib/fisk/instructions/movsldup.rb +59 -0
  289. data/lib/fisk/instructions/movss.rb +103 -0
  290. data/lib/fisk/instructions/movsx.rb +251 -0
  291. data/lib/fisk/instructions/movsxd.rb +55 -0
  292. data/lib/fisk/instructions/movupd.rb +103 -0
  293. data/lib/fisk/instructions/movups.rb +99 -0
  294. data/lib/fisk/instructions/movzx.rb +251 -0
  295. data/lib/fisk/instructions/mpsadbw.rb +65 -0
  296. data/lib/fisk/instructions/mul.rb +187 -0
  297. data/lib/fisk/instructions/mulpd.rb +59 -0
  298. data/lib/fisk/instructions/mulps.rb +57 -0
  299. data/lib/fisk/instructions/mulsd.rb +59 -0
  300. data/lib/fisk/instructions/mulss.rb +59 -0
  301. data/lib/fisk/instructions/mulx.rb +85 -0
  302. data/lib/fisk/instructions/mwait.rb +22 -0
  303. data/lib/fisk/instructions/mwaitx.rb +22 -0
  304. data/lib/fisk/instructions/neg.rb +187 -0
  305. data/lib/fisk/instructions/nop.rb +20 -0
  306. data/lib/fisk/instructions/not.rb +187 -0
  307. data/lib/fisk/instructions/or.rb +760 -0
  308. data/lib/fisk/instructions/orpd.rb +59 -0
  309. data/lib/fisk/instructions/orps.rb +57 -0
  310. data/lib/fisk/instructions/pabsb.rb +111 -0
  311. data/lib/fisk/instructions/pabsd.rb +111 -0
  312. data/lib/fisk/instructions/pabsw.rb +111 -0
  313. data/lib/fisk/instructions/packssdw.rb +107 -0
  314. data/lib/fisk/instructions/packsswb.rb +107 -0
  315. data/lib/fisk/instructions/packusdw.rb +61 -0
  316. data/lib/fisk/instructions/packuswb.rb +107 -0
  317. data/lib/fisk/instructions/paddb.rb +107 -0
  318. data/lib/fisk/instructions/paddd.rb +107 -0
  319. data/lib/fisk/instructions/paddq.rb +107 -0
  320. data/lib/fisk/instructions/paddsb.rb +107 -0
  321. data/lib/fisk/instructions/paddsw.rb +107 -0
  322. data/lib/fisk/instructions/paddusb.rb +107 -0
  323. data/lib/fisk/instructions/paddusw.rb +107 -0
  324. data/lib/fisk/instructions/paddw.rb +107 -0
  325. data/lib/fisk/instructions/palignr.rb +119 -0
  326. data/lib/fisk/instructions/pand.rb +107 -0
  327. data/lib/fisk/instructions/pandn.rb +107 -0
  328. data/lib/fisk/instructions/pause.rb +21 -0
  329. data/lib/fisk/instructions/pavgb.rb +107 -0
  330. data/lib/fisk/instructions/pavgusb.rb +59 -0
  331. data/lib/fisk/instructions/pavgw.rb +107 -0
  332. data/lib/fisk/instructions/pblendvb.rb +63 -0
  333. data/lib/fisk/instructions/pblendw.rb +65 -0
  334. data/lib/fisk/instructions/pclmulqdq.rb +65 -0
  335. data/lib/fisk/instructions/pcmpeqb.rb +107 -0
  336. data/lib/fisk/instructions/pcmpeqd.rb +107 -0
  337. data/lib/fisk/instructions/pcmpeqq.rb +61 -0
  338. data/lib/fisk/instructions/pcmpeqw.rb +107 -0
  339. data/lib/fisk/instructions/pcmpestri.rb +65 -0
  340. data/lib/fisk/instructions/pcmpestrm.rb +65 -0
  341. data/lib/fisk/instructions/pcmpgtb.rb +107 -0
  342. data/lib/fisk/instructions/pcmpgtd.rb +107 -0
  343. data/lib/fisk/instructions/pcmpgtq.rb +61 -0
  344. data/lib/fisk/instructions/pcmpgtw.rb +107 -0
  345. data/lib/fisk/instructions/pcmpistri.rb +65 -0
  346. data/lib/fisk/instructions/pcmpistrm.rb +65 -0
  347. data/lib/fisk/instructions/pdep.rb +85 -0
  348. data/lib/fisk/instructions/pext.rb +85 -0
  349. data/lib/fisk/instructions/pextrb.rb +65 -0
  350. data/lib/fisk/instructions/pextrd.rb +65 -0
  351. data/lib/fisk/instructions/pextrq.rb +65 -0
  352. data/lib/fisk/instructions/pextrw.rb +111 -0
  353. data/lib/fisk/instructions/pf2id.rb +59 -0
  354. data/lib/fisk/instructions/pf2iw.rb +59 -0
  355. data/lib/fisk/instructions/pfacc.rb +59 -0
  356. data/lib/fisk/instructions/pfadd.rb +59 -0
  357. data/lib/fisk/instructions/pfcmpeq.rb +59 -0
  358. data/lib/fisk/instructions/pfcmpge.rb +59 -0
  359. data/lib/fisk/instructions/pfcmpgt.rb +59 -0
  360. data/lib/fisk/instructions/pfmax.rb +59 -0
  361. data/lib/fisk/instructions/pfmin.rb +59 -0
  362. data/lib/fisk/instructions/pfmul.rb +59 -0
  363. data/lib/fisk/instructions/pfnacc.rb +59 -0
  364. data/lib/fisk/instructions/pfpnacc.rb +59 -0
  365. data/lib/fisk/instructions/pfrcp.rb +59 -0
  366. data/lib/fisk/instructions/pfrcpit1.rb +59 -0
  367. data/lib/fisk/instructions/pfrcpit2.rb +59 -0
  368. data/lib/fisk/instructions/pfrsqit1.rb +59 -0
  369. data/lib/fisk/instructions/pfrsqrt.rb +59 -0
  370. data/lib/fisk/instructions/pfsub.rb +59 -0
  371. data/lib/fisk/instructions/pfsubr.rb +59 -0
  372. data/lib/fisk/instructions/phaddd.rb +111 -0
  373. data/lib/fisk/instructions/phaddsw.rb +111 -0
  374. data/lib/fisk/instructions/phaddw.rb +111 -0
  375. data/lib/fisk/instructions/phminposuw.rb +61 -0
  376. data/lib/fisk/instructions/phsubd.rb +111 -0
  377. data/lib/fisk/instructions/phsubsw.rb +111 -0
  378. data/lib/fisk/instructions/phsubw.rb +111 -0
  379. data/lib/fisk/instructions/pi2fd.rb +59 -0
  380. data/lib/fisk/instructions/pi2fw.rb +59 -0
  381. data/lib/fisk/instructions/pinsrb.rb +65 -0
  382. data/lib/fisk/instructions/pinsrd.rb +65 -0
  383. data/lib/fisk/instructions/pinsrq.rb +65 -0
  384. data/lib/fisk/instructions/pinsrw.rb +115 -0
  385. data/lib/fisk/instructions/pmaddubsw.rb +111 -0
  386. data/lib/fisk/instructions/pmaddwd.rb +107 -0
  387. data/lib/fisk/instructions/pmaxsb.rb +61 -0
  388. data/lib/fisk/instructions/pmaxsd.rb +61 -0
  389. data/lib/fisk/instructions/pmaxsw.rb +107 -0
  390. data/lib/fisk/instructions/pmaxub.rb +107 -0
  391. data/lib/fisk/instructions/pmaxud.rb +61 -0
  392. data/lib/fisk/instructions/pmaxuw.rb +61 -0
  393. data/lib/fisk/instructions/pminsb.rb +61 -0
  394. data/lib/fisk/instructions/pminsd.rb +61 -0
  395. data/lib/fisk/instructions/pminsw.rb +107 -0
  396. data/lib/fisk/instructions/pminub.rb +107 -0
  397. data/lib/fisk/instructions/pminud.rb +61 -0
  398. data/lib/fisk/instructions/pminuw.rb +61 -0
  399. data/lib/fisk/instructions/pmovmskb.rb +58 -0
  400. data/lib/fisk/instructions/pmovsxbd.rb +61 -0
  401. data/lib/fisk/instructions/pmovsxbq.rb +61 -0
  402. data/lib/fisk/instructions/pmovsxbw.rb +61 -0
  403. data/lib/fisk/instructions/pmovsxdq.rb +61 -0
  404. data/lib/fisk/instructions/pmovsxwd.rb +61 -0
  405. data/lib/fisk/instructions/pmovsxwq.rb +61 -0
  406. data/lib/fisk/instructions/pmovzxbd.rb +61 -0
  407. data/lib/fisk/instructions/pmovzxbq.rb +61 -0
  408. data/lib/fisk/instructions/pmovzxbw.rb +61 -0
  409. data/lib/fisk/instructions/pmovzxdq.rb +61 -0
  410. data/lib/fisk/instructions/pmovzxwd.rb +61 -0
  411. data/lib/fisk/instructions/pmovzxwq.rb +61 -0
  412. data/lib/fisk/instructions/pmuldq.rb +61 -0
  413. data/lib/fisk/instructions/pmulhrsw.rb +111 -0
  414. data/lib/fisk/instructions/pmulhrw.rb +59 -0
  415. data/lib/fisk/instructions/pmulhuw.rb +107 -0
  416. data/lib/fisk/instructions/pmulhw.rb +107 -0
  417. data/lib/fisk/instructions/pmulld.rb +61 -0
  418. data/lib/fisk/instructions/pmullw.rb +107 -0
  419. data/lib/fisk/instructions/pmuludq.rb +107 -0
  420. data/lib/fisk/instructions/pop.rb +126 -0
  421. data/lib/fisk/instructions/popcnt.rb +161 -0
  422. data/lib/fisk/instructions/por.rb +107 -0
  423. data/lib/fisk/instructions/prefetch.rb +32 -0
  424. data/lib/fisk/instructions/prefetchnta.rb +32 -0
  425. data/lib/fisk/instructions/prefetcht0.rb +32 -0
  426. data/lib/fisk/instructions/prefetcht1.rb +32 -0
  427. data/lib/fisk/instructions/prefetcht2.rb +32 -0
  428. data/lib/fisk/instructions/prefetchw.rb +32 -0
  429. data/lib/fisk/instructions/prefetchwt1.rb +32 -0
  430. data/lib/fisk/instructions/psadbw.rb +107 -0
  431. data/lib/fisk/instructions/pshufb.rb +111 -0
  432. data/lib/fisk/instructions/pshufd.rb +63 -0
  433. data/lib/fisk/instructions/pshufhw.rb +63 -0
  434. data/lib/fisk/instructions/pshuflw.rb +63 -0
  435. data/lib/fisk/instructions/pshufw.rb +61 -0
  436. data/lib/fisk/instructions/psignb.rb +111 -0
  437. data/lib/fisk/instructions/psignd.rb +111 -0
  438. data/lib/fisk/instructions/psignw.rb +111 -0
  439. data/lib/fisk/instructions/pslld.rb +158 -0
  440. data/lib/fisk/instructions/pslldq.rb +35 -0
  441. data/lib/fisk/instructions/psllq.rb +158 -0
  442. data/lib/fisk/instructions/psllw.rb +158 -0
  443. data/lib/fisk/instructions/psrad.rb +158 -0
  444. data/lib/fisk/instructions/psraw.rb +158 -0
  445. data/lib/fisk/instructions/psrld.rb +158 -0
  446. data/lib/fisk/instructions/psrldq.rb +35 -0
  447. data/lib/fisk/instructions/psrlq.rb +158 -0
  448. data/lib/fisk/instructions/psrlw.rb +158 -0
  449. data/lib/fisk/instructions/psubb.rb +107 -0
  450. data/lib/fisk/instructions/psubd.rb +107 -0
  451. data/lib/fisk/instructions/psubq.rb +107 -0
  452. data/lib/fisk/instructions/psubsb.rb +107 -0
  453. data/lib/fisk/instructions/psubsw.rb +107 -0
  454. data/lib/fisk/instructions/psubusb.rb +107 -0
  455. data/lib/fisk/instructions/psubusw.rb +107 -0
  456. data/lib/fisk/instructions/psubw.rb +107 -0
  457. data/lib/fisk/instructions/pswapd.rb +59 -0
  458. data/lib/fisk/instructions/ptest.rb +61 -0
  459. data/lib/fisk/instructions/punpckhbw.rb +107 -0
  460. data/lib/fisk/instructions/punpckhdq.rb +107 -0
  461. data/lib/fisk/instructions/punpckhqdq.rb +59 -0
  462. data/lib/fisk/instructions/punpckhwd.rb +107 -0
  463. data/lib/fisk/instructions/punpcklbw.rb +107 -0
  464. data/lib/fisk/instructions/punpckldq.rb +107 -0
  465. data/lib/fisk/instructions/punpcklqdq.rb +59 -0
  466. data/lib/fisk/instructions/punpcklwd.rb +107 -0
  467. data/lib/fisk/instructions/push.rb +152 -0
  468. data/lib/fisk/instructions/pxor.rb +107 -0
  469. data/lib/fisk/instructions/rcl.rb +575 -0
  470. data/lib/fisk/instructions/rcpps.rb +57 -0
  471. data/lib/fisk/instructions/rcpss.rb +59 -0
  472. data/lib/fisk/instructions/rcr.rb +575 -0
  473. data/lib/fisk/instructions/rdrand.rb +79 -0
  474. data/lib/fisk/instructions/rdseed.rb +79 -0
  475. data/lib/fisk/instructions/rdtsc.rb +21 -0
  476. data/lib/fisk/instructions/rdtscp.rb +22 -0
  477. data/lib/fisk/instructions/ret.rb +33 -0
  478. data/lib/fisk/instructions/rol.rb +575 -0
  479. data/lib/fisk/instructions/ror.rb +575 -0
  480. data/lib/fisk/instructions/rorx.rb +89 -0
  481. data/lib/fisk/instructions/roundpd.rb +65 -0
  482. data/lib/fisk/instructions/roundps.rb +65 -0
  483. data/lib/fisk/instructions/roundsd.rb +65 -0
  484. data/lib/fisk/instructions/roundss.rb +65 -0
  485. data/lib/fisk/instructions/rsqrtps.rb +57 -0
  486. data/lib/fisk/instructions/rsqrtss.rb +59 -0
  487. data/lib/fisk/instructions/sal.rb +575 -0
  488. data/lib/fisk/instructions/sar.rb +575 -0
  489. data/lib/fisk/instructions/sarx.rb +85 -0
  490. data/lib/fisk/instructions/sbb.rb +760 -0
  491. data/lib/fisk/instructions/seta.rb +55 -0
  492. data/lib/fisk/instructions/setae.rb +55 -0
  493. data/lib/fisk/instructions/setb.rb +55 -0
  494. data/lib/fisk/instructions/setbe.rb +55 -0
  495. data/lib/fisk/instructions/setc.rb +55 -0
  496. data/lib/fisk/instructions/sete.rb +55 -0
  497. data/lib/fisk/instructions/setg.rb +55 -0
  498. data/lib/fisk/instructions/setge.rb +55 -0
  499. data/lib/fisk/instructions/setl.rb +55 -0
  500. data/lib/fisk/instructions/setle.rb +55 -0
  501. data/lib/fisk/instructions/setna.rb +55 -0
  502. data/lib/fisk/instructions/setnae.rb +55 -0
  503. data/lib/fisk/instructions/setnb.rb +55 -0
  504. data/lib/fisk/instructions/setnbe.rb +55 -0
  505. data/lib/fisk/instructions/setnc.rb +55 -0
  506. data/lib/fisk/instructions/setne.rb +55 -0
  507. data/lib/fisk/instructions/setng.rb +55 -0
  508. data/lib/fisk/instructions/setnge.rb +55 -0
  509. data/lib/fisk/instructions/setnl.rb +55 -0
  510. data/lib/fisk/instructions/setnle.rb +55 -0
  511. data/lib/fisk/instructions/setno.rb +55 -0
  512. data/lib/fisk/instructions/setnp.rb +55 -0
  513. data/lib/fisk/instructions/setns.rb +55 -0
  514. data/lib/fisk/instructions/setnz.rb +55 -0
  515. data/lib/fisk/instructions/seto.rb +55 -0
  516. data/lib/fisk/instructions/setp.rb +55 -0
  517. data/lib/fisk/instructions/setpe.rb +55 -0
  518. data/lib/fisk/instructions/setpo.rb +55 -0
  519. data/lib/fisk/instructions/sets.rb +55 -0
  520. data/lib/fisk/instructions/setz.rb +55 -0
  521. data/lib/fisk/instructions/sfence.rb +22 -0
  522. data/lib/fisk/instructions/sha1msg1.rb +59 -0
  523. data/lib/fisk/instructions/sha1msg2.rb +59 -0
  524. data/lib/fisk/instructions/sha1nexte.rb +59 -0
  525. data/lib/fisk/instructions/sha1rnds4.rb +63 -0
  526. data/lib/fisk/instructions/sha256msg1.rb +59 -0
  527. data/lib/fisk/instructions/sha256msg2.rb +59 -0
  528. data/lib/fisk/instructions/sha256rnds2.rb +61 -0
  529. data/lib/fisk/instructions/shl.rb +575 -0
  530. data/lib/fisk/instructions/shld.rb +319 -0
  531. data/lib/fisk/instructions/shlx.rb +85 -0
  532. data/lib/fisk/instructions/shr.rb +575 -0
  533. data/lib/fisk/instructions/shrd.rb +319 -0
  534. data/lib/fisk/instructions/shrx.rb +85 -0
  535. data/lib/fisk/instructions/shufpd.rb +63 -0
  536. data/lib/fisk/instructions/shufps.rb +61 -0
  537. data/lib/fisk/instructions/sqrtpd.rb +59 -0
  538. data/lib/fisk/instructions/sqrtps.rb +57 -0
  539. data/lib/fisk/instructions/sqrtsd.rb +59 -0
  540. data/lib/fisk/instructions/sqrtss.rb +59 -0
  541. data/lib/fisk/instructions/stc.rb +20 -0
  542. data/lib/fisk/instructions/std.rb +20 -0
  543. data/lib/fisk/instructions/stmxcsr.rb +32 -0
  544. data/lib/fisk/instructions/sub.rb +760 -0
  545. data/lib/fisk/instructions/subpd.rb +59 -0
  546. data/lib/fisk/instructions/subps.rb +57 -0
  547. data/lib/fisk/instructions/subsd.rb +59 -0
  548. data/lib/fisk/instructions/subss.rb +59 -0
  549. data/lib/fisk/instructions/syscall.rb +21 -0
  550. data/lib/fisk/instructions/t1mskc.rb +81 -0
  551. data/lib/fisk/instructions/test.rb +452 -0
  552. data/lib/fisk/instructions/tzcnt.rb +161 -0
  553. data/lib/fisk/instructions/tzmsk.rb +81 -0
  554. data/lib/fisk/instructions/ucomisd.rb +59 -0
  555. data/lib/fisk/instructions/ucomiss.rb +57 -0
  556. data/lib/fisk/instructions/ud2.rb +21 -0
  557. data/lib/fisk/instructions/unpckhpd.rb +59 -0
  558. data/lib/fisk/instructions/unpckhps.rb +57 -0
  559. data/lib/fisk/instructions/unpcklpd.rb +59 -0
  560. data/lib/fisk/instructions/unpcklps.rb +57 -0
  561. data/lib/fisk/instructions/vaddpd.rb +200 -0
  562. data/lib/fisk/instructions/vaddps.rb +200 -0
  563. data/lib/fisk/instructions/vaddsd.rb +86 -0
  564. data/lib/fisk/instructions/vaddss.rb +86 -0
  565. data/lib/fisk/instructions/vaddsubpd.rb +85 -0
  566. data/lib/fisk/instructions/vaddsubps.rb +85 -0
  567. data/lib/fisk/instructions/vaesdec.rb +47 -0
  568. data/lib/fisk/instructions/vaesdeclast.rb +47 -0
  569. data/lib/fisk/instructions/vaesenc.rb +47 -0
  570. data/lib/fisk/instructions/vaesenclast.rb +47 -0
  571. data/lib/fisk/instructions/vaesimc.rb +45 -0
  572. data/lib/fisk/instructions/vaeskeygenassist.rb +49 -0
  573. data/lib/fisk/instructions/valignd.rb +135 -0
  574. data/lib/fisk/instructions/valignq.rb +135 -0
  575. data/lib/fisk/instructions/vandnpd.rb +199 -0
  576. data/lib/fisk/instructions/vandnps.rb +199 -0
  577. data/lib/fisk/instructions/vandpd.rb +199 -0
  578. data/lib/fisk/instructions/vandps.rb +199 -0
  579. data/lib/fisk/instructions/vblendmpd.rb +123 -0
  580. data/lib/fisk/instructions/vblendmps.rb +123 -0
  581. data/lib/fisk/instructions/vblendpd.rb +93 -0
  582. data/lib/fisk/instructions/vblendps.rb +93 -0
  583. data/lib/fisk/instructions/vblendvpd.rb +93 -0
  584. data/lib/fisk/instructions/vblendvps.rb +93 -0
  585. data/lib/fisk/instructions/vbroadcastf128.rb +27 -0
  586. data/lib/fisk/instructions/vbroadcastf32x2.rb +81 -0
  587. data/lib/fisk/instructions/vbroadcastf32x4.rb +45 -0
  588. data/lib/fisk/instructions/vbroadcastf32x8.rb +27 -0
  589. data/lib/fisk/instructions/vbroadcastf64x2.rb +45 -0
  590. data/lib/fisk/instructions/vbroadcastf64x4.rb +27 -0
  591. data/lib/fisk/instructions/vbroadcasti128.rb +27 -0
  592. data/lib/fisk/instructions/vbroadcasti32x2.rb +117 -0
  593. data/lib/fisk/instructions/vbroadcasti32x4.rb +45 -0
  594. data/lib/fisk/instructions/vbroadcasti32x8.rb +27 -0
  595. data/lib/fisk/instructions/vbroadcasti64x2.rb +45 -0
  596. data/lib/fisk/instructions/vbroadcasti64x4.rb +27 -0
  597. data/lib/fisk/instructions/vbroadcastsd.rb +117 -0
  598. data/lib/fisk/instructions/vbroadcastss.rb +153 -0
  599. data/lib/fisk/instructions/vcmppd.rb +220 -0
  600. data/lib/fisk/instructions/vcmpps.rb +220 -0
  601. data/lib/fisk/instructions/vcmpsd.rb +94 -0
  602. data/lib/fisk/instructions/vcmpss.rb +94 -0
  603. data/lib/fisk/instructions/vcomisd.rb +82 -0
  604. data/lib/fisk/instructions/vcomiss.rb +82 -0
  605. data/lib/fisk/instructions/vcompresspd.rb +117 -0
  606. data/lib/fisk/instructions/vcompressps.rb +117 -0
  607. data/lib/fisk/instructions/vcvtdq2pd.rb +189 -0
  608. data/lib/fisk/instructions/vcvtdq2ps.rb +190 -0
  609. data/lib/fisk/instructions/vcvtpd2dq.rb +190 -0
  610. data/lib/fisk/instructions/vcvtpd2ps.rb +190 -0
  611. data/lib/fisk/instructions/vcvtpd2qq.rb +118 -0
  612. data/lib/fisk/instructions/vcvtpd2udq.rb +118 -0
  613. data/lib/fisk/instructions/vcvtpd2uqq.rb +118 -0
  614. data/lib/fisk/instructions/vcvtph2ps.rb +190 -0
  615. data/lib/fisk/instructions/vcvtps2dq.rb +190 -0
  616. data/lib/fisk/instructions/vcvtps2pd.rb +190 -0
  617. data/lib/fisk/instructions/vcvtps2ph.rb +210 -0
  618. data/lib/fisk/instructions/vcvtps2qq.rb +118 -0
  619. data/lib/fisk/instructions/vcvtps2udq.rb +118 -0
  620. data/lib/fisk/instructions/vcvtps2uqq.rb +118 -0
  621. data/lib/fisk/instructions/vcvtqq2pd.rb +118 -0
  622. data/lib/fisk/instructions/vcvtqq2ps.rb +118 -0
  623. data/lib/fisk/instructions/vcvtsd2si.rb +155 -0
  624. data/lib/fisk/instructions/vcvtsd2ss.rb +86 -0
  625. data/lib/fisk/instructions/vcvtsd2usi.rb +83 -0
  626. data/lib/fisk/instructions/vcvtsi2sd.rb +162 -0
  627. data/lib/fisk/instructions/vcvtsi2ss.rb +163 -0
  628. data/lib/fisk/instructions/vcvtss2sd.rb +86 -0
  629. data/lib/fisk/instructions/vcvtss2si.rb +155 -0
  630. data/lib/fisk/instructions/vcvtss2usi.rb +83 -0
  631. data/lib/fisk/instructions/vcvttpd2dq.rb +190 -0
  632. data/lib/fisk/instructions/vcvttpd2qq.rb +118 -0
  633. data/lib/fisk/instructions/vcvttpd2udq.rb +118 -0
  634. data/lib/fisk/instructions/vcvttpd2uqq.rb +118 -0
  635. data/lib/fisk/instructions/vcvttps2dq.rb +190 -0
  636. data/lib/fisk/instructions/vcvttps2qq.rb +118 -0
  637. data/lib/fisk/instructions/vcvttps2udq.rb +118 -0
  638. data/lib/fisk/instructions/vcvttps2uqq.rb +118 -0
  639. data/lib/fisk/instructions/vcvttsd2si.rb +155 -0
  640. data/lib/fisk/instructions/vcvttsd2usi.rb +83 -0
  641. data/lib/fisk/instructions/vcvttss2si.rb +155 -0
  642. data/lib/fisk/instructions/vcvttss2usi.rb +83 -0
  643. data/lib/fisk/instructions/vcvtudq2pd.rb +117 -0
  644. data/lib/fisk/instructions/vcvtudq2ps.rb +118 -0
  645. data/lib/fisk/instructions/vcvtuqq2pd.rb +118 -0
  646. data/lib/fisk/instructions/vcvtuqq2ps.rb +118 -0
  647. data/lib/fisk/instructions/vcvtusi2sd.rb +86 -0
  648. data/lib/fisk/instructions/vcvtusi2ss.rb +87 -0
  649. data/lib/fisk/instructions/vdbpsadbw.rb +135 -0
  650. data/lib/fisk/instructions/vdivpd.rb +200 -0
  651. data/lib/fisk/instructions/vdivps.rb +200 -0
  652. data/lib/fisk/instructions/vdivsd.rb +86 -0
  653. data/lib/fisk/instructions/vdivss.rb +86 -0
  654. data/lib/fisk/instructions/vdppd.rb +51 -0
  655. data/lib/fisk/instructions/vdpps.rb +93 -0
  656. data/lib/fisk/instructions/vexp2pd.rb +46 -0
  657. data/lib/fisk/instructions/vexp2ps.rb +46 -0
  658. data/lib/fisk/instructions/vexpandpd.rb +117 -0
  659. data/lib/fisk/instructions/vexpandps.rb +117 -0
  660. data/lib/fisk/instructions/vextractf128.rb +49 -0
  661. data/lib/fisk/instructions/vextractf32x4.rb +89 -0
  662. data/lib/fisk/instructions/vextractf32x8.rb +49 -0
  663. data/lib/fisk/instructions/vextractf64x2.rb +89 -0
  664. data/lib/fisk/instructions/vextractf64x4.rb +49 -0
  665. data/lib/fisk/instructions/vextracti128.rb +49 -0
  666. data/lib/fisk/instructions/vextracti32x4.rb +89 -0
  667. data/lib/fisk/instructions/vextracti32x8.rb +49 -0
  668. data/lib/fisk/instructions/vextracti64x2.rb +89 -0
  669. data/lib/fisk/instructions/vextracti64x4.rb +49 -0
  670. data/lib/fisk/instructions/vextractps.rb +89 -0
  671. data/lib/fisk/instructions/vfixupimmpd.rb +136 -0
  672. data/lib/fisk/instructions/vfixupimmps.rb +136 -0
  673. data/lib/fisk/instructions/vfixupimmsd.rb +52 -0
  674. data/lib/fisk/instructions/vfixupimmss.rb +52 -0
  675. data/lib/fisk/instructions/vfmadd132pd.rb +200 -0
  676. data/lib/fisk/instructions/vfmadd132ps.rb +200 -0
  677. data/lib/fisk/instructions/vfmadd132sd.rb +86 -0
  678. data/lib/fisk/instructions/vfmadd132ss.rb +86 -0
  679. data/lib/fisk/instructions/vfmadd213pd.rb +200 -0
  680. data/lib/fisk/instructions/vfmadd213ps.rb +200 -0
  681. data/lib/fisk/instructions/vfmadd213sd.rb +86 -0
  682. data/lib/fisk/instructions/vfmadd213ss.rb +86 -0
  683. data/lib/fisk/instructions/vfmadd231pd.rb +200 -0
  684. data/lib/fisk/instructions/vfmadd231ps.rb +200 -0
  685. data/lib/fisk/instructions/vfmadd231sd.rb +86 -0
  686. data/lib/fisk/instructions/vfmadd231ss.rb +86 -0
  687. data/lib/fisk/instructions/vfmaddpd.rb +161 -0
  688. data/lib/fisk/instructions/vfmaddps.rb +161 -0
  689. data/lib/fisk/instructions/vfmaddsd.rb +85 -0
  690. data/lib/fisk/instructions/vfmaddss.rb +85 -0
  691. data/lib/fisk/instructions/vfmaddsub132pd.rb +200 -0
  692. data/lib/fisk/instructions/vfmaddsub132ps.rb +200 -0
  693. data/lib/fisk/instructions/vfmaddsub213pd.rb +200 -0
  694. data/lib/fisk/instructions/vfmaddsub213ps.rb +200 -0
  695. data/lib/fisk/instructions/vfmaddsub231pd.rb +200 -0
  696. data/lib/fisk/instructions/vfmaddsub231ps.rb +200 -0
  697. data/lib/fisk/instructions/vfmaddsubpd.rb +161 -0
  698. data/lib/fisk/instructions/vfmaddsubps.rb +161 -0
  699. data/lib/fisk/instructions/vfmsub132pd.rb +200 -0
  700. data/lib/fisk/instructions/vfmsub132ps.rb +200 -0
  701. data/lib/fisk/instructions/vfmsub132sd.rb +86 -0
  702. data/lib/fisk/instructions/vfmsub132ss.rb +86 -0
  703. data/lib/fisk/instructions/vfmsub213pd.rb +200 -0
  704. data/lib/fisk/instructions/vfmsub213ps.rb +200 -0
  705. data/lib/fisk/instructions/vfmsub213sd.rb +86 -0
  706. data/lib/fisk/instructions/vfmsub213ss.rb +86 -0
  707. data/lib/fisk/instructions/vfmsub231pd.rb +200 -0
  708. data/lib/fisk/instructions/vfmsub231ps.rb +200 -0
  709. data/lib/fisk/instructions/vfmsub231sd.rb +86 -0
  710. data/lib/fisk/instructions/vfmsub231ss.rb +86 -0
  711. data/lib/fisk/instructions/vfmsubadd132pd.rb +200 -0
  712. data/lib/fisk/instructions/vfmsubadd132ps.rb +200 -0
  713. data/lib/fisk/instructions/vfmsubadd213pd.rb +200 -0
  714. data/lib/fisk/instructions/vfmsubadd213ps.rb +200 -0
  715. data/lib/fisk/instructions/vfmsubadd231pd.rb +200 -0
  716. data/lib/fisk/instructions/vfmsubadd231ps.rb +200 -0
  717. data/lib/fisk/instructions/vfmsubaddpd.rb +161 -0
  718. data/lib/fisk/instructions/vfmsubaddps.rb +161 -0
  719. data/lib/fisk/instructions/vfmsubpd.rb +161 -0
  720. data/lib/fisk/instructions/vfmsubps.rb +161 -0
  721. data/lib/fisk/instructions/vfmsubsd.rb +85 -0
  722. data/lib/fisk/instructions/vfmsubss.rb +85 -0
  723. data/lib/fisk/instructions/vfnmadd132pd.rb +200 -0
  724. data/lib/fisk/instructions/vfnmadd132ps.rb +200 -0
  725. data/lib/fisk/instructions/vfnmadd132sd.rb +86 -0
  726. data/lib/fisk/instructions/vfnmadd132ss.rb +86 -0
  727. data/lib/fisk/instructions/vfnmadd213pd.rb +200 -0
  728. data/lib/fisk/instructions/vfnmadd213ps.rb +200 -0
  729. data/lib/fisk/instructions/vfnmadd213sd.rb +86 -0
  730. data/lib/fisk/instructions/vfnmadd213ss.rb +86 -0
  731. data/lib/fisk/instructions/vfnmadd231pd.rb +200 -0
  732. data/lib/fisk/instructions/vfnmadd231ps.rb +200 -0
  733. data/lib/fisk/instructions/vfnmadd231sd.rb +86 -0
  734. data/lib/fisk/instructions/vfnmadd231ss.rb +86 -0
  735. data/lib/fisk/instructions/vfnmaddpd.rb +161 -0
  736. data/lib/fisk/instructions/vfnmaddps.rb +161 -0
  737. data/lib/fisk/instructions/vfnmaddsd.rb +85 -0
  738. data/lib/fisk/instructions/vfnmaddss.rb +85 -0
  739. data/lib/fisk/instructions/vfnmsub132pd.rb +200 -0
  740. data/lib/fisk/instructions/vfnmsub132ps.rb +200 -0
  741. data/lib/fisk/instructions/vfnmsub132sd.rb +86 -0
  742. data/lib/fisk/instructions/vfnmsub132ss.rb +86 -0
  743. data/lib/fisk/instructions/vfnmsub213pd.rb +200 -0
  744. data/lib/fisk/instructions/vfnmsub213ps.rb +200 -0
  745. data/lib/fisk/instructions/vfnmsub213sd.rb +86 -0
  746. data/lib/fisk/instructions/vfnmsub213ss.rb +86 -0
  747. data/lib/fisk/instructions/vfnmsub231pd.rb +200 -0
  748. data/lib/fisk/instructions/vfnmsub231ps.rb +200 -0
  749. data/lib/fisk/instructions/vfnmsub231sd.rb +86 -0
  750. data/lib/fisk/instructions/vfnmsub231ss.rb +86 -0
  751. data/lib/fisk/instructions/vfnmsubpd.rb +161 -0
  752. data/lib/fisk/instructions/vfnmsubps.rb +161 -0
  753. data/lib/fisk/instructions/vfnmsubsd.rb +85 -0
  754. data/lib/fisk/instructions/vfnmsubss.rb +85 -0
  755. data/lib/fisk/instructions/vfpclasspd.rb +129 -0
  756. data/lib/fisk/instructions/vfpclassps.rb +129 -0
  757. data/lib/fisk/instructions/vfpclasssd.rb +49 -0
  758. data/lib/fisk/instructions/vfpclassss.rb +49 -0
  759. data/lib/fisk/instructions/vfrczpd.rb +81 -0
  760. data/lib/fisk/instructions/vfrczps.rb +81 -0
  761. data/lib/fisk/instructions/vfrczsd.rb +45 -0
  762. data/lib/fisk/instructions/vfrczss.rb +45 -0
  763. data/lib/fisk/instructions/vgatherdpd.rb +101 -0
  764. data/lib/fisk/instructions/vgatherdps.rb +101 -0
  765. data/lib/fisk/instructions/vgatherpf0dpd.rb +26 -0
  766. data/lib/fisk/instructions/vgatherpf0dps.rb +26 -0
  767. data/lib/fisk/instructions/vgatherpf0qpd.rb +26 -0
  768. data/lib/fisk/instructions/vgatherpf0qps.rb +26 -0
  769. data/lib/fisk/instructions/vgatherpf1dpd.rb +26 -0
  770. data/lib/fisk/instructions/vgatherpf1dps.rb +26 -0
  771. data/lib/fisk/instructions/vgatherpf1qpd.rb +26 -0
  772. data/lib/fisk/instructions/vgatherpf1qps.rb +26 -0
  773. data/lib/fisk/instructions/vgatherqpd.rb +101 -0
  774. data/lib/fisk/instructions/vgatherqps.rb +101 -0
  775. data/lib/fisk/instructions/vgetexppd.rb +118 -0
  776. data/lib/fisk/instructions/vgetexpps.rb +118 -0
  777. data/lib/fisk/instructions/vgetexpsd.rb +48 -0
  778. data/lib/fisk/instructions/vgetexpss.rb +48 -0
  779. data/lib/fisk/instructions/vgetmantpd.rb +130 -0
  780. data/lib/fisk/instructions/vgetmantps.rb +130 -0
  781. data/lib/fisk/instructions/vgetmantsd.rb +52 -0
  782. data/lib/fisk/instructions/vgetmantss.rb +52 -0
  783. data/lib/fisk/instructions/vhaddpd.rb +85 -0
  784. data/lib/fisk/instructions/vhaddps.rb +85 -0
  785. data/lib/fisk/instructions/vhsubpd.rb +85 -0
  786. data/lib/fisk/instructions/vhsubps.rb +85 -0
  787. data/lib/fisk/instructions/vinsertf128.rb +51 -0
  788. data/lib/fisk/instructions/vinsertf32x4.rb +93 -0
  789. data/lib/fisk/instructions/vinsertf32x8.rb +51 -0
  790. data/lib/fisk/instructions/vinsertf64x2.rb +93 -0
  791. data/lib/fisk/instructions/vinsertf64x4.rb +51 -0
  792. data/lib/fisk/instructions/vinserti128.rb +51 -0
  793. data/lib/fisk/instructions/vinserti32x4.rb +93 -0
  794. data/lib/fisk/instructions/vinserti32x8.rb +51 -0
  795. data/lib/fisk/instructions/vinserti64x2.rb +93 -0
  796. data/lib/fisk/instructions/vinserti64x4.rb +51 -0
  797. data/lib/fisk/instructions/vinsertps.rb +93 -0
  798. data/lib/fisk/instructions/vlddqu.rb +45 -0
  799. data/lib/fisk/instructions/vldmxcsr.rb +26 -0
  800. data/lib/fisk/instructions/vmaskmovdqu.rb +27 -0
  801. data/lib/fisk/instructions/vmaskmovpd.rb +85 -0
  802. data/lib/fisk/instructions/vmaskmovps.rb +85 -0
  803. data/lib/fisk/instructions/vmaxpd.rb +200 -0
  804. data/lib/fisk/instructions/vmaxps.rb +200 -0
  805. data/lib/fisk/instructions/vmaxsd.rb +86 -0
  806. data/lib/fisk/instructions/vmaxss.rb +86 -0
  807. data/lib/fisk/instructions/vminpd.rb +200 -0
  808. data/lib/fisk/instructions/vminps.rb +200 -0
  809. data/lib/fisk/instructions/vminsd.rb +86 -0
  810. data/lib/fisk/instructions/vminss.rb +86 -0
  811. data/lib/fisk/instructions/vmovapd.rb +339 -0
  812. data/lib/fisk/instructions/vmovaps.rb +339 -0
  813. data/lib/fisk/instructions/vmovd.rb +153 -0
  814. data/lib/fisk/instructions/vmovddup.rb +189 -0
  815. data/lib/fisk/instructions/vmovdqa.rb +141 -0
  816. data/lib/fisk/instructions/vmovdqa32.rb +207 -0
  817. data/lib/fisk/instructions/vmovdqa64.rb +207 -0
  818. data/lib/fisk/instructions/vmovdqu.rb +141 -0
  819. data/lib/fisk/instructions/vmovdqu16.rb +207 -0
  820. data/lib/fisk/instructions/vmovdqu32.rb +207 -0
  821. data/lib/fisk/instructions/vmovdqu64.rb +207 -0
  822. data/lib/fisk/instructions/vmovdqu8.rb +207 -0
  823. data/lib/fisk/instructions/vmovhlps.rb +47 -0
  824. data/lib/fisk/instructions/vmovhpd.rb +83 -0
  825. data/lib/fisk/instructions/vmovhps.rb +83 -0
  826. data/lib/fisk/instructions/vmovlhps.rb +47 -0
  827. data/lib/fisk/instructions/vmovlpd.rb +83 -0
  828. data/lib/fisk/instructions/vmovlps.rb +83 -0
  829. data/lib/fisk/instructions/vmovmskpd.rb +45 -0
  830. data/lib/fisk/instructions/vmovmskps.rb +45 -0
  831. data/lib/fisk/instructions/vmovntdq.rb +99 -0
  832. data/lib/fisk/instructions/vmovntdqa.rb +99 -0
  833. data/lib/fisk/instructions/vmovntpd.rb +99 -0
  834. data/lib/fisk/instructions/vmovntps.rb +99 -0
  835. data/lib/fisk/instructions/vmovq.rb +261 -0
  836. data/lib/fisk/instructions/vmovsd.rb +143 -0
  837. data/lib/fisk/instructions/vmovshdup.rb +189 -0
  838. data/lib/fisk/instructions/vmovsldup.rb +189 -0
  839. data/lib/fisk/instructions/vmovss.rb +143 -0
  840. data/lib/fisk/instructions/vmovupd.rb +339 -0
  841. data/lib/fisk/instructions/vmovups.rb +339 -0
  842. data/lib/fisk/instructions/vmpsadbw.rb +93 -0
  843. data/lib/fisk/instructions/vmulpd.rb +200 -0
  844. data/lib/fisk/instructions/vmulps.rb +200 -0
  845. data/lib/fisk/instructions/vmulsd.rb +86 -0
  846. data/lib/fisk/instructions/vmulss.rb +86 -0
  847. data/lib/fisk/instructions/vorpd.rb +199 -0
  848. data/lib/fisk/instructions/vorps.rb +199 -0
  849. data/lib/fisk/instructions/vpabsb.rb +189 -0
  850. data/lib/fisk/instructions/vpabsd.rb +189 -0
  851. data/lib/fisk/instructions/vpabsq.rb +117 -0
  852. data/lib/fisk/instructions/vpabsw.rb +189 -0
  853. data/lib/fisk/instructions/vpackssdw.rb +199 -0
  854. data/lib/fisk/instructions/vpacksswb.rb +199 -0
  855. data/lib/fisk/instructions/vpackusdw.rb +199 -0
  856. data/lib/fisk/instructions/vpackuswb.rb +199 -0
  857. data/lib/fisk/instructions/vpaddb.rb +199 -0
  858. data/lib/fisk/instructions/vpaddd.rb +199 -0
  859. data/lib/fisk/instructions/vpaddq.rb +199 -0
  860. data/lib/fisk/instructions/vpaddsb.rb +199 -0
  861. data/lib/fisk/instructions/vpaddsw.rb +199 -0
  862. data/lib/fisk/instructions/vpaddusb.rb +199 -0
  863. data/lib/fisk/instructions/vpaddusw.rb +199 -0
  864. data/lib/fisk/instructions/vpaddw.rb +199 -0
  865. data/lib/fisk/instructions/vpalignr.rb +219 -0
  866. data/lib/fisk/instructions/vpand.rb +85 -0
  867. data/lib/fisk/instructions/vpandd.rb +123 -0
  868. data/lib/fisk/instructions/vpandn.rb +85 -0
  869. data/lib/fisk/instructions/vpandnd.rb +123 -0
  870. data/lib/fisk/instructions/vpandnq.rb +123 -0
  871. data/lib/fisk/instructions/vpandq.rb +123 -0
  872. data/lib/fisk/instructions/vpavgb.rb +199 -0
  873. data/lib/fisk/instructions/vpavgw.rb +199 -0
  874. data/lib/fisk/instructions/vpblendd.rb +93 -0
  875. data/lib/fisk/instructions/vpblendmb.rb +123 -0
  876. data/lib/fisk/instructions/vpblendmd.rb +123 -0
  877. data/lib/fisk/instructions/vpblendmq.rb +123 -0
  878. data/lib/fisk/instructions/vpblendmw.rb +123 -0
  879. data/lib/fisk/instructions/vpblendvb.rb +93 -0
  880. data/lib/fisk/instructions/vpblendw.rb +93 -0
  881. data/lib/fisk/instructions/vpbroadcastb.rb +243 -0
  882. data/lib/fisk/instructions/vpbroadcastd.rb +243 -0
  883. data/lib/fisk/instructions/vpbroadcastmb2q.rb +63 -0
  884. data/lib/fisk/instructions/vpbroadcastmw2d.rb +63 -0
  885. data/lib/fisk/instructions/vpbroadcastq.rb +243 -0
  886. data/lib/fisk/instructions/vpbroadcastw.rb +243 -0
  887. data/lib/fisk/instructions/vpclmulqdq.rb +51 -0
  888. data/lib/fisk/instructions/vpcmov.rb +161 -0
  889. data/lib/fisk/instructions/vpcmpb.rb +135 -0
  890. data/lib/fisk/instructions/vpcmpd.rb +135 -0
  891. data/lib/fisk/instructions/vpcmpeqb.rb +199 -0
  892. data/lib/fisk/instructions/vpcmpeqd.rb +199 -0
  893. data/lib/fisk/instructions/vpcmpeqq.rb +199 -0
  894. data/lib/fisk/instructions/vpcmpeqw.rb +199 -0
  895. data/lib/fisk/instructions/vpcmpestri.rb +49 -0
  896. data/lib/fisk/instructions/vpcmpestrm.rb +49 -0
  897. data/lib/fisk/instructions/vpcmpgtb.rb +199 -0
  898. data/lib/fisk/instructions/vpcmpgtd.rb +199 -0
  899. data/lib/fisk/instructions/vpcmpgtq.rb +199 -0
  900. data/lib/fisk/instructions/vpcmpgtw.rb +199 -0
  901. data/lib/fisk/instructions/vpcmpistri.rb +49 -0
  902. data/lib/fisk/instructions/vpcmpistrm.rb +49 -0
  903. data/lib/fisk/instructions/vpcmpq.rb +135 -0
  904. data/lib/fisk/instructions/vpcmpub.rb +135 -0
  905. data/lib/fisk/instructions/vpcmpud.rb +135 -0
  906. data/lib/fisk/instructions/vpcmpuq.rb +135 -0
  907. data/lib/fisk/instructions/vpcmpuw.rb +135 -0
  908. data/lib/fisk/instructions/vpcmpw.rb +135 -0
  909. data/lib/fisk/instructions/vpcomb.rb +51 -0
  910. data/lib/fisk/instructions/vpcomd.rb +51 -0
  911. data/lib/fisk/instructions/vpcompressd.rb +117 -0
  912. data/lib/fisk/instructions/vpcompressq.rb +117 -0
  913. data/lib/fisk/instructions/vpcomq.rb +51 -0
  914. data/lib/fisk/instructions/vpcomub.rb +51 -0
  915. data/lib/fisk/instructions/vpcomud.rb +51 -0
  916. data/lib/fisk/instructions/vpcomuq.rb +51 -0
  917. data/lib/fisk/instructions/vpcomuw.rb +51 -0
  918. data/lib/fisk/instructions/vpcomw.rb +51 -0
  919. data/lib/fisk/instructions/vpconflictd.rb +117 -0
  920. data/lib/fisk/instructions/vpconflictq.rb +117 -0
  921. data/lib/fisk/instructions/vperm2f128.rb +51 -0
  922. data/lib/fisk/instructions/vperm2i128.rb +51 -0
  923. data/lib/fisk/instructions/vpermb.rb +123 -0
  924. data/lib/fisk/instructions/vpermd.rb +123 -0
  925. data/lib/fisk/instructions/vpermi2b.rb +123 -0
  926. data/lib/fisk/instructions/vpermi2d.rb +123 -0
  927. data/lib/fisk/instructions/vpermi2pd.rb +123 -0
  928. data/lib/fisk/instructions/vpermi2ps.rb +123 -0
  929. data/lib/fisk/instructions/vpermi2q.rb +123 -0
  930. data/lib/fisk/instructions/vpermi2w.rb +123 -0
  931. data/lib/fisk/instructions/vpermil2pd.rb +167 -0
  932. data/lib/fisk/instructions/vpermil2ps.rb +167 -0
  933. data/lib/fisk/instructions/vpermilpd.rb +399 -0
  934. data/lib/fisk/instructions/vpermilps.rb +399 -0
  935. data/lib/fisk/instructions/vpermpd.rb +205 -0
  936. data/lib/fisk/instructions/vpermps.rb +123 -0
  937. data/lib/fisk/instructions/vpermq.rb +205 -0
  938. data/lib/fisk/instructions/vpermt2b.rb +123 -0
  939. data/lib/fisk/instructions/vpermt2d.rb +123 -0
  940. data/lib/fisk/instructions/vpermt2pd.rb +123 -0
  941. data/lib/fisk/instructions/vpermt2ps.rb +123 -0
  942. data/lib/fisk/instructions/vpermt2q.rb +123 -0
  943. data/lib/fisk/instructions/vpermt2w.rb +123 -0
  944. data/lib/fisk/instructions/vpermw.rb +123 -0
  945. data/lib/fisk/instructions/vpexpandd.rb +117 -0
  946. data/lib/fisk/instructions/vpexpandq.rb +117 -0
  947. data/lib/fisk/instructions/vpextrb.rb +89 -0
  948. data/lib/fisk/instructions/vpextrd.rb +89 -0
  949. data/lib/fisk/instructions/vpextrq.rb +89 -0
  950. data/lib/fisk/instructions/vpextrw.rb +115 -0
  951. data/lib/fisk/instructions/vpgatherdd.rb +101 -0
  952. data/lib/fisk/instructions/vpgatherdq.rb +101 -0
  953. data/lib/fisk/instructions/vpgatherqd.rb +101 -0
  954. data/lib/fisk/instructions/vpgatherqq.rb +101 -0
  955. data/lib/fisk/instructions/vphaddbd.rb +45 -0
  956. data/lib/fisk/instructions/vphaddbq.rb +45 -0
  957. data/lib/fisk/instructions/vphaddbw.rb +45 -0
  958. data/lib/fisk/instructions/vphaddd.rb +85 -0
  959. data/lib/fisk/instructions/vphadddq.rb +45 -0
  960. data/lib/fisk/instructions/vphaddsw.rb +85 -0
  961. data/lib/fisk/instructions/vphaddubd.rb +45 -0
  962. data/lib/fisk/instructions/vphaddubq.rb +45 -0
  963. data/lib/fisk/instructions/vphaddubw.rb +45 -0
  964. data/lib/fisk/instructions/vphaddudq.rb +45 -0
  965. data/lib/fisk/instructions/vphadduwd.rb +45 -0
  966. data/lib/fisk/instructions/vphadduwq.rb +45 -0
  967. data/lib/fisk/instructions/vphaddw.rb +85 -0
  968. data/lib/fisk/instructions/vphaddwd.rb +45 -0
  969. data/lib/fisk/instructions/vphaddwq.rb +45 -0
  970. data/lib/fisk/instructions/vphminposuw.rb +45 -0
  971. data/lib/fisk/instructions/vphsubbw.rb +45 -0
  972. data/lib/fisk/instructions/vphsubd.rb +85 -0
  973. data/lib/fisk/instructions/vphsubdq.rb +45 -0
  974. data/lib/fisk/instructions/vphsubsw.rb +85 -0
  975. data/lib/fisk/instructions/vphsubw.rb +85 -0
  976. data/lib/fisk/instructions/vphsubwd.rb +45 -0
  977. data/lib/fisk/instructions/vpinsrb.rb +93 -0
  978. data/lib/fisk/instructions/vpinsrd.rb +93 -0
  979. data/lib/fisk/instructions/vpinsrq.rb +93 -0
  980. data/lib/fisk/instructions/vpinsrw.rb +93 -0
  981. data/lib/fisk/instructions/vplzcntd.rb +117 -0
  982. data/lib/fisk/instructions/vplzcntq.rb +117 -0
  983. data/lib/fisk/instructions/vpmacsdd.rb +51 -0
  984. data/lib/fisk/instructions/vpmacsdqh.rb +51 -0
  985. data/lib/fisk/instructions/vpmacsdql.rb +51 -0
  986. data/lib/fisk/instructions/vpmacssdd.rb +51 -0
  987. data/lib/fisk/instructions/vpmacssdqh.rb +51 -0
  988. data/lib/fisk/instructions/vpmacssdql.rb +51 -0
  989. data/lib/fisk/instructions/vpmacsswd.rb +51 -0
  990. data/lib/fisk/instructions/vpmacssww.rb +51 -0
  991. data/lib/fisk/instructions/vpmacswd.rb +51 -0
  992. data/lib/fisk/instructions/vpmacsww.rb +51 -0
  993. data/lib/fisk/instructions/vpmadcsswd.rb +51 -0
  994. data/lib/fisk/instructions/vpmadcswd.rb +51 -0
  995. data/lib/fisk/instructions/vpmadd52huq.rb +123 -0
  996. data/lib/fisk/instructions/vpmadd52luq.rb +123 -0
  997. data/lib/fisk/instructions/vpmaddubsw.rb +199 -0
  998. data/lib/fisk/instructions/vpmaddwd.rb +199 -0
  999. data/lib/fisk/instructions/vpmaskmovd.rb +85 -0
  1000. data/lib/fisk/instructions/vpmaskmovq.rb +85 -0
  1001. data/lib/fisk/instructions/vpmaxsb.rb +199 -0
  1002. data/lib/fisk/instructions/vpmaxsd.rb +199 -0
  1003. data/lib/fisk/instructions/vpmaxsq.rb +123 -0
  1004. data/lib/fisk/instructions/vpmaxsw.rb +199 -0
  1005. data/lib/fisk/instructions/vpmaxub.rb +199 -0
  1006. data/lib/fisk/instructions/vpmaxud.rb +199 -0
  1007. data/lib/fisk/instructions/vpmaxuq.rb +123 -0
  1008. data/lib/fisk/instructions/vpmaxuw.rb +199 -0
  1009. data/lib/fisk/instructions/vpminsb.rb +199 -0
  1010. data/lib/fisk/instructions/vpminsd.rb +199 -0
  1011. data/lib/fisk/instructions/vpminsq.rb +123 -0
  1012. data/lib/fisk/instructions/vpminsw.rb +199 -0
  1013. data/lib/fisk/instructions/vpminub.rb +199 -0
  1014. data/lib/fisk/instructions/vpminud.rb +199 -0
  1015. data/lib/fisk/instructions/vpminuq.rb +123 -0
  1016. data/lib/fisk/instructions/vpminuw.rb +199 -0
  1017. data/lib/fisk/instructions/vpmovb2m.rb +63 -0
  1018. data/lib/fisk/instructions/vpmovd2m.rb +63 -0
  1019. data/lib/fisk/instructions/vpmovdb.rb +117 -0
  1020. data/lib/fisk/instructions/vpmovdw.rb +117 -0
  1021. data/lib/fisk/instructions/vpmovm2b.rb +63 -0
  1022. data/lib/fisk/instructions/vpmovm2d.rb +63 -0
  1023. data/lib/fisk/instructions/vpmovm2q.rb +63 -0
  1024. data/lib/fisk/instructions/vpmovm2w.rb +63 -0
  1025. data/lib/fisk/instructions/vpmovmskb.rb +45 -0
  1026. data/lib/fisk/instructions/vpmovq2m.rb +63 -0
  1027. data/lib/fisk/instructions/vpmovqb.rb +117 -0
  1028. data/lib/fisk/instructions/vpmovqd.rb +117 -0
  1029. data/lib/fisk/instructions/vpmovqw.rb +117 -0
  1030. data/lib/fisk/instructions/vpmovsdb.rb +117 -0
  1031. data/lib/fisk/instructions/vpmovsdw.rb +117 -0
  1032. data/lib/fisk/instructions/vpmovsqb.rb +117 -0
  1033. data/lib/fisk/instructions/vpmovsqd.rb +117 -0
  1034. data/lib/fisk/instructions/vpmovsqw.rb +117 -0
  1035. data/lib/fisk/instructions/vpmovswb.rb +117 -0
  1036. data/lib/fisk/instructions/vpmovsxbd.rb +189 -0
  1037. data/lib/fisk/instructions/vpmovsxbq.rb +189 -0
  1038. data/lib/fisk/instructions/vpmovsxbw.rb +189 -0
  1039. data/lib/fisk/instructions/vpmovsxdq.rb +189 -0
  1040. data/lib/fisk/instructions/vpmovsxwd.rb +189 -0
  1041. data/lib/fisk/instructions/vpmovsxwq.rb +189 -0
  1042. data/lib/fisk/instructions/vpmovusdb.rb +117 -0
  1043. data/lib/fisk/instructions/vpmovusdw.rb +117 -0
  1044. data/lib/fisk/instructions/vpmovusqb.rb +117 -0
  1045. data/lib/fisk/instructions/vpmovusqd.rb +117 -0
  1046. data/lib/fisk/instructions/vpmovusqw.rb +117 -0
  1047. data/lib/fisk/instructions/vpmovuswb.rb +117 -0
  1048. data/lib/fisk/instructions/vpmovw2m.rb +63 -0
  1049. data/lib/fisk/instructions/vpmovwb.rb +117 -0
  1050. data/lib/fisk/instructions/vpmovzxbd.rb +189 -0
  1051. data/lib/fisk/instructions/vpmovzxbq.rb +189 -0
  1052. data/lib/fisk/instructions/vpmovzxbw.rb +189 -0
  1053. data/lib/fisk/instructions/vpmovzxdq.rb +189 -0
  1054. data/lib/fisk/instructions/vpmovzxwd.rb +189 -0
  1055. data/lib/fisk/instructions/vpmovzxwq.rb +189 -0
  1056. data/lib/fisk/instructions/vpmuldq.rb +199 -0
  1057. data/lib/fisk/instructions/vpmulhrsw.rb +199 -0
  1058. data/lib/fisk/instructions/vpmulhuw.rb +199 -0
  1059. data/lib/fisk/instructions/vpmulhw.rb +199 -0
  1060. data/lib/fisk/instructions/vpmulld.rb +199 -0
  1061. data/lib/fisk/instructions/vpmullq.rb +123 -0
  1062. data/lib/fisk/instructions/vpmullw.rb +199 -0
  1063. data/lib/fisk/instructions/vpmultishiftqb.rb +123 -0
  1064. data/lib/fisk/instructions/vpmuludq.rb +199 -0
  1065. data/lib/fisk/instructions/vpopcntd.rb +45 -0
  1066. data/lib/fisk/instructions/vpopcntq.rb +45 -0
  1067. data/lib/fisk/instructions/vpor.rb +85 -0
  1068. data/lib/fisk/instructions/vpord.rb +123 -0
  1069. data/lib/fisk/instructions/vporq.rb +123 -0
  1070. data/lib/fisk/instructions/vpperm.rb +85 -0
  1071. data/lib/fisk/instructions/vprold.rb +129 -0
  1072. data/lib/fisk/instructions/vprolq.rb +129 -0
  1073. data/lib/fisk/instructions/vprolvd.rb +123 -0
  1074. data/lib/fisk/instructions/vprolvq.rb +123 -0
  1075. data/lib/fisk/instructions/vprord.rb +129 -0
  1076. data/lib/fisk/instructions/vprorq.rb +129 -0
  1077. data/lib/fisk/instructions/vprorvd.rb +123 -0
  1078. data/lib/fisk/instructions/vprorvq.rb +123 -0
  1079. data/lib/fisk/instructions/vprotb.rb +118 -0
  1080. data/lib/fisk/instructions/vprotd.rb +118 -0
  1081. data/lib/fisk/instructions/vprotq.rb +118 -0
  1082. data/lib/fisk/instructions/vprotw.rb +118 -0
  1083. data/lib/fisk/instructions/vpsadbw.rb +199 -0
  1084. data/lib/fisk/instructions/vpscatterdd.rb +63 -0
  1085. data/lib/fisk/instructions/vpscatterdq.rb +63 -0
  1086. data/lib/fisk/instructions/vpscatterqd.rb +63 -0
  1087. data/lib/fisk/instructions/vpscatterqq.rb +63 -0
  1088. data/lib/fisk/instructions/vpshab.rb +78 -0
  1089. data/lib/fisk/instructions/vpshad.rb +78 -0
  1090. data/lib/fisk/instructions/vpshaq.rb +78 -0
  1091. data/lib/fisk/instructions/vpshaw.rb +78 -0
  1092. data/lib/fisk/instructions/vpshlb.rb +78 -0
  1093. data/lib/fisk/instructions/vpshld.rb +78 -0
  1094. data/lib/fisk/instructions/vpshlq.rb +78 -0
  1095. data/lib/fisk/instructions/vpshlw.rb +78 -0
  1096. data/lib/fisk/instructions/vpshufb.rb +199 -0
  1097. data/lib/fisk/instructions/vpshufd.rb +209 -0
  1098. data/lib/fisk/instructions/vpshufhw.rb +209 -0
  1099. data/lib/fisk/instructions/vpshuflw.rb +209 -0
  1100. data/lib/fisk/instructions/vpsignb.rb +85 -0
  1101. data/lib/fisk/instructions/vpsignd.rb +85 -0
  1102. data/lib/fisk/instructions/vpsignw.rb +85 -0
  1103. data/lib/fisk/instructions/vpslld.rb +359 -0
  1104. data/lib/fisk/instructions/vpslldq.rb +169 -0
  1105. data/lib/fisk/instructions/vpsllq.rb +359 -0
  1106. data/lib/fisk/instructions/vpsllvd.rb +199 -0
  1107. data/lib/fisk/instructions/vpsllvq.rb +199 -0
  1108. data/lib/fisk/instructions/vpsllvw.rb +123 -0
  1109. data/lib/fisk/instructions/vpsllw.rb +359 -0
  1110. data/lib/fisk/instructions/vpsrad.rb +359 -0
  1111. data/lib/fisk/instructions/vpsraq.rb +243 -0
  1112. data/lib/fisk/instructions/vpsravd.rb +199 -0
  1113. data/lib/fisk/instructions/vpsravq.rb +123 -0
  1114. data/lib/fisk/instructions/vpsravw.rb +123 -0
  1115. data/lib/fisk/instructions/vpsraw.rb +359 -0
  1116. data/lib/fisk/instructions/vpsrld.rb +359 -0
  1117. data/lib/fisk/instructions/vpsrldq.rb +169 -0
  1118. data/lib/fisk/instructions/vpsrlq.rb +359 -0
  1119. data/lib/fisk/instructions/vpsrlvd.rb +199 -0
  1120. data/lib/fisk/instructions/vpsrlvq.rb +199 -0
  1121. data/lib/fisk/instructions/vpsrlvw.rb +123 -0
  1122. data/lib/fisk/instructions/vpsrlw.rb +359 -0
  1123. data/lib/fisk/instructions/vpsubb.rb +199 -0
  1124. data/lib/fisk/instructions/vpsubd.rb +199 -0
  1125. data/lib/fisk/instructions/vpsubq.rb +199 -0
  1126. data/lib/fisk/instructions/vpsubsb.rb +199 -0
  1127. data/lib/fisk/instructions/vpsubsw.rb +199 -0
  1128. data/lib/fisk/instructions/vpsubusb.rb +199 -0
  1129. data/lib/fisk/instructions/vpsubusw.rb +199 -0
  1130. data/lib/fisk/instructions/vpsubw.rb +199 -0
  1131. data/lib/fisk/instructions/vpternlogd.rb +135 -0
  1132. data/lib/fisk/instructions/vpternlogq.rb +135 -0
  1133. data/lib/fisk/instructions/vptest.rb +81 -0
  1134. data/lib/fisk/instructions/vptestmb.rb +123 -0
  1135. data/lib/fisk/instructions/vptestmd.rb +123 -0
  1136. data/lib/fisk/instructions/vptestmq.rb +123 -0
  1137. data/lib/fisk/instructions/vptestmw.rb +123 -0
  1138. data/lib/fisk/instructions/vptestnmb.rb +123 -0
  1139. data/lib/fisk/instructions/vptestnmd.rb +123 -0
  1140. data/lib/fisk/instructions/vptestnmq.rb +123 -0
  1141. data/lib/fisk/instructions/vptestnmw.rb +123 -0
  1142. data/lib/fisk/instructions/vpunpckhbw.rb +199 -0
  1143. data/lib/fisk/instructions/vpunpckhdq.rb +199 -0
  1144. data/lib/fisk/instructions/vpunpckhqdq.rb +199 -0
  1145. data/lib/fisk/instructions/vpunpckhwd.rb +199 -0
  1146. data/lib/fisk/instructions/vpunpcklbw.rb +199 -0
  1147. data/lib/fisk/instructions/vpunpckldq.rb +199 -0
  1148. data/lib/fisk/instructions/vpunpcklqdq.rb +199 -0
  1149. data/lib/fisk/instructions/vpunpcklwd.rb +199 -0
  1150. data/lib/fisk/instructions/vpxor.rb +85 -0
  1151. data/lib/fisk/instructions/vpxord.rb +123 -0
  1152. data/lib/fisk/instructions/vpxorq.rb +123 -0
  1153. data/lib/fisk/instructions/vrangepd.rb +136 -0
  1154. data/lib/fisk/instructions/vrangeps.rb +136 -0
  1155. data/lib/fisk/instructions/vrangesd.rb +52 -0
  1156. data/lib/fisk/instructions/vrangess.rb +52 -0
  1157. data/lib/fisk/instructions/vrcp14pd.rb +117 -0
  1158. data/lib/fisk/instructions/vrcp14ps.rb +117 -0
  1159. data/lib/fisk/instructions/vrcp14sd.rb +47 -0
  1160. data/lib/fisk/instructions/vrcp14ss.rb +47 -0
  1161. data/lib/fisk/instructions/vrcp28pd.rb +46 -0
  1162. data/lib/fisk/instructions/vrcp28ps.rb +46 -0
  1163. data/lib/fisk/instructions/vrcp28sd.rb +48 -0
  1164. data/lib/fisk/instructions/vrcp28ss.rb +48 -0
  1165. data/lib/fisk/instructions/vrcpps.rb +81 -0
  1166. data/lib/fisk/instructions/vrcpss.rb +47 -0
  1167. data/lib/fisk/instructions/vreducepd.rb +129 -0
  1168. data/lib/fisk/instructions/vreduceps.rb +129 -0
  1169. data/lib/fisk/instructions/vreducesd.rb +51 -0
  1170. data/lib/fisk/instructions/vreducess.rb +51 -0
  1171. data/lib/fisk/instructions/vrndscalepd.rb +130 -0
  1172. data/lib/fisk/instructions/vrndscaleps.rb +130 -0
  1173. data/lib/fisk/instructions/vrndscalesd.rb +52 -0
  1174. data/lib/fisk/instructions/vrndscaless.rb +52 -0
  1175. data/lib/fisk/instructions/vroundpd.rb +89 -0
  1176. data/lib/fisk/instructions/vroundps.rb +89 -0
  1177. data/lib/fisk/instructions/vroundsd.rb +51 -0
  1178. data/lib/fisk/instructions/vroundss.rb +51 -0
  1179. data/lib/fisk/instructions/vrsqrt14pd.rb +117 -0
  1180. data/lib/fisk/instructions/vrsqrt14ps.rb +117 -0
  1181. data/lib/fisk/instructions/vrsqrt14sd.rb +47 -0
  1182. data/lib/fisk/instructions/vrsqrt14ss.rb +47 -0
  1183. data/lib/fisk/instructions/vrsqrt28pd.rb +46 -0
  1184. data/lib/fisk/instructions/vrsqrt28ps.rb +46 -0
  1185. data/lib/fisk/instructions/vrsqrt28sd.rb +48 -0
  1186. data/lib/fisk/instructions/vrsqrt28ss.rb +48 -0
  1187. data/lib/fisk/instructions/vrsqrtps.rb +81 -0
  1188. data/lib/fisk/instructions/vrsqrtss.rb +47 -0
  1189. data/lib/fisk/instructions/vscalefpd.rb +124 -0
  1190. data/lib/fisk/instructions/vscalefps.rb +124 -0
  1191. data/lib/fisk/instructions/vscalefsd.rb +48 -0
  1192. data/lib/fisk/instructions/vscalefss.rb +48 -0
  1193. data/lib/fisk/instructions/vscatterdpd.rb +63 -0
  1194. data/lib/fisk/instructions/vscatterdps.rb +63 -0
  1195. data/lib/fisk/instructions/vscatterpf0dpd.rb +26 -0
  1196. data/lib/fisk/instructions/vscatterpf0dps.rb +26 -0
  1197. data/lib/fisk/instructions/vscatterpf0qpd.rb +26 -0
  1198. data/lib/fisk/instructions/vscatterpf0qps.rb +26 -0
  1199. data/lib/fisk/instructions/vscatterpf1dpd.rb +26 -0
  1200. data/lib/fisk/instructions/vscatterpf1dps.rb +26 -0
  1201. data/lib/fisk/instructions/vscatterpf1qpd.rb +26 -0
  1202. data/lib/fisk/instructions/vscatterpf1qps.rb +26 -0
  1203. data/lib/fisk/instructions/vscatterqpd.rb +63 -0
  1204. data/lib/fisk/instructions/vscatterqps.rb +63 -0
  1205. data/lib/fisk/instructions/vshuff32x4.rb +93 -0
  1206. data/lib/fisk/instructions/vshuff64x2.rb +93 -0
  1207. data/lib/fisk/instructions/vshufi32x4.rb +93 -0
  1208. data/lib/fisk/instructions/vshufi64x2.rb +93 -0
  1209. data/lib/fisk/instructions/vshufpd.rb +219 -0
  1210. data/lib/fisk/instructions/vshufps.rb +219 -0
  1211. data/lib/fisk/instructions/vsqrtpd.rb +190 -0
  1212. data/lib/fisk/instructions/vsqrtps.rb +190 -0
  1213. data/lib/fisk/instructions/vsqrtsd.rb +86 -0
  1214. data/lib/fisk/instructions/vsqrtss.rb +86 -0
  1215. data/lib/fisk/instructions/vstmxcsr.rb +26 -0
  1216. data/lib/fisk/instructions/vsubpd.rb +200 -0
  1217. data/lib/fisk/instructions/vsubps.rb +200 -0
  1218. data/lib/fisk/instructions/vsubsd.rb +86 -0
  1219. data/lib/fisk/instructions/vsubss.rb +86 -0
  1220. data/lib/fisk/instructions/vtestpd.rb +81 -0
  1221. data/lib/fisk/instructions/vtestps.rb +81 -0
  1222. data/lib/fisk/instructions/vucomisd.rb +82 -0
  1223. data/lib/fisk/instructions/vucomiss.rb +82 -0
  1224. data/lib/fisk/instructions/vunpckhpd.rb +199 -0
  1225. data/lib/fisk/instructions/vunpckhps.rb +199 -0
  1226. data/lib/fisk/instructions/vunpcklpd.rb +199 -0
  1227. data/lib/fisk/instructions/vunpcklps.rb +199 -0
  1228. data/lib/fisk/instructions/vxorpd.rb +199 -0
  1229. data/lib/fisk/instructions/vxorps.rb +199 -0
  1230. data/lib/fisk/instructions/vzeroall.rb +21 -0
  1231. data/lib/fisk/instructions/vzeroupper.rb +21 -0
  1232. data/lib/fisk/instructions/xadd.rb +203 -0
  1233. data/lib/fisk/instructions/xchg.rb +473 -0
  1234. data/lib/fisk/instructions/xgetbv.rb +22 -0
  1235. data/lib/fisk/instructions/xlatb.rb +37 -0
  1236. data/lib/fisk/instructions/xor.rb +760 -0
  1237. data/lib/fisk/instructions/xorpd.rb +59 -0
  1238. data/lib/fisk/instructions/xorps.rb +57 -0
  1239. data/test/helper.rb +6 -0
  1240. data/test/test_fisk.rb +53 -0
  1241. data/test/test_run_fisk.rb +78 -5
  1242. metadata +1234 -6
  1243. data/bin/machine.rb.erb +0 -100
  1244. data/lib/fisk/machine.rb +0 -35
  1245. data/lib/fisk/machine/encoding.rb +0 -78
  1246. data/lib/fisk/machine/generated.rb +0 -124746
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Fisk
4
+ module Instructions
5
+ # Instruction MINSD
6
+ forms = []
7
+ operands = []
8
+ encodings = []
9
+ # minsd: xmm, xmm
10
+ operands << OPERAND_TYPES[23]
11
+ operands << OPERAND_TYPES[24]
12
+ encodings << Class.new(Fisk::Encoding) {
13
+ def encode buffer, operands
14
+ add_prefix buffer, operands, 0xF2, true
15
+ add_rex(buffer, operands,
16
+ false,
17
+ 0,
18
+ (operands[0].value >> 3),
19
+ 0,
20
+ (operands[1].value >> 3))
21
+ add_opcode buffer, 0x0F, 0
22
+ add_opcode buffer, 0x5D, 0
23
+ add_modrm(buffer, operands,
24
+ 3,
25
+ operands[0].value,
26
+ operands[1].value)
27
+ end
28
+
29
+ def bytesize; 3; end
30
+ }.new
31
+ forms << Form.new(operands, encodings)
32
+ operands = []
33
+ encodings = []
34
+ # minsd: xmm, m64
35
+ operands << OPERAND_TYPES[23]
36
+ operands << OPERAND_TYPES[18]
37
+ encodings << Class.new(Fisk::Encoding) {
38
+ def encode buffer, operands
39
+ add_prefix buffer, operands, 0xF2, true
40
+ add_rex(buffer, operands,
41
+ false,
42
+ 0,
43
+ (operands[0].value >> 3),
44
+ (operands[1].value >> 3),
45
+ (operands[1].value >> 3))
46
+ add_opcode buffer, 0x0F, 0
47
+ add_opcode buffer, 0x5D, 0
48
+ add_modrm(buffer, operands,
49
+ 0,
50
+ operands[0].value,
51
+ operands[1].value)
52
+ end
53
+
54
+ def bytesize; 3; end
55
+ }.new
56
+ forms << Form.new(operands, encodings)
57
+ MINSD = Instruction.new("MINSD", forms)
58
+ end
59
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Fisk
4
+ module Instructions
5
+ # Instruction MINSS
6
+ forms = []
7
+ operands = []
8
+ encodings = []
9
+ # minss: xmm, xmm
10
+ operands << OPERAND_TYPES[23]
11
+ operands << OPERAND_TYPES[24]
12
+ encodings << Class.new(Fisk::Encoding) {
13
+ def encode buffer, operands
14
+ add_prefix buffer, operands, 0xF3, true
15
+ add_rex(buffer, operands,
16
+ false,
17
+ 0,
18
+ (operands[0].value >> 3),
19
+ 0,
20
+ (operands[1].value >> 3))
21
+ add_opcode buffer, 0x0F, 0
22
+ add_opcode buffer, 0x5D, 0
23
+ add_modrm(buffer, operands,
24
+ 3,
25
+ operands[0].value,
26
+ operands[1].value)
27
+ end
28
+
29
+ def bytesize; 3; end
30
+ }.new
31
+ forms << Form.new(operands, encodings)
32
+ operands = []
33
+ encodings = []
34
+ # minss: xmm, m32
35
+ operands << OPERAND_TYPES[23]
36
+ operands << OPERAND_TYPES[14]
37
+ encodings << Class.new(Fisk::Encoding) {
38
+ def encode buffer, operands
39
+ add_prefix buffer, operands, 0xF3, true
40
+ add_rex(buffer, operands,
41
+ false,
42
+ 0,
43
+ (operands[0].value >> 3),
44
+ (operands[1].value >> 3),
45
+ (operands[1].value >> 3))
46
+ add_opcode buffer, 0x0F, 0
47
+ add_opcode buffer, 0x5D, 0
48
+ add_modrm(buffer, operands,
49
+ 0,
50
+ operands[0].value,
51
+ operands[1].value)
52
+ end
53
+
54
+ def bytesize; 3; end
55
+ }.new
56
+ forms << Form.new(operands, encodings)
57
+ MINSS = Instruction.new("MINSS", forms)
58
+ end
59
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Fisk
4
+ module Instructions
5
+ # Instruction MONITOR
6
+ forms = []
7
+ operands = []
8
+ encodings = []
9
+ # monitor:
10
+ encodings << Class.new(Fisk::Encoding) {
11
+ def encode buffer, operands
12
+ add_opcode buffer, 0x0F, 0
13
+ add_opcode buffer, 0x01, 0
14
+ add_opcode buffer, 0xC8, 0
15
+ end
16
+
17
+ def bytesize; 3; end
18
+ }.new
19
+ forms << Form.new(operands, encodings)
20
+ MONITOR = Instruction.new("MONITOR", forms)
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Fisk
4
+ module Instructions
5
+ # Instruction MONITORX
6
+ forms = []
7
+ operands = []
8
+ encodings = []
9
+ # monitorx:
10
+ encodings << Class.new(Fisk::Encoding) {
11
+ def encode buffer, operands
12
+ add_opcode buffer, 0x0F, 0
13
+ add_opcode buffer, 0x01, 0
14
+ add_opcode buffer, 0xFA, 0
15
+ end
16
+
17
+ def bytesize; 3; end
18
+ }.new
19
+ forms << Form.new(operands, encodings)
20
+ MONITORX = Instruction.new("MONITORX", forms)
21
+ end
22
+ end
@@ -0,0 +1,682 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Fisk
4
+ module Instructions
5
+ # Instruction MOV
6
+ forms = []
7
+ operands = []
8
+ encodings = []
9
+ # movb: r8, imm8
10
+ operands << OPERAND_TYPES[47]
11
+ operands << OPERAND_TYPES[1]
12
+ encodings << Class.new(Fisk::Encoding) {
13
+ def encode buffer, operands
14
+ add_rex(buffer, operands,
15
+ false,
16
+ 0,
17
+ 0,
18
+ 0,
19
+ (operands[0].value >> 3))
20
+ add_opcode buffer, 0xC6, 0
21
+ add_modrm(buffer, operands,
22
+ 3,
23
+ 0,
24
+ operands[0].value)
25
+ add_immediate buffer, operands[1].value, 1
26
+ end
27
+
28
+ def bytesize; 3; end
29
+ }.new
30
+ encodings << Class.new(Fisk::Encoding) {
31
+ def encode buffer, operands
32
+ add_rex(buffer, operands,
33
+ false,
34
+ 0,
35
+ 0,
36
+ 0,
37
+ (operands[0].value >> 3))
38
+ add_opcode buffer, 0xB0, operands[0].value
39
+ add_immediate buffer, operands[1].value, 1
40
+ end
41
+
42
+ def bytesize; 2; end
43
+ }.new
44
+ forms << Form.new(operands, encodings)
45
+ operands = []
46
+ encodings = []
47
+ # movb: r8, r8
48
+ operands << OPERAND_TYPES[47]
49
+ operands << OPERAND_TYPES[3]
50
+ encodings << Class.new(Fisk::Encoding) {
51
+ def encode buffer, operands
52
+ add_rex(buffer, operands,
53
+ false,
54
+ 0,
55
+ (operands[1].value >> 3),
56
+ 0,
57
+ (operands[0].value >> 3))
58
+ add_opcode buffer, 0x88, 0
59
+ add_modrm(buffer, operands,
60
+ 3,
61
+ operands[1].value,
62
+ operands[0].value)
63
+ end
64
+
65
+ def bytesize; 2; end
66
+ }.new
67
+ encodings << Class.new(Fisk::Encoding) {
68
+ def encode buffer, operands
69
+ add_rex(buffer, operands,
70
+ false,
71
+ 0,
72
+ (operands[0].value >> 3),
73
+ 0,
74
+ (operands[1].value >> 3))
75
+ add_opcode buffer, 0x8A, 0
76
+ add_modrm(buffer, operands,
77
+ 3,
78
+ operands[0].value,
79
+ operands[1].value)
80
+ end
81
+
82
+ def bytesize; 2; end
83
+ }.new
84
+ forms << Form.new(operands, encodings)
85
+ operands = []
86
+ encodings = []
87
+ # movb: r8, m8
88
+ operands << OPERAND_TYPES[47]
89
+ operands << OPERAND_TYPES[4]
90
+ encodings << Class.new(Fisk::Encoding) {
91
+ def encode buffer, operands
92
+ add_rex(buffer, operands,
93
+ false,
94
+ 0,
95
+ (operands[0].value >> 3),
96
+ (operands[1].value >> 3),
97
+ (operands[1].value >> 3))
98
+ add_opcode buffer, 0x8A, 0
99
+ add_modrm(buffer, operands,
100
+ 0,
101
+ operands[0].value,
102
+ operands[1].value)
103
+ end
104
+
105
+ def bytesize; 2; end
106
+ }.new
107
+ forms << Form.new(operands, encodings)
108
+ operands = []
109
+ encodings = []
110
+ # movw: r16, imm16
111
+ operands << OPERAND_TYPES[38]
112
+ operands << OPERAND_TYPES[6]
113
+ encodings << Class.new(Fisk::Encoding) {
114
+ def encode buffer, operands
115
+ add_prefix buffer, operands, 0x66, false
116
+ add_rex(buffer, operands,
117
+ false,
118
+ 0,
119
+ 0,
120
+ 0,
121
+ (operands[0].value >> 3))
122
+ add_opcode buffer, 0xC7, 0
123
+ add_modrm(buffer, operands,
124
+ 3,
125
+ 0,
126
+ operands[0].value)
127
+ add_immediate buffer, operands[1].value, 2
128
+ end
129
+
130
+ def bytesize; 4; end
131
+ }.new
132
+ encodings << Class.new(Fisk::Encoding) {
133
+ def encode buffer, operands
134
+ add_prefix buffer, operands, 0x66, false
135
+ add_rex(buffer, operands,
136
+ false,
137
+ 0,
138
+ 0,
139
+ 0,
140
+ (operands[0].value >> 3))
141
+ add_opcode buffer, 0xB8, operands[0].value
142
+ add_immediate buffer, operands[1].value, 2
143
+ end
144
+
145
+ def bytesize; 3; end
146
+ }.new
147
+ forms << Form.new(operands, encodings)
148
+ operands = []
149
+ encodings = []
150
+ # movw: r16, r16
151
+ operands << OPERAND_TYPES[38]
152
+ operands << OPERAND_TYPES[8]
153
+ encodings << Class.new(Fisk::Encoding) {
154
+ def encode buffer, operands
155
+ add_prefix buffer, operands, 0x66, false
156
+ add_rex(buffer, operands,
157
+ false,
158
+ 0,
159
+ (operands[1].value >> 3),
160
+ 0,
161
+ (operands[0].value >> 3))
162
+ add_opcode buffer, 0x89, 0
163
+ add_modrm(buffer, operands,
164
+ 3,
165
+ operands[1].value,
166
+ operands[0].value)
167
+ end
168
+
169
+ def bytesize; 2; end
170
+ }.new
171
+ encodings << Class.new(Fisk::Encoding) {
172
+ def encode buffer, operands
173
+ add_prefix buffer, operands, 0x66, false
174
+ add_rex(buffer, operands,
175
+ false,
176
+ 0,
177
+ (operands[0].value >> 3),
178
+ 0,
179
+ (operands[1].value >> 3))
180
+ add_opcode buffer, 0x8B, 0
181
+ add_modrm(buffer, operands,
182
+ 3,
183
+ operands[0].value,
184
+ operands[1].value)
185
+ end
186
+
187
+ def bytesize; 2; end
188
+ }.new
189
+ forms << Form.new(operands, encodings)
190
+ operands = []
191
+ encodings = []
192
+ # movw: r16, m16
193
+ operands << OPERAND_TYPES[38]
194
+ operands << OPERAND_TYPES[9]
195
+ encodings << Class.new(Fisk::Encoding) {
196
+ def encode buffer, operands
197
+ add_prefix buffer, operands, 0x66, false
198
+ add_rex(buffer, operands,
199
+ false,
200
+ 0,
201
+ (operands[0].value >> 3),
202
+ (operands[1].value >> 3),
203
+ (operands[1].value >> 3))
204
+ add_opcode buffer, 0x8B, 0
205
+ add_modrm(buffer, operands,
206
+ 0,
207
+ operands[0].value,
208
+ operands[1].value)
209
+ end
210
+
211
+ def bytesize; 2; end
212
+ }.new
213
+ forms << Form.new(operands, encodings)
214
+ operands = []
215
+ encodings = []
216
+ # movabs: eax, moffs32
217
+ operands << OPERAND_TYPES[48]
218
+ operands << OPERAND_TYPES[49]
219
+ encodings << Class.new(Fisk::Encoding) {
220
+ def encode buffer, operands
221
+ add_opcode buffer, 0xA1, 0
222
+ add_data_offset buffer, operands[1].value, 4
223
+ end
224
+
225
+ def bytesize; 1; end
226
+ }.new
227
+ forms << Form.new(operands, encodings)
228
+ operands = []
229
+ encodings = []
230
+ # movl: r32, imm32
231
+ operands << OPERAND_TYPES[27]
232
+ operands << OPERAND_TYPES[11]
233
+ encodings << Class.new(Fisk::Encoding) {
234
+ def encode buffer, operands
235
+ add_rex(buffer, operands,
236
+ false,
237
+ 0,
238
+ 0,
239
+ 0,
240
+ (operands[0].value >> 3))
241
+ add_opcode buffer, 0xC7, 0
242
+ add_modrm(buffer, operands,
243
+ 3,
244
+ 0,
245
+ operands[0].value)
246
+ add_immediate buffer, operands[1].value, 4
247
+ end
248
+
249
+ def bytesize; 6; end
250
+ }.new
251
+ encodings << Class.new(Fisk::Encoding) {
252
+ def encode buffer, operands
253
+ add_rex(buffer, operands,
254
+ false,
255
+ 0,
256
+ 0,
257
+ 0,
258
+ (operands[0].value >> 3))
259
+ add_opcode buffer, 0xB8, operands[0].value
260
+ add_immediate buffer, operands[1].value, 4
261
+ end
262
+
263
+ def bytesize; 5; end
264
+ }.new
265
+ forms << Form.new(operands, encodings)
266
+ operands = []
267
+ encodings = []
268
+ # movl: r32, r32
269
+ operands << OPERAND_TYPES[27]
270
+ operands << OPERAND_TYPES[13]
271
+ encodings << Class.new(Fisk::Encoding) {
272
+ def encode buffer, operands
273
+ add_rex(buffer, operands,
274
+ false,
275
+ 0,
276
+ (operands[1].value >> 3),
277
+ 0,
278
+ (operands[0].value >> 3))
279
+ add_opcode buffer, 0x89, 0
280
+ add_modrm(buffer, operands,
281
+ 3,
282
+ operands[1].value,
283
+ operands[0].value)
284
+ end
285
+
286
+ def bytesize; 2; end
287
+ }.new
288
+ encodings << Class.new(Fisk::Encoding) {
289
+ def encode buffer, operands
290
+ add_rex(buffer, operands,
291
+ false,
292
+ 0,
293
+ (operands[0].value >> 3),
294
+ 0,
295
+ (operands[1].value >> 3))
296
+ add_opcode buffer, 0x8B, 0
297
+ add_modrm(buffer, operands,
298
+ 3,
299
+ operands[0].value,
300
+ operands[1].value)
301
+ end
302
+
303
+ def bytesize; 2; end
304
+ }.new
305
+ forms << Form.new(operands, encodings)
306
+ operands = []
307
+ encodings = []
308
+ # movl: r32, m32
309
+ operands << OPERAND_TYPES[27]
310
+ operands << OPERAND_TYPES[14]
311
+ encodings << Class.new(Fisk::Encoding) {
312
+ def encode buffer, operands
313
+ add_rex(buffer, operands,
314
+ false,
315
+ 0,
316
+ (operands[0].value >> 3),
317
+ (operands[1].value >> 3),
318
+ (operands[1].value >> 3))
319
+ add_opcode buffer, 0x8B, 0
320
+ add_modrm(buffer, operands,
321
+ 0,
322
+ operands[0].value,
323
+ operands[1].value)
324
+ end
325
+
326
+ def bytesize; 2; end
327
+ }.new
328
+ forms << Form.new(operands, encodings)
329
+ operands = []
330
+ encodings = []
331
+ # movabs: rax, moffs64
332
+ operands << OPERAND_TYPES[50]
333
+ operands << OPERAND_TYPES[51]
334
+ encodings << Class.new(Fisk::Encoding) {
335
+ def encode buffer, operands
336
+ add_rex(buffer, operands,
337
+ true,
338
+ 1,
339
+ 0,
340
+ 0,
341
+ 0)
342
+ add_opcode buffer, 0xA1, 0
343
+ add_data_offset buffer, operands[1].value, 8
344
+ end
345
+
346
+ def bytesize; 2; end
347
+ }.new
348
+ forms << Form.new(operands, encodings)
349
+ operands = []
350
+ encodings = []
351
+ # movq: r64, imm32
352
+ operands << OPERAND_TYPES[28]
353
+ operands << OPERAND_TYPES[11]
354
+ encodings << Class.new(Fisk::Encoding) {
355
+ def encode buffer, operands
356
+ add_rex(buffer, operands,
357
+ true,
358
+ 1,
359
+ 0,
360
+ 0,
361
+ (operands[0].value >> 3))
362
+ add_opcode buffer, 0xC7, 0
363
+ add_modrm(buffer, operands,
364
+ 3,
365
+ 0,
366
+ operands[0].value)
367
+ add_immediate buffer, operands[1].value, 4
368
+ end
369
+
370
+ def bytesize; 7; end
371
+ }.new
372
+ forms << Form.new(operands, encodings)
373
+ operands = []
374
+ encodings = []
375
+ # movq: r64, imm64
376
+ operands << OPERAND_TYPES[28]
377
+ operands << OPERAND_TYPES[52]
378
+ encodings << Class.new(Fisk::Encoding) {
379
+ def encode buffer, operands
380
+ add_rex(buffer, operands,
381
+ true,
382
+ 1,
383
+ 0,
384
+ 0,
385
+ (operands[0].value >> 3))
386
+ add_opcode buffer, 0xB8, operands[0].value
387
+ add_immediate buffer, operands[1].value, 8
388
+ end
389
+
390
+ def bytesize; 10; end
391
+ }.new
392
+ forms << Form.new(operands, encodings)
393
+ operands = []
394
+ encodings = []
395
+ # movq: r64, r64
396
+ operands << OPERAND_TYPES[28]
397
+ operands << OPERAND_TYPES[17]
398
+ encodings << Class.new(Fisk::Encoding) {
399
+ def encode buffer, operands
400
+ add_rex(buffer, operands,
401
+ true,
402
+ 1,
403
+ (operands[1].value >> 3),
404
+ 0,
405
+ (operands[0].value >> 3))
406
+ add_opcode buffer, 0x89, 0
407
+ add_modrm(buffer, operands,
408
+ 3,
409
+ operands[1].value,
410
+ operands[0].value)
411
+ end
412
+
413
+ def bytesize; 3; end
414
+ }.new
415
+ encodings << Class.new(Fisk::Encoding) {
416
+ def encode buffer, operands
417
+ add_rex(buffer, operands,
418
+ true,
419
+ 1,
420
+ (operands[0].value >> 3),
421
+ 0,
422
+ (operands[1].value >> 3))
423
+ add_opcode buffer, 0x8B, 0
424
+ add_modrm(buffer, operands,
425
+ 3,
426
+ operands[0].value,
427
+ operands[1].value)
428
+ end
429
+
430
+ def bytesize; 3; end
431
+ }.new
432
+ forms << Form.new(operands, encodings)
433
+ operands = []
434
+ encodings = []
435
+ # movq: r64, m64
436
+ operands << OPERAND_TYPES[28]
437
+ operands << OPERAND_TYPES[18]
438
+ encodings << Class.new(Fisk::Encoding) {
439
+ def encode buffer, operands
440
+ add_rex(buffer, operands,
441
+ true,
442
+ 1,
443
+ (operands[0].value >> 3),
444
+ (operands[1].value >> 3),
445
+ (operands[1].value >> 3))
446
+ add_opcode buffer, 0x8B, 0
447
+ add_modrm(buffer, operands,
448
+ 0,
449
+ operands[0].value,
450
+ operands[1].value)
451
+ end
452
+
453
+ def bytesize; 3; end
454
+ }.new
455
+ forms << Form.new(operands, encodings)
456
+ operands = []
457
+ encodings = []
458
+ # movb: m8, imm8
459
+ operands << OPERAND_TYPES[43]
460
+ operands << OPERAND_TYPES[1]
461
+ encodings << Class.new(Fisk::Encoding) {
462
+ def encode buffer, operands
463
+ add_rex(buffer, operands,
464
+ false,
465
+ 0,
466
+ 0,
467
+ (operands[0].value >> 3),
468
+ (operands[0].value >> 3))
469
+ add_opcode buffer, 0xC6, 0
470
+ add_modrm(buffer, operands,
471
+ 0,
472
+ 0,
473
+ operands[0].value)
474
+ add_immediate buffer, operands[1].value, 1
475
+ end
476
+
477
+ def bytesize; 3; end
478
+ }.new
479
+ forms << Form.new(operands, encodings)
480
+ operands = []
481
+ encodings = []
482
+ # movb: m8, r8
483
+ operands << OPERAND_TYPES[43]
484
+ operands << OPERAND_TYPES[3]
485
+ encodings << Class.new(Fisk::Encoding) {
486
+ def encode buffer, operands
487
+ add_rex(buffer, operands,
488
+ false,
489
+ 0,
490
+ (operands[1].value >> 3),
491
+ (operands[0].value >> 3),
492
+ (operands[0].value >> 3))
493
+ add_opcode buffer, 0x88, 0
494
+ add_modrm(buffer, operands,
495
+ 0,
496
+ operands[1].value,
497
+ operands[0].value)
498
+ end
499
+
500
+ def bytesize; 2; end
501
+ }.new
502
+ forms << Form.new(operands, encodings)
503
+ operands = []
504
+ encodings = []
505
+ # movw: m16, imm16
506
+ operands << OPERAND_TYPES[45]
507
+ operands << OPERAND_TYPES[6]
508
+ encodings << Class.new(Fisk::Encoding) {
509
+ def encode buffer, operands
510
+ add_prefix buffer, operands, 0x66, false
511
+ add_rex(buffer, operands,
512
+ false,
513
+ 0,
514
+ 0,
515
+ (operands[0].value >> 3),
516
+ (operands[0].value >> 3))
517
+ add_opcode buffer, 0xC7, 0
518
+ add_modrm(buffer, operands,
519
+ 0,
520
+ 0,
521
+ operands[0].value)
522
+ add_immediate buffer, operands[1].value, 2
523
+ end
524
+
525
+ def bytesize; 4; end
526
+ }.new
527
+ forms << Form.new(operands, encodings)
528
+ operands = []
529
+ encodings = []
530
+ # movw: m16, r16
531
+ operands << OPERAND_TYPES[45]
532
+ operands << OPERAND_TYPES[8]
533
+ encodings << Class.new(Fisk::Encoding) {
534
+ def encode buffer, operands
535
+ add_prefix buffer, operands, 0x66, false
536
+ add_rex(buffer, operands,
537
+ false,
538
+ 0,
539
+ (operands[1].value >> 3),
540
+ (operands[0].value >> 3),
541
+ (operands[0].value >> 3))
542
+ add_opcode buffer, 0x89, 0
543
+ add_modrm(buffer, operands,
544
+ 0,
545
+ operands[1].value,
546
+ operands[0].value)
547
+ end
548
+
549
+ def bytesize; 2; end
550
+ }.new
551
+ forms << Form.new(operands, encodings)
552
+ operands = []
553
+ encodings = []
554
+ # movl: m32, imm32
555
+ operands << OPERAND_TYPES[37]
556
+ operands << OPERAND_TYPES[11]
557
+ encodings << Class.new(Fisk::Encoding) {
558
+ def encode buffer, operands
559
+ add_rex(buffer, operands,
560
+ false,
561
+ 0,
562
+ 0,
563
+ (operands[0].value >> 3),
564
+ (operands[0].value >> 3))
565
+ add_opcode buffer, 0xC7, 0
566
+ add_modrm(buffer, operands,
567
+ 0,
568
+ 0,
569
+ operands[0].value)
570
+ add_immediate buffer, operands[1].value, 4
571
+ end
572
+
573
+ def bytesize; 6; end
574
+ }.new
575
+ forms << Form.new(operands, encodings)
576
+ operands = []
577
+ encodings = []
578
+ # movl: m32, r32
579
+ operands << OPERAND_TYPES[37]
580
+ operands << OPERAND_TYPES[13]
581
+ encodings << Class.new(Fisk::Encoding) {
582
+ def encode buffer, operands
583
+ add_rex(buffer, operands,
584
+ false,
585
+ 0,
586
+ (operands[1].value >> 3),
587
+ (operands[0].value >> 3),
588
+ (operands[0].value >> 3))
589
+ add_opcode buffer, 0x89, 0
590
+ add_modrm(buffer, operands,
591
+ 0,
592
+ operands[1].value,
593
+ operands[0].value)
594
+ end
595
+
596
+ def bytesize; 2; end
597
+ }.new
598
+ forms << Form.new(operands, encodings)
599
+ operands = []
600
+ encodings = []
601
+ # movq: m64, imm32
602
+ operands << OPERAND_TYPES[44]
603
+ operands << OPERAND_TYPES[11]
604
+ encodings << Class.new(Fisk::Encoding) {
605
+ def encode buffer, operands
606
+ add_rex(buffer, operands,
607
+ true,
608
+ 1,
609
+ 0,
610
+ (operands[0].value >> 3),
611
+ (operands[0].value >> 3))
612
+ add_opcode buffer, 0xC7, 0
613
+ add_modrm(buffer, operands,
614
+ 0,
615
+ 0,
616
+ operands[0].value)
617
+ add_immediate buffer, operands[1].value, 4
618
+ end
619
+
620
+ def bytesize; 7; end
621
+ }.new
622
+ forms << Form.new(operands, encodings)
623
+ operands = []
624
+ encodings = []
625
+ # movq: m64, r64
626
+ operands << OPERAND_TYPES[44]
627
+ operands << OPERAND_TYPES[17]
628
+ encodings << Class.new(Fisk::Encoding) {
629
+ def encode buffer, operands
630
+ add_rex(buffer, operands,
631
+ true,
632
+ 1,
633
+ (operands[1].value >> 3),
634
+ (operands[0].value >> 3),
635
+ (operands[0].value >> 3))
636
+ add_opcode buffer, 0x89, 0
637
+ add_modrm(buffer, operands,
638
+ 0,
639
+ operands[1].value,
640
+ operands[0].value)
641
+ end
642
+
643
+ def bytesize; 3; end
644
+ }.new
645
+ forms << Form.new(operands, encodings)
646
+ operands = []
647
+ encodings = []
648
+ # movabs: moffs32, eax
649
+ operands << OPERAND_TYPES[49]
650
+ operands << OPERAND_TYPES[33]
651
+ encodings << Class.new(Fisk::Encoding) {
652
+ def encode buffer, operands
653
+ add_opcode buffer, 0xA3, 0
654
+ add_data_offset buffer, operands[0].value, 4
655
+ end
656
+
657
+ def bytesize; 1; end
658
+ }.new
659
+ forms << Form.new(operands, encodings)
660
+ operands = []
661
+ encodings = []
662
+ # movabs: moffs64, rax
663
+ operands << OPERAND_TYPES[51]
664
+ operands << OPERAND_TYPES[34]
665
+ encodings << Class.new(Fisk::Encoding) {
666
+ def encode buffer, operands
667
+ add_rex(buffer, operands,
668
+ true,
669
+ 1,
670
+ 0,
671
+ 0,
672
+ 0)
673
+ add_opcode buffer, 0xA3, 0
674
+ add_data_offset buffer, operands[0].value, 8
675
+ end
676
+
677
+ def bytesize; 2; end
678
+ }.new
679
+ forms << Form.new(operands, encodings)
680
+ MOV = Instruction.new("MOV", forms)
681
+ end
682
+ end