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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [arm-vfp-unwind.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do run } */
2
/* { dg-require-effective-target arm32 } */
3
 
4
/* Test to catch off-by-one errors in arm/pr-support.c.  */
5
 
6
#if defined (__VFP_FP__) && !defined (__SOFTFP__)
7
 
8
#include 
9
#include 
10
 
11
using namespace std;
12
 
13
static void donkey ()
14
{
15
  asm volatile ("fcpyd d9, %P0" : : "w" (1.2345) : "d9");
16
  throw 1;
17
}
18
 
19
int main()
20
{
21
  try
22
    {
23
      donkey ();
24
    }
25
  catch (int foo)
26
    {
27
      return 0;
28
    }
29
  return 1;
30
}
31
 
32
#else
33
 
34
int main()
35
{
36
  return 0;
37
}
38
 
39
#endif
40
 

powered by: WebSVN 2.1.0

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