Daniel Dunbar | d13ada1 | 2010-04-18 15:30:18 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -target-feature +ssse3 -verify %s |
Eric Christopher | 00522ad | 2010-04-19 18:26:40 +0000 | [diff] [blame] | 2 | // Temporarily xfail this on windows. |
| 3 | // XFAIL: win32 |
Eric Christopher | 26d2427 | 2010-04-17 02:36:08 +0000 | [diff] [blame] | 4 | |
| 5 | #include <tmmintrin.h> |
| 6 | |
Chris Lattner | 946928f | 2010-10-01 23:23:24 +0000 | [diff] [blame^] | 7 | __m64 test1(__m64 a, __m64 b, int c) { |
Eric Christopher | 5e89655 | 2010-04-19 18:23:02 +0000 | [diff] [blame] | 8 | return _mm_alignr_pi8(a, b, c); // expected-error {{argument to '__builtin_ia32_palignr' must be a constant integer}} |
Eric Christopher | 26d2427 | 2010-04-17 02:36:08 +0000 | [diff] [blame] | 9 | } |
Chris Lattner | 946928f | 2010-10-01 23:23:24 +0000 | [diff] [blame^] | 10 | |
| 11 | int 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 | |