c++: Some cp-tree.def comment fixes
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / p9-dimode1.c
blobf1e0c8bdab40d1cb316762b660394d5a750b64bd
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2" } */
3 /* { dg-require-effective-target powerpc_vsx } */
5 /* Verify P9 changes to allow DImode into Altivec registers, and generate
6 constants using XXSPLTIB. */
8 double
9 p9_zero (void)
11 long l = 0;
12 double ret;
14 __asm__ ("xxlor %x0,%x1,%x1" : "=&d" (ret) : "wa" (l));
16 return ret;
19 double
20 p9_plus_1 (void)
22 long l = 1;
23 double ret;
25 __asm__ ("xxlor %x0,%x1,%x1" : "=&d" (ret) : "wa" (l));
27 return ret;
30 double
31 p9_minus_1 (void)
33 long l = -1;
34 double ret;
36 __asm__ ("xxlor %x0,%x1,%x1" : "=&d" (ret) : "wa" (l));
38 return ret;
41 /* { dg-final { scan-assembler {\mxxspltib\M} } } */
42 /* { dg-final { scan-assembler-not {\mmtvsr} } } */
43 /* { dg-final { scan-assembler-not {\mlfd\M} } } */
44 /* { dg-final { scan-assembler-not {\mld\M} } } */
45 /* { dg-final { scan-assembler-not {\mlxsd\M} } } */