Test LLD Linker Using LLVM Test-suite
If you want to run LLVM test-suite with LLD linker you need to follow this guide Building test-suite and running it under Qemu. The only difference is that you have to provide a path to the LLD linker to the Clang.
# Create symbolic link to the LLD: $ ln -s <lld install dir>/lld $TMP/mipsel-linux-gnu-ld
# Provide path to the mipsel-linux-gnu-ld using the -B option to the make command: make ... TARGET_FLAGS="<other options> -B$TMP"
To check that LLD linker is really used to build target files you can pass the -v option to the compiler and verify that $TMP/mipsel-linux-gnu-ld exists in the output.