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

#include "atomic-op-seq_cst.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 } } */