annotate gcc/testsuite/gcc.dg/tree-ssa/20030920-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Jump threading was creating FALLTHRU edges out of blocks ending in
kono
parents:
diff changeset
2 GOTO_EXPR. */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 extern int frame_pointer_needed;
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 struct value_data_entry
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 unsigned int mode;
kono
parents:
diff changeset
9 unsigned int oldest_regno;
kono
parents:
diff changeset
10 unsigned int next_regno;
kono
parents:
diff changeset
11 };
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 struct value_data
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 struct value_data_entry e[53];
kono
parents:
diff changeset
16 unsigned int max_value_regs;
kono
parents:
diff changeset
17 };
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 struct rtx_def
kono
parents:
diff changeset
20 {
kono
parents:
diff changeset
21 unsigned int code: 16;
kono
parents:
diff changeset
22 unsigned int mode : 8;
kono
parents:
diff changeset
23 unsigned int jump : 1;
kono
parents:
diff changeset
24 unsigned int call : 1;
kono
parents:
diff changeset
25 unsigned int unchanging : 1;
kono
parents:
diff changeset
26 unsigned int volatil : 1;
kono
parents:
diff changeset
27 unsigned int in_struct : 1;
kono
parents:
diff changeset
28 unsigned int used : 1;
kono
parents:
diff changeset
29 unsigned integrated : 1;
kono
parents:
diff changeset
30 unsigned frame_related : 1;
kono
parents:
diff changeset
31 int fld[1];
kono
parents:
diff changeset
32 };
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 typedef struct rtx_def *rtx;
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 enum machine_mode { VOIDmode, BImode, QImode, HImode, SImode, DImode,
kono
parents:
diff changeset
37 TImode, OImode, PQImode, PHImode, PSImode, PDImode, QFmode, HFmode,
kono
parents:
diff changeset
38 TQFmode, SFmode, DFmode, XFmode, TFmode, QCmode, HCmode, SCmode,
kono
parents:
diff changeset
39 DCmode, XCmode, TCmode, CQImode, CHImode, CSImode, CDImode, CTImode,
kono
parents:
diff changeset
40 COImode, V1DImode, V2QImode, V2HImode, V2SImode, V2DImode, V4QImode,
kono
parents:
diff changeset
41 V4HImode, V4SImode, V4DImode, V8QImode, V8HImode, V8SImode, V8DImode,
kono
parents:
diff changeset
42 V16QImode, V2HFmode, V2SFmode, V2DFmode, V4HFmode, V4SFmode, V4DFmode,
kono
parents:
diff changeset
43 V8HFmode, V8SFmode, V8DFmode, V16SFmode, BLKmode, CCmode, CCGCmode,
kono
parents:
diff changeset
44 CCGOCmode, CCNOmode, CCZmode, CCFPmode, CCFPUmode, MAX_MACHINE_MODE };
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC,
kono
parents:
diff changeset
47 MODE_COMPLEX_INT, MODE_COMPLEX_FLOAT,
kono
parents:
diff changeset
48 MODE_VECTOR_INT, MODE_VECTOR_FLOAT,
kono
parents:
diff changeset
49 MAX_MODE_CLASS};
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 extern const unsigned char mode_size[(int) MAX_MACHINE_MODE];
kono
parents:
diff changeset
52 extern const enum mode_class mode_class[(int) MAX_MACHINE_MODE];
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 extern int target_flags;
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 static void
kono
parents:
diff changeset
57 copy_value (rtx dest, rtx src, struct value_data *vd)
kono
parents:
diff changeset
58 {
kono
parents:
diff changeset
59 unsigned int dr = (((dest)->fld[0]));
kono
parents:
diff changeset
60 unsigned int sr = (((src)->fld[0]));
kono
parents:
diff changeset
61 unsigned int dn, sn;
kono
parents:
diff changeset
62 unsigned int i;
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 if (sr == dr)
kono
parents:
diff changeset
67 return;
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70
kono
parents:
diff changeset
71 if (dr == 7)
kono
parents:
diff changeset
72 return;
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 if (frame_pointer_needed && dr == 6)
kono
parents:
diff changeset
76 return;
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 dn = (((dr) >= 8 && (dr) <= (8 + 7)) || (((dr) >= (20 + 1) && (dr) <= ((20 + 1) + 7)) || ((dr) >= (((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) && (dr) <= ((((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) + 7))) || ((dr) >= (((20 + 1) + 7) + 1) && (dr) <= ((((20 + 1) + 7) + 1) + 7)) ? (((mode_class[(int) (((enum machine_mode) (dest)->mode))]) == MODE_COMPLEX_INT || (mode_class[(int) (((enum machine_mode) (dest)->mode))]) == MODE_COMPLEX_FLOAT) ? 2 : 1) : ((((enum machine_mode) (dest)->mode)) == TFmode ? ((target_flags & 0x00100000) ? 2 : 3) : (((enum machine_mode) (dest)->mode)) == TCmode ? ((target_flags & 0x00100000) ? 4 : 6) : (((mode_size[(int) (((enum machine_mode) (dest)->mode))]) + ((target_flags & 0x00100000) ? 8 : 4) - 1) / ((target_flags & 0x00100000) ? 8 : 4))));
kono
parents:
diff changeset
80 sn = (((sr) >= 8 && (sr) <= (8 + 7)) || (((sr) >= (20 + 1) && (sr) <= ((20 + 1) + 7)) || ((sr) >= (((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) && (sr) <= ((((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) + 7))) || ((sr) >= (((20 + 1) + 7) + 1) && (sr) <= ((((20 + 1) + 7) + 1) + 7)) ? (((mode_class[(int) (((enum machine_mode) (dest)->mode))]) == MODE_COMPLEX_INT || (mode_class[(int) (((enum machine_mode) (dest)->mode))]) == MODE_COMPLEX_FLOAT) ? 2 : 1) : ((((enum machine_mode) (dest)->mode)) == TFmode ? ((target_flags & 0x00100000) ? 2 : 3) : (((enum machine_mode) (dest)->mode)) == TCmode ? ((target_flags & 0x00100000) ? 4 : 6) : (((mode_size[(int) (((enum machine_mode) (dest)->mode))]) + ((target_flags & 0x00100000) ? 8 : 4) - 1) / ((target_flags & 0x00100000) ? 8 : 4))));
kono
parents:
diff changeset
81 if ((dr > sr && dr < sr + sn)
kono
parents:
diff changeset
82 || (sr > dr && sr < dr + dn))
kono
parents:
diff changeset
83 return;
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88 if (vd->e[sr].mode == VOIDmode)
kono
parents:
diff changeset
89 set_value_regno (sr, vd->e[dr].mode, vd);
kono
parents:
diff changeset
90 else if (sn < (unsigned int) (((sr) >= 8 && (sr) <= (8 + 7)) || (((sr) >= (20 + 1) && (sr) <= ((20 + 1) + 7)) || ((sr) >= (((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) && (sr) <= ((((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) + 7))) || ((sr) >= (((20 + 1) + 7) + 1) && (sr) <= ((((20 + 1) + 7) + 1) + 7)) ? (((mode_class[(int) (vd->e[sr].mode)]) == MODE_COMPLEX_INT || (mode_class[(int) (vd->e[sr].mode)]) == MODE_COMPLEX_FLOAT) ? 2 : 1) : ((vd->e[sr].mode) == TFmode ? ((target_flags & 0x00100000) ? 2 : 3) : (vd->e[sr].mode) == TCmode ? ((target_flags & 0x00100000) ? 4 : 6) : (((mode_size[(int) (vd->e[sr].mode)]) + ((target_flags & 0x00100000) ? 8 : 4) - 1) / ((target_flags & 0x00100000) ? 8 : 4))))
kono
parents:
diff changeset
91 && ((mode_size[(int) (vd->e[sr].mode)]) > ((target_flags & 0x00100000) ? 8 : 4)
kono
parents:
diff changeset
92 ? 0 : 0))
kono
parents:
diff changeset
93 return;
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97
kono
parents:
diff changeset
98 else if (sn > (unsigned int) (((sr) >= 8 && (sr) <= (8 + 7)) || (((sr) >= (20 + 1) && (sr) <= ((20 + 1) + 7)) || ((sr) >= (((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) && (sr) <= ((((((((20 + 1) + 7) + 1) + 7) + 1) + 7) + 1) + 7))) || ((sr) >= (((20 + 1) + 7) + 1) && (sr) <= ((((20 + 1) + 7) + 1) + 7)) ? (((mode_class[(int) (vd->e[sr].mode)]) == MODE_COMPLEX_INT || (mode_class[(int) (vd->e[sr].mode)]) == MODE_COMPLEX_FLOAT) ? 2 : 1) : ((vd->e[sr].mode) == TFmode ? ((target_flags & 0x00100000) ? 2 : 3) : (vd->e[sr].mode) == TCmode ? ((target_flags & 0x00100000) ? 4 : 6) : (((mode_size[(int) (vd->e[sr].mode)]) + ((target_flags & 0x00100000) ? 8 : 4) - 1) / ((target_flags & 0x00100000) ? 8 : 4)))))
kono
parents:
diff changeset
99 return;
kono
parents:
diff changeset
100
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 vd->e[dr].oldest_regno = vd->e[sr].oldest_regno;
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 for (i = sr; vd->e[i].next_regno != (~(unsigned int) 0); i = vd->e[i].next_regno)
kono
parents:
diff changeset
106 continue;
kono
parents:
diff changeset
107 vd->e[i].next_regno = dr;
kono
parents:
diff changeset
108
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 validate_value_data (vd);
kono
parents:
diff changeset
111
kono
parents:
diff changeset
112 }