1 /* { dg-do compile { target { powerpc64le-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-options "-mcpu=power8 -O3 -ffast-math" } */
4 /* { dg-final { scan-assembler "lxvd2x" } } */
5 /* { dg-final { scan-assembler-not "xxpermdi" } } */
7 /* Verify that swap optimization works correctly in the presence of
8 a V2DFmode reduction. */
10 extern double optvalue
;
11 extern void obfuscate (double, unsigned int);
14 foo (double *x
, double *y
, unsigned int n
, unsigned int m
)
18 for (j
= 0; j
< m
; ++j
)
21 for (i
= 0; i
< n
; ++i
)
25 optvalue
= n
* 2.0 * m
;