https://github.com/xen0n commented: There should also be a test case that shows the attribute is not supported on a non-LoongArch target. Otherwise this mostly looks fine to me, thanks for pushing this forward! https://github.com/llvm/llvm-project/pull/72078