aarch64 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/aarch64/instructions/adc.rb +1 -1
- data/lib/aarch64/instructions/adcs.rb +1 -1
- data/lib/aarch64/instructions/add_addsub_ext.rb +1 -1
- data/lib/aarch64/instructions/add_addsub_imm.rb +1 -1
- data/lib/aarch64/instructions/add_addsub_shift.rb +1 -1
- data/lib/aarch64/instructions/addg.rb +1 -1
- data/lib/aarch64/instructions/adds_addsub_ext.rb +1 -1
- data/lib/aarch64/instructions/adds_addsub_imm.rb +1 -1
- data/lib/aarch64/instructions/adds_addsub_shift.rb +1 -1
- data/lib/aarch64/instructions/adr.rb +7 -3
- data/lib/aarch64/instructions/adrp.rb +1 -1
- data/lib/aarch64/instructions/and_log_imm.rb +1 -1
- data/lib/aarch64/instructions/and_log_shift.rb +1 -1
- data/lib/aarch64/instructions/ands_log_imm.rb +1 -1
- data/lib/aarch64/instructions/ands_log_shift.rb +1 -1
- data/lib/aarch64/instructions/asrv.rb +1 -1
- data/lib/aarch64/instructions/autda.rb +1 -1
- data/lib/aarch64/instructions/autdb.rb +1 -1
- data/lib/aarch64/instructions/autia.rb +1 -1
- data/lib/aarch64/instructions/autib.rb +1 -1
- data/lib/aarch64/instructions/axflag.rb +1 -1
- data/lib/aarch64/instructions/b_cond.rb +2 -2
- data/lib/aarch64/instructions/b_uncond.rb +2 -2
- data/lib/aarch64/instructions/bc_cond.rb +2 -2
- data/lib/aarch64/instructions/bfm.rb +1 -1
- data/lib/aarch64/instructions/bic_log_shift.rb +1 -1
- data/lib/aarch64/instructions/bics.rb +1 -1
- data/lib/aarch64/instructions/bl.rb +2 -2
- data/lib/aarch64/instructions/blr.rb +1 -1
- data/lib/aarch64/instructions/blra.rb +1 -1
- data/lib/aarch64/instructions/br.rb +1 -1
- data/lib/aarch64/instructions/bra.rb +1 -1
- data/lib/aarch64/instructions/brk.rb +1 -1
- data/lib/aarch64/instructions/bti.rb +1 -1
- data/lib/aarch64/instructions/cas.rb +1 -1
- data/lib/aarch64/instructions/casb.rb +1 -1
- data/lib/aarch64/instructions/cash.rb +1 -1
- data/lib/aarch64/instructions/casp.rb +1 -1
- data/lib/aarch64/instructions/cbnz.rb +2 -2
- data/lib/aarch64/instructions/cbz.rb +2 -2
- data/lib/aarch64/instructions/ccmn_imm.rb +1 -1
- data/lib/aarch64/instructions/ccmn_reg.rb +1 -1
- data/lib/aarch64/instructions/ccmp_imm.rb +1 -1
- data/lib/aarch64/instructions/ccmp_reg.rb +1 -1
- data/lib/aarch64/instructions/cfinv.rb +1 -1
- data/lib/aarch64/instructions/clrex.rb +1 -1
- data/lib/aarch64/instructions/cls_int.rb +1 -1
- data/lib/aarch64/instructions/clz_int.rb +1 -1
- data/lib/aarch64/instructions/crc32.rb +1 -1
- data/lib/aarch64/instructions/crc32c.rb +1 -1
- data/lib/aarch64/instructions/csdb.rb +1 -1
- data/lib/aarch64/instructions/csel.rb +1 -1
- data/lib/aarch64/instructions/csinc.rb +1 -1
- data/lib/aarch64/instructions/csinv.rb +1 -1
- data/lib/aarch64/instructions/csneg.rb +1 -1
- data/lib/aarch64/instructions/dcps.rb +1 -1
- data/lib/aarch64/instructions/dgh.rb +1 -1
- data/lib/aarch64/instructions/dmb.rb +1 -1
- data/lib/aarch64/instructions/drps.rb +1 -1
- data/lib/aarch64/instructions/dsb.rb +1 -1
- data/lib/aarch64/instructions/eon.rb +1 -1
- data/lib/aarch64/instructions/eor_log_imm.rb +1 -1
- data/lib/aarch64/instructions/eor_log_shift.rb +1 -1
- data/lib/aarch64/instructions/eret.rb +1 -1
- data/lib/aarch64/instructions/ereta.rb +1 -1
- data/lib/aarch64/instructions/esb.rb +1 -1
- data/lib/aarch64/instructions/extr.rb +1 -1
- data/lib/aarch64/instructions/gmi.rb +1 -1
- data/lib/aarch64/instructions/hint.rb +1 -1
- data/lib/aarch64/instructions/hlt.rb +1 -1
- data/lib/aarch64/instructions/hvc.rb +1 -1
- data/lib/aarch64/instructions/irg.rb +1 -1
- data/lib/aarch64/instructions/isb.rb +1 -1
- data/lib/aarch64/instructions/ld64b.rb +1 -1
- data/lib/aarch64/instructions/ldadd.rb +1 -1
- data/lib/aarch64/instructions/ldaddb.rb +1 -1
- data/lib/aarch64/instructions/ldaddh.rb +1 -1
- data/lib/aarch64/instructions/ldapr.rb +1 -1
- data/lib/aarch64/instructions/ldaprb.rb +1 -1
- data/lib/aarch64/instructions/ldaprh.rb +1 -1
- data/lib/aarch64/instructions/ldapur_gen.rb +1 -1
- data/lib/aarch64/instructions/ldar.rb +1 -1
- data/lib/aarch64/instructions/ldaxp.rb +1 -1
- data/lib/aarch64/instructions/ldaxr.rb +1 -1
- data/lib/aarch64/instructions/ldclr.rb +1 -1
- data/lib/aarch64/instructions/ldclrb.rb +1 -1
- data/lib/aarch64/instructions/ldeor.rb +1 -1
- data/lib/aarch64/instructions/ldg.rb +1 -1
- data/lib/aarch64/instructions/ldgm.rb +1 -1
- data/lib/aarch64/instructions/ldlar.rb +1 -1
- data/lib/aarch64/instructions/ldnp_gen.rb +1 -1
- data/lib/aarch64/instructions/ldp_gen.rb +1 -1
- data/lib/aarch64/instructions/ldpsw.rb +1 -1
- data/lib/aarch64/instructions/ldr_imm_gen.rb +1 -1
- data/lib/aarch64/instructions/ldr_imm_unsigned.rb +1 -1
- data/lib/aarch64/instructions/ldr_lit_gen.rb +2 -2
- data/lib/aarch64/instructions/ldr_reg_gen.rb +1 -1
- data/lib/aarch64/instructions/ldra.rb +1 -1
- data/lib/aarch64/instructions/ldrb_imm.rb +1 -1
- data/lib/aarch64/instructions/ldrb_reg.rb +1 -1
- data/lib/aarch64/instructions/ldrb_unsigned.rb +1 -1
- data/lib/aarch64/instructions/ldrh_imm.rb +1 -1
- data/lib/aarch64/instructions/ldrh_reg.rb +1 -1
- data/lib/aarch64/instructions/ldrh_unsigned.rb +1 -1
- data/lib/aarch64/instructions/ldrsb_imm.rb +1 -1
- data/lib/aarch64/instructions/ldrsb_reg.rb +1 -1
- data/lib/aarch64/instructions/ldrsb_unsigned.rb +1 -1
- data/lib/aarch64/instructions/ldrsh_imm.rb +1 -1
- data/lib/aarch64/instructions/ldrsh_reg.rb +1 -1
- data/lib/aarch64/instructions/ldrsh_unsigned.rb +1 -1
- data/lib/aarch64/instructions/ldrsw_imm.rb +1 -1
- data/lib/aarch64/instructions/ldrsw_lit.rb +2 -2
- data/lib/aarch64/instructions/ldrsw_reg.rb +1 -1
- data/lib/aarch64/instructions/ldrsw_unsigned.rb +1 -1
- data/lib/aarch64/instructions/ldset.rb +1 -1
- data/lib/aarch64/instructions/ldsetb.rb +1 -1
- data/lib/aarch64/instructions/ldseth.rb +1 -1
- data/lib/aarch64/instructions/ldsmax.rb +1 -1
- data/lib/aarch64/instructions/ldsmaxb.rb +1 -1
- data/lib/aarch64/instructions/ldsmaxh.rb +1 -1
- data/lib/aarch64/instructions/ldsmin.rb +1 -1
- data/lib/aarch64/instructions/ldsminb.rb +1 -1
- data/lib/aarch64/instructions/ldsminh.rb +1 -1
- data/lib/aarch64/instructions/ldtr.rb +1 -1
- data/lib/aarch64/instructions/ldtrb.rb +1 -1
- data/lib/aarch64/instructions/ldtrh.rb +1 -1
- data/lib/aarch64/instructions/ldtrsb.rb +1 -1
- data/lib/aarch64/instructions/ldtrsh.rb +1 -1
- data/lib/aarch64/instructions/ldtrsw.rb +1 -1
- data/lib/aarch64/instructions/ldumax.rb +1 -1
- data/lib/aarch64/instructions/ldumaxb.rb +1 -1
- data/lib/aarch64/instructions/ldumaxh.rb +1 -1
- data/lib/aarch64/instructions/ldumin.rb +1 -1
- data/lib/aarch64/instructions/lduminb.rb +1 -1
- data/lib/aarch64/instructions/lduminh.rb +1 -1
- data/lib/aarch64/instructions/ldur_gen.rb +1 -1
- data/lib/aarch64/instructions/ldursb.rb +1 -1
- data/lib/aarch64/instructions/ldursh.rb +1 -1
- data/lib/aarch64/instructions/ldursw.rb +1 -1
- data/lib/aarch64/instructions/ldxp.rb +1 -1
- data/lib/aarch64/instructions/ldxr.rb +1 -1
- data/lib/aarch64/instructions/lslv.rb +1 -1
- data/lib/aarch64/instructions/lsrv.rb +1 -1
- data/lib/aarch64/instructions/madd.rb +1 -1
- data/lib/aarch64/instructions/movk.rb +1 -1
- data/lib/aarch64/instructions/movn.rb +1 -1
- data/lib/aarch64/instructions/movz.rb +1 -1
- data/lib/aarch64/instructions/mrs.rb +1 -1
- data/lib/aarch64/instructions/msr_imm.rb +1 -1
- data/lib/aarch64/instructions/msr_reg.rb +1 -1
- data/lib/aarch64/instructions/msub.rb +1 -1
- data/lib/aarch64/instructions/nop.rb +1 -1
- data/lib/aarch64/instructions/orn_log_shift.rb +1 -1
- data/lib/aarch64/instructions/orr_log_imm.rb +1 -1
- data/lib/aarch64/instructions/orr_log_shift.rb +1 -1
- data/lib/aarch64/instructions/pacda.rb +1 -1
- data/lib/aarch64/instructions/pacdb.rb +1 -1
- data/lib/aarch64/instructions/pacga.rb +1 -1
- data/lib/aarch64/instructions/pacia.rb +1 -1
- data/lib/aarch64/instructions/pacia2.rb +1 -1
- data/lib/aarch64/instructions/pacib.rb +1 -1
- data/lib/aarch64/instructions/prfm_imm.rb +1 -1
- data/lib/aarch64/instructions/prfm_lit.rb +2 -2
- data/lib/aarch64/instructions/prfm_reg.rb +1 -1
- data/lib/aarch64/instructions/prfum.rb +1 -1
- data/lib/aarch64/instructions/psb.rb +1 -1
- data/lib/aarch64/instructions/rbit_int.rb +1 -1
- data/lib/aarch64/instructions/ret.rb +1 -1
- data/lib/aarch64/instructions/reta.rb +1 -1
- data/lib/aarch64/instructions/rev.rb +1 -1
- data/lib/aarch64/instructions/rmif.rb +1 -1
- data/lib/aarch64/instructions/rorv.rb +1 -1
- data/lib/aarch64/instructions/sb.rb +1 -1
- data/lib/aarch64/instructions/sbc.rb +1 -1
- data/lib/aarch64/instructions/sbcs.rb +1 -1
- data/lib/aarch64/instructions/sbfm.rb +1 -1
- data/lib/aarch64/instructions/sdiv.rb +1 -1
- data/lib/aarch64/instructions/setf.rb +1 -1
- data/lib/aarch64/instructions/sev.rb +1 -1
- data/lib/aarch64/instructions/sevl.rb +1 -1
- data/lib/aarch64/instructions/smaddl.rb +1 -1
- data/lib/aarch64/instructions/smc.rb +1 -1
- data/lib/aarch64/instructions/smsubl.rb +1 -1
- data/lib/aarch64/instructions/smulh.rb +1 -1
- data/lib/aarch64/instructions/st2g.rb +1 -1
- data/lib/aarch64/instructions/st64b.rb +1 -1
- data/lib/aarch64/instructions/st64bv.rb +1 -1
- data/lib/aarch64/instructions/st64bv0.rb +1 -1
- data/lib/aarch64/instructions/stg.rb +1 -1
- data/lib/aarch64/instructions/stgm.rb +1 -1
- data/lib/aarch64/instructions/stgp.rb +1 -1
- data/lib/aarch64/instructions/stllr.rb +1 -1
- data/lib/aarch64/instructions/stllrb.rb +1 -1
- data/lib/aarch64/instructions/stllrh.rb +1 -1
- data/lib/aarch64/instructions/stlr.rb +1 -1
- data/lib/aarch64/instructions/stlrb.rb +1 -1
- data/lib/aarch64/instructions/stlrh.rb +1 -1
- data/lib/aarch64/instructions/stlur_gen.rb +1 -1
- data/lib/aarch64/instructions/stlxp.rb +1 -1
- data/lib/aarch64/instructions/stlxr.rb +1 -1
- data/lib/aarch64/instructions/stlxrb.rb +1 -1
- data/lib/aarch64/instructions/stlxrh.rb +1 -1
- data/lib/aarch64/instructions/stnp_gen.rb +1 -1
- data/lib/aarch64/instructions/stp_gen.rb +1 -1
- data/lib/aarch64/instructions/str_imm_gen.rb +1 -1
- data/lib/aarch64/instructions/str_imm_unsigned.rb +1 -1
- data/lib/aarch64/instructions/str_reg_gen.rb +1 -1
- data/lib/aarch64/instructions/strb_imm.rb +1 -1
- data/lib/aarch64/instructions/strb_imm_unsigned.rb +1 -1
- data/lib/aarch64/instructions/strb_reg.rb +1 -1
- data/lib/aarch64/instructions/strh_imm.rb +1 -1
- data/lib/aarch64/instructions/strh_imm_unsigned.rb +1 -1
- data/lib/aarch64/instructions/strh_reg.rb +1 -1
- data/lib/aarch64/instructions/sttr.rb +1 -1
- data/lib/aarch64/instructions/stur_gen.rb +1 -1
- data/lib/aarch64/instructions/stxp.rb +1 -1
- data/lib/aarch64/instructions/stxr.rb +1 -1
- data/lib/aarch64/instructions/stxrb.rb +1 -1
- data/lib/aarch64/instructions/stxrh.rb +1 -1
- data/lib/aarch64/instructions/stz2g.rb +1 -1
- data/lib/aarch64/instructions/stzg.rb +1 -1
- data/lib/aarch64/instructions/stzgm.rb +1 -1
- data/lib/aarch64/instructions/sub_addsub_ext.rb +1 -1
- data/lib/aarch64/instructions/sub_addsub_imm.rb +1 -1
- data/lib/aarch64/instructions/sub_addsub_shift.rb +1 -1
- data/lib/aarch64/instructions/subg.rb +1 -1
- data/lib/aarch64/instructions/subp.rb +1 -1
- data/lib/aarch64/instructions/subps.rb +1 -1
- data/lib/aarch64/instructions/subs_addsub_ext.rb +1 -1
- data/lib/aarch64/instructions/subs_addsub_imm.rb +1 -1
- data/lib/aarch64/instructions/subs_addsub_shift.rb +1 -1
- data/lib/aarch64/instructions/svc.rb +1 -1
- data/lib/aarch64/instructions/swp.rb +1 -1
- data/lib/aarch64/instructions/swpb.rb +1 -1
- data/lib/aarch64/instructions/swph.rb +1 -1
- data/lib/aarch64/instructions/sys.rb +1 -1
- data/lib/aarch64/instructions/sysl.rb +1 -1
- data/lib/aarch64/instructions/tbnz.rb +2 -2
- data/lib/aarch64/instructions/tbz.rb +2 -2
- data/lib/aarch64/instructions/tsb.rb +1 -1
- data/lib/aarch64/instructions/ubfm.rb +1 -1
- data/lib/aarch64/instructions/udf_perm_undef.rb +1 -1
- data/lib/aarch64/instructions/udiv.rb +1 -1
- data/lib/aarch64/instructions/umaddl.rb +1 -1
- data/lib/aarch64/instructions/umsubl.rb +1 -1
- data/lib/aarch64/instructions/umulh.rb +1 -1
- data/lib/aarch64/instructions/wfe.rb +1 -1
- data/lib/aarch64/instructions/wfet.rb +1 -1
- data/lib/aarch64/instructions/wfi.rb +1 -1
- data/lib/aarch64/instructions/wfit.rb +1 -1
- data/lib/aarch64/instructions/xaflag.rb +1 -1
- data/lib/aarch64/instructions/xpac.rb +1 -1
- data/lib/aarch64/instructions/xpaclri.rb +1 -1
- data/lib/aarch64/instructions/yield.rb +1 -1
- data/lib/aarch64/instructions.rb +6 -2
- data/lib/aarch64/parser.rb +1 -1
- data/lib/aarch64/parser.tab.rb +223 -215
- data/lib/aarch64/parser.y +41 -31
- data/lib/aarch64/utils.rb +12 -1
- data/lib/aarch64/version.rb +1 -1
- data/lib/aarch64.rb +22 -11
- data/test/base_instructions_test.rb +58 -0
- data/test/helper.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df38bc865f977ddb5498fa1616a56829303b3b6d34230b02cd9edf9af4a3c70e
|
4
|
+
data.tar.gz: 6161450d59e1e419f3e5935a2f213029e7fe68866bfaf0911520ae43465d7e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61bdd48efacc2d2425833351baf51c47f8170494857c8579e5cdd15d0763991fcbf2e277bef9819ae578e89c1535042411fc03304cb35f79c43741c066aa3144
|
7
|
+
data.tar.gz: 59a47c392685565777aadc2d970bb3dbfed4e3b5c70394e4f2116b9dd1410192fdf4917d9495472dca9b4ed3c300aed832648e760b745fc0d25bf3f46843ca78
|
data/README.md
CHANGED
@@ -9,9 +9,13 @@ module AArch64
|
|
9
9
|
@label = label
|
10
10
|
end
|
11
11
|
|
12
|
-
def encode
|
13
|
-
label = @label.
|
14
|
-
|
12
|
+
def encode position
|
13
|
+
label = if @label.immediate?
|
14
|
+
@label.unwrap_label
|
15
|
+
else
|
16
|
+
unwrap_label(@label, position) * 4
|
17
|
+
end
|
18
|
+
ADR(label & 0x3, check_mask(label >> 2, 0x7ffff), @xd)
|
15
19
|
end
|
16
20
|
|
17
21
|
private
|