summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/cas64.c
blob: ed27cd7cc621f670ef8fb189789a7d2f8f4e1b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/49660 */

/* { dg-do compile { target sparc*-*-solaris2.* } } */

#include <stdint.h>

extern int64_t *val, old, new;

int
cas64 (void)
{
  return __sync_bool_compare_and_swap (val, old, new);
}

/* { dg-final { scan-assembler-not "compare_and_swap_8" } } */