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

Subversion Repositories openrisc

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

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.