summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/atomic-op-consume-2.c
blob: 9771d817f02cb95a2e9d4f7020ae45c3fcf02aec (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8m_main_ok } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_arch_v8m_main } */

#include "../aarch64/atomic-op-consume.x"

/* Scan for ldaex is a PR59448 consume workaround.  */
/* { dg-final { scan-assembler-times "ldaex\tr\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 } } */
/* { dg-final { scan-assembler-times "strex\t...?, r\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 } } */
/* { dg-final { scan-assembler-not "dmb" } } */