aarch64 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/aarch64/instructions/adc.rb +1 -1
  4. data/lib/aarch64/instructions/adcs.rb +1 -1
  5. data/lib/aarch64/instructions/add_addsub_ext.rb +1 -1
  6. data/lib/aarch64/instructions/add_addsub_imm.rb +1 -1
  7. data/lib/aarch64/instructions/add_addsub_shift.rb +1 -1
  8. data/lib/aarch64/instructions/addg.rb +1 -1
  9. data/lib/aarch64/instructions/adds_addsub_ext.rb +1 -1
  10. data/lib/aarch64/instructions/adds_addsub_imm.rb +1 -1
  11. data/lib/aarch64/instructions/adds_addsub_shift.rb +1 -1
  12. data/lib/aarch64/instructions/adr.rb +7 -3
  13. data/lib/aarch64/instructions/adrp.rb +1 -1
  14. data/lib/aarch64/instructions/and_log_imm.rb +1 -1
  15. data/lib/aarch64/instructions/and_log_shift.rb +1 -1
  16. data/lib/aarch64/instructions/ands_log_imm.rb +1 -1
  17. data/lib/aarch64/instructions/ands_log_shift.rb +1 -1
  18. data/lib/aarch64/instructions/asrv.rb +1 -1
  19. data/lib/aarch64/instructions/autda.rb +1 -1
  20. data/lib/aarch64/instructions/autdb.rb +1 -1
  21. data/lib/aarch64/instructions/autia.rb +1 -1
  22. data/lib/aarch64/instructions/autib.rb +1 -1
  23. data/lib/aarch64/instructions/axflag.rb +1 -1
  24. data/lib/aarch64/instructions/b_cond.rb +2 -2
  25. data/lib/aarch64/instructions/b_uncond.rb +2 -2
  26. data/lib/aarch64/instructions/bc_cond.rb +2 -2
  27. data/lib/aarch64/instructions/bfm.rb +1 -1
  28. data/lib/aarch64/instructions/bic_log_shift.rb +1 -1
  29. data/lib/aarch64/instructions/bics.rb +1 -1
  30. data/lib/aarch64/instructions/bl.rb +2 -2
  31. data/lib/aarch64/instructions/blr.rb +1 -1
  32. data/lib/aarch64/instructions/blra.rb +1 -1
  33. data/lib/aarch64/instructions/br.rb +1 -1
  34. data/lib/aarch64/instructions/bra.rb +1 -1
  35. data/lib/aarch64/instructions/brk.rb +1 -1
  36. data/lib/aarch64/instructions/bti.rb +1 -1
  37. data/lib/aarch64/instructions/cas.rb +1 -1
  38. data/lib/aarch64/instructions/casb.rb +1 -1
  39. data/lib/aarch64/instructions/cash.rb +1 -1
  40. data/lib/aarch64/instructions/casp.rb +1 -1
  41. data/lib/aarch64/instructions/cbnz.rb +2 -2
  42. data/lib/aarch64/instructions/cbz.rb +2 -2
  43. data/lib/aarch64/instructions/ccmn_imm.rb +1 -1
  44. data/lib/aarch64/instructions/ccmn_reg.rb +1 -1
  45. data/lib/aarch64/instructions/ccmp_imm.rb +1 -1
  46. data/lib/aarch64/instructions/ccmp_reg.rb +1 -1
  47. data/lib/aarch64/instructions/cfinv.rb +1 -1
  48. data/lib/aarch64/instructions/clrex.rb +1 -1
  49. data/lib/aarch64/instructions/cls_int.rb +1 -1
  50. data/lib/aarch64/instructions/clz_int.rb +1 -1
  51. data/lib/aarch64/instructions/crc32.rb +1 -1
  52. data/lib/aarch64/instructions/crc32c.rb +1 -1
  53. data/lib/aarch64/instructions/csdb.rb +1 -1
  54. data/lib/aarch64/instructions/csel.rb +1 -1
  55. data/lib/aarch64/instructions/csinc.rb +1 -1
  56. data/lib/aarch64/instructions/csinv.rb +1 -1
  57. data/lib/aarch64/instructions/csneg.rb +1 -1
  58. data/lib/aarch64/instructions/dcps.rb +1 -1
  59. data/lib/aarch64/instructions/dgh.rb +1 -1
  60. data/lib/aarch64/instructions/dmb.rb +1 -1
  61. data/lib/aarch64/instructions/drps.rb +1 -1
  62. data/lib/aarch64/instructions/dsb.rb +1 -1
  63. data/lib/aarch64/instructions/eon.rb +1 -1
  64. data/lib/aarch64/instructions/eor_log_imm.rb +1 -1
  65. data/lib/aarch64/instructions/eor_log_shift.rb +1 -1
  66. data/lib/aarch64/instructions/eret.rb +1 -1
  67. data/lib/aarch64/instructions/ereta.rb +1 -1
  68. data/lib/aarch64/instructions/esb.rb +1 -1
  69. data/lib/aarch64/instructions/extr.rb +1 -1
  70. data/lib/aarch64/instructions/gmi.rb +1 -1
  71. data/lib/aarch64/instructions/hint.rb +1 -1
  72. data/lib/aarch64/instructions/hlt.rb +1 -1
  73. data/lib/aarch64/instructions/hvc.rb +1 -1
  74. data/lib/aarch64/instructions/irg.rb +1 -1
  75. data/lib/aarch64/instructions/isb.rb +1 -1
  76. data/lib/aarch64/instructions/ld64b.rb +1 -1
  77. data/lib/aarch64/instructions/ldadd.rb +1 -1
  78. data/lib/aarch64/instructions/ldaddb.rb +1 -1
  79. data/lib/aarch64/instructions/ldaddh.rb +1 -1
  80. data/lib/aarch64/instructions/ldapr.rb +1 -1
  81. data/lib/aarch64/instructions/ldaprb.rb +1 -1
  82. data/lib/aarch64/instructions/ldaprh.rb +1 -1
  83. data/lib/aarch64/instructions/ldapur_gen.rb +1 -1
  84. data/lib/aarch64/instructions/ldar.rb +1 -1
  85. data/lib/aarch64/instructions/ldaxp.rb +1 -1
  86. data/lib/aarch64/instructions/ldaxr.rb +1 -1
  87. data/lib/aarch64/instructions/ldclr.rb +1 -1
  88. data/lib/aarch64/instructions/ldclrb.rb +1 -1
  89. data/lib/aarch64/instructions/ldeor.rb +1 -1
  90. data/lib/aarch64/instructions/ldg.rb +1 -1
  91. data/lib/aarch64/instructions/ldgm.rb +1 -1
  92. data/lib/aarch64/instructions/ldlar.rb +1 -1
  93. data/lib/aarch64/instructions/ldnp_gen.rb +1 -1
  94. data/lib/aarch64/instructions/ldp_gen.rb +1 -1
  95. data/lib/aarch64/instructions/ldpsw.rb +1 -1
  96. data/lib/aarch64/instructions/ldr_imm_gen.rb +1 -1
  97. data/lib/aarch64/instructions/ldr_imm_unsigned.rb +1 -1
  98. data/lib/aarch64/instructions/ldr_lit_gen.rb +2 -2
  99. data/lib/aarch64/instructions/ldr_reg_gen.rb +1 -1
  100. data/lib/aarch64/instructions/ldra.rb +1 -1
  101. data/lib/aarch64/instructions/ldrb_imm.rb +1 -1
  102. data/lib/aarch64/instructions/ldrb_reg.rb +1 -1
  103. data/lib/aarch64/instructions/ldrb_unsigned.rb +1 -1
  104. data/lib/aarch64/instructions/ldrh_imm.rb +1 -1
  105. data/lib/aarch64/instructions/ldrh_reg.rb +1 -1
  106. data/lib/aarch64/instructions/ldrh_unsigned.rb +1 -1
  107. data/lib/aarch64/instructions/ldrsb_imm.rb +1 -1
  108. data/lib/aarch64/instructions/ldrsb_reg.rb +1 -1
  109. data/lib/aarch64/instructions/ldrsb_unsigned.rb +1 -1
  110. data/lib/aarch64/instructions/ldrsh_imm.rb +1 -1
  111. data/lib/aarch64/instructions/ldrsh_reg.rb +1 -1
  112. data/lib/aarch64/instructions/ldrsh_unsigned.rb +1 -1
  113. data/lib/aarch64/instructions/ldrsw_imm.rb +1 -1
  114. data/lib/aarch64/instructions/ldrsw_lit.rb +2 -2
  115. data/lib/aarch64/instructions/ldrsw_reg.rb +1 -1
  116. data/lib/aarch64/instructions/ldrsw_unsigned.rb +1 -1
  117. data/lib/aarch64/instructions/ldset.rb +1 -1
  118. data/lib/aarch64/instructions/ldsetb.rb +1 -1
  119. data/lib/aarch64/instructions/ldseth.rb +1 -1
  120. data/lib/aarch64/instructions/ldsmax.rb +1 -1
  121. data/lib/aarch64/instructions/ldsmaxb.rb +1 -1
  122. data/lib/aarch64/instructions/ldsmaxh.rb +1 -1
  123. data/lib/aarch64/instructions/ldsmin.rb +1 -1
  124. data/lib/aarch64/instructions/ldsminb.rb +1 -1
  125. data/lib/aarch64/instructions/ldsminh.rb +1 -1
  126. data/lib/aarch64/instructions/ldtr.rb +1 -1
  127. data/lib/aarch64/instructions/ldtrb.rb +1 -1
  128. data/lib/aarch64/instructions/ldtrh.rb +1 -1
  129. data/lib/aarch64/instructions/ldtrsb.rb +1 -1
  130. data/lib/aarch64/instructions/ldtrsh.rb +1 -1
  131. data/lib/aarch64/instructions/ldtrsw.rb +1 -1
  132. data/lib/aarch64/instructions/ldumax.rb +1 -1
  133. data/lib/aarch64/instructions/ldumaxb.rb +1 -1
  134. data/lib/aarch64/instructions/ldumaxh.rb +1 -1
  135. data/lib/aarch64/instructions/ldumin.rb +1 -1
  136. data/lib/aarch64/instructions/lduminb.rb +1 -1
  137. data/lib/aarch64/instructions/lduminh.rb +1 -1
  138. data/lib/aarch64/instructions/ldur_gen.rb +1 -1
  139. data/lib/aarch64/instructions/ldursb.rb +1 -1
  140. data/lib/aarch64/instructions/ldursh.rb +1 -1
  141. data/lib/aarch64/instructions/ldursw.rb +1 -1
  142. data/lib/aarch64/instructions/ldxp.rb +1 -1
  143. data/lib/aarch64/instructions/ldxr.rb +1 -1
  144. data/lib/aarch64/instructions/lslv.rb +1 -1
  145. data/lib/aarch64/instructions/lsrv.rb +1 -1
  146. data/lib/aarch64/instructions/madd.rb +1 -1
  147. data/lib/aarch64/instructions/movk.rb +1 -1
  148. data/lib/aarch64/instructions/movn.rb +1 -1
  149. data/lib/aarch64/instructions/movz.rb +1 -1
  150. data/lib/aarch64/instructions/mrs.rb +1 -1
  151. data/lib/aarch64/instructions/msr_imm.rb +1 -1
  152. data/lib/aarch64/instructions/msr_reg.rb +1 -1
  153. data/lib/aarch64/instructions/msub.rb +1 -1
  154. data/lib/aarch64/instructions/nop.rb +1 -1
  155. data/lib/aarch64/instructions/orn_log_shift.rb +1 -1
  156. data/lib/aarch64/instructions/orr_log_imm.rb +1 -1
  157. data/lib/aarch64/instructions/orr_log_shift.rb +1 -1
  158. data/lib/aarch64/instructions/pacda.rb +1 -1
  159. data/lib/aarch64/instructions/pacdb.rb +1 -1
  160. data/lib/aarch64/instructions/pacga.rb +1 -1
  161. data/lib/aarch64/instructions/pacia.rb +1 -1
  162. data/lib/aarch64/instructions/pacia2.rb +1 -1
  163. data/lib/aarch64/instructions/pacib.rb +1 -1
  164. data/lib/aarch64/instructions/prfm_imm.rb +1 -1
  165. data/lib/aarch64/instructions/prfm_lit.rb +2 -2
  166. data/lib/aarch64/instructions/prfm_reg.rb +1 -1
  167. data/lib/aarch64/instructions/prfum.rb +1 -1
  168. data/lib/aarch64/instructions/psb.rb +1 -1
  169. data/lib/aarch64/instructions/rbit_int.rb +1 -1
  170. data/lib/aarch64/instructions/ret.rb +1 -1
  171. data/lib/aarch64/instructions/reta.rb +1 -1
  172. data/lib/aarch64/instructions/rev.rb +1 -1
  173. data/lib/aarch64/instructions/rmif.rb +1 -1
  174. data/lib/aarch64/instructions/rorv.rb +1 -1
  175. data/lib/aarch64/instructions/sb.rb +1 -1
  176. data/lib/aarch64/instructions/sbc.rb +1 -1
  177. data/lib/aarch64/instructions/sbcs.rb +1 -1
  178. data/lib/aarch64/instructions/sbfm.rb +1 -1
  179. data/lib/aarch64/instructions/sdiv.rb +1 -1
  180. data/lib/aarch64/instructions/setf.rb +1 -1
  181. data/lib/aarch64/instructions/sev.rb +1 -1
  182. data/lib/aarch64/instructions/sevl.rb +1 -1
  183. data/lib/aarch64/instructions/smaddl.rb +1 -1
  184. data/lib/aarch64/instructions/smc.rb +1 -1
  185. data/lib/aarch64/instructions/smsubl.rb +1 -1
  186. data/lib/aarch64/instructions/smulh.rb +1 -1
  187. data/lib/aarch64/instructions/st2g.rb +1 -1
  188. data/lib/aarch64/instructions/st64b.rb +1 -1
  189. data/lib/aarch64/instructions/st64bv.rb +1 -1
  190. data/lib/aarch64/instructions/st64bv0.rb +1 -1
  191. data/lib/aarch64/instructions/stg.rb +1 -1
  192. data/lib/aarch64/instructions/stgm.rb +1 -1
  193. data/lib/aarch64/instructions/stgp.rb +1 -1
  194. data/lib/aarch64/instructions/stllr.rb +1 -1
  195. data/lib/aarch64/instructions/stllrb.rb +1 -1
  196. data/lib/aarch64/instructions/stllrh.rb +1 -1
  197. data/lib/aarch64/instructions/stlr.rb +1 -1
  198. data/lib/aarch64/instructions/stlrb.rb +1 -1
  199. data/lib/aarch64/instructions/stlrh.rb +1 -1
  200. data/lib/aarch64/instructions/stlur_gen.rb +1 -1
  201. data/lib/aarch64/instructions/stlxp.rb +1 -1
  202. data/lib/aarch64/instructions/stlxr.rb +1 -1
  203. data/lib/aarch64/instructions/stlxrb.rb +1 -1
  204. data/lib/aarch64/instructions/stlxrh.rb +1 -1
  205. data/lib/aarch64/instructions/stnp_gen.rb +1 -1
  206. data/lib/aarch64/instructions/stp_gen.rb +1 -1
  207. data/lib/aarch64/instructions/str_imm_gen.rb +1 -1
  208. data/lib/aarch64/instructions/str_imm_unsigned.rb +1 -1
  209. data/lib/aarch64/instructions/str_reg_gen.rb +1 -1
  210. data/lib/aarch64/instructions/strb_imm.rb +1 -1
  211. data/lib/aarch64/instructions/strb_imm_unsigned.rb +1 -1
  212. data/lib/aarch64/instructions/strb_reg.rb +1 -1
  213. data/lib/aarch64/instructions/strh_imm.rb +1 -1
  214. data/lib/aarch64/instructions/strh_imm_unsigned.rb +1 -1
  215. data/lib/aarch64/instructions/strh_reg.rb +1 -1
  216. data/lib/aarch64/instructions/sttr.rb +1 -1
  217. data/lib/aarch64/instructions/stur_gen.rb +1 -1
  218. data/lib/aarch64/instructions/stxp.rb +1 -1
  219. data/lib/aarch64/instructions/stxr.rb +1 -1
  220. data/lib/aarch64/instructions/stxrb.rb +1 -1
  221. data/lib/aarch64/instructions/stxrh.rb +1 -1
  222. data/lib/aarch64/instructions/stz2g.rb +1 -1
  223. data/lib/aarch64/instructions/stzg.rb +1 -1
  224. data/lib/aarch64/instructions/stzgm.rb +1 -1
  225. data/lib/aarch64/instructions/sub_addsub_ext.rb +1 -1
  226. data/lib/aarch64/instructions/sub_addsub_imm.rb +1 -1
  227. data/lib/aarch64/instructions/sub_addsub_shift.rb +1 -1
  228. data/lib/aarch64/instructions/subg.rb +1 -1
  229. data/lib/aarch64/instructions/subp.rb +1 -1
  230. data/lib/aarch64/instructions/subps.rb +1 -1
  231. data/lib/aarch64/instructions/subs_addsub_ext.rb +1 -1
  232. data/lib/aarch64/instructions/subs_addsub_imm.rb +1 -1
  233. data/lib/aarch64/instructions/subs_addsub_shift.rb +1 -1
  234. data/lib/aarch64/instructions/svc.rb +1 -1
  235. data/lib/aarch64/instructions/swp.rb +1 -1
  236. data/lib/aarch64/instructions/swpb.rb +1 -1
  237. data/lib/aarch64/instructions/swph.rb +1 -1
  238. data/lib/aarch64/instructions/sys.rb +1 -1
  239. data/lib/aarch64/instructions/sysl.rb +1 -1
  240. data/lib/aarch64/instructions/tbnz.rb +2 -2
  241. data/lib/aarch64/instructions/tbz.rb +2 -2
  242. data/lib/aarch64/instructions/tsb.rb +1 -1
  243. data/lib/aarch64/instructions/ubfm.rb +1 -1
  244. data/lib/aarch64/instructions/udf_perm_undef.rb +1 -1
  245. data/lib/aarch64/instructions/udiv.rb +1 -1
  246. data/lib/aarch64/instructions/umaddl.rb +1 -1
  247. data/lib/aarch64/instructions/umsubl.rb +1 -1
  248. data/lib/aarch64/instructions/umulh.rb +1 -1
  249. data/lib/aarch64/instructions/wfe.rb +1 -1
  250. data/lib/aarch64/instructions/wfet.rb +1 -1
  251. data/lib/aarch64/instructions/wfi.rb +1 -1
  252. data/lib/aarch64/instructions/wfit.rb +1 -1
  253. data/lib/aarch64/instructions/xaflag.rb +1 -1
  254. data/lib/aarch64/instructions/xpac.rb +1 -1
  255. data/lib/aarch64/instructions/xpaclri.rb +1 -1
  256. data/lib/aarch64/instructions/yield.rb +1 -1
  257. data/lib/aarch64/instructions.rb +6 -2
  258. data/lib/aarch64/parser.rb +1 -1
  259. data/lib/aarch64/parser.tab.rb +223 -215
  260. data/lib/aarch64/parser.y +41 -31
  261. data/lib/aarch64/utils.rb +12 -1
  262. data/lib/aarch64/version.rb +1 -1
  263. data/lib/aarch64.rb +22 -11
  264. data/test/base_instructions_test.rb +58 -0
  265. data/test/helper.rb +2 -0
  266. metadata +3 -3
