aarch64: remove falkor-tag-collision-avoidance pass
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / mmx-psllw-1.c
blob5671398af702b89325a46329767f24be46018ca7
1 /* { dg-do run } */
2 /* { dg-options "-O3 -mvsx" } */
3 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
4 /* { dg-require-effective-target p8vector_hw } */
6 #define NO_WARN_X86_INTRINSICS 1
7 #ifndef CHECK_H
8 #define CHECK_H "mmx-check.h"
9 #endif
11 #ifndef TEST
12 #define TEST mmx_test
13 #endif
15 #define N 0xb
17 #include CHECK_H
19 #include <mmintrin.h>
21 static __m64
22 __attribute__((noinline, unused))
23 test (__m64 s1)
25 return _mm_sll_pi16 (s1, N);
28 static void
29 TEST (void)
31 __m64_union u, s1;
32 __m64_union e;
33 int i;
35 s1.as_m64 = _mm_setr_pi16 (1, 2, 0x7000, 0x9000);
36 u.as_m64 = test (s1.as_m64);
39 if (N < 16)
40 for (i = 0; i < 4; i++)
41 e.as_short[i] = s1.as_short[i] << N;
43 if (u.as_m64 != e.as_m64)
44 abort ();