| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mincoming-stack-boundary=4 -march=haswell -mno-avx512f -mtune-ctrl=avx256_move_by_pieces" } */ |
| 3 |
|
| 4 |
struct _Unwind_Context |
| 5 |
{ |
| 6 |
void *ra; |
| 7 |
char array[48]; |
| 8 |
}; |
| 9 |
|
| 10 |
extern long uw_install_context_1 (struct _Unwind_Context *); |
| 11 |
|
| 12 |
void |
| 13 |
_Unwind_RaiseException (void) |
| 14 |
{ |
| 15 |
struct _Unwind_Context this_context, cur_context; |
| 16 |
long offset = uw_install_context_1 (&this_context); |
| 17 |
__builtin_memcpy (&this_context, &cur_context, |
| 18 |
sizeof (struct _Unwind_Context)); |
| 19 |
void *handler = __builtin_frob_return_addr ((&cur_context)->ra); |
| 20 |
uw_install_context_1 (&cur_context); |
| 21 |
__builtin_eh_return (offset, handler); |
| 22 |
} |
| 23 |
|
| 24 |
/* { dg-final { scan-assembler-times "vmovdqu\[ \\t\]+\[^\n\]*%ymm" 4 } } */ |
| 25 |
/* No need to dynamically realign the stack here. */ |
| 26 |
/* { dg-final { scan-assembler-not "and\[^\n\r]*%\[re\]sp" } } */ |