@@ -1439,6 +1439,7 @@ def encode(self):
14391439imm12_off  =  bs (l = 12 , fname = "imm" )
14401440
14411441imm2_noarg  =  bs (l = 2 , fname = "imm" )
1442+ imm3_noarg  =  bs (l = 3 , fname = "imm3" )
14421443imm4_noarg  =  bs (l = 4 , fname = "imm4" )
14431444
14441445
@@ -2431,6 +2432,7 @@ class arm_sp(arm_reg):
24312432armtop ("addsubi" , [bs ('000111' ),  bs_addsub_name , off3 , rsl , rdl ], [rdl , rsl , off3 ])
24322433armtop ("mcas" , [bs ('001' ), bs_mov_cmp_add_sub_name , rnl , off8 ])
24332434armtop ("alu" , [bs ('010000' ), bs_alu_name , rsl , rdl ], [rdl , rsl ])
2435+ 
24342436  # should not be used ?? 
24352437armtop ("hiregop00" , [bs ('010001' ), bs_hiregop_name , bs ('00' ), rsl , rdl ], [rdl , rsl ])
24362438armtop ("hiregop01" , [bs ('010001' ), bs_hiregop_name , bs ('01' ), rsh , rdl ], [rdl , rsh ])
@@ -3370,3 +3372,6 @@ def check_fbits(self, v):
33703372armtop ("dsb" ,  [bs ('111100111011' ), bs ('1111' ), bs ('1000' ), bs ('1111' ), bs ('0100' ), barrier_option ])
33713373
33723374armtop ("adr" , [bs ('11110' ), imm12_1 , bs ('100000' ), bs ('1111' ), bs ('0' ), imm12_3 , rd , imm12_8_t4 ], [rd , imm12_8_t4 ])
3375+ 
3376+ 
3377+ armtop ("teq" , [bs ('111010101001' ), rn_noarg , bs ('0' ), imm3_noarg , bs ('1111' ), imm2_noarg , imm_stype , rm_noarg ])
0 commit comments