Skip to content

main/llvm17: Revert "[LoongArch] Support InlineAsm for LSX and LASX"

Jingyun Hua requested to merge huajingyun01/aports:llvm17 into master

This reverts commit d25c79dc70008b835312e5cc7ef48b199fda3165.

D154931[1] needs to be reverted on LLVM17. As Loongson SIMD Extension(LSX) and Loongson Advanced SIMD Extension(LASX) are not fully supported on LLVM17, InlineAsm for LSX and LASX should not be supported as well. Otherwise it leads to the following error:

LLVM ERROR: Cannot select: 0x7ffea41a3650: ch = store<(store (s128) into %ir.mask
store52)> 0x7ffea41a35e0, 0x7ffea4196a30, FrameIndex:i64<6>, undef:i64

LSX and LASX are fully supported on LLVM18 and are not supported on LLVM16, thus only LLVM17 has the problem.

[1] https://reviews.llvm.org/D154931

[2] https://github.com/llvm/llvm-project/commit/d25c79dc70008b835312e5cc7ef48b199fda3165

Merge request reports

Loading