gcc/testsuite/gcc.target/i386/pr59363.c
raw| 1 | /* PR target/59363 */ |
| 2 | /* { dg-do run } */ |
| 3 | /* { dg-options "-O2 -mtune=amdfam10" } */ |
| 4 | |
| 5 | typedef struct { |
| 6 | int ctxlen; |
| 7 | long interhunkctxlen; |
| 8 | int flags; |
| 9 | long find_func; |
| 10 | void *find_func_priv; |
| 11 | int hunk_func; |
| 12 | } xdemitconf_t; |
| 13 | |
| 14 | __attribute__((noinline)) |
| 15 | int xdi_diff(xdemitconf_t *xecfg) { |
| 16 | if (xecfg->hunk_func == 0) |
| 17 | __builtin_abort(); |
| 18 | return 0; |
| 19 | } |
| 20 | int main() { |
| 21 | xdemitconf_t xecfg = {0}; |
| 22 | xecfg.hunk_func = 1; |
| 23 | return xdi_diff(&xecfg); |
| 24 | } |