diff options
| author | Richard Miller <miller.research@gmail.com> | 2020-11-09 11:36:14 +0000 |
|---|---|---|
| committer | Richard Miller <miller.research@gmail.com> | 2020-11-09 11:36:14 +0000 |
| commit | 6e84dc968bc4eaf047fbefcba2f670940718dda8 (patch) | |
| tree | 523d2f81946b1e0abe4afddf1d2fce7e1525b7d7 /utils/ic/enam.c | |
| parent | 2a571cc0ece4073eb56d5ccfc3e061a09a353e13 (diff) | |
Add toolchain for riscv (ia ic il) and riscv64 (ja jc jl)
Because the rv64 ISA is very nearly a proper superset of rv32, the
compilers ic and jc are actually the same program, which compiles
to .i or .j depending on how it is invoked; similarly for ia/ja and
il/jl. It is also possible to invoke ia/ic/il with a '-j' option to
specify 64-bit behaviour.
Diffstat (limited to 'utils/ic/enam.c')
| -rw-r--r-- | utils/ic/enam.c | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/utils/ic/enam.c b/utils/ic/enam.c new file mode 100644 index 00000000..3c3fcbc1 --- /dev/null +++ b/utils/ic/enam.c @@ -0,0 +1,117 @@ +char* anames[] = +{ + "XXX", + "ADD", + "ADDW", + "AMO_D", + "AMO_W", + "AND", + "BEQ", + "BGE", + "BGEU", + "BLT", + "BLTU", + "BNE", + "CSRRC", + "CSRRCI", + "CSRRS", + "CSRRSI", + "CSRRW", + "CSRRWI", + "DIV", + "DIVU", + "DIVUW", + "DIVW", + "FENCE", + "FENCE_I", + "JAL", + "JALR", + "LR_D", + "LR_W", + "LUI", + "MOVB", + "MOVBU", + "MOVH", + "MOVHU", + "MOV", + "MOVW", + "MOVWU", + "MUL", + "MULH", + "MULHSU", + "MULHU", + "MULW", + "OR", + "REM", + "REMU", + "REMUW", + "REMW", + "SC_D", + "SC_W", + "SLL", + "SLLW", + "SLT", + "SLTU", + "SRA", + "SRAW", + "SRL", + "SRLW", + "SUB", + "SUBW", + "SWAP_D", + "SWAP_W", + "SYS", + "XOR", + "MOVF", + "MOVD", + "MOVFD", + "MOVDF", + "MOVWF", + "MOVUF", + "MOVFW", + "MOVWD", + "MOVUD", + "MOVDW", + "ADDF", + "ADDD", + "SUBF", + "SUBD", + "MULF", + "MULD", + "DIVF", + "DIVD", + "CMPLTF", + "CMPLTD", + "CMPEQF", + "CMPEQD", + "CMPLEF", + "CMPLED", + "BGT", + "BGTU", + "BLE", + "BLEU", + "SGT", + "SGTU", + "JMP", + "RET", + "NOP", + "DATA", + "GLOBL", + "GOK", + "HISTORY", + "NAME", + "TEXT", + "WORD", + "END", + "DYNT", + "INIT", + "SIGNAME", + "DWORD", + "MOVFV", + "MOVDV", + "MOVVF", + "MOVUVF", + "MOVVD", + "MOVUVD", + "LAST", +}; |
