diff options
| author | Eric Christopher <echristo@apple.com> | 2010-04-17 02:36:08 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-04-17 02:36:08 +0000 |
| commit | 0dd32fe068fdad8d1b5505e0186fdafc66048fd0 (patch) | |
| tree | 885680ee61844a32f3bf42e96e4b9ad93f3d2726 | |
| parent | 8d0c621ca600c78454da6854e78d1b60f74a0bfc (diff) | |
| download | bcm5719-llvm-0dd32fe068fdad8d1b5505e0186fdafc66048fd0.tar.gz bcm5719-llvm-0dd32fe068fdad8d1b5505e0186fdafc66048fd0.zip | |
New test to verify that we see constant integers here.
llvm-svn: 101611
| -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}} +} |

