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/] [dpsq_sa_l_w.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile { target { fixed_point } } } */
2
/* { dg-options "-O2 -mgp32 -mdsp" } */
3
/* { dg-final { scan-assembler-times "\tdpsq_sa.l.w\t\\\$ac" 2 } } */
4
 
5
NOMIPS16 _Sat long long _Fract
6
f1 (_Sat long _Fract x, _Sat long _Fract y, _Sat long long _Fract z)
7
{
8
  return z - (_Sat long long _Fract) x * y;
9
}
10
 
11
NOMIPS16 _Sat long long _Fract
12
f2 (_Sat long _Fract x, _Sat long _Fract y, _Sat long long _Fract z)
13
{
14
  _Sat long long _Fract t = (_Sat long long _Fract) x * y;
15
  int temp = 5;
16
  if (temp == 5)
17
    z -= t;
18
  return z;
19
}
20
 
21
long long _Fract
22
f3 (long _Fract x, long _Fract y, long long _Fract z)
23
{
24
  return z - (long long _Fract) x * y;
25
}
26
 
27
long long _Fract
28
f4 (long _Fract x, long _Fract y, long long _Fract z)
29
{
30
  long long _Fract t = (long long _Fract) x * y;
31
  int temp = 5;
32
  if (temp == 5)
33
    z -= t;
34
  return z;
35
}

powered by: WebSVN 2.1.0

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