1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 char *my_alloc1 (int len
) __attribute__((__assume_aligned__ (32)));
5 char *my_alloc2 (int len
) __attribute__((assume_aligned (32, 4)));
11 char *p
= my_alloc1 (len
);
12 return ((__INTPTR_TYPE__
) p
) & 31;
19 char *p
= my_alloc2 (len
);
20 return (((__INTPTR_TYPE__
) p
) & 31) != 4;
23 /* { dg-final { scan-tree-dump-times "return 0" 2 "optimized" } } */