2011-07-09 07:31:17 +08:00
|
|
|
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -target-feature +ssse3 -target-feature +mmx -verify -triple x86_64-pc-linux-gnu %s
|
|
|
|
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -target-feature +ssse3 -target-feature +mmx -verify -triple i686-apple-darwin10 %s
|
2010-04-17 10:36:08 +08:00
|
|
|
|
|
|
|
#include <tmmintrin.h>
|
|
|
|
|
2010-10-02 07:23:24 +08:00
|
|
|
__m64 test1(__m64 a, __m64 b, int c) {
|
2010-04-20 02:23:02 +08:00
|
|
|
return _mm_alignr_pi8(a, b, c); // expected-error {{argument to '__builtin_ia32_palignr' must be a constant integer}}
|
2010-04-17 10:36:08 +08:00
|
|
|
}
|
2010-10-02 07:23:24 +08:00
|
|
|
|
|
|
|
int test2(int N) {
|
|
|
|
__m128i white2;
|
|
|
|
white2 = __builtin_ia32_pslldqi128(white2, N); // expected-error {{argument to '__builtin_ia32_pslldqi128' must be a constant integer}}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|