]>
gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gcc.target/powerpc/vec-splat-constant-df.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target power10_ok } */
3 /* { dg-options "-mdejagnu-cpu=power10 -O2" } */
7 /* Test generating DFmode constants with the ISA 3.1 (power10) XXSPLTIDP
11 scalar_double_0 (void)
13 return 0.0; /* XXSPLTIB or XXLXOR. */
17 scalar_double_1 (void)
19 return 1.0; /* XXSPLTIDP. */
24 scalar_double_m0 (void)
26 return -0.0; /* XXSPLTIDP. */
30 scalar_double_nan (void)
32 return __builtin_nan (""); /* XXSPLTIDP. */
36 scalar_double_inf (void)
38 return __builtin_inf (); /* XXSPLTIDP. */
42 scalar_double_m_inf (void) /* XXSPLTIDP. */
44 return - __builtin_inf ();
49 scalar_double_pi (void)
51 return M_PI
; /* PLFD. */
55 scalar_double_denorm (void)
57 return 0x1p
-149f
; /* PLFD. */
60 /* { dg-final { scan-assembler-times {\mxxspltidp\M} 5 } } */
This page took 0.034218 seconds and 5 git commands to generate.