1 /* { dg-do compile } */
2 /* { dg-mips-options "-Os -march=mips32 -mips16" } */
4 short cksum16 (unsigned long n
)
7 l
= validate (n
, (n
>> 16) + (n
& 0xffff));
11 char cksum8 (unsigned long n
)
14 l
= validate (n
, (n
>> 8) + (n
& 0xff));
18 /* { dg-final { scan-assembler "zeh" } } */
19 /* { dg-final { scan-assembler "seh" } } */
20 /* { dg-final { scan-assembler "zeb" } } */
21 /* { dg-final { scan-assembler "seb" } } */