mips16e-extends.c: New test for testing the generation of MIPS16e zeb/zeh, seb/seh instructions.
* gcc.target/mips/mips16e-extends.c: New test for testing the generation of MIPS16e zeb/zeh, seb/seh instructions. From-SVN: r100980
This commit is contained in:
parent
7cc63a88cb
commit
18ea791fa4
2 changed files with 26 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-15 David Ung <davidu@mips.com>
|
||||
|
||||
* gcc.target/mips/mips16e-extends.c: New test for testing the
|
||||
generation of MIPS16e zeb/zeh, seb/seh instructions.
|
||||
|
||||
2005-06-15 Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
PR 22018
|
||||
|
|
21
gcc/testsuite/gcc.target/mips/mips16e-extends.c
Normal file
21
gcc/testsuite/gcc.target/mips/mips16e-extends.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
/* { 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" } } */
|
Loading…
Add table
Reference in a new issue