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] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */
/* { dg-require-effective-target arm32 } */
/* Test to catch off-by-one errors in arm/pr-support.c. */
#if defined (__VFP_FP__) && !defined (__SOFTFP__)
#include <iostream>
#include <stdlib.h>
using namespace std;
static void donkey ()
{
asm volatile ("fcpyd d9, %P0" : : "w" (1.2345) : "d9");
throw 1;
}
int main()
{
try
{
donkey ();
}
catch (int foo)
{
return 0;
}
return 1;
}
#else
int main()
{
return 0;
}
#endif
Go to most recent revision | Compare with Previous | Blame | View Log