URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [frv/] [fr550-builtins-5.c] - Rev 12
Compare with Previous | Blame | View Log
/* Test that __MADDACC only changes the registers it's supposed to. */ /* { dg-do run } */ extern void abort (void); extern void exit (int); int main () { __MWTACC (0, 1); __MWTACC (1, 1); __MWTACC (2, 1); __MWTACC (3, 1); __MWTACC (4, 1); __MWTACC (5, 1); __MWTACC (6, 1); __MWTACC (7, 1); __MADDACCS (0, 2); __MADDACCS (4, 6); if ((__MRDACC (0) - 2) | (__MRDACC (1) - 1) | (__MRDACC (4) - 2) | (__MRDACC (5) - 1)) abort (); exit (0); }