Skip to content

Commit 53fae7a

Browse files
Add non-failing test
1 parent 98e1459 commit 53fae7a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)