Actions
Feature #9950
closedSupport for different directives in text sections of test templates
Start date:
11/27/2019
Due date:
% Done:
0%
Estimated time:
Published in build:
2.5.0-beta-191226
Description
The list of the assembler directives should to my mind include:
1) Data types
.ascii .byte .half .word .dword etc
2) Alignment types
.balign
3) Options
.option <option_name>
Updated by Alexander Kamkin about 5 years ago
- Status changed from New to Open
- Target version set to 2.4
Updated by Mikhail Chupilko about 5 years ago
Data Directives in RISC-V (as presented in https://rv8.io/asm.html)
Directive | Arguments | Description |
---|---|---|
2byte | 16-bit comma separated words (unaligned) | |
4byte | 32-bit comma separated words (unaligned) | |
8byte | 64-bit comma separated words (unaligned) | |
half | 16-bit comma separated words (naturally aligned) | |
word | 32-bit comma separated words (naturally aligned) | |
dword | 64-bit comma separated words (naturally aligned) | |
byte | 8-bit comma separated words | |
dtpreldword | 64-bit thread local word | |
dtprelword | 32-bit thread local word | |
sleb128 | expression | signed little endian base 128, DWARF |
uleb128 | expression | unsigned little endian base 128, DWARF |
asciz | “string” | emit string (alias for .string) |
string | “string” | emit string |
incbin | “filename” | emit the included file as a binary sequence of octets |
zero | integer | zero bytes |
Alignment Directives
Directive | Arguments | Description |
---|---|---|
align | integer | align to power of 2 (alias for .p2align) |
balign | b,[pad_val=0] | byte align |
p2align | p2,[pad_val=0],max | align to power of 2 |
Other Directives
Directive | Arguments | Description |
---|---|---|
option | {rvc,norvc,pic,nopic,push,pop} | RISC-V options |
Updated by Alexander Kamkin about 5 years ago
- Category set to Template Processor
- Status changed from Open to Resolved
Updated by Alexander Kamkin almost 5 years ago
- Status changed from Resolved to Closed
- Target version changed from 2.4 to 2.5
- Published in build set to 2.5.0-beta-191226
Actions