Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / sd-vsx.c
blob3494ef140149e491f11f3ec356534bf9e3fe7917
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
16 bounce buffer. */
17 _Decimal32 a;
19 void inc_dec32 (void)
21 a += (_Decimal32) 1.0;