Handle Octeon 3 not supporting MIPS paired-single instructions.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / umips-store16-1.c
blob6377e8569d632fd5a9b85f4fa09fb3acc584e322
1 /* { dg-options "(-mmicromips)" } */
2 /* { dg-do assemble } */
4 register unsigned int global asm ("$16");
6 extern void exit (int) __attribute__((noreturn));
8 MICROMIPS void
9 test_sb (unsigned char *ptr, void (*f) (void))
11 ptr[0] = global;
12 f ();
13 exit (0);
16 MICROMIPS void
17 test_sh (unsigned short *ptr, void (*f) (void))
19 ptr[0] = global;
20 f ();
21 exit (0);
24 MICROMIPS void
25 test_sw (unsigned int *ptr, void (*f) (void))
27 ptr[0] = global;
28 f ();
29 exit (0);