New test to verify that we see constant integers here.

llvm-svn: 101611
This commit is contained in:
Eric Christopher 2010-04-17 02:36:08 +00:00
parent 8d0c621ca6
commit 0dd32fe068
1 changed files with 8 additions and 0 deletions

View File

@ -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}}
}