New test to verify that we see constant integers here.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101611 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/x86-builtin-palignr.c b/test/Sema/x86-builtin-palignr.c
new file mode 100644
index 0000000..55fdd23
--- /dev/null
+++ b/test/Sema/x86-builtin-palignr.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -triple=i686-apple-darwin9 -target-feature +ssse3 -verify %s
+
+#include <tmmintrin.h>
+
+__m64 foo(__m64 a, __m64 b, int c)
+{
+ return _mm_alignr_pi8(a, b, c); // expected-error {{argument 2 to '__builtin_ia32_palignr' must be a constant integer}}
+}