blob: 114e0a846e8055b7d80ed3d6abf2ab91b58b02ba [file] [log] [blame]
/* Check that we get the expected alignment-checking code, xchg variant, int.
Unfortunately, PRE moves the "and" to a different BB, so combine doesn't
see it with the compare to make it a btstq. */
/* { dg-do compile } */
/* { dg-options "-O2 -Dxchg -Dtype=int" } */
/* { dg-additional-options "-mtrap-using-break8 -mtrap-unaligned-atomic" { target cris-*-elf } } */
/* { dg-final { scan-assembler "\tbreak 8" } } */
/* { dg-final { scan-assembler "\tbtstq \\(2-1\\)," { xfail *-*-* } } } */
/* { dg-final { scan-assembler-not "\tand" { xfail *-*-* } } } */
/* { dg-final { scan-assembler-not "\t\[jb\]sr" } } */
#include "sync-1.c"