Skip to content

Commit 1a1800c

Browse files
committed
Document constraint "s"
"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.
1 parent 84f4288 commit 1a1800c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

riscv-c-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ statements, including both RISC-V specific and common operand constraints.
559559
| I | 12-bit signed immediate integer operand | |
560560
| K | 5-bit unsigned immediate integer operand | |
561561
| J | Zero integer immediate operand | |
562+
| s | symbol or label reference with a constant offset | |
562563
| vr | Vector register | |
563564
| vd | Vector register, excluding v0 | |
564565
| vm | Vector register, only v0 | |

0 commit comments

Comments
 (0)