PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / cas64.c
blobed27cd7cc621f670ef8fb189789a7d2f8f4e1b49
1 /* PR target/49660 */
3 /* { dg-do compile { target sparc*-*-solaris2.* } } */
5 #include <stdint.h>
7 extern int64_t *val, old, new;
9 int
10 cas64 (void)
12 return __sync_bool_compare_and_swap (val, old, new);
15 /* { dg-final { scan-assembler-not "compare_and_swap_8" } } */