OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [cas64.c] - Rev 753

Go to most recent revision | Compare with Previous | Blame | View Log

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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.