LoongArch CPU Support Begins Landing In LLVM

Written by Michael Larabel in LLVM on 10 February 2022 at 05:50 AM EST. 5 Comments
LLVM
Hitting the LLVM 15.0 development tree this morning are the initial patches for China's LoongArch CPU architecture.

LoongArch is the new CPU architecture out of Loongson, the company long producing various MIPS64 chips for China's domestic PC market and working well under Linux. LoongArch is based on MIPS64 with some concepts from RISC-V and is China's effort to push along their domestic CPU manufacturing industry without being reliant on other sources.

The Loongson 3 5000 series is their first hardware supporting this ISA. As it stands with the initial hardware and software support, LoongArch performance isn't impressive at this point.

In recent months there has been a lot of work getting up LoongArch's compiler toolchain and Linux kernel support, even when it means in some areas just copying existing MIPS64 code


The milestone achieved today is initial LoongArch ISA support landing within the open-source LLVM compiler stack. The initial patches have been merged while still appears to be a work in progress especially on the code generation front. Loongson engineers are working on this LoongArch compiler support themselves, similar to the work they are doing for GCC.

Most open-source projects have been receptive to LoongArch support being added while we will see over the longer-term how viable (and performant) this CPU architecture is and how well it can compete with x86_64, Arm, RISC-V, etc and whether there ends up being any notable use of the ISA outside of China.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week