1 /* Test that all accumulator registers are accessible. */
2 /* { dg-options "-mcpu=fr450" } */
4 extern void abort (void);
5 extern void exit (int);
8 (__MWTACC (X, 0x11220000 | X), __MRDACC (X) ^ (0x11220000 | X))
10 #define TEST_ACCG(X) \
11 (__MWTACCG (X, X), __MRDACCG (X) ^ X)
14 (__MRDACC (X) | __MRDACCG (X))
19 if (TEST_ACC (0) | TEST_ACC (1) | TEST_ACC (2) | TEST_ACC (3))
21 if (TEST_ACC (8) | TEST_ACC (9) | TEST_ACC (10) | TEST_ACC (11))
23 if (TEST_ACCG (0) | TEST_ACCG (1) | TEST_ACCG (2) | TEST_ACCG (3))
25 if (TEST_ACCG (8) | TEST_ACCG (9) | TEST_ACCG (10) | TEST_ACCG (11))
29 if (ZERO_ACC (0) | ZERO_ACC (1) | ZERO_ACC (2) | ZERO_ACC (3))
31 if (ZERO_ACC (8) | ZERO_ACC (9) | ZERO_ACC (10) | ZERO_ACC (11))