blob: 8f90c81fd8a36d61fee53056a3fb080ea26c59a8 [file] [log] [blame]
Daniel Dunbard13ada12010-04-18 15:30:18 +00001// RUN: %clang_cc1 -fsyntax-only -target-feature +ssse3 -verify %s
Eric Christopher00522ad2010-04-19 18:26:40 +00002// Temporarily xfail this on windows.
3// XFAIL: win32
Eric Christopher26d24272010-04-17 02:36:08 +00004
5#include <tmmintrin.h>
6
Chris Lattner946928f2010-10-01 23:23:24 +00007__m64 test1(__m64 a, __m64 b, int c) {
Eric Christopher5e896552010-04-19 18:23:02 +00008 return _mm_alignr_pi8(a, b, c); // expected-error {{argument to '__builtin_ia32_palignr' must be a constant integer}}
Eric Christopher26d24272010-04-17 02:36:08 +00009}
Chris Lattner946928f2010-10-01 23:23:24 +000010
11int test2(int N) {
12 __m128i white2;
13 white2 = __builtin_ia32_pslldqi128(white2, N); // expected-error {{argument to '__builtin_ia32_pslldqi128' must be a constant integer}}
14 return 0;
15}
16