aarch64: Fix sve/acle/general/ldff1_8.c failures
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / irrevocable-5.c
blob875b4296b34b86f560fedafea0c105a66375dc8a
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-ipa-tmipa -O" } */
4 int a;
6 void foo(void) __attribute__((transaction_safe));
7 void bar(void) __attribute__((transaction_safe));
8 void danger(void) __attribute__((transaction_unsafe));
10 void wildthing()
12 /* All blocks should be propagated as irrevocable. */
13 __transaction_relaxed {
14 if (a)
15 foo();
16 else
17 bar();
18 danger();
22 /* { dg-final { scan-ipa-dump-times "GTMA_DOES_GO_IRREVOCABLE" 1 "tmipa" } } */
23 /* { dg-final { scan-ipa-dump-times "bb 3 goes irr" 1 "tmipa" } } */
24 /* { dg-final { scan-ipa-dump-times "bb 4 goes irr" 1 "tmipa" } } */
25 /* { dg-final { scan-ipa-dump-times "bb 5 goes irr" 1 "tmipa" } } */
26 /* { dg-final { scan-ipa-dump-times "bb 6 goes irr" 1 "tmipa" } } */