Debian Codegraph @

gcc/testsuite/c-c++-common/torture/pr116189-1.c

raw
1 /* { dg-additional-options "-fcompare-debug" } */
2
3 /* PR target/116189 */
4
5 /* In the sh backend, we used to create insn in the path of rtx_costs.
6 This means sometimes the max uid for insns would be different between
7 debugging and non debugging which then would cause gcse's hashtable
8 to have different number of slots which would cause a different walk
9 for that hash table. */
10
11 extern void ff(void);
12 extern short nn[8][4];
13 typedef unsigned short move_table[4];
14 extern signed long long ira_overall_cost;
15 extern signed long long ira_load_cost;
16 extern move_table *x_ira_register_move_cost[1];
17 struct move { struct move *next; };
18 unsigned short t;
19 void emit_move_list(struct move * list, int freq, unsigned char mode, int regno) {
20 int cost;
21 for (; list != 0; list = list->next)
22 {
23 ff();
24 unsigned short aclass = t;
25 cost = (nn)[mode][aclass] ;
26 ira_load_cost = cost;
27 cost = x_ira_register_move_cost[mode][aclass][aclass] * freq ;
28 ira_overall_cost = cost;
29 }
30 }