Register

5-bit Encoding (rx)3-bit Compressed Encoding (rx’)RegisterABI NameDescriptionSaved by Calle-
0-x0zerohardwired zero-
1-x1rareturn address-R
2-x2spstack pointer-E
3-x3gpglobal pointer-
4-x4tpthread pointer-
5-x5t0temporary register 0-R
6-x6t1temporary register 1-R
7-x7t2temporary register 2-R
80x8s0 / fpsaved register 0 / frame pointer-E
91x9s1saved register 1-E
102x10a0function argument 0 / return value 0-R
113x11a1function argument 1 / return value 1-R
124x12a2function argument 2-R
135x13a3function argument 3-R
146x14a4function argument 4-R
157x15a5function argument 5-R
16-x16a6function argument 6-R
17-x17a7function argument 7-R
18-x18s2saved register 2-E
19-x19s3saved register 3-E
20-x20s4saved register 4-E
21-x21s5saved register 5-E
22-x22s6saved register 6-E
23-x23s7saved register 7-E
24-x24s8saved register 8-E
25-x25s9saved register 9-E
26-x26s10saved register 10-E
27-x27s11saved register 11-E
28-x28t3temporary register 3-R
29-x29t4temporary register 4-R
30-x30t5temporary register 5-R
31-x31t6temporary register 6-R