1 /* { dg-do compile } */
2 /* { dg-options "-O2 -marm" } */
3 /* { dg-require-effective-target arm_arch_v7a_ok } */
4 /* { dg-add-options arm_arch_v7a } */
6 /* Make sure that RTL optimizers don't do any unexpected transformations
7 on the compare_exchange loop. */
18 glob
= atomic_compare_exchange_strong (&foo
, &bar
, 0);
22 /* { dg-final { scan-assembler-times "dmb\tish" 2 } } */
23 /* { dg-final { scan-assembler-times "ldrex\t" 1 } } */
24 /* { dg-final { scan-assembler-times "strex\t" 1 } } */