AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr50823.c
blob9ac69117218ec0a14a7514c017d3e0aa2476827e
1 /* { dg-do compile } */
2 /* { dg-options "-finline-functions" } */
4 int k1, k2, k3, k4, k5, k6, k7, k8;
6 void set_first_insn (int);
7 void set_last_insn (void);
9 static int make_insn_raw (void)
11 set_first_insn (0);
12 set_last_insn ();
13 return k1;
16 static void add_insn_after (void)
18 if (k2)
19 k3 = k4;
21 if (k5)
22 k6 = k7;
25 void emit_pattern_after_noloc (int (make_raw) (void))
27 if (k8)
29 make_raw ();
30 add_insn_after ();
34 void emit_insn_after_noloc (void)
36 emit_pattern_after_noloc (make_insn_raw);
39 void emit_debug_insn_before_setloc (int k9)
41 if (k9)
42 make_insn_raw ();