[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / swaps-stack-protector.c
blob8093a26cc564b01990984b9e838378be57d720f9
1 /* { dg-do compile } */
2 /* { dg-options "-fstack-protector -O3" } */
4 /* PR78695: This code used to ICE in rs6000.c:find_alignment_op because
5 the stack protector address definition isn't associated with an insn. */
7 void *a();
8 long b() {
9 char c[1];
10 char *d = a(), *e = c;
11 long f = e ? b(e) : 0;
12 if (f > 54)
13 f = 1;
14 while (f--)
15 *d++ = *e++;