[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr93658.c
blob8858ca8a793da9842fd63bf8bc6cff8fa7aeae5f
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -Wno-stringop-overflow -fstack-protector-strong -mdejagnu-cpu=power8" } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
5 /* PR93658: Failure compiling this test is an infinite loop in LRA's
6 process_address(), so set a short timeout limit. */
7 /* { dg-timeout 5 } */
9 void bar();
10 char b;
11 void
12 foo (void)
14 char a;
15 int d = b;
16 char *e = &a;
17 while (d)
18 *e++ = --d;
19 bar ();