[clang] [LoongArch] Fix '-mno-lsx' option not disabling LASX feature (PR #143821)

Lu Weining via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 00:17:30 PDT 2025


================
@@ -946,6 +946,8 @@
 // RUN:   | FileCheck --match-full-lines --check-prefix=MNO-LSX %s
 // RUN: %clang --target=loongarch64 -mno-lasx -mno-lsx -x c -E -dM %s -o - \
 // RUN:   | FileCheck --match-full-lines --check-prefix=MNO-LSX %s
+// RUN: %clang --target=loongarch64 -march=la464 -mno-lsx -x c -E -dM %s -o - \
+// RUN:   | FileCheck --match-full-lines --check-prefix=MNO-LSX %s
----------------
SixWeining wrote:

Also test switching these 2 options's order (i.e. `-mno-lsx -march=la464`).

https://github.com/llvm/llvm-project/pull/143821


More information about the cfe-commits mailing list