diff options
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/Sema/x86-builtin-palignr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/x86-builtin-palignr.c b/clang/test/Sema/x86-builtin-palignr.c new file mode 100644 index 00000000000..55fdd234bcf --- /dev/null +++ b/clang/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}} +} |

