search for: isa_mips3

Displaying 2 results from an estimated 2 matches for "isa_mips3".

2018 Sep 06
3
How to add Loongson ISA for Mips target?
Hi LLVM developers, GCC[1] is able to use Loongson ISA[2] for instruction selection: $ cat hello.c #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello World\n"); return 0; } $ gcc -O0 -S hello.c $ cat hello.s .file 1 "hello.c" .section .mdebug.abi64 .previous .nan legacy .gnu_attribute 4, 1 .abicalls
2018 Sep 06
2
How to add Loongson ISA for Mips target?
...supports different MIPS ISA like mips1, mips2, > mips3, mips32, mips32r6 etc. If Loongson ISA just add a few new > instructions I think you do not have to add a new subtarget. Take a > look at MipsInstrInfo.td file. In that file there are multiple > ISA_MIPSxxx classes. Take for example ISA_MIPS3 and search it through > *.td files. Here is an example of instruction definition specific to > mips3: > [[ > def DMTC1 : MTC1_FT<"dmtc1", FGR64Opnd, GPR64Opnd, II_DMTC1, > bitconvert>, MFC1_FM<5>, ISA_MIPS3; > ]] > > More general and comp...