@@ -10,7 +10,7 @@ module AArch64
10
10
  @imm9 = check_mask(imm9, 0x1ff)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  LDTRB(@imm9, @rn, @rt)
15
15
  end
16
16
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @imm9 = check_mask(imm9, 0x1ff)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  LDTRH(@imm9, @rn, @rt)
15
15
  end
16
16
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @opc = check_mask(opc, 0x03)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LDTRSB(@opc, @imm9, @rn, @rt)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @opc = check_mask(opc, 0x03)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LDTRSH(@opc, @imm9, @rn, @rt)
17
17
  end
18
18
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @imm9 = check_mask(imm9, 0x1ff)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  LDTRSW(@imm9, @rn, @rt)
15
15
  end
16
16
 
@@ -20,7 +20,7 @@ module AArch64
20
20
  @r = check_mask(r, 0x01)
21
21
  end
22
22
 
23
- def encode
23
+ def encode _
24
24
  LDUMAX(@size, @a, @r, @rs, @rn, @rt)
25
25
  end
26
26
 
@@ -15,7 +15,7 @@ module AArch64
15
15
  @r = check_mask(r, 0x01)
16
16
  end
17
17
 
18
- def encode
18
+ def encode _
19
19
  LDUMAXB(@a, @r, @rs, @rn, @rt)
