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.
1 parent 98e1459 commit 53fae7aCopy full SHA for 53fae7a
clang/test/CodeGen/target-features-no-error-2.c
@@ -0,0 +1,12 @@
1
+// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -verify -o /dev/null
2
+
3
+typedef double __v2df __attribute__((__vector_size__(16)));
4
5
+__v2df __attribute__((target("sse4.1"))) foo() {
6
+ __v2df v = {0.0, 0.0};
7
+ return __builtin_ia32_roundpd(v, 2);
8
+}
9
10
+__v2df __attribute__((target("sse4.1"), flatten)) bar() {
11
+ return foo(); // expected-no-diagnostics
12
0 commit comments