1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* powerpc-ibm-aix* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-require-effective-target dfp } */
5 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
6 /* { dg-options "-O2 -mcpu=power7 -mhard-dfp" } */
7 /* { dg-final { scan-assembler-times "lfiwzx" 2 } } */
8 /* { dg-final { scan-assembler-times "stfiwx" 1 } } */
9 /* { dg-final { scan-assembler-not "lfd" } } */
10 /* { dg-final { scan-assembler-not "stfd" } } */
11 /* { dg-final { scan-assembler-times "dctdp" 2 } } */
12 /* { dg-final { scan-assembler-times "dadd" 1 } } */
13 /* { dg-final { scan-assembler-times "drsp" 1 } } */
15 /* Test that power7 can directly load/store SDmode variables without using a
21 a
+= (_Decimal32
) 1.0;