1 /* PR tree-optimization/88775 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -fdump-tree-optimized" } */ 4 /* { dg-final { scan-tree-dump-times "return 1;" 10 "optimized" } } */ 5 6 int a[64] = {}; 7 int b[64] = {}; 8 9 int f1(void)10f1 (void) 11 { 12 return (__UINTPTR_TYPE__) &a[2] != (__UINTPTR_TYPE__) &b[2]; 13 } 14 15 int f2(void)16f2 (void) 17 { 18 return (__UINTPTR_TYPE__) &a[2] != (__UINTPTR_TYPE__) &b[10]; 19 } 20 21 int f3(void)22f3 (void) 23 { 24 return (__UINTPTR_TYPE__) &a[0] != (__UINTPTR_TYPE__) &b[0]; 25 } 26 27 int f4(void)28f4 (void) 29 { 30 return (__UINTPTR_TYPE__) &a[64] != (__UINTPTR_TYPE__) &b[64]; 31 } 32 33 int f5(void)34f5 (void) 35 { 36 int c[64] = {}; 37 return (__UINTPTR_TYPE__) &a[0] != (__UINTPTR_TYPE__) &c[64]; 38 } 39 40 int f6(void)41f6 (void) 42 { 43 int c[64] = {}; 44 return (__UINTPTR_TYPE__) &b[64] != (__UINTPTR_TYPE__) &c[0]; 45 } 46 47 int f7(void)48f7 (void) 49 { 50 int c[64] = {}, d[64] = {}; 51 return (__UINTPTR_TYPE__) &c[2] != (__UINTPTR_TYPE__) &d[2]; 52 } 53 54 int f8(void)55f8 (void) 56 { 57 int c[64] = {}, d[64] = {}; 58 return (__UINTPTR_TYPE__) &c[2] != (__UINTPTR_TYPE__) &d[10]; 59 } 60 61 int f9(void)62f9 (void) 63 { 64 int c[64] = {}, d[64] = {}; 65 return (__UINTPTR_TYPE__) &c[0] != (__UINTPTR_TYPE__) &d[0]; 66 } 67 68 int f10(void)69f10 (void) 70 { 71 int c[64] = {}, d[64] = {}; 72 return (__UINTPTR_TYPE__) &c[64] != (__UINTPTR_TYPE__) &d[64]; 73 } 74