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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [maddu-4.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -mdspr2 -mgp32" } */
3
/* { dg-final { scan-assembler-times "\tmaddu\t\\\$ac" 3 } } */
4
 
5
typedef unsigned int ui;
6
typedef unsigned long long ull;
7
 
8
NOMIPS16 ull
9
f1 (ui x, ui y, ull z)
10
{
11
  return (ull) x * y + z;
12
}
13
 
14
NOMIPS16 ull
15
f2 (ui x, ui y, ull z)
16
{
17
  return z + (ull) y * x;
18
}
19
 
20
NOMIPS16 ull
21
f3 (ui x, ui y, ull z)
22
{
23
  ull t = (ull) x * y;
24
  int temp = 5;
25
  if (temp == 5)
26
    z += t;
27
  return z;
28
}

powered by: WebSVN 2.1.0

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