OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr21255-3.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target "sh*-*-*" } } */
2
/* { dg-options "-O2 -fomit-frame-pointer" } */
3
/* { dg-final { scan-assembler "mov #?0,r.*; mov #?20,r" } } */
4
/* { dg-final { scan-assembler "mov #?1077149696,r.*; mov #?0,r" } } */
5
double
6
f ()
7
{
8
  double r;
9
 
10
  asm ("mov %S1,%S0; mov %R1,%R0" : "=r" (r) : "i" (20));
11
  asm ("mov %S1,%S0; mov %R1,%R0" : "+r" (r) : "i" (20.));
12
  return r;
13
}

powered by: WebSVN 2.1.0

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