URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [mips/] [mips16e-extends.c] - Rev 820
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-mips-options "-Os -march=mips32 -mips16" } */ short cksum16 (unsigned long n) { unsigned long l; l = validate (n, (n >> 16) + (n & 0xffff)); return l; } char cksum8 (unsigned long n) { unsigned long l; l = validate (n, (n >> 8) + (n & 0xff)); return l; } /* { dg-final { scan-assembler "zeh" } } */ /* { dg-final { scan-assembler "seh" } } */ /* { dg-final { scan-assembler "zeb" } } */ /* { dg-final { scan-assembler "seb" } } */
Go to most recent revision | Compare with Previous | Blame | View Log