Because most of tests assume target-abi=`lp64d`, adding the corresponding feature is reasonable. rg -l loongarch -g '!*.s' | xargs sed -i '/mtriple=loongarch/ {/-mattr=/!{/target-abi/! s/mtriple=loongarch.. /&-mattr=+d /}}'
For `__builtin_thread_pointer` to work, among other things. Similar to D76828 for RISCV. Differential Revision: https://reviews.llvm.org/D134368