[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / sse-cvttss2si-2.c
blobaf0a1840598dfa15c358c21f1e4b03f97171befc
1 /* { dg-do run } */
2 /* { dg-options "-O3 -mpower8-vector" } */
3 /* { dg-require-effective-target p8vector_hw } */
5 #define NO_WARN_X86_INTRINSICS 1
7 #ifndef CHECK_H
8 #define CHECK_H "sse-check.h"
9 #endif
11 #include CHECK_H
13 #ifndef TEST
14 #define TEST sse_test_cvttss2si_2
15 #endif
17 #include <xmmintrin.h>
19 static long long
20 __attribute__((noinline, unused))
21 test (__m128 p)
23 __asm("" : "+v"(p));
24 return _mm_cvttss_si64 (p);
27 static void
28 TEST (void)
30 union128 s1;
31 long long d;
32 long long e;
34 s1.x = _mm_set_ps (24.43, 68.346, 43.35, 429496729501.4);
35 d = test (s1.x);
36 e = (long long)s1.a[0];
38 if (e != d)
39 abort ();