PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / cris / sync-3s.c
blob8e87a3b62216e62bb54efb6f9244c8fd4c2e6243
1 /* Check that we get the expected alignment-checking code, xchg variant, short.
2 Unfortunately, PRE moves the "and" to a different BB, so combine doesn't
3 see it with the compare to make it a btstq. */
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -Dxchg -Dtype=short" } */
6 /* { dg-additional-options "-mtrap-using-break8 -mtrap-unaligned-atomic" { target cris-*-elf } } */
7 /* { dg-additional-options "-mno-unaligned-atomic-may-use-library" { target cris*-*-linux* } } */
8 /* { dg-final { scan-assembler "\tbreak 8" } } */
9 /* { dg-final { scan-assembler "\tbtstq \\(1-1\\)," { xfail *-*-* } } } */
10 /* { dg-final { scan-assembler-not "\tand" { xfail *-*-* } } } */
11 /* { dg-final { scan-assembler-not "\t\[jb\]sr" } } */
12 #include "sync-1.c"