Skip to content

Commit d138b68

Browse files
authored
Reformat directive lists
1 parent bc88b2b commit d138b68

File tree

1 file changed

+96
-99
lines changed

1 file changed

+96
-99
lines changed

src/inline-assembly.md

Lines changed: 96 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -486,127 +486,124 @@ The result of using other directives is assembler-specific (and may cause an err
486486

487487
The following directives are guaranteed to be supported by the assembler:
488488

489-
```as
490-
.2byte
491-
.4byte
492-
.8byte
493-
.byte
494-
.short
495-
.word
496-
.long
497-
.quad
498-
.float
499-
.double
500-
.octa
501-
.sleb128
502-
.uleb128
503-
.ascii
504-
.asciz
505-
.string
506-
.skip
507-
.space
508-
.balign
509-
.balignl
510-
.balignw
511-
.balign
512-
.balignl
513-
.balignw
514-
.fill
515-
.section
516-
.pushsection
517-
.popsection
518-
.text
519-
.bss
520-
.data
521-
.def
522-
.endef
523-
.scl
524-
.comm
525-
.lcomm
526-
.option
527-
.equ
528-
.set
529-
.align
530-
.inst
531-
```
489+
490+
- `.2byte`
491+
- `.4byte`
492+
- `.8byte`
493+
- `.byte`
494+
- `.short`
495+
- `.word`
496+
- `.long`
497+
- `.quad`
498+
- `.float`
499+
- `.double`
500+
- `.octa`
501+
- `.sleb128`
502+
- `.uleb128`
503+
- `.ascii`
504+
- `.asciz`
505+
- `.string`
506+
- `.skip`
507+
- `.space`
508+
- `.balign`
509+
- `.balignl`
510+
- `.balignw`
511+
- `.balign`
512+
- `.balignl`
513+
- `.balignw`
514+
- `.fill`
515+
- `.section`
516+
- `.pushsection`
517+
- `.popsection`
518+
- `.text`
519+
- `.bss`
520+
- `.data`
521+
- `.def`
522+
- `.endef`
523+
- `.scl`
524+
- `.comm`
525+
- `.lcomm`
526+
- `.option`
527+
- `.equ`
528+
- `.set`
529+
- `.align`
530+
- `.inst`
531+
532532

533533
The following directives are guaranteed to be supported for `global_asm` only:
534-
```as
535-
.alt_entry
536-
.private_extern
537-
.globl
538-
.global
539-
```
534+
535+
- `.alt_entry`
536+
- `.private_extern`
537+
- `.globl`
538+
- `.global`
539+
540540

541541
#### Target Specific Directive Support
542542

543543
##### Dwarf Unwinding
544544

545545
The following directives are supported on ELF targets that support DWARF unwind info:
546546

547-
```as
548-
.cfi_adjust_cfa_offset
549-
.cfi_def_cfa
550-
.cfi_def_cfa_offset
551-
.cfi_def_cfa_register
552-
.cfi_endproc
553-
.cfi_escape
554-
.cfi_lsda
555-
.cfi_offset
556-
.cfi_personality
557-
.cfi_register
558-
.cfi_rel_offset
559-
.cfi_remember_state
560-
.cfi_restore
561-
.cfi_restore_state
562-
.cfi_return_column
563-
.cfi_same_value
564-
.cfi_sections
565-
.cfi_signal_frame
566-
.cfi_startproc
567-
.cfi_undefined
568-
.cfi_window_save
569-
```
547+
548+
- `.cfi_adjust_cfa_offset`
549+
- `.cfi_def_cfa`
550+
- `.cfi_def_cfa_offset`
551+
- `.cfi_def_cfa_register`
552+
- `.cfi_endproc`
553+
- `.cfi_escape`
554+
- `.cfi_lsda`
555+
- `.cfi_offset`
556+
- `.cfi_personality`
557+
- `.cfi_register`
558+
- `.cfi_rel_offset`
559+
- `.cfi_remember_state`
560+
- `.cfi_restore`
561+
- `.cfi_restore_state`
562+
- `.cfi_return_column`
563+
- `.cfi_same_value`
564+
- `.cfi_sections`
565+
- `.cfi_signal_frame`
566+
- `.cfi_startproc`
567+
- `.cfi_undefined`
568+
- `.cfi_window_save`
569+
570570

571571
##### Structured Exception Handling
572572

573573
On targets with structured exception Handling, the following additional directives are guaranteed to be supported:
574-
```as
575-
.seh_endproc
576-
.seh_endprologue
577-
.seh_proc
578-
.seh_pushreg
579-
.seh_savereg
580-
.seh_setframe
581-
.seh_stackalloc
582-
```
574+
575+
- `.seh_endproc`
576+
- `.seh_endprologue`
577+
- `.seh_proc`
578+
- `.seh_pushreg`
579+
- `.seh_savereg`
580+
- `.seh_setframe`
581+
- `.seh_stackalloc`
582+
583583

584584
##### x86
585585

586586
On x86, the following additional directives are guaranteed to be supported:
587-
```as
588-
.nops
589-
```
587+
- `.nops`
590588

591589
On x86 for `global_asm!` only, the following additional directives are guaranteed to be supported (it is unspecified whether `.code16` or `.code32` are supported for `asm!()`):
592-
```as
593-
.code16
594-
.code32
595-
```
590+
591+
- `.code16`
592+
- `.code32`
593+
596594

597595
##### ARM
598596

599597
On ARM for `global_asm!` only, the following additional directives are guaranteed to be supported:
600-
```as
601-
.code
602-
.thumb
603-
.thumb_func
604-
```
598+
599+
- `.code`
600+
- `.thumb`
601+
- `.thumb_func`
602+
605603

606604
On ARM, the following additional directives are guaranteed to be supported:
607-
```as
608-
.fnstart
609-
.fnend
610-
.save
611-
.movsp
612-
```
605+
606+
- `.fnstart`
607+
- `.fnend`
608+
- `.save`
609+
- `.movsp`

0 commit comments

Comments
 (0)