Author: Ami-zhang Date: 2025-08-18T07:54:58+02:00 New Revision: 9bf61a610c095d9b04f663eb505d2da014a30433
URL: https://github.com/llvm/llvm-project/commit/9bf61a610c095d9b04f663eb505d2da014a30433 DIFF: https://github.com/llvm/llvm-project/commit/9bf61a610c095d9b04f663eb505d2da014a30433.diff LOG: [NFC] Precommit test for issue #149512 (#153541) (cherry picked from commit 793a6b4fd402c929e04f9da407fe4491d5d9d22e) Added: clang/test/CodeGen/LoongArch/targetattr-lasx.c Modified: Removed: ################################################################################ diff --git a/clang/test/CodeGen/LoongArch/targetattr-lasx.c b/clang/test/CodeGen/LoongArch/targetattr-lasx.c new file mode 100644 index 0000000000000..f4857406180a2 --- /dev/null +++ b/clang/test/CodeGen/LoongArch/targetattr-lasx.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple loongarch64 -target-feature -lsx -emit-llvm %s -o - | FileCheck %s + +__attribute__((target("lasx"))) +// CHECK: #[[ATTR0:[0-9]+]] { +void testlasx() {} + +// CHECK: attributes #[[ATTR0]] = { {{.*}}"target-features"="+64bit,+lasx,-lsx"{{.*}} } _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits