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" } } */