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 | 26d2427abe442b557298c295d2a84cdf13c260eb (patch) | |
tree | 750373359b656fddb295b61e7c722faefca5a61f | |
parent | 691ebc3f3225542e5abd85e107ebdbec907cf510 (diff) |
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
-rw-r--r-- | test/Sema/x86-builtin-palignr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/x86-builtin-palignr.c b/test/Sema/x86-builtin-palignr.c new file mode 100644 index 0000000000..55fdd234bc --- /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}} +} |