Let tree_single_nonzero_warnv_p use range information
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-assume_aligned-3.c
blob0e4c70b610dbdc32f010963d078fda2c5d47740b
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)));
7 int
8 test1 (int len)
10 int i;
11 char *p = my_alloc1 (len);
12 return ((__INTPTR_TYPE__) p) & 31;
15 int
16 test2 (int len)
18 int i;
19 char *p = my_alloc2 (len);
20 return (((__INTPTR_TYPE__) p) & 31) != 4;
23 /* { dg-final { scan-tree-dump-times "return 0" 2 "optimized" } } */