gcc/gcc/testsuite/gcc.target/aarch64/atomic-op-consume.c
Alex Velenko 3f880d38dc atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaxr.
gcc/testsuite/

	* gcc.target/aarch64/atomic-op-consume.c (scan-assember-times):
	Directive adjusted to scan for ldaxr.
	* gcc.target/arm/atomic-op-consume.c (scan-assember-times): Directive
	adjusted to scan for ldaex.

From-SVN: r220740
2015-02-16 18:12:10 +00:00

9 lines
317 B
C

/* { dg-do compile } */
/* { dg-options "-O2" } */
#include "atomic-op-consume.x"
/* Scan for ldaxr is a PR59448 consume workaround. */
/* { dg-final { scan-assembler-times "ldaxr\tw\[0-9\]+, \\\[x\[0-9\]+\\\]" 6 } } */
/* { dg-final { scan-assembler-times "stxr\tw\[0-9\]+, w\[0-9\]+, \\\[x\[0-9\]+\\\]" 6 } } */