repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
eh
/
arm-vfp-unwind.C
blob
62263c0c3b06d77eb5016f822b66c5e839e02c18
1
/* { 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 <iostream>
9
#include <stdlib.h>
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