modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/compile/20080806-1.c (about) 1 /* This used to ICE on s390x due to a reload bug. */ 2 3 #if defined(STACK_SIZE) && (STACK_SIZE < 65536) 4 #define BYTES 64 5 #else 6 #define BYTES 65400 7 #endif 8 9 int gl2; 10 typedef __SIZE_TYPE__ size_t; 11 12 extern void *memcpy (void *dest, const void *src, size_t n); 13 14 void 15 f1 () 16 { 17 int i2; 18 unsigned char bf[BYTES]; 19 20 for (i2 = 0; i2 < 3; i2++) 21 { 22 unsigned char *p2 = bf; 23 unsigned char *p3 = ((void *) 0); 24 unsigned short ctf2; 25 26 p2 += sizeof (short); 27 28 for (ctf2 = 0; ctf2 < 3; ctf2++) 29 { 30 if (ctf2 == 1) 31 { 32 unsigned short of = p2 - bf - 6; 33 unsigned short *ofp = (unsigned short *) &of; 34 memcpy (p3, ofp, sizeof (short)); 35 } 36 37 if (gl2 == 1) 38 p2 += 3; 39 } 40 } 41 }