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)) test(void * a)9test(void *a) 10 { 11 __builtin_memset (a,0,n); 12 } 13 14 static __attribute__ ((aligned(16))) int aa[10]; 15 16 int main()17main() 18 { 19 test (&aa[1]); 20 test (&aa[3]); 21 return 0; 22 } 23 /* { dg-final { scan-ipa-dump "align: 8, misalign: 4" "cp" } } */ 24