Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.target / mips / mips16e-extends.c
blob0523aa563c51b62e71edac48e04ed21d9ed204b1
1 /* { dg-do compile } */
2 /* { dg-mips-options "-Os -march=mips32 -mips16" } */
4 short cksum16 (unsigned long n)
6 unsigned long l;
7 l = validate (n, (n >> 16) + (n & 0xffff));
8 return l;
11 char cksum8 (unsigned long n)
13 unsigned long l;
14 l = validate (n, (n >> 8) + (n & 0xff));
15 return l;
18 /* { dg-final { scan-assembler "zeh" } } */
19 /* { dg-final { scan-assembler "seh" } } */
20 /* { dg-final { scan-assembler "zeb" } } */
21 /* { dg-final { scan-assembler "seb" } } */