[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / mmx-psraw-1.c
blobeb7c3aec15032de0e19104cea6310659e7e5d9f3
1 /* { dg-do run } */
2 /* { dg-options "-O3 -mpower8-vector" } */
3 /* { dg-require-effective-target lp64 } */
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_sra_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);
38 if (N < 16)
39 for (i = 0; i < 4; i++)
40 e.as_short[i] = s1.as_short[i] >> N;
42 if (u.as_m64 != e.as_m64)
43 abort ();