1 /* PR 58106 testcase. Verify that rdesc chain creating and lookup works with
2 recursive inlining and master clone creation. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3" } */
6 typedef struct rtx_def
*rtx
;
8 LAST_AND_UNUSED_RTX_CODE
};
9 extern const char * const rtx_format
[((int) LAST_AND_UNUSED_RTX_CODE
)];
13 typedef int (*rtx_function
) (rtx
*, void *);
14 extern int for_each_rtx (rtx
*, rtx_function
, void *);
16 replace_label (rtx
*x
, void *data
)
23 for_each_rtx (&new_c
, replace_label
, data
);
28 for_each_rtx_1 (rtx exp
, int n
, rtx_function f
, void *data
)
31 const char *format
= (rtx_format
[(int) (((enum rtx_code
) (exp
)->code
))]);
33 for (; format
[n
] != '\0'; n
++)
38 result
= (*f
) (x
, data
);
40 result
= for_each_rtx_1 (*x
, i
, f
, data
);
46 for_each_rtx (rtx
*x
, rtx_function f
, void *data
)
49 return for_each_rtx_1 (*x
, i
, f
, data
);