We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9ef90c + 9bf61a6 commit 468cc0fCopy full SHA for 468cc0f
clang/test/CodeGen/LoongArch/targetattr-lasx.c
@@ -0,0 +1,7 @@
1
+// RUN: %clang_cc1 -triple loongarch64 -target-feature -lsx -emit-llvm %s -o - | FileCheck %s
2
+
3
+__attribute__((target("lasx")))
4
+// CHECK: #[[ATTR0:[0-9]+]] {
5
+void testlasx() {}
6
7
+// CHECK: attributes #[[ATTR0]] = { {{.*}}"target-features"="+64bit,+lasx,-lsx"{{.*}} }
0 commit comments