[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr77289.c
bloba8308b01057969ca6d48b44e05264c1787d37a25
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O3 -mdejagnu-cpu=power7 -funroll-loops -ffast-math -mupdate -fno-auto-inc-dec" } */
6 /* PR 77289: LRA ICEs due to invalid constraint checking. */
8 void dummy0 (float *);
9 float bar0 (float);
10 void
11 foo0 (long a, long b)
13 float c[0];
14 b = 0;
15 for (; b < a; b++)
16 c[b] = bar0 (c[b]);
17 dummy0 (c);
20 void dummy1 (long *);
21 long bar1 (long);
22 void
23 foo1 (long a, long b)
25 long array[128];
26 long *c = array;
27 for (b=0; b < a; b++)
28 c[b] = bar1 (c[b]);
29 dummy1 (c);