PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / frv / fr550-builtins-5.c
blobff75ea17dfee0904cefdc2fd080f1c34c6b0eaa5
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);
6 int
7 main ()
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);