blob: 36d57f08676622173cd65491c8ada1a66100c5d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v7a_ok } */
/* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
/* { dg-options "-O2 -fno-omit-frame-pointer" } */
/* { dg-add-options arm_arch_v7a } */
int a, h, j;
long long d, e, i;
int f;
int
fn1 (void *p1, int p2)
{
switch (p2)
case 8:
{
register int b = *(long long *) p1, c asm ("r2");
asm ("%0": "=r" (a), "=r" (c):"r" (b), "r" (0));
*(long long *) p1 = c;
}
}
int
fn2 ()
{
int k;
k = f;
while (1)
{
fn1 (&i, sizeof i);
e = d + k;
switch (d)
case 0:
(
{
register int l asm ("r4");
register int m asm ("r0");
asm (" .err .endif\n\t": "=r" (h), "=r" (j):"r" (m),
"r"
(l));;
});
}
}
|