invoke.texi (-mcode-readable): Document.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / code-readable-1.c
blob75a34cd49c00fda5a6c803dac4f2180d0ec86408
1 /* { dg-mips-options "-mips16 -mcode-readable=yes -mgp32" } */
3 int
4 foo (int i)
6 switch (i)
8 case 1: return 40;
9 case 2: return 11;
10 case 3: return 29;
11 case 4: return 10;
12 case 5: return 12;
13 case 6: return 35;
14 case 7: return 23;
15 default: return 0;
19 extern int k[];
21 int *
22 bar (void)
24 return k;
27 /* { dg-final { scan-assembler "\tla\t" } } */
28 /* { dg-final { scan-assembler "\t\.half\t" } } */
29 /* { dg-final { scan-assembler-not "%hi\\(\[^)\]*L" } } */
30 /* { dg-final { scan-assembler-not "%lo\\(\[^)\]*L" } } */
32 /* { dg-final { scan-assembler "\t\.word\tk\n" } } */
33 /* { dg-final { scan-assembler-not "%hi\\(k\\)" } } */
34 /* { dg-final { scan-assembler-not "%lo\\(k\\)" } } */