gcc/testsuite/gcc.dg/ipa/propalign-5.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-ipa-cp" } */ |
| 3 | /* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */ |
| 4 | |
| 5 | int n; |
| 6 | |
| 7 | static void |
| 8 | __attribute__ ((noinline)) |
| 9 | test(void *a) |
| 10 | { |
| 11 | __builtin_memset (a,0,n); |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main() |
| 16 | { |
| 17 | int aa; |
| 18 | short bb; |
| 19 | test (&aa); |
| 20 | test (&bb); |
| 21 | return 0; |
| 22 | } |
| 23 | /* { dg-final { scan-ipa-dump "align: 2" "cp" } } */ |