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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [frv/] [fr550-builtins-5.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* Test that __MADDACC only changes the registers it's supposed to.  */
2
/* { dg-do run } */
3
extern void abort (void);
4
extern void exit (int);
5
 
6
int
7
main ()
8
{
9
  __MWTACC (0, 1);
10
  __MWTACC (1, 1);
11
  __MWTACC (2, 1);
12
  __MWTACC (3, 1);
13
  __MWTACC (4, 1);
14
  __MWTACC (5, 1);
15
  __MWTACC (6, 1);
16
  __MWTACC (7, 1);
17
  __MADDACCS (0, 2);
18
  __MADDACCS (4, 6);
19
  if ((__MRDACC (0) - 2)
20
      | (__MRDACC (1) - 1)
21
      | (__MRDACC (4) - 2)
22
      | (__MRDACC (5) - 1))
23
    abort ();
24
  exit (0);
25
}

powered by: WebSVN 2.1.0

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