diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/aarch64/atomic-op-seq_cst.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/aarch64/atomic-op-seq_cst.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/aarch64/atomic-op-seq_cst.c b/gcc-4.9/gcc/testsuite/gcc.target/aarch64/atomic-op-seq_cst.c new file mode 100644 index 000000000..202d471d0 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/aarch64/atomic-op-seq_cst.c @@ -0,0 +1,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 } } */ |