Skip to content

Commit 2872ecd

Browse files
authored
Merge pull request #2047 from JasonGross/directives
Add more directives
2 parents 7aa277a + 406a801 commit 2872ecd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Assembly/Parse.v

+8-2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Definition parse_OpCode_list : list (string * OpCode)
160160
(list_all OpCode)
161161
++ [(".byte", db)
162162
; (".word", dw)
163+
; (".short", dw)
163164
; (".long", dd)
164165
; (".int", dd)
165166
; (".quad", dq)].
@@ -195,15 +196,20 @@ Definition parse_RawLine {opts : assembly_program_options} : ParserAction RawLin
195196
then [(LABEL (substring 0 (pred (String.length s)) s), "")]
196197
else if (s =? "")
197198
then [(EMPTY, "")]
198-
else if (List.find (String.eqb (String.to_lower s))
199-
[".cfi_def_cfa_offset"
199+
else if (List.find (String.eqb (String.to_lower mnemonic))
200+
[".addrsig"
201+
; ".addrsig_sym"
202+
; ".cfi_def_cfa"
203+
; ".cfi_def_cfa_offset"
204+
; ".cfi_def_cfa_register"
200205
; ".cfi_endproc"
201206
; ".cfi_offset"
202207
; ".cfi_startproc"
203208
; ".file"
204209
; ".ident"
205210
; ".intel_syntax"
206211
; ".loc"
212+
; ".p2align"
207213
; ".size"
208214
; ".text"
209215
; ".type"

0 commit comments

Comments
 (0)