20
20
  end
21
21
 
@@ -15,7 +15,7 @@ module AArch64
15
15
  @r = check_mask(r, 0x01)
16
16
  end
17
17
 
18
- def encode
18
+ def encode _
19
19
  LDUMAXH(@a, @r, @rs, @rn, @rt)
20
20
  end
21
21
 
@@ -20,7 +20,7 @@ module AArch64
20
20
  @r = check_mask(r, 0x01)
21
21
  end
22
22
 
23
- def encode
23
+ def encode _
24
24
  LDUMIN(@size, @a, @r, @rs, @rn, @rt)
25
25
  end
26
26
 
@@ -15,7 +15,7 @@ module AArch64
15
15
  @r = check_mask(r, 0x01)
16
16
  end
17
17
 
18
- def encode
18
+ def encode _
19
19
  LDUMINB(@a, @r, @rs, @rn, @rt)
20
20
  end
21
21
 
@@ -15,7 +15,7 @@ module AArch64
15
15
  @r = check_mask(r, 0x01)
16
16
  end
17
17
 
18
- def encode
18
+ def encode _
19
19
  LDUMINH(@a, @r, @rs, @rn, @rt)
20
20
  end
21
21
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @size = check_mask(size, 0x03)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LDUR_gen(@size, @imm9, @rn, @rt)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @opc = check_mask(opc, 0x03)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LDURSB(@opc, @imm9, @rn, @rt)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @opc = check_mask(opc, 0x03)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LDURSH(@opc, @imm9, @rn, @rt)
17
17
  end
18
18
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @imm9 = check_mask(imm9, 0x1ff)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  LDURSW(@imm9, @rn, @rt)
15
15
  end
16
16
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sz = check_mask(sz, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LDXP(@sz, @rt2, @rn, @rt)
17
17
  end
18
18
 
@@ -11,7 +11,7 @@ module AArch64
11
11
  @size = check_mask(size, 0x03)
12
12
  end
13
13
 
14
- def encode
14
+ def encode _
15
15
  LDXR(@size, @rn, @rt)
16
16
  end
17
17
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LSLV(@sf, @rm, @rn, @rd)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  LSRV(@sf, @rm, @rn, @rd)
17
17
  end
18
18
 
@@ -13,7 +13,7 @@ module AArch64
13
13
  @sf = check_mask(sf, 0x01)
14
14
  end
15
15
 
16
- def encode
16
+ def encode _
17
17
  MADD(@sf, @rm, @ra, @rn, @rd)
18
18
  end
19
19
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  MOVK(@sf, @shift, @imm, @reg)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  MOVN(@sf, @hw, @imm16, @rd)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  MOVZ(@sf, @shift, @imm, @reg)
17
17
  end
18
18
 
@@ -13,7 +13,7 @@ module AArch64
13
13
  @rt = check_mask(rt, 0x1f)
14
14
  end
15
15
 
16
- def encode
16
+ def encode _
17
17
  MRS(@o0, @op1, @crn, @crm, @op2, @rt)
18
18
  end
19
19
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @op2 = check_mask(op2, 0x07)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  MSR_imm(@op1, @crm, @op2)
15
15
  end
16
16
 
@@ -13,7 +13,7 @@ module AArch64
13
13
  @rt = check_mask(rt, 0x1f)
14
14
  end
15
15
 
16
- def encode
16
+ def encode _
17
17
  MSR_reg(@o0, @op1, @crn, @crm, @op2, @rt)
18
18
  end
19
19
 
@@ -13,7 +13,7 @@ module AArch64
13
13
  @sf = check_mask(sf, 0x01)
14
14
  end
15
15
 
16
- def encode
16
+ def encode _
17
17
  MSUB(@sf, @rm, @ra, @rn, @rd)
18
18
  end
19
19
 
@@ -4,7 +4,7 @@ module AArch64
4
4
  # No Operation
5
5
  # NOP
6
6
  class NOP < Instruction
7
- def encode
7
+ def encode _
8
8
  0b1101010100_0_00_011_0010_0000_000_11111
9
9
  end
10
10
  end
@@ -14,7 +14,7 @@ module AArch64
14
14
  @sf = check_mask(sf, 0x01)
15
15
  end
16
16
 
17
- def encode
17
+ def encode _
18
18
  ORN_log_shift(@sf, @shift, @rm, @imm6, @rn, @rd)
19
19
  end
20
20
 
@@ -14,7 +14,7 @@ module AArch64
14
14
  @sf = check_mask(sf, 0x01)
15
15
  end
16
16
 
17
- def encode
17
+ def encode _
18
18
  ORR_log_imm(@sf, @n, @immr, @imms, @rn, @rd)
19
19
  end
20
20
 
@@ -14,7 +14,7 @@ module AArch64
14
14
  @sf = check_mask(sf, 0x01)
15
15
  end
16
16
 
17
- def encode
17
+ def encode _
18
18
  ORR_log_shift(@sf, @shift, @rm, @imm6, @rn, @rd)
19
19
  end
20
20
 
@@ -11,7 +11,7 @@ module AArch64
11
11
  @z = check_mask(z, 0x01)
12
12
  end
13
13
 
14
- def encode
14
+ def encode _
15
15
  PACDA(@z, @rn, @rd)
16
16
  end
17
17
 
@@ -11,7 +11,7 @@ module AArch64
11
11
  @z = check_mask(z, 0x01)
12
12
  end
13
13
 
14
- def encode
14
+ def encode _
15
15
  PACDB(@z, @rn, @rd)
16
16
  end
17
17
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @rm = check_mask(rm, 0x1f)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  PACGA(@rm, @rn, @rd)
15
15
  end
16
16
 
@@ -14,7 +14,7 @@ module AArch64
14
14
  @z = check_mask(z, 0x01)
15
15
  end
16
16
 
17
- def encode
17
+ def encode _
18
18
  PACIA(@z, @rn, @rd)
19
19
  end
20
20
 
@@ -11,7 +11,7 @@ module AArch64
11
11
  @op2 = check_mask(op2, 0x07)
12
12
  end
13
13
 
14
- def encode
14
+ def encode _
15
15
  PACIA2(@crm, @op2)
16
16
  end
17
17
 
@@ -14,7 +14,7 @@ module AArch64
14
14
  @z = check_mask(z, 0x01)
15
15
  end
16
16
 
17
- def encode
17
+ def encode _
18
18
  PACIB(@z, @rn, @rd)
19
19
  end
20
20
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @imm12 = check_mask(imm12, 0xfff)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  PRFM_imm(@imm12, @rn, @rt)
15
15
  end
16
16
 
@@ -9,8 +9,8 @@ module AArch64
9
9
  @rt = check_mask(rt, 0x1f)
10
10
  end
11
11
 
12
- def encode
13
- PRFM_lit(check_mask(unwrap_label(@label), 0x7ffff), @rt)
12
+ def encode pos
13
+ PRFM_lit(check_mask(unwrap_label(@label, pos), 0x7ffff), @rt)
14
14
  end
15
15
 
16
16
  private
@@ -12,7 +12,7 @@ module AArch64
12
12
  @s = check_mask(s, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  PRFM_reg(@rm, @option, @s, @rn, @rt)
17
17
  end
18
18
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @imm9 = check_mask(imm9, 0x1ff)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  PRFUM(@imm9, @rn, @rt)
15
15
  end
16
16
 
@@ -4,7 +4,7 @@ module AArch64
4
4
  # Profiling Synchronization Barrier
5
5
  # PSB CSYNC
6
6
  class PSB < Instruction
7
- def encode
7
+ def encode _
8
8
  0b1101010100_0_00_011_0010_0010_001_11111
9
9
  end
10
10
  end
@@ -11,7 +11,7 @@ module AArch64
11
11
  @sf = check_mask(sf, 0x01)
12
12
  end
13
13
 
14
- def encode
14
+ def encode _
15
15
  RBIT_int(@sf, @rn, @rd)
16
16
  end
17
17
 
@@ -8,7 +8,7 @@ module AArch64
8
8
  @reg = check_mask(reg, 0x1f)
9
9
  end
10
10
 
11
- def encode
11
+ def encode _
12
12
  RET(@reg)
13
13
  end
14
14
 
@@ -9,7 +9,7 @@ module AArch64
9
9
  @m = check_mask(m, 0x01)
10
10
  end
11
11
 
12
- def encode
12
+ def encode _
13
13
  RETA(@m)
14
14
  end
15
15
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @opc = check_mask(opc, 0x03)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  REV(@sf, @rn, @rd, @opc)
17
17
  end
18
18
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @mask = check_mask(mask, 0x0f)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  RMIF(@imm6, @rn, @mask)
15
15
  end
16
16
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  RORV(@sf, @rm, @rn, @rd)
17
17
  end
18
18
 
@@ -4,7 +4,7 @@ module AArch64
4
4
  # Speculation Barrier
5
5
  # SB
6
6
  class SB < Instruction
7
- def encode
7
+ def encode _
8
8
  0b1101010100_0_00_011_0011_0000_1_11_11111
9
9
  end
10
10
  end
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  SBC(@sf, @rm, @rn, @rd)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  SBCS(@sf, @rm, @rn, @rd)
17
17
  end
18
18
 
@@ -13,7 +13,7 @@ module AArch64
13
13
  @sf = check_mask(sf, 0x01)
14
14
  end
15
15
 
16
- def encode
16
+ def encode _
17
17
  SBFM(@sf, @sf, @immr, @imms, @rn, @rd)
18
18
  end
19
19
 
@@ -12,7 +12,7 @@ module AArch64
12
12
  @sf = check_mask(sf, 0x01)
13
13
  end
14
14
 
15
- def encode
15
+ def encode _
16
16
  SDIV(@sf, @rm, @rn, @rd)
17
17
  end
18
18
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @sz = check_mask(sz, 0x01)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  SETF(@sz, @rn)
15
15
  end
16
16
 
@@ -4,7 +4,7 @@ module AArch64
4
4
  # Send Event
5
5
  # SEV
6
6
  class SEV < Instruction
7
- def encode
7
+ def encode _
8
8
  0b1101010100_0_00_011_0010_0000_100_11111
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module AArch64
4
4
  # Send Event Local
5
5
  # SEVL
6
6
  class SEVL < Instruction
7
- def encode
7
+ def encode _
8
8
  0b1101010100_0_00_011_0010_0000_101_11111
9
9
  end
10
10
  end
@@ -11,7 +11,7 @@ module AArch64
11
11
  @ra = check_mask(ra, 0x1f)
12
12
  end
13
13
 
14
- def encode
14
+ def encode _
15
15
  SMADDL(@rm, @ra, @rn, @rd)
16
16
  end
17
17
 
@@ -8,7 +8,7 @@ module AArch64
8
8
  @imm16 = check_mask(imm16, 0xffff)
9
9
  end
10
10
 
11
- def encode
11
+ def encode _
12
12
  SMC(@imm16)
13
13
  end
14
14
 
@@ -11,7 +11,7 @@ module AArch64
11
11
  @ra = check_mask(ra, 0x1f)
12
12
  end
13
13
 
14
- def encode
14
+ def encode _
15
15
  SMSUBL(@rm, @ra, @rn, @rd)
16
16
  end
17
17
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @rm = check_mask(rm, 0x1f)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  SMULH(@rm, @rn, @rd)
15
15
  end
16
16
 
@@ -13,7 +13,7 @@ module AArch64
13
13
  @option = check_mask(option, 0x03)
14
14
  end
15
15
 
16
- def encode
16
+ def encode _
17
17
  ST2G(@imm9, @option, @xn, @xt)
18
18
  end
19
19
 
@@ -9,7 +9,7 @@ module AArch64
9
9
  @rn = check_mask(rn, 0x1f)
10
10
  end
11
11
 
12
- def encode
12
+ def encode _
13
13
  ST64B(@rn, @rt)
14
14
  end
15
15
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @rn = check_mask(rn, 0x1f)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  ST64BV(@rs, @rn, @rt)
15
15
  end
16
16
 
@@ -10,7 +10,7 @@ module AArch64
10
10
  @rn = check_mask(rn, 0x1f)
11
11
  end
12
12
 
13
- def encode
13
+ def encode _
14
14
  ST64BV0(@rs, @rn, @rt)
15
15
  end
16
16