1 /* 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
main()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 }
26