2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / code-readable-3.c
blob21dc82be2b5243a372b72d50d56242793ceb3eb5
1 /* { dg-options "(-mips16) -mcode-readable=no -mgp32 addressing=absolute" } */
3 MIPS16 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 MIPS16 int *
22 bar (void)
24 return k;
27 /* { dg-final { scan-assembler-not "\tla\t" } } */
28 /* { dg-final { scan-assembler-not "\t\.half\t" } } */
29 /* { dg-final { scan-assembler "%hi\\(\[^)\]*L" } } */
30 /* { dg-final { scan-assembler "%lo\\(\[^)\]*L" } } */
32 /* { dg-final { scan-assembler-not "\t\.word\tk\n" } } */
33 /* { dg-final { scan-assembler "%hi\\(k\\)" } } */
34 /* { dg-final { scan-assembler "%lo\\(k\\)" } } */