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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [fix-r10000-15.c] - Blame information for rev 724

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -mfix-r10000" } */
3
/* { dg-final { scan-assembler-times "\tbeql\t" 3 } } */
4
 
5
NOMIPS16 int
6
f1 (int *z)
7
{
8
  int result;
9
 
10
  result = __sync_lock_test_and_set (z, 42);
11
  __sync_lock_release (z);
12
  return result;
13
}
14
 
15
NOMIPS16 short
16
f2 (short *z)
17
{
18
  short result;
19
 
20
  result = __sync_lock_test_and_set (z, 42);
21
  __sync_lock_release (z);
22
  return result;
23
}
24
 
25
NOMIPS16 char
26
f3 (char *z)
27
{
28
  char result;
29
 
30
  result = __sync_lock_test_and_set (z, 42);
31
  __sync_lock_release (z);
32
  return result;
33
}

powered by: WebSVN 2.1.0

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