1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_arm_ok } */
3 /* { dg-options "-marm -std=gnu99" } */
4 /* { dg-require-effective-target arm_arch_v6k_ok } */
5 /* { dg-add-options arm_arch_v6k } */
6 /* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "fetch_and_nand" { target *-*-* } 0 } */
7 /* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "nand_and_fetch" { target *-*-* } 0 } */
8 /* { dg-message "file included" "In file included" { target *-*-* } 0 } */
9 
10 #include "../../gcc.dg/di-longlong64-sync-1.c"
11 
12 /* We should be using ldrexd, strexd and no helpers or shorter ldrex.  */
13 /* { dg-final { scan-assembler-times "\tldrexd" 48 } } */
14 /* { dg-final { scan-assembler-times "\tstrexd" 48 } } */
15 /* { dg-final { scan-assembler-not "__sync_" } } */
16 /* { dg-final { scan-assembler-not "ldrex\t" } } */
17 /* { dg-final { scan-assembler-not "strex\t" } } */
18