[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sync-comp-swap.c
blobe571b2f13b3530144ffd98d74fc7cd54db8a71d0
1 /* { dg-do compile } */
2 /* { dg-options "-march=armv8-a+nolse -O2 -fno-ipa-icf" } */
4 #include "sync-comp-swap.x"
6 /* { dg-final { scan-assembler-times "ldxr\tw\[0-9\]+, \\\[x\[0-9\]+\\\]" 2 } } */
7 /* { dg-final { scan-assembler-times "stlxr\tw\[0-9\]+, w\[0-9\]+, \\\[x\[0-9\]+\\\]" 2 } } */
8 /* { dg-final { scan-assembler-times "dmb\tish" 2 } } */