summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/atomic-op-relaxed-3.c
blob: 09b5ea9f6d3bf0c324ee532ccae002d41b687105 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8m_base_ok } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_arch_v8m_base } */

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

/* { dg-final { scan-assembler-times "ldrex\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" } } */