gcc/testsuite/gcc.target/powerpc/pr93658.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -Wno-stringop-overflow -fstack-protector-strong -mdejagnu-cpu=power8" } */ |
| 3 | /* { dg-require-effective-target powerpc_vsx } */ |
| 4 | |
| 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 } */ |
| 8 | |
| 9 | void bar(); |
| 10 | char b; |
| 11 | void |
| 12 | foo (void) |
| 13 | { |
| 14 | char a; |
| 15 | int d = b; |
| 16 | char *e = &a; |
| 17 | while (d) |
| 18 | *e++ = --d; |
| 19 | bar (); |
| 20 | } |