| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -fstrub=strict -fno-exceptions -fdump-ipa-strub" } */ |
| 3 |
/* { dg-require-effective-target strub } */ |
| 4 |
|
| 5 |
/* Check that the expected strub calls are issued. At -O3 and -Os, we omit |
| 6 |
enter and leave calls within strub contexts, passing on the enclosing |
| 7 |
watermark. */ |
| 8 |
|
| 9 |
#include "torture/strub-callable1.c" |
| 10 |
|
| 11 |
/* { dg-final { scan-ipa-dump-times "strub_enter" 15 "strub" } } */ |
| 12 |
/* { dg-final { scan-ipa-dump-times "strub_update" 4 "strub" } } */ |
| 13 |
/* { dg-final { scan-ipa-dump-times "strub_leave" 15 "strub" } } */ |