Skip to content

Commit a50e913

Browse files
Pedro JustoPedro Justo
authored andcommitted
Fix description of paramter/result registers. x1, x8 and v1-v3 can also be result registers.
1 parent cc1de7e commit a50e913

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/build/arm64-windows-abi-conventions.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ The AArch64 architecture supports 32 integer registers:
6868

6969
| Register | Volatility | Role |
7070
| - | - | - |
71-
| x0 | Volatile | Parameter/scratch register 1, result register |
72-
| x1-x7 | Volatile | Parameter/scratch register 2-8 |
73-
| x8-x15 | Volatile | Scratch registers |
71+
| x0-x8 | Volatile | Parameter/Result scratch registers |
72+
| x9-x15 | Volatile | Scratch registers |
7473
| x16-x17 | Volatile | Intra-procedure-call scratch registers |
7574
| x18 | N/A | Reserved platform register: in kernel mode, points to KPCR for the current processor; In user mode, points to TEB |
7675
| x19-x28 | Non-volatile | Scratch registers |
@@ -91,8 +90,7 @@ The AArch64 architecture also supports 32 floating-point/SIMD registers, summari
9190

9291
| Register | Volatility | Role |
9392
| - | - | - |
94-
| v0 | Volatile | Parameter/scratch register 1, result register |
95-
| v1-v7 | Volatile | Parameter/scratch registers 2-8 |
93+
| v0-v7 | Volatile | Parameter/Result scratch registers |
9694
| v8-v15 | Both | Low 64 bits are Non-Volatile. High 64 bits are Volatile. |
9795
| v16-v31 | Volatile | Scratch registers |
9896

0 commit comments

Comments
 (0)