2 /* { dg-options "-Os --param large-stack-frame=30 -Wno-pointer-to-int-cast" } */
4 extern void abort (void);
6 void __attribute__((noinline
))
11 void __attribute__((noinline
))
16 void __attribute__((noinline
))
17 test_align (char *p
, int aligned
, unsigned int mask
)
19 int p_aligned
= ((unsigned long int)p
& mask
) == 0;
20 if (aligned
!= p_aligned
)
27 const int kIterations
= 4;
28 char results
[kIterations
];
33 test_align (results
, ((unsigned long int)results
& mask
) == 0, mask
);
35 test_align (results
, ((unsigned long int)results
& mask
) == 0, mask
);
37 test_align (results
, ((unsigned long int)results
& mask
) == 0, mask
);
39 test_align (results
, ((unsigned long int)results
& mask
) == 0, mask
);
42 for (i
= 0; i
< kIterations
; i
++)
43 foo ("%d ", results
[i
]);