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/] [i386/] [pr39058.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* PR inline-asm/39058 */
2
/* { dg-options "-O2" } */
3
 
4
double
5
f1 ()
6
{
7
  double x;
8
  asm ("" : "=r,r" (x) : "0,0" (x));
9
  return x;
10
}
11
 
12
double
13
f2 ()
14
{
15
  double x;
16
  asm ("" : "=r" (x) : "0" (x));
17
  return x;
18
}
19
 
20
double
21
f3 ()
22
{
23
  double x, y;
24
  asm ("" : "=r,r" (x), "=r,r" (y) : "%0,0" (x), "r,r" (0));
25
  return x;
26
}
27
 
28
double
29
f4 ()
30
{
31
  double x, y;
32
  asm ("" : "=r" (x), "=r" (y) : "0" (x), "r" (0));
33
  return x;
34
}

powered by: WebSVN 2.1.0

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