Skip to content

Commit

Permalink
Document constraint "s"
Browse files Browse the repository at this point in the history
"s" can be used to create an artificial reference for linker garbage
collection, or define sections to hold symbol addresses. "S" does not
work for a preemptible symbol in GCC while "s" does.
  • Loading branch information
MaskRay committed Feb 1, 2024
1 parent 84f4288 commit 1a1800c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions riscv-c-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ statements, including both RISC-V specific and common operand constraints.
| I | 12-bit signed immediate integer operand | |
| K | 5-bit unsigned immediate integer operand | |
| J | Zero integer immediate operand | |
| s | symbol or label reference with a constant offset | |
| vr | Vector register | |
| vd | Vector register, excluding v0 | |
| vm | Vector register, only v0 | |
Expand Down

0 comments on commit 1a1800c

Please sign in to comment.