aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/atomic-op-relaxed.c
blob: cd3fe2c3eadefeb97898b703dd08900f0134249d (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-O2" } */

#include "atomic-op-relaxed.x"

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