blob: b4d527396d65ccaf945aa5669d4650925c088c5d (
plain)
1
2
3
4
5
6
7
|
/* PR target/56225 */
/* { dg-do compile { target { ia32 && fpic } } } */
/* { dg-options "-O2 -fno-omit-frame-pointer -march=i686 -fpic" } */
void NoBarrier_AtomicExchange (long long *ptr) {
while (__sync_val_compare_and_swap (ptr, 1, 0) );
}
|