ira: Fix go_through_subreg offset calculation [PR115281]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / integer-addr.c
blobed94f6b3f0dd8f14449a25c0db5d515b3806b667
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fno-strict-aliasing" } */
3 /* Test with fixed address */
4 static int *foo = (int *) (unsigned long) __INTPTR_MAX__;
6 int func(void) __attribute__ ((noinline));
8 extern int bar(void);
10 int func(void)
12 if (*foo) {
13 return 1;
15 return 0;
19 int foobar(void)
22 if (func()) {
23 *foo = 1;
25 return func();
28 /* { dg-final { scan-tree-dump-times "= func" 2 "optimized" } } */