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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [sh/] [pr21255-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 325 jeremybenn
/* { dg-do compile { target "sh*-*-*" } } */
2
/* { dg-options "-O2 -fomit-frame-pointer" } */
3
/* { dg-final { scan-assembler "mov fr4,fr.; mov fr5,fr." { target sh-*-* } } } */
4
/* { dg-final { scan-assembler "mov fr4,fr.; mov fr5,fr." { target sh[1234lb]*-*-* } } } */
5
/* { dg-final { scan-assembler "mov fr0,fr.; mov fr1,fr." { target sh[56]*-*-* } } } */
6
double
7
f (double d)
8
{
9
  double r;
10
 
11
#if defined (__SH_FPU_DOUBLE__)
12
  asm ("mov %S1,%S0; mov %R1,%R0" : "=f" (r) : "f" (d));
13
#else
14
  asm ("mov fr4,fr4; mov fr5,fr5");
15
#endif
16
  return r;
17
}

powered by: WebSVN 2.1.0

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