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

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

/* { dg-final { scan-assembler-times "ldrexh\tr\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 } } */
/* { dg-final { scan-assembler-times "strexh\t...?, r\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 } } */
/* { dg-final { scan-assembler-not "dmb" } } */