annotate gcc/testsuite/gcc.c-torture/compile/20001226-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do assemble } */
kono
parents:
diff changeset
2 /* { dg-skip-if "too much code for avr" { "avr-*-*" } } */
kono
parents:
diff changeset
3 /* { dg-skip-if "too much code for pdp11" { "pdp11-*-*" } } */
kono
parents:
diff changeset
4 /* { dg-xfail-if "PR36698" { spu-*-* } { "-O0" } { "" } } */
kono
parents:
diff changeset
5 /* { dg-skip-if "" { m32c-*-* } } */
kono
parents:
diff changeset
6 /* { dg-timeout-factor 4.0 } */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 /* This testcase exposed two branch shortening bugs on powerpc. */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 #define C(a,b) \
kono
parents:
diff changeset
11 if (a > b) goto gt; \
kono
parents:
diff changeset
12 if (a < b) goto lt;
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 #define C4(x,b) C((x)[0], b) C((x)[1],b) C((x)[2],b) C((x)[3],b)
kono
parents:
diff changeset
15 #define C16(x,y) C4(x, (y)[0]) C4(x, (y)[1]) C4(x, (y)[2]) C4(x, (y)[3])
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 #define C64(x,y) C16(x,y) C16(x+4,y) C16(x+8,y) C16(x+12,y)
kono
parents:
diff changeset
18 #define C256(x,y) C64(x,y) C64(x,y+4) C64(x,y+8) C64(x,y+12)
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #define C1024(x,y) C256(x,y) C256(x+16,y) C256(x+32,y) C256(x+48,y)
kono
parents:
diff changeset
21 #define C4096(x,y) C1024(x,y) C1024(x,y+16) C1024(x,y+32) C1024(x,y+48)
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 unsigned foo(int x[64], int y[64])
kono
parents:
diff changeset
24 {
kono
parents:
diff changeset
25 C4096(x,y);
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 return 0x01234567;
kono
parents:
diff changeset
28 gt:
kono
parents:
diff changeset
29 return 0x12345678;
kono
parents:
diff changeset
30 lt:
kono
parents:
diff changeset
31 return 0xF0123456;
kono
parents:
diff changeset
32 }
kono
parents:
diff changeset
33