summaryrefslogtreecommitdiffstats
path: root/test/Sema/x86-builtin-palignr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/x86-builtin-palignr.c')
-rw-r--r--test/Sema/x86-builtin-palignr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Sema/x86-builtin-palignr.c b/test/Sema/x86-builtin-palignr.c
new file mode 100644
index 0000000..eedf99b
--- /dev/null
+++ b/test/Sema/x86-builtin-palignr.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -target-feature +ssse3 -verify %s
+// Temporarily xfail this on windows.
+// XFAIL: win32
+
+#include <tmmintrin.h>
+
+__m64 foo(__m64 a, __m64 b, int c)
+{
+ return _mm_alignr_pi8(a, b, c); // expected-error {{argument to '__builtin_ia32_palignr' must be a constant integer}}
+}
OpenPOWER on IntegriCloud