Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/sse4_1-ceilpd.c

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target p8vector_hw } */
3 /* { dg-options "-O2 -mvsx -Wno-psabi" } */
4 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
5
6 #define NO_WARN_X86_INTRINSICS 1
7 #include <smmintrin.h>
8
9 #define VEC_T __m128d
10 #define FP_T double
11
12 #define ROUND_INTRIN(x, mode) _mm_ceil_pd (x)
13
14 #include "sse4_1-round-data.h"
15
16 static struct data data[] = {
17 { .value = { .f = { 0.00, 0.25 } }, .answer = { 0.0, 1.0 } },
18 { .value = { .f = { 0.50, 0.75 } }, .answer = { 1.0, 1.0 } },
19
20 { { .f = { 0x1.ffffffffffffcp+50, 0x1.ffffffffffffdp+50 } },
21 { 0x1.ffffffffffffcp+50, 0x1.0000000000000p+51 } },
22 { { .f = { 0x1.ffffffffffffep+50, 0x1.fffffffffffffp+50 } },
23 { 0x1.0000000000000p+51, 0x1.0000000000000p+51 } },
24 { { .f = { 0x1.0000000000000p+51, 0x1.0000000000001p+51 } },
25 { 0x1.0000000000000p+51, 0x1.0000000000002p+51 } },
26 { { .f = { 0x1.0000000000002p+51, 0x1.0000000000003p+51 } },
27 { 0x1.0000000000002p+51, 0x1.0000000000004p+51 } },
28
29 { { .f = { 0x1.ffffffffffffep+51, 0x1.fffffffffffffp+51 } },
30 { 0x1.ffffffffffffep+51, 0x1.0000000000000p+52 } },
31 { { .f = { 0x1.0000000000000p+52, 0x1.0000000000001p+52 } },
32 { 0x1.0000000000000p+52, 0x1.0000000000001p+52 } },
33
34 { { .f = { -0x1.0000000000001p+52, -0x1.0000000000000p+52 } },
35 { -0x1.0000000000001p+52, -0x1.0000000000000p+52 } },
36 { { .f = { -0x1.fffffffffffffp+51, -0x1.ffffffffffffep+51 } },
37 { -0x1.ffffffffffffep+51, -0x1.ffffffffffffep+51 } },
38
39 { { .f = { -0x1.0000000000003p+51, -0x1.0000000000002p+51 } },
40 { -0x1.0000000000002p+51, -0x1.0000000000002p+51 } },
41 { { .f = { -0x1.0000000000001p+51, -0x1.0000000000000p+51 } },
42 { -0x1.0000000000000p+51, -0x1.0000000000000p+51 } },
43 { { .f = { -0x1.fffffffffffffp+50, -0x1.ffffffffffffep+50 } },
44 { -0x1.ffffffffffffcp+50, -0x1.ffffffffffffcp+50 } },
45 { { .f = { -0x1.ffffffffffffdp+50, -0x1.ffffffffffffcp+50 } },
46 { -0x1.ffffffffffffcp+50, -0x1.ffffffffffffcp+50 } },
47
48 { { .f = { -1.00, -0.75 } }, { -1.0, 0.0 } },
49 { { .f = { -0.50, -0.25 } }, { 0.0, 0.0 } }
50 };
51
52 #include "sse4_1-round.h"