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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-baddu-1.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -march=octeon" } */
3
/* { dg-final { scan-assembler-times "\tbaddu\t" 4 } } */
4
/* { dg-final { scan-assembler-not "\tandi\t" } } */
5
 
6
NOMIPS16 unsigned char
7
g (long long a, long long b)
8
{
9
  return a + b;
10
}
11
 
12
NOMIPS16 unsigned long long
13
h (unsigned long long a, unsigned long long b)
14
{
15
  unsigned char c = a + b;
16
  return c;
17
}
18
 
19
NOMIPS16 long long
20
ff (long long a, long long b)
21
{
22
  unsigned char c = a + b;
23
  return c;
24
}
25
 
26
NOMIPS16 int
27
gg (int a, int b)
28
{
29
  return (a + b) & 0xff;
30
}

powered by: WebSVN 2.1.0

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