Skip to content

Commit

Permalink
Complete data directive listing and remove incorrect alignment
Browse files Browse the repository at this point in the history
As discussed in riscv-non-isa#12, none of the data directives imply alignment. This
pull request removes that incorrect statement and adds further data
directives supported by both gas and LLVM MC.

Closes riscv-non-isa#12.
  • Loading branch information
asb committed May 17, 2018
1 parent d7347cc commit 5a075f4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions riscv-asm.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,16 @@ Directive | Arguments | Description
.endm | | end macro definition
.type | symbol, @function | accepted for source compatibility
.option | {rvc,norvc,pic,nopic,push,pop} | RISC-V options
.byte | | 8-bit comma separated words
.2byte | expression [, expression]* | 16-bit comma separated words (unaligned)
.4byte | expression [, expression]* | 32-bit comma separated words (unaligned)
.8byte | expression [, expression]* | 64-bit comma separated words (unaligned)
.half | expression [, expression]* | 16-bit comma separated words (naturally aligned)
.word | expression [, expression]* | 32-bit comma separated words (naturally aligned)
.dword | expression [, expression]* | 64-bit comma separated words (naturally aligned)
.byte | expression [, expression]* | 8-bit comma separated words
.2byte | expression [, expression]* | 16-bit comma separated words
.half | expression [, expression]* | 16-bit comma separated words
.short | expression [, expression]* | 16-bit comma separated words
.4byte | expression [, expression]* | 32-bit comma separated words
.word | expression [, expression]* | 32-bit comma separated words
.long | expression [, expression]* | 32-bit comma separated words
.8byte | expression [, expression]* | 64-bit comma separated words
.dword | expression [, expression]* | 64-bit comma separated words
.quad | expression [, expression]* | 64-bit comma separated words
.dtprelword | expression [, expression]* | 32-bit thread local word
.dtpreldword | expression [, expression]* | 64-bit thread local word
.sleb128 | expression | signed little endian base 128, DWARF
Expand Down

0 comments on commit 5a075f4

Please sign in to comment.