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/] [fpr-moves-1.c] - Blame information for rev 327

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

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-options "-mabi=32 -mhard-float -mips1 -O2 -EL" } */
2
 
3
NOMIPS16 void
4
foo (double d, double *x)
5
{
6
  *x = d;
7
}
8
 
9
NOMIPS16 double
10
bar (double d)
11
{
12
  register double l1 asm ("$8") = d;
13
  register double l2 asm ("$f20") = 0.0;
14
  asm ("#foo" : "=d" (l1) : "d" (l1));
15
  asm volatile ("#foo" :: "f" (l2));
16
  return l1;
17
}
18
 
19
/* { dg-final { scan-assembler "\tswc1\t\\\$f12,0\\\(\\\$6\\\)\n" } } */
20
/* { dg-final { scan-assembler "\tswc1\t\\\$f13,4\\\(\\\$6\\\)\n" } } */
21
/* { dg-final { scan-assembler "\tmfc1\t\\\$8,\\\$f12\n" } } */
22
/* { dg-final { scan-assembler "\tmfc1\t\\\$9,\\\$f13\n" } } */
23
/* { dg-final { scan-assembler "\tmtc1\t\\\$0,\\\$f20\n" } } */
24
/* { dg-final { scan-assembler "\tmtc1\t\\\$0,\\\$f21\n" } } */
25
/* { dg-final { scan-assembler "\tmtc1\t\\\$8,\\\$f0\n" } } */
26
/* { dg-final { scan-assembler "\tmtc1\t\\\$9,\\\$f1\n" } } */

powered by: WebSVN 2.1.0

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