package asmgen
var ArchRISCV64 = &Arch{
Name: "riscv64",
WordBits: 64,
WordBytes: 8,
CarrySafeLoop: true,
regs: []string{
"X5", "X6", "X7", "X8", "X9",
"X10", "X11", "X12", "X13", "X14", "X15", "X16", "X17", "X18", "X19",
"X20", "X21", "X22", "X23", "X24", "X25", "X26",
"X30",
},
reg0: "X0",
regCarry: "X28",
regAltCarry: "X29",
regTmp: "X31",
mov: "MOV",
add: "ADD",
sub: "SUB",
mul: "MUL",
mulhi: "MULHU",
lsh: "SLL",
rsh: "SRL",
and: "AND",
or: "OR",
xor: "XOR",
sltu: "SLTU",
jmpZero: "BEQZ %s, %s",
jmpNonZero: "BNEZ %s, %s",
}
 |
The pages are generated with Golds v0.7.7-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |