summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/atomic-op-acq_rel.c
blob: 74f26348e42755e92ceb623306d909d529dbb937 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-march=armv8-a+nolse -O2" } */

#include "atomic-op-acq_rel.x"

/* { dg-final { scan-assembler-times "ldaxr\tw\[0-9\]+, \\\[x\[0-9\]+\\\]" 6 } } */
/* { dg-final { scan-assembler-times "stlxr\tw\[0-9\]+, w\[0-9\]+, \\\[x\[0-9\]+\\\]" 6 } } */