gcc/testsuite/gcc.dg/torture/pr109940.c
raw| 1 | /* { dg-additional-options "-march=armv9-a" { target aarch64*-*-* } } */ |
| 2 | |
| 3 | int a; |
| 4 | int *b; |
| 5 | void |
| 6 | c (int *d) { *d = a; } |
| 7 | |
| 8 | int |
| 9 | e(int d, int f) { |
| 10 | if (d <= 1) |
| 11 | return 1; |
| 12 | int g = d / 2; |
| 13 | for (int h = 0; h < g; h++) |
| 14 | if (f == (__INTPTR_TYPE__)b > b[h]) |
| 15 | c(&b[h]); |
| 16 | e(g, f); |
| 17 | e(g, f); |
| 18 | } |