2 /* { dg-options "-O2 -fmodulo-sched -fmodulo-sched-allow-regmoves" } */
13 extern void *memset (void *s
, int c
, __SIZE_TYPE__ n
);
16 __attribute__ ((noinline
))
18 df_reorganize_refs_by_reg_by_insn (struct df_ref_info
*ref_info
,
19 int num
, unsigned int start
)
22 unsigned int offset
= 77;
25 for (r
= start
; r
< m
; r
++)
27 ref_info
->begin
[r
] = offset
;
28 offset
+= ref_info
->count
[r
];
29 ref_info
->count
[r
] = 0;
38 struct df_ref_info temp
;
40 unsigned int start
= 5;
43 temp
.begin
= malloc (100 * sizeof (unsigned int));
44 temp
.count
= malloc (100 * sizeof (unsigned int));
46 memset (temp
.begin
, 0, sizeof (unsigned int) * num
);
47 memset (temp
.count
, 0, sizeof (unsigned int) * num
);
49 for (i
= 0; i
< num
; i
++)
50 temp
.count
[i
] = i
+ 1;
52 offset
= df_reorganize_refs_by_reg_by_insn (&temp
, num
, start
);