OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-baddu-1.c] - Rev 704

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O -march=octeon" } */
/* { dg-final { scan-assembler-times "\tbaddu\t" 4 } } */
/* { dg-final { scan-assembler-not "\tandi\t" } } */
 
NOMIPS16 unsigned char
g (long long a, long long b)
{
  return a + b;
}
 
NOMIPS16 unsigned long long
h (unsigned long long a, unsigned long long b)
{
  unsigned char c = a + b;
  return c;
}
 
NOMIPS16 long long
ff (long long a, long long b)
{
  unsigned char c = a + b;
  return c;
}
 
NOMIPS16 int
gg (int a, int b)
{
  return (a + b) & 0xff;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.