blob: e571b2f13b3530144ffd98d74fc7cd54db8a71d0 (
plain)
1
2
3
4
5
6
7
8
|
/* { dg-do compile } */
/* { dg-options "-march=armv8-a+nolse -O2 -fno-ipa-icf" } */
#include "sync-comp-swap.x"
/* { dg-final { scan-assembler-times "ldxr\tw\[0-9\]+, \\\[x\[0-9\]+\\\]" 2 } } */
/* { dg-final { scan-assembler-times "stlxr\tw\[0-9\]+, w\[0-9\]+, \\\[x\[0-9\]+\\\]" 2 } } */
/* { dg-final { scan-assembler-times "dmb\tish" 2 } } */
|