CMakeLists.txt | 9 + lib/compiler/test_runner.zig | 1 + lib/std/debug.zig | 1 + lib/std/lang.zig | 4 + lib/std/mem.zig | 1 + lib/std/os/linux.zig | 1 + lib/std/start.zig | 31 +- lib/std/testing.zig | 1 + lib/ubsan_rt.zig | 1 + src/Zcu.zig | 4 + src/codegen.zig | 12 +- src/codegen/loongarch.zig | 163 + src/codegen/loongarch/Assemble.zig | 255 + src/codegen/loongarch/Disassemble.zig | 220 + src/codegen/loongarch/Mir.zig | 275 + src/codegen/loongarch/Select.zig | 7518 ++++++++++++++++++ src/codegen/loongarch/bits.zig | 243 + src/codegen/loongarch/decode_tree.zon | 2817 +++++++ src/codegen/loongarch/encoding.zig | 13695 ++++++++++++++++++++++++++++++++ src/codegen/loongarch/inst_formats.zon | 11059 ++++++++++++++++++++++++++ src/dev.zig | 15 + src/target.zig | 4 +- tools/gen_loongarch_encoding.zig | 526 ++ tools/loongarch/OpcodeDesc.zig | 455 ++ tools/loongarch/decode_tree.zig | 149 + tools/loongarch/extra.txt | 9 + 26 files changed, 37466 insertions(+), 3 deletions(